query
stringlengths 7
33.1k
| document
stringlengths 7
335k
| metadata
dict | negatives
sequencelengths 3
101
| negative_scores
sequencelengths 3
101
| document_score
stringlengths 3
10
| document_rank
stringclasses 102
values |
---|---|---|---|---|---|---|
EFFECTS: (pretends to) begin tracing the suspect in question | void track(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void courseEffects() {\n\t\t\n\t}",
"@Override\n\tprotected void enterEffect() {\n\t\t\n\t}",
"private final void segmentsFrameEffects() {\n\t\tif (alive) {\n\t\t\tint i;\n\t\t\t// Energy obtained through photosynthesis\n\t\t\tdouble photosynthesis = 0;\n\t\t\t_nChildren = 1;\n\t\t\t_indigo =0;\n\t\t\t_lowmaintenance =0;\n\t\t\tint fertility =0;\n\t\t\tint yellowCounter =0;\n\t\t\tint reproduceearly =0;\n\t\t\tdouble goldenage =0;\n\t\t\t_isfrozen =false;\n\t\t\tboolean trigger =false;\n\t\t\tfor (i=_segments-1; i>=0; i--) {\n\t\t\t\t// Manteniment\n\t\t\t\tswitch (getTypeColor(_segColor[i])) {\n\t\t\t\t// \tMovement\n\t\t\t\tcase CYAN:\n\t\t\t\t\tif (Utils.random.nextInt(100)<8 && useEnergy(Utils.CYAN_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\tdx=Utils.between(dx+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\tdy=Utils.between(dy+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase TEAL:\n\t\t\t\t\tif (_geneticCode.getPassive()) {\n\t\t\t\t\t\tif (_hasdodged == false) {\n\t\t\t\t\t\t\t_dodge =true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t_lowmaintenance += 0.9 * _m[i];\n\t\t\t\t\t} else \n\t\t\t\t\t if (Utils.random.nextInt(100)<8 && useEnergy(Utils.CYAN_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t dx=Utils.between(dx+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dy=Utils.between(dy+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// Photosynthesis\n\t\t\t\tcase SPRING:\n\t\t\t\t\t if (_geneticCode.getClockwise()) {\n\t\t\t\t\t\t dtheta=Utils.between(dtheta+0.1*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t\t\t\t\t\t photosynthesis += Utils.SPRING_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\t} else {\n\t\t\t\t\t dtheta=Utils.between(dtheta-0.1*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t\t\t\t\t photosynthesis += Utils.SPRING_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase LIME:\n\t\t\t\t\tif (trigger == false) {\n\t\t\t\t\t\ttrigger =true;\n\t\t\t\t\t if (_world.fastCheckHit(this) != null) {\n\t\t\t\t\t \t_crowded =true;\n\t\t\t\t\t } else {\n\t\t\t\t\t \t_crowded =false;\n\t\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t\tif (_crowded == true) {\n\t\t\t\t\t photosynthesis += Utils.CROWDEDLIME_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tphotosynthesis += Utils.LIME_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase JADE:\n\t\t\t\t\t_isjade =true;\n\t\t\t\t\tphotosynthesis += Utils.JADE_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\tbreak;\n\t\t\t\tcase GREEN:\n\t\t\t\t\tphotosynthesis += Utils.GREEN_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\tbreak;\n\t\t\t\tcase FOREST:\n\t\t\t\t\tphotosynthesis += Utils.FOREST_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\tbreak;\n\t\t\t\tcase BARK:\n\t\t\t\t\tphotosynthesis += Utils.BARK_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\tbreak;\n\t\t\t\tcase GRASS:\n\t\t\t\t\tphotosynthesis += Utils.GRASS_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\tbreak;\n\t\t\t\tcase C4:\n\t\t\t\t\t_lowmaintenance += _m[i];\n\t\t\t\t\tphotosynthesis += Utils.C4_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\tbreak;\n\t\t\t\t// is a consumer\n\t\t\t\tcase RED:\n\t\t\t\t\t_isaconsumer =true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase FIRE:\n\t\t\t\t\t_isaconsumer =true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase ORANGE:\n\t\t\t\t\t_isaconsumer =true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase MAROON:\n\t\t\t\t\t_isaconsumer =true;\n\t\t\t\t\t_lowmaintenance += 0.9 * _m[i];\n\t\t\t\t\tbreak;\n\t\t\t\tcase PINK:\n\t\t\t\t\t_isaconsumer =true;\n\t\t\t\t\tif (_isakiller < 2) {\n\t\t\t\t\t\t_lowmaintenance += 0.8 * _m[i];\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase CREAM:\n\t\t\t\t\t_isaconsumer =true;\n\t\t\t\t\tbreak;\n\t\t\t\t// Organisms with yellow segments have more children\n\t\t\t\tcase YELLOW:\n\t\t\t\t\tyellowCounter++;\n\t\t\t\t\tfertility += _m[i];\n\t\t\t\t break;\n\t\t\t\t// Experienced parents have more children\n\t\t\t\tcase SILVER:\n\t\t\t\t\tif (_isaconsumer == false) {\n\t\t\t\t\tfor (int c = 0; c < _segments; c++) {\n\t\t\t\t\t\tswitch (getTypeColor(_segColor[c])) {\n\t\t\t\t\t\tcase DARKGRAY:\n\t\t\t\t\t\tcase GRAY:\n\t\t\t\t\t\tcase LILAC:\n\t\t\t\t\t\tcase SPIKE:\n\t\t\t\t\t\tcase PLAGUE:\n\t\t\t\t\t\tcase CORAL:\n\t\t\t\t\t\t\t_isaconsumer =true;\n\t\t\t\t\t}}}\n\t\t\t\t\t if (_nTotalChildren >= 1 && _nTotalChildren < 5) {\n\t\t\t\t\t\t_nChildren = 2; \n\t\t\t\t\t} else if (_nTotalChildren >= 5 && _nTotalChildren < 14) {\n\t\t\t\t\t\t_nChildren = 3; \n\t\t\t\t\t} else if (_nTotalChildren >= 14 && _nTotalChildren < 30) {\n\t\t\t\t\t\t_nChildren = 4; \n\t\t\t\t\t} else if (_nTotalChildren >= 30 && _nTotalChildren < 55) {\n\t\t\t\t\t\t_nChildren = 5;\n\t\t\t\t\t} else if (_nTotalChildren >= 55 && _nTotalChildren < 91) {\n\t\t\t\t\t _nChildren = 6;\n\t\t\t\t\t} else if (_nTotalChildren >= 91 && _nTotalChildren < 140) {\n\t\t\t\t\t\t_nChildren = 7; \n\t\t\t\t\t} else if (_nTotalChildren >= 140) {\n\t\t\t\t\t\t_nChildren = 8;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// Auburn always has one real child if infected\n\t\t\t\tcase AUBURN:\n\t\t\t\t\t_isauburn =true;\n\t\t\t\t\t_lowmaintenance += _m[i] - (Utils.AUBURN_ENERGY_CONSUMPTION * _m[i]);\n\t\t\t\t\tif (_infectedGeneticCode != null && _nChildren == 1) {\n\t\t\t\t\t\t_nChildren = 2;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// Organisms with blond segments reproduce earlier\n\t\t\t\tcase BLOND:\n\t\t\t\t\treproduceearly += 3 + _m[i];\n\t\t\t\t\tbreak;\n\t\t\t\t// Organisms with indigo segments reduce the energy the new born virus receives\n\t\t\t\tcase INDIGO:\n\t\t\t\t\t_indigo += _m[i];\n\t\t\t\t\t_lowmaintenance += 0.8 * _m[i];\n\t\t\t\t\tbreak;\n\t\t\t\t// Plague forces an organism to reproduce the virus\n\t\t\t\tcase PLAGUE:\n\t\t\t\t\t_isplague =true;\n\t\t\t\t\tbreak;\n\t\t\t\t// Coral transforms particles and viruses\n\t\t\t\tcase CORAL:\n\t\t\t\t\t_iscoral =true;\n\t\t\t\t\tbreak;\n\t\t\t\t// Mint immunity against infections\t\n\t\t\t\tcase MINT:\n\t\t\t\t\t_isantiviral =true;\n\t\t\t\t\tif (_infectedGeneticCode != null && Utils.random.nextInt(Utils.IMMUNE_SYSTEM)<=_m[i] && useEnergy(Utils.MINT_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t_infectedGeneticCode = null;\n\t\t\t\t\t\tsetColor(Utils.ColorMINT);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// Healing\n\t\t\t\tcase MAGENTA:\n\t\t\t\t _isregenerative =true;\n\t\t\t\t for (int j = 0; j < _segments; j++) {\n\t\t\t\t if ((_segColor[j] == Utils.ColorLIGHTBROWN) || (_segColor[j] == Utils.ColorGREENBROWN) || (_segColor[j] == Utils.ColorPOISONEDJADE)\n\t\t\t\t\t\t|| (_segColor[j] == Utils.ColorBROKEN) || (_segColor[j] == Utils.ColorLIGHT_BLUE) || (_segColor[j] == Utils.ColorICE)\n\t\t\t\t\t\t|| (_segColor[j] == Utils.ColorDARKJADE) || (_segColor[j] == Utils.ColorDARKFIRE)) {\n\t\t\t\t\tif (Utils.random.nextInt(Utils.HEALING)<=_m[i] && useEnergy(Utils.MAGENTA_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t _segColor[j] = _geneticCode.getGene(j%_geneticCode.getNGenes()).getColor(); \n\t\t\t\t\t}}}\n\t\t\t\t\tbreak;\n\t\t\t\tcase DARKFIRE:\n\t\t\t\t\tif (Utils.random.nextInt(100)<_geneticCode.getSymmetry() && useEnergy(Utils.MAGENTA_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t_segColor[i] = _geneticCode.getGene(i%_geneticCode.getNGenes()).getColor(); \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase DARKJADE:\n\t\t\t\t\t_isjade =true;\n\t\t\t\t\tif (Utils.random.nextInt(Utils.DARKJADE_DELAY * _geneticCode.getSymmetry() * _geneticCode.getSymmetry())<8) {\n\t\t\t\t\t\t_segColor[i] = Utils.ColorJADE; \n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// Normalize spike\n\t\t\t\tcase SPIKEPOINT:\n\t\t\t\t\t_segColor[i] = Utils.ColorSPIKE;\n\t\t\t\t\tbreak;\n\t\t\t\t// is a killer\n\t\t\t\tcase SPIKE:\n\t\t\t\t\tif (_isenhanced) {\n\t\t\t\t\t\t_isaconsumer =true;\n\t\t\t\t\t}\n\t\t\t\t\tif (_isakiller == 0) {\n\t\t\t\t\t\t_isakiller = 1;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase LILAC:\n\t\t\t\t\tif (_isakiller == 0) {\n\t\t\t\t\t\t_isakiller = 1;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase GRAY:\n\t\t\t\t\tif (_isakiller < 2) {\n\t\t\t\t\t _isakiller = 2;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// is poisonous\n\t\t\t\tcase VIOLET:\n\t\t\t\t\t_ispoisonous =true;\n\t\t\t\t\tbreak;\n\t\t\t\t// is a freezer\n\t\t\t\tcase SKY:\n\t\t\t\t\t_isafreezer =true;\n\t\t\t\t\tbreak;\n\t\t\t\t// is enhanced\n\t\t\t\tcase DARKGRAY:\n\t\t\t\t\t_isenhanced =true;\n\t\t\t\t\tbreak;\n\t\t\t\t// Energy transfer\n\t\t\t\tcase ROSE:\n\t\t\t\t\t_lowmaintenance += 0.99 * _m[i];\n\t\t\t\t\tif (_transfersenergy == false) {\n\t\t\t\t\t\t_transfersenergy =true;\n\t\t\t\t\t _lengthfriend = _geneticCode.getGene(i%_geneticCode.getNGenes()).getLength();\n\t\t\t\t\t _thetafriend = _geneticCode.getGene(i%_geneticCode.getNGenes()).getTheta();\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// Low maintenance\n\t\t\t\tcase DARK:\n\t\t\t\t\t_lowmaintenance += 0.99 * _m[i];\n\t\t\t\t\tbreak;\n\t\t\t\t// Organisms with gold segments live longer\n\t\t\t\tcase GOLD:\n\t\t\t\t\t_lowmaintenance += 0.9 * _m[i];\n\t\t\t\t\tgoldenage += (_m[i]/Utils.GOLD_DIVISOR);\n\t\t\t\t\t_geneticCode._max_age = Utils.MAX_AGE + ((_geneticCode.getNGenes() * _geneticCode.getSymmetry())/Utils.AGE_DIVISOR) + (int)goldenage;\n\t\t\t\t\tbreak;\n\t\t\t\t// is weakened\n\t\t\t\tcase LIGHTBROWN:\n\t\t\t\tcase GREENBROWN:\n\t\t\t\tcase POISONEDJADE:\n\t\t\t\t\tif (_remember) {\n\t\t\t\t\t\t_isjade =false;\n\t\t\t\t\t\t_isenhanced =false;\n\t\t\t\t\t\t_isantiviral =false;\n\t\t\t\t\t\t_isregenerative =false;\n\t\t\t\t\t\tfor (int c = 0; c < _segments; c++) {\n\t\t\t\t\t\t\tswitch (getTypeColor(_segColor[c])) {\n\t\t\t\t\t\t\tcase JADE:\n\t\t\t\t\t\t\t\t_isjade =true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase DARKJADE:\n\t\t\t\t\t\t\t\t_isjade =true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase DARKGRAY:\n\t\t\t\t\t\t\t\t_isenhanced =true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase MINT:\n\t\t\t\t\t\t\t\t_isantiviral =true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase MAGENTA:\n\t\t\t\t\t\t\t\t_isregenerative =true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t}\n\t\t\t\t\t _geneticCode._max_age = Utils.MAX_AGE + ((_geneticCode.getNGenes() * _geneticCode.getSymmetry())/Utils.AGE_DIVISOR) + (int)goldenage;\n\t\t\t\t\t _remember =false;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase LIGHT_BLUE:\n\t\t\t\t\tif (_isafreezer) {\n\t\t\t\t\t\t_isafreezer =false;\n\t\t\t\t\t\tfor (int c = 0; c < _segments; c++) {\n\t\t\t\t\t\t\tswitch (getTypeColor(_segColor[c])) {\n\t\t\t\t\t\t\tcase SKY:\n\t\t\t\t\t\t\t\t_isafreezer =true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase DEEPSKY:\n\t\t\t\t\t\t\t\t_isafreezer =true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t// is frozen\n\t\t\t\tcase ICE:\n\t\t\t\t\t_isfrozen =true;\n\t\t\t\t\tif (_isjade) {\n\t\t\t\t\t\t_isjade =false;\n\t\t\t\t\t\tfor (int c = 0; c < _segments; c++) {\n\t\t\t\t\t\t\tswitch (getTypeColor(_segColor[c])) {\n\t\t\t\t\t\t\tcase JADE:\n\t\t\t\t\t\t\t\t_isjade =true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase DARKJADE:\n\t\t\t\t\t\t\t\t_isjade =true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase DEADBARK:\n\t\t\t\t\t_isfrozen =true;\n\t\t\t\t\tbreak;\n\t\t\t\t// Restore abilities\n\t\t\t\tcase DARKLILAC:\n\t\t\t\t\tif (_isakiller == 0) {\n\t\t\t\t\t\t_isakiller = 1;\n\t\t\t\t\t}\n\t\t\t\t\tif (Utils.random.nextInt(100)<8) {\n\t\t\t\t\t\t_segColor[i] = Utils.ColorLILAC;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase DEEPSKY:\n\t\t\t\t\t_isafreezer =true;\n\t\t\t\t\tif (Utils.random.nextInt(100)<8) {\n\t\t\t\t\t\t_segColor[i] = Utils.ColorSKY;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase DARKOLIVE:\n\t\t\t\t\tif (Utils.random.nextInt(100)<8 && useEnergy(Utils.OLIVE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t_segColor[i] = Utils.ColorOLIVE;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Reset dodging\n\t\t\tif (_hasdodged == true) {\n\t\t\t\t_dodge =false;\n\t\t\t\t_hasdodged =false;\n\t\t\t}\n\t\t\t//Get sun's energy\n\t\t\tif (photosynthesis > 0) {\n\t\t\t\t_isaplant =true;\n\t\t\t _energy += _world.photosynthesis(photosynthesis);\t\t\t\n\t\t\t}\n\t\t\t// Calculate number of children\n\t\t\tif (fertility > 0) {\n\t\t\t\tif (_geneticCode.getSymmetry() != 3) {\n\t\t\t\t _nChildren += (yellowCounter / _geneticCode.getSymmetry()) + (fertility / 23);\n\t\t\t } else {\n\t\t\t \t_nChildren += (yellowCounter / _geneticCode.getSymmetry()) + (fertility / 34);\n\t\t\t }\n\t\t\t}\n\t\t\t// Calculate reproduction energy for blond segments\n\t\t\tif ((reproduceearly > 0) && (_infectedGeneticCode == null)) {\n\t\t\t\tif (_energy > _geneticCode.getReproduceEnergy() - reproduceearly + Utils.YELLOW_ENERGY_CONSUMPTION*(_nChildren-1)) {\n\t\t\t\t\tif ((!_isaplant) && (!_isaconsumer)) {\n\t\t\t\t\t\tif ((_energy >= 10) && (_growthRatio<16) && (useEnergy(Utils.BLOND_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t\t_nChildren = 1;\n\t\t\t\t\t _geneticCode._reproduceEnergy = Math.max((40 + 3 * _geneticCode.getNGenes() * _geneticCode.getSymmetry()) - reproduceearly, 10);\n\t\t\t\t\t reproduce();\n\t\t\t\t\t _geneticCode._reproduceEnergy = 40 + 3 * _geneticCode.getNGenes() * _geneticCode.getSymmetry();\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\tif ((_energy >= 30) && (_growthRatio==1) && (_timeToReproduce==0) && (useEnergy(Utils.BLOND_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t _geneticCode._reproduceEnergy = Math.max((40 + 3 * _geneticCode.getNGenes() * _geneticCode.getSymmetry()) - reproduceearly, 30);\n\t\t\t\t\t\t reproduce();\n\t\t\t\t\t\t _geneticCode._reproduceEnergy = 40 + 3 * _geneticCode.getNGenes() * _geneticCode.getSymmetry();\t\t\t\t\t\t\t\n\t\t\t\t\t\t} \n\t\t\t\t\t}\n\t\t\t }\n\t\t\t}\n\t\t}\n\t}",
"private void activeDrawEffects() {\n }",
"@Override\n\tpublic int effect() {\n\t\treturn 0 ;\n\t}",
"public void effect() {\n }",
"void applyEffects();",
"@Override\n public void effect() {\n\n }",
"private final void rubbingFramesEffects() {\n\t\tdx *= Utils.RUBBING;\n\t\tif (FastMath.abs(dx) < Utils.tol) dx=0;\n\t\tdy *= Utils.RUBBING;\n\t\tif (FastMath.abs(dy) < Utils.tol) dy = 0;\n\t\tdtheta *= Utils.RUBBING;\n\t\tif (FastMath.abs(dtheta) < Utils.tol) dtheta = 0;\n\t}",
"public void a(PotionEffect paramwq)\r\n/* 44: */ {\r\n/* 45: 52 */ if (this.id != paramwq.id) {\r\n/* 46: 53 */ a.warn(\"This method should only be called for matching effects!\");\r\n/* 47: */ }\r\n/* 48: 55 */ if (paramwq.amplifier > this.amplifier)\r\n/* 49: */ {\r\n/* 50: 56 */ this.amplifier = paramwq.amplifier;\r\n/* 51: 57 */ this.duration = paramwq.duration;\r\n/* 52: */ }\r\n/* 53: 58 */ else if ((paramwq.amplifier == this.amplifier) && (this.duration < paramwq.duration))\r\n/* 54: */ {\r\n/* 55: 59 */ this.duration = paramwq.duration;\r\n/* 56: */ }\r\n/* 57: 60 */ else if ((!paramwq.ambient) && (this.ambient))\r\n/* 58: */ {\r\n/* 59: 61 */ this.ambient = paramwq.ambient;\r\n/* 60: */ }\r\n/* 61: 63 */ this.showParticles = paramwq.showParticles;\r\n/* 62: */ }",
"public static void launchVisualEffect() {\n\n Object[][] multiDimensionalTrailTracker = new Object[trackAmount][individualEffectsPerTrack];\n\n for (int i = 0; i < multiDimensionalTrailTracker.length; i++) {\n ArrayList<Object> localObjects = new ArrayList<>();\n for (int a = 0; a < multiDimensionalTrailTracker.length; a++)\n localObjects.addAll(addObfuscatedEffects());\n for (int j = 0; j < multiDimensionalTrailTracker[0].length; j++)\n if (localObjects.get(j) != null)\n multiDimensionalTrailTracker[i][j] = localObjects.get(j);\n\n }\n\n VisualItemProcessor visualItemProcessor = new VisualItemProcessor(multiDimensionalTrailTracker,\n RotationCacher.cachedVectors, RotationCacher.NUMBER_OF_POINTS_PER_FULL_ROTATION);\n\n return;\n\n\n }",
"void effect(Entity e, BoardPosition bp);",
"public void pauseAllEffects(){\n\t\tpauseOrResumeAllEffects(true);\n\t}",
"@Override\n public Boolean hasEffect() {\n\treturn false;\n }",
"public void drawScreen(int mouseX, int mouseY, float partialTicks) {\n/* 50 */ super.drawScreen(mouseX, mouseY, partialTicks);\n/* */ \n/* 52 */ if (this.hasActivePotionEffects)\n/* */ {\n/* 54 */ drawActivePotionEffects();\n/* */ }\n/* */ }",
"public abstract int trace();",
"public void resumeAllEffects(){\n\t\tpauseOrResumeAllEffects(false);\n\t}",
"@External\r\n\t@SharedFunc\r\n\tpublic MetaVar Trace(){throw new RuntimeException(\"Should never be executed directly, there is probably an error in the Aspect-coding.\");}",
"public void process(Object signal)\r\n/* 25: */ {\r\n/* 26:23 */ System.out.println(\"Cause observed!\");\r\n/* 27: */ }",
"public static void handleEffectChances() {\n for (int i=0 ; i<5 ; i++) {\n effectChances.set(i, effectChances.get(i)+((int) Math.ceil(((double)stageCount)/5))*2);\n }\n }",
"public void makeSilence() {\n\t\tmakeSilence(0, getSampleCount());\n\t}",
"@Override\r\n\tpublic void display() {\n\t\tif (silenced.contains(caster))\r\n\t\t\tdead = true;\r\n\t\tif (lastloc == null)\r\n\t\t\tlastloc = loc;\r\n\t\tdir = loc.toVector().subtract(lastloc.toVector());\r\n\t\tif (speed > 2)\r\n\t\t\tParUtils.dropItemEffectVector(loc.clone().add(0,1,0), Material.CACTUS, 1,1, 1,dir);\r\n\t\t\t\r\n\t\t\t//ParUtils.createFlyingParticle(Particles.CRIT, loc.clone().add(0,2.5,0), 0, 0, 0, 1, 5, dir.normalize());\r\n\t\t//ParUtils.createRedstoneParticle(loc.clone().add(0,2.5,0), 0.5,0.5, 0.5, 1, Color.GREEN, 1.5F);\r\n\t}",
"@Test\n void doEffectfurnace() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"furnace\");\n Weapon w3 = new Weapon(\"furnace\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.addWeapon(w3);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w3.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('r'));\n Terminator t = new Terminator('g', Board.getSquare(5));\n t.setOwnerColor(victim.getColor());\n ArrayList<GenericSquare> s = new ArrayList<>();\n s.add(victim.getPlayerPosition());\n try{\n p.getPh().getWeaponDeck().getWeapon(w3.getName()).doEffect(\"base\", null, null, p, null, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 1 && t.getPb().countDamages() == 1);\n\n p.setPlayerPosition(Board.getSquare(0));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('r'));\n t = new Terminator('g', Board.getSpawnpoint('r'));\n t.setOwnerColor(victim.getColor());\n s.clear();\n s.add(Board.getSpawnpoint('r'));\n try{\n p.getPh().getWeaponDeck().getWeapon(w3.getName()).doEffect(\"alt\", null, null, p, null, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 1 && victim.getPb().getMarkedDamages('b')==1 && t.getPb().countDamages() == 1 && t.getPb().getMarkedDamages('b')==1);\n\n }",
"public void executeEffect() {\n\t\texecuteEffect(myCard);\n\t}",
"protected abstract void trace_begin_loop();",
"@Override\n public String performSpecialEffect() {\n this.health += HEALTH_STEAL_AMOUNT;\n return \"The vampire stole a bit of health after it attacked.\";\n }",
"void doEffect(Skill castSkill, double power, Creature performer, Item target) {\n/* 87 */ if ((!target.isMailBox() && !target.isSpringFilled() && !target.isPuppet() && \n/* 88 */ !target.isUnenchantedTurret() && !target.isEnchantedTurret()) || (target\n/* 89 */ .hasDarkMessenger() && !target.isEnchantedTurret())) {\n/* */ \n/* 91 */ performer.getCommunicator().sendNormalServerMessage(\"The spell fizzles.\", (byte)3);\n/* */ return;\n/* */ } \n/* 94 */ if (target.isUnenchantedTurret() || target.isEnchantedTurret()) {\n/* */ \n/* 96 */ int spirit = Zones.getSpiritsForTile(performer.getTileX(), performer.getTileY(), performer.isOnSurface());\n/* 97 */ String sname = \"no spirits\";\n/* 98 */ int templateId = 934;\n/* 99 */ if (spirit == 4) {\n/* */ \n/* 101 */ templateId = 942;\n/* 102 */ sname = \"There are plenty of air spirits at this height.\";\n/* */ } \n/* 104 */ if (spirit == 2) {\n/* */ \n/* 106 */ templateId = 968;\n/* 107 */ sname = \"Some water spirits were closeby.\";\n/* */ } \n/* 109 */ if (spirit == 3) {\n/* */ \n/* 111 */ templateId = 940;\n/* 112 */ sname = \"Earth spirits are everywhere below ground.\";\n/* */ } \n/* 114 */ if (spirit == 1) {\n/* */ \n/* 116 */ sname = \"Some nearby fire spirits are drawn to your contraption.\";\n/* 117 */ templateId = 941;\n/* */ } \n/* 119 */ if (templateId == 934) {\n/* */ \n/* 121 */ performer.getCommunicator().sendAlertServerMessage(\"There are no spirits nearby. Nothing happens.\", (byte)3);\n/* */ \n/* */ return;\n/* */ } \n/* 125 */ if (target.isUnenchantedTurret()) {\n/* */ \n/* 127 */ performer.getCommunicator().sendSafeServerMessage(sname);\n/* 128 */ target.setTemplateId(templateId);\n/* 129 */ target.setAuxData(performer.getKingdomId());\n/* */ }\n/* 131 */ else if (target.isEnchantedTurret()) {\n/* */ \n/* 133 */ if (target.getTemplateId() != templateId) {\n/* */ \n/* 135 */ performer.getCommunicator().sendAlertServerMessage(\"The nearby spirits ignore your contraption. Nothing happens.\", (byte)3);\n/* */ \n/* */ return;\n/* */ } \n/* */ \n/* 140 */ performer.getCommunicator().sendSafeServerMessage(sname);\n/* */ } \n/* */ } \n/* */ \n/* 144 */ ItemSpellEffects effs = target.getSpellEffects();\n/* 145 */ if (effs == null)\n/* 146 */ effs = new ItemSpellEffects(target.getWurmId()); \n/* 147 */ SpellEffect eff = effs.getSpellEffect(this.enchantment);\n/* 148 */ if (eff == null) {\n/* */ \n/* 150 */ performer.getCommunicator().sendNormalServerMessage(\"You summon nearby spirits into the \" + target\n/* 151 */ .getName() + \".\", (byte)2);\n/* */ \n/* 153 */ eff = new SpellEffect(target.getWurmId(), this.enchantment, (float)power, 20000000);\n/* 154 */ effs.addSpellEffect(eff);\n/* 155 */ Server.getInstance().broadCastAction(performer\n/* 156 */ .getName() + \" looks pleased as \" + performer.getHeSheItString() + \" summons some spirits into the \" + target\n/* 157 */ .getName() + \".\", performer, 5);\n/* 158 */ if (!target.isEnchantedTurret()) {\n/* 159 */ target.setHasCourier(true);\n/* */ \n/* */ }\n/* */ }\n/* 163 */ else if (eff.getPower() > power) {\n/* */ \n/* 165 */ performer.getCommunicator().sendNormalServerMessage(\"You frown as you fail to summon more spirits into the \" + target\n/* 166 */ .getName() + \".\", (byte)3);\n/* */ \n/* 168 */ Server.getInstance().broadCastAction(performer.getName() + \" frowns.\", performer, 5);\n/* */ }\n/* */ else {\n/* */ \n/* 172 */ performer.getCommunicator().sendNormalServerMessage(\"You succeed in summoning more spirits into the \" + this.name + \".\", (byte)2);\n/* */ \n/* */ \n/* 175 */ eff.improvePower(performer, (float)power);\n/* 176 */ if (!target.isEnchantedTurret())\n/* 177 */ target.setHasCourier(true); \n/* 178 */ Server.getInstance().broadCastAction(performer\n/* 179 */ .getName() + \" looks pleased as \" + performer.getHeSheItString() + \" summons some spirits into the \" + target\n/* 180 */ .getName() + \".\", performer, 5);\n/* */ } \n/* */ }",
"private void drawActivePotionEffects() {\n/* 63 */ int i = this.guiLeft - 124;\n/* 64 */ int j = this.guiTop;\n/* 65 */ int k = 166;\n/* 66 */ Collection<PotionEffect> collection = this.mc.player.getActivePotionEffects();\n/* */ \n/* 68 */ if (!collection.isEmpty()) {\n/* */ \n/* 70 */ GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);\n/* 71 */ GlStateManager.disableLighting();\n/* 72 */ int l = 33;\n/* */ \n/* 74 */ if (collection.size() > 5)\n/* */ {\n/* 76 */ l = 132 / (collection.size() - 1);\n/* */ }\n/* */ \n/* 79 */ for (PotionEffect potioneffect : Ordering.natural().sortedCopy(collection)) {\n/* */ \n/* 81 */ Potion potion = potioneffect.getPotion();\n/* 82 */ GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);\n/* 83 */ this.mc.getTextureManager().bindTexture(INVENTORY_BACKGROUND);\n/* 84 */ drawTexturedModalRect(i, j, 0, 166, 140, 32);\n/* */ \n/* 86 */ if (potion.hasStatusIcon()) {\n/* */ \n/* 88 */ int i1 = potion.getStatusIconIndex();\n/* 89 */ drawTexturedModalRect(i + 6, j + 7, 0 + i1 % 8 * 18, 198 + i1 / 8 * 18, 18, 18);\n/* */ } \n/* */ \n/* 92 */ String s1 = I18n.format(potion.getName(), new Object[0]);\n/* */ \n/* 94 */ if (potioneffect.getAmplifier() == 1) {\n/* */ \n/* 96 */ s1 = String.valueOf(s1) + \" \" + I18n.format(\"enchantment.level.2\", new Object[0]);\n/* */ }\n/* 98 */ else if (potioneffect.getAmplifier() == 2) {\n/* */ \n/* 100 */ s1 = String.valueOf(s1) + \" \" + I18n.format(\"enchantment.level.3\", new Object[0]);\n/* */ }\n/* 102 */ else if (potioneffect.getAmplifier() == 3) {\n/* */ \n/* 104 */ s1 = String.valueOf(s1) + \" \" + I18n.format(\"enchantment.level.4\", new Object[0]);\n/* */ } \n/* */ \n/* 107 */ this.fontRendererObj.drawStringWithShadow(s1, (i + 10 + 18), (j + 6), 16777215);\n/* 108 */ String s = Potion.getPotionDurationString(potioneffect, 1.0F);\n/* 109 */ this.fontRendererObj.drawStringWithShadow(s, (i + 10 + 18), (j + 6 + 10), 8355711);\n/* 110 */ j += l;\n/* */ } \n/* */ } \n/* */ }",
"@Override\n\tpublic void covidTreatment() {\n\tSystem.out.println(\"FH--covidTreatment\");\n\t\t\n\t}",
"public void specialEffect() {\n if (getDefense() > 0) {\n setDefense(0);\n setCurrentHealth(currentHealth + 50);\n }\n\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/* */ }",
"@Test\n public void useEffect() {\n \t//should normally run useItem method, but for testing it is not needed here.\n \tHealthEffect bombEff = (HealthEffect) bomb.getEffect().get(0);\n \tbombEff.applyEffect(com);\n \tAssert.assertTrue(com.getHealth() == baseHP - 700);\n \tSpecial heal = new Special(SpecialType.HEALTHBLESS);\n \theal.getEffect().get(0).applyEffect(com);\n \tAssert.assertTrue(com.getHealth() == baseHP);\n }",
"public static void logInteresting(){\n\t\tSleepPhase currentPhase=ZeoData.currentNight().displayPhase(-1);\n\t\tSleepPhase previousPhase=ZeoData.currentNight().displayPhase(-2);\n\t\t\n\t\t//Log what phase we wake from\n\t\tif (currentPhase==SleepPhase.WAKE){\n\t\t\tif (previousPhase!=SleepPhase.WAKE && previousPhase!=SleepPhase.UNDEFINED){\n\t\t\t\tZeoData.Log(\"Waking from \" + previousPhase);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Log the more rare light-deep phase\n\t\t//if (currentPhase.containsLightDeep()){\n\t\t//\tZeoData.Log(\"Phase detail contaings light-deep: \" + currentPhase);\n\t\t//}\n\t\t\n\t\t\n\t\t\n\t}",
"@Override\r\n public void afterVisit() {\n final MethodCallUtils.EnclosingRefs enclosing = \r\n MethodCallUtils.getEnclosingInstanceReferences(\r\n thisExprBinder, expr,\r\n superClassDecl,\r\n context.theReceiverNode, getEnclosingSyntacticDecl());\r\n /* The transformer will already be set in the map correctly for these\r\n * effects when they are original generated. We are just modifying\r\n * the lock and evidence information for the effects.\r\n */\r\n for (final Effect e : newContext.theEffects.build()) {\r\n Effect maskedEffect = e.mask(thisExprBinder);\r\n if (maskedEffect != null) {\r\n // Mask again if the effect is on the receiver of the anonymous class\r\n if (maskedEffect.affectsReceiver(newContext.theReceiverNode)) {\r\n context.theEffects.add(\r\n Effect.effect(\r\n maskedEffect.getSource(), maskedEffect.isRead(),\r\n new EmptyTarget(new EmptyEvidence(Reason.UNDER_CONSTRUCTION)),\r\n new MaskedEffectEvidence(maskedEffect),\r\n maskedEffect.getNeededLocks()));\r\n } else {\r\n final Target target = maskedEffect.getTarget();\r\n \r\n final TargetEvidence te = target.getEvidence();\r\n if (te instanceof EmptyEvidence\r\n && ((EmptyEvidence) te).getReason() == Reason.METHOD_CALL) {\r\n /* Special case: empty effect that carries lock preconditions */\r\n final ImmutableSet.Builder<NeededLock> newLockSet = ImmutableSet.builder();\r\n for (final NeededLock lock : maskedEffect.getNeededLocks()) {\r\n newLockSet.add(lock.replaceEnclosingInstanceReference(enclosing));\r\n }\r\n context.theEffects.add(\r\n Effect.empty(maskedEffect.getSource(),\r\n new EmptyEvidence(Reason.METHOD_CALL), \r\n ImmutableSet.of(getEvidence()), newLockSet.build()));\r\n } else if (target instanceof InstanceTarget) {\r\n final IRNode ref = target.getReference();\r\n \r\n final IRNode newRef = enclosing.replace(ref);\r\n if (newRef != null) {\r\n final IRNode objectExpr = thisExprBinder.bindThisExpression(newRef);\r\n final Target newTarget = new InstanceTarget(\r\n objectExpr, target.getRegion(),\r\n new EnclosingRefEvidence(maskedEffect.getSource(), ref, newRef));\r\n final Set<NeededLock> newLocks = new HashSet<>();\r\n for (final NeededLock lock : maskedEffect.getNeededLocks()) {\r\n newLocks.add(lock.replaceEnclosingInstanceReference(enclosing));\r\n }\r\n elaborateInstanceTarget(\r\n context.bcaQuery, lockFactory, thisExprBinder, lockModel.get(),\r\n maskedEffect.getSource(), maskedEffect.isRead(), newTarget, getEvidence(),\r\n newLocks, context.theEffects);\r\n } else {\r\n /* XXX: Not sure if it is possible to get here. External\r\n * variable references are turned into ANyInstance targets\r\n * during elaboration.\r\n */\r\n /* 2012-08-24: We have to clean the type to make sure it is not a \r\n * type formal.\r\n */\r\n IJavaType type = thisExprBinder.getJavaType(ref);\r\n if (type instanceof IJavaTypeFormal) {\r\n type = TypeUtil.typeFormalToDeclaredClass(\r\n thisExprBinder.getTypeEnvironment(), (IJavaTypeFormal) type);\r\n }\r\n context.theEffects.add(Effect.effect(\r\n maskedEffect.getSource(), maskedEffect.isRead(),\r\n new AnyInstanceTarget(\r\n (IJavaReferenceType) type, target.getRegion(),\r\n new UnknownReferenceConversionEvidence(\r\n maskedEffect, ref, (IJavaReferenceType) type)),\r\n getEvidence(), maskedEffect.getNeededLocks()));\r\n }\r\n } else {\r\n context.theEffects.add(\r\n maskedEffect.updateEvidence(target.getEvidence(), ImmutableSet.of(getEvidence())));\r\n }\r\n }\r\n }\r\n }\r\n }",
"@Test\n void doEffectflamethrower() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"flamethrower\");\n Weapon w7 = new Weapon(\"flamethrower\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.addWeapon(w7);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w7.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(1));\n Terminator t = new Terminator('e', Board.getSpawnpoint('b'));\n t.setOwnerColor(victim.getColor());\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n players.add(t);\n try{\n p.getPh().getWeaponDeck().getWeapon(w7.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 1 && t.getPb().countDamages() == 1);\n\n players.get(1).setPlayerPosition(Board.getSquare(5));\n try{\n p.getPh().getWeaponDeck().getWeapon(w7.getName()).doEffect(\"base\", null, null, p, players, null); //\"A choice of yours is wrong\"\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 1 && t.getPb().countDamages() == 1);\n\n players.remove(1);\n\n try {\n p.getPh().getWeaponDeck().getWeapon(w7.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(1));\n t = new Terminator('e', Board.getSpawnpoint('b'));\n t.setOwnerColor(victim.getColor());\n RealPlayer p2 = new RealPlayer('v', \"ciccia\");\n p2.setPlayerPosition(Board.getSquare(1));\n ArrayList<GenericSquare> s = new ArrayList<>();\n s.clear();\n s.add(victim.getPlayerPosition());\n s.add(t.getPlayerPosition());\n\n try {\n p.getPh().getWeaponDeck().getWeapon(w7.getName()).doEffect(\"alt\", null, null, p, null, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && p2.getPb().countDamages() == 2 && t.getPb().countDamages() == 1);\n }",
"@Test\n void doEffectshockwave() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n RealPlayer b = new RealPlayer('b', \"blue\");\n RealPlayer e = new RealPlayer('e', \"emerald\");\n RealPlayer gr = new RealPlayer('g', \"grey\");\n RealPlayer v = new RealPlayer('v', \"violet\");\n RealPlayer y = new RealPlayer('y', \"yellow\");\n AlphaGame.getPlayers().add(b);\n AlphaGame.getPlayers().add(e);\n AlphaGame.getPlayers().add(gr);\n AlphaGame.getPlayers().add(v);\n AlphaGame.getPlayers().add(y);\n WeaponFactory wf = new WeaponFactory(\"shockwave\");\n Weapon w12 = new Weapon(\"shockwave\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w12);\n p.setPlayerPosition(Board.getSquare(6));\n p.getPh().drawWeapon(wd, w12.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(7));\n RealPlayer victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(5));\n RealPlayer victim3 = new RealPlayer('g', \"ciccia\");\n victim3.setPlayerPosition(Board.getSquare(10));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n players.add(victim2);\n players.add(victim3);\n try{\n p.getPh().getWeaponDeck().getWeapon(w12.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException ex) { }\n\n assertTrue(victim.getPb().countDamages() == 1 && victim2.getPb().countDamages() == 1 && victim3.getPb().countDamages() == 1);\n\n victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(5));\n victim3 = new RealPlayer('g', \"ciccia\");\n victim3.setPlayerPosition(Board.getSquare(10));\n players.clear();\n players.add(victim2);\n players.add(victim3);\n try{\n p.getPh().getWeaponDeck().getWeapon(w12.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException ex) { }\n\n assertTrue(victim2.getPb().countDamages() == 1 && victim3.getPb().countDamages() == 1);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(7));\n victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(5));\n victim3 = new RealPlayer('g', \"ciccia\");\n victim3.setPlayerPosition(Board.getSquare(10));\n RealPlayer victim4 = new RealPlayer('b', \"ciccia\");\n RealPlayer victim5 = new RealPlayer('p', \"ciccia\");\n victim4.setPlayerPosition(Board.getSquare(1));\n victim5.setPlayerPosition(Board.getSquare(0));\n players.clear();\n try {\n p.getPh().getWeaponDeck().getWeapon(w12.getName()).doEffect(\"alt\", null, null, p, null, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException ex) { }\n\n assertTrue(victim.getPb().countDamages() == 1 && victim2.getPb().countDamages() == 1 && victim3.getPb().countDamages() == 1 && victim4.getPb().countDamages() == 0 && victim5.getPb().countDamages() == 0);\n }",
"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}",
"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 onImpact() {\r\n die();\r\n }",
"protected abstract void trace_pre_updates();",
"public static void damageStep () {\r\n // rough plan:\r\n // #1: flip defending monster, if face down -> see flipMonster(...);\r\n // #2: Ask CPU and player for possible effect negation! (For an attack negation it is too late!) -> see below in this method\r\n // #3: calculate damage, kill monsters, if needed\r\n // (consider also banishing and immunity, also copied passive effect of (Holy) Lance)\r\n // -> see makeDamageCalculation(...);\r\n // #4: decrease life points, if needed -> see isDealingBattleDamageAndContinuingGame(...);\r\n // #5: consider passive (also copied) trap monster effects -> see possibleSuicideEffect(...);\r\n // #6: display Win/Lose dialog and end match, if needed -> see Game.over(...);\r\n // #7: finally end the attack (consider the effects that happen afterwards), thus allowing the next attack -> endDamageStep(...);\r\n \r\n // about #1:\r\n if (Game.ActiveGuardingMonster.isFaceDown) {flipMonster(Game.ActiveGuardingMonster);}\r\n // about #2:\r\n if (Game.ActiveAttackingMonster.canBeNegated() || Game.ActiveGuardingMonster.canBeNegated()) {\r\n AIinterrupts.cpuIsUsingEffectNegateDuringBattlePhase(); // ask CPU to negate effects first\r\n // ask player to negate effect here\r\n boolean isCanceling = false;\r\n boolean hasEffectNegateHandTrap = Hand.lookForEffectNegateOnHand(true);\r\n boolean hasEffectNegateOnField = Hand.lookForEffectNegateOnField(true);\r\n if (hasEffectNegateHandTrap || hasEffectNegateOnField) {\r\n if (hasEffectNegateHandTrap && !hasEffectNegateOnField) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, true);\r\n }\r\n else if (!hasEffectNegateHandTrap && hasEffectNegateOnField) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, false);\r\n }\r\n else {\r\n int intDialogResult = YuGiOhJi.multipleChoiceDialog(\"Do you want to negate effects on the field?\", \"You can negate passive effects.\", new String[]{\"yes, by discarding Neutraliser\", \"yes, by paying the cost worth 1 card\", \"no (default)\"}, \"no (default)\");\r\n if (intDialogResult==0) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, true);\r\n }\r\n else if (intDialogResult==1) {\r\n isCanceling = PlayerInterrupts.playerMayNegateEffect(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster, false);\r\n }\r\n }\r\n }\r\n if (!isCanceling) {\r\n makeDamageCalculation(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster); // whole rest of battle\r\n }\r\n }\r\n else {\r\n makeDamageCalculation(Game.ActiveAttackingMonster, Game.ActiveGuardingMonster); // whole rest of battle\r\n }\r\n \r\n }",
"@Test\n void doEffecthellion() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"hellion\");\n Weapon w5 = new Weapon(\"hellion\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.addWeapon(w5);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w5);\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w5.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('b'));\n Terminator t = new Terminator('e', Board.getSpawnpoint('b'));\n t.setOwnerColor(victim.getColor());\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n players.add(t);\n try{\n p.getPh().getWeaponDeck().getWeapon(w5.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().getMarkedDamages('b') == 1 && victim.getPb().countDamages() == 1 && t.getPb().getMarkedDamages('b') == 1);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('b'));\n t = new Terminator('e', Board.getSpawnpoint('b'));\n t.setOwnerColor(victim.getColor());\n players.clear();\n players.add(victim);\n players.add(t);\n\n try{\n p.getPh().getWeaponDeck().getWeapon(w5.getName()).doEffect(\"alt\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().getMarkedDamages('b') == 2 && victim.getPb().countDamages() == 1 && t.getPb().getMarkedDamages('b') == 2);\n }",
"public void b(EntityLiving paramxm)\r\n/* 112: */ {\r\n/* 113:115 */ if (this.duration > 0) {\r\n/* 114:116 */ Potion.potionList[this.id].tickEffect(paramxm, this.amplifier);\r\n/* 115: */ }\r\n/* 116: */ }",
"public void treat()\n\t{\n\t\tstroked();\n\t}",
"@Override\n public void checkEffect()\n {\n age(1);\n\n if (!suspended)\n suspend();\n }",
"public void trace(Object message)\n/* */ {\n/* 95 */ debug(message);\n/* */ }",
"@Override\r\n\tvoid makeNoise() {\n\t\tSystem.out.println(\"Moo\");\r\n\t}",
"@Test\n void doEffectwhisper() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"whisper\");\n Weapon w6 = new Weapon(\"whisper\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.addWeapon(w6);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.setPlayerPosition(Board.getSpawnpoint(2));\n p.getPh().drawWeapon(wd, w6.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n\n try{\n p.getPh().getWeaponDeck().getWeapon(w6.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().getMarkedDamages('b') == 1 && victim.getPb().countDamages() == 3);\n\n players.get(0).setPlayerPosition(Board.getSquare(7));\n try {\n p.getPh().getWeaponDeck().getWeapon(w6.getName()).doEffect(\"base\", null, null, p, players, null); //\"A choice of yours is wrong\"\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n }",
"@Override\n\tpublic void effectAdded(Effect effect) {\n\t}",
"private static void runNoise() throws GameActionException {\n\t\t\n\t}",
"@Test\n void doEffecttractorbeam() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n setPlayers(pl);\n WeaponFactory wf = new WeaponFactory(\"tractor beam\");\n Weapon w2 = new Weapon(\"tractor beam\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.getWeapons().add(w2);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w2.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n ArrayList<GenericSquare> s = new ArrayList<>();\n s.add(Board.getSpawnpoint('b'));\n try {\n p.getPh().getWeaponDeck().getWeapon(w2.getName()).doEffect(\"base\", null, null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n assertTrue(players.get(0).getPb().countDamages() == 1 && players.get(0).getPlayerPosition() == Board.getSpawnpoint('b'));\n\n players.get(0).setPlayerPosition(Board.getSquare(1));\n s.clear();\n\n try{\n p.getPh().getWeaponDeck().getWeapon(w2.getName()).doEffect(\"alt\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(players.get(0).getPb().countDamages() == 4 && players.get(0).getPlayerPosition() == p.getPlayerPosition());\n }",
"void doNegativeEffect(Skill castSkill, double power, Creature performer, Item target) {\n/* 200 */ performer.getCommunicator().sendNormalServerMessage(\"The \" + target\n/* 201 */ .getName() + \" emits a deep worrying sound of resonance, but stays intact.\", (byte)3);\n/* */ }",
"@Override\n\tpublic void trace(String message, Object p0) {\n\n\t}",
"public default void doEffectStart(SpellData data, World world, Side onSide){ }",
"@Test\n void doEffectheatseeker() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"heatseeker\");\n Weapon w4 = new Weapon(\"heatseeker\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.addWeapon(w4);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w4);\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w4.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(10));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n try{\n p.getPh().getWeaponDeck().getWeapon(w4.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3);\n }",
"@Test\n void doEffectthor() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"t.h.o.r.\");\n Weapon w15 = new Weapon(\"t.h.o.r.\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w15);\n p.setPlayerPosition(Board.getSquare(6));\n p.getPh().drawWeapon(wd, w15.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(7));\n RealPlayer victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(10));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n players.add(victim2);\n try {\n p.getPh().getWeaponDeck().getWeapon(w15.getName()).doEffect(\"base\", \"opt1\", null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && victim2.getPb().countDamages() == 1);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(7));\n victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(10));\n RealPlayer victim3 = new RealPlayer('g', \"ciccia\");\n victim3.setPlayerPosition(Board.getSpawnpoint('y'));\n players.clear();\n players.add(victim);\n players.add(victim2);\n players.add(victim3);\n try {\n p.getPh().getWeaponDeck().getWeapon(w15.getName()).doEffect(\"base\", \"opt1\", \"opt2\", p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && victim2.getPb().countDamages() == 1 && victim3.getPb().countDamages() == 2);\n }",
"abstract public void triggerExplosion();",
"@Override\n public void onDrawFrame(GL10 gl) {\n Log.i(\"kike\", \"onDrawFrame\");\n if (effectContext == null) {\n effectContext = EffectContext.createWithCurrentGlContext();\n }\n if (effect != null) {\n effect.release();\n }\n ////////////////////////////Efecte//////////////////////////\n //noEffect();\n //autofixEffect(fxValue); // ok\n //backdropperEffect(); // no probat\n //bitmapoverlayEffect(); // no probat\n //blackwhiteEffect(100, 150); // ok, ... :(\n brightnessEffect(fxValue); // ok\n //contrastEffect(fxValue); // ok\n //cropEffect(); // no probat\n //crossprocessEffect(); // ok\n //documentaryEffect(); // ok\n //duotoneEffect(); // no probat\n //filllightEffect(fxValue); // ok\n //fisheyeEffect(fxValue); // ok\n //flipEffect(false, false); // ok\n //grainEffect(fxValue); // l'efecte que fa no es massa bo\n //grayScaleEffect(); // ok\n //lomoishEffect(); // ok\n //negativeEffect(); // ok\n //posterizeEffect(); // ok\n //redeyeEffect(); // no probat\n //rotateEffect(fxValue); // error\n //saturateEffect(fxValue); // ok\n //sepiaEffect(); // ok\n //sharpenEffect(fxValue); // l'efecte que fa no es massa bo\n //straightenEffect(fxValue); // ok, retalla la imatge tambe\n //temperatureEffect(fxValue); // ok\n //tintEffect(); // no probat\n //vignetteEffect(fxValue); // nomes fa forma rodona i negra??\n ////////////////////////////Efecte//////////////////////////\n square.draw(textures[1]);\n }",
"public void render(float delta) {\n\t\tif (BattleScreen.isPaused()) {\n\t\t\tinitializeBlurEffect();\n\t\t}\n\t\tprofiler.update();\n\t\tstage.act(delta);\n\t\tstage.draw();\n\t\tprofiler.reset();\n\t}",
"@Override\n public void act(float delta) {\n }",
"public static void traceOn() {\r\n\t\ttraceOn = true;\r\n\t}",
"protected void onImpact(RayTraceResult result) {\n\t\tif (result.entityHit != null) {\n\t\t\tfloat i = 2.5F;\n\n\t\t\tif (result.entityHit instanceof EntityBlizzard) {\n\t\t\t\ti = 0;\n\t\t\t}\n\n result.entityHit.attackEntityFrom(WorldsRetold.HAIL, i);\n\n\t\t\tif (result.entityHit instanceof EntityLivingBase) {\n\t\t\t\tEntityLivingBase target = (EntityLivingBase) result.entityHit;\n\t\t\t\tif (!this.world.isRemote) {\n\t\t\t\t\ttarget.addPotionEffect(new PotionEffect(HailstormPotions.FREEZING, 100, 0));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (!this.world.isRemote) {\n\t\t\tthis.world.setEntityState(this, (byte) 3);\n\t\t\tthis.setDead();\n\t\t}\n\t}",
"private static void doEffect(Thing caster, Thing spell, Thing target) {\r\n \t\tint magicSkill=Spell.calcMagicSkill(caster,spell);\r\n \t\tint magicDefence=Spell.calcAntiMagic(target);\r\n \t\tint magicPower=Spell.calcMagicPower(caster,spell);\r\n \t\t\r\n \t\t// work out whether spell is effective\r\n \t\tboolean effective=true;\r\n \t\tboolean visible=target.isVisible(Game.hero());\r\n \t\tif ((magicDefence>0)&&spell.getStat(\"SpellUsage\")==Spell.SPELL_OFFENCE) {\r\n \t\t\tmagicSkill+=magicPower/5;\r\n \t\t\tGame.warn(\"Magic test: \"+magicSkill+\" vs. \"+magicDefence);\r\n \t\t\t\r\n \t\t\teffective=magicSkill>=(magicDefence*RPG.luckRandom(caster,target));\r\n \t\t}\r\n \t\t\r\n \t\tif ((caster!=null)&&target.getFlag(\"IsBeing\")&&(spell.getStat(\"SpellUsage\")==Spell.SPELL_OFFENCE)) {\r\n \t\t\tAI.notifyAttack(target,caster);\r\n \t\t}\r\n \t\t\r\n \t\tString hitname=spell.getString(\"HitName\");\r\n \t\tif (effective){\r\n \t\t\tif (hitname!=null) target.message(\"You are hit by the \"+hitname);\r\n \t\t\tEvent e=new Event(\"Effect\");\r\n \t\t\te.set(\"Strength\",magicPower);\r\n \t\t\te.set(\"Caster\",caster);\r\n \t\t\te.set(\"Target\",target);\r\n \t\t\tspell.handle(e);\r\n \t\t} else {\r\n \t\t\tif (visible) Game.message(target.getTheName()+\" \"+target.verb(\"resist\")+\" the \"+hitname);\r\n \t\t}\r\n \t}",
"@Override\n\tpublic void makeNoise() {\n\t\tSystem.out.println(\"Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink Oink oink \");\n\t}",
"public void apply(com.esotericsoftware.spine.Skeleton r27) {\n /*\n r26 = this;\n r0 = r26;\n r7 = r0.events;\n r0 = r26;\n r2 = r0.listeners;\n r0 = r2.size;\n r23 = r0;\n r20 = 0;\n L_0x000e:\n r0 = r26;\n r2 = r0.tracks;\n r2 = r2.size;\n r0 = r20;\n if (r0 < r2) goto L_0x0019;\n L_0x0018:\n return;\n L_0x0019:\n r0 = r26;\n r2 = r0.tracks;\n r0 = r20;\n r17 = r2.get(r0);\n r17 = (com.esotericsoftware.spine.AnimationStatePR.TrackEntry) r17;\n if (r17 != 0) goto L_0x002a;\n L_0x0027:\n r20 = r20 + 1;\n goto L_0x000e;\n L_0x002a:\n r2 = 0;\n r7.size = r2;\n r0 = r17;\n r5 = r0.time;\n r0 = r17;\n r4 = r0.lastTime;\n r0 = r17;\n r0 = r0.endTime;\n r18 = r0;\n r0 = r17;\n r6 = r0.loop;\n if (r6 != 0) goto L_0x0047;\n L_0x0041:\n r2 = (r5 > r18 ? 1 : (r5 == r18 ? 0 : -1));\n if (r2 <= 0) goto L_0x0047;\n L_0x0045:\n r5 = r18;\n L_0x0047:\n r0 = r17;\n r0 = r0.previous;\n r25 = r0;\n r0 = r17;\n r2 = r0.mixDuration;\n r3 = 0;\n r2 = (r2 > r3 ? 1 : (r2 == r3 ? 0 : -1));\n if (r2 <= 0) goto L_0x018b;\n L_0x0056:\n r0 = r17;\n r2 = r0.mixTime;\n r0 = r17;\n r3 = r0.mixDuration;\n r8 = r2 / r3;\n r2 = 1065353216; // 0x3f800000 float:1.0 double:5.263544247E-315;\n r2 = (r8 > r2 ? 1 : (r8 == r2 ? 0 : -1));\n if (r2 < 0) goto L_0x006d;\n L_0x0066:\n r8 = 1065353216; // 0x3f800000 float:1.0 double:5.263544247E-315;\n r2 = 0;\n r0 = r17;\n r0.mixDuration = r2;\n L_0x006d:\n if (r25 != 0) goto L_0x00e0;\n L_0x006f:\n r0 = r17;\n r2 = r0.animation;\n r3 = r27;\n r2.mix(r3, r4, r5, r6, r7, r8);\n r2 = java.lang.System.out;\n r3 = new java.lang.StringBuilder;\n r9 = \"none -> \";\n r3.<init>(r9);\n r0 = r17;\n r9 = r0.animation;\n r3 = r3.append(r9);\n r9 = \": \";\n r3 = r3.append(r9);\n r3 = r3.append(r8);\n r3 = r3.toString();\n r2.println(r3);\n L_0x009a:\n r21 = 0;\n r0 = r7.size;\n r24 = r0;\n L_0x00a0:\n r0 = r21;\n r1 = r24;\n if (r0 < r1) goto L_0x0196;\n L_0x00a6:\n if (r6 == 0) goto L_0x01d1;\n L_0x00a8:\n r2 = r4 % r18;\n r3 = r5 % r18;\n r2 = (r2 > r3 ? 1 : (r2 == r3 ? 0 : -1));\n if (r2 <= 0) goto L_0x00d6;\n L_0x00b0:\n r2 = r5 / r18;\n r0 = (int) r2;\n r16 = r0;\n r0 = r17;\n r2 = r0.listener;\n if (r2 == 0) goto L_0x00c6;\n L_0x00bb:\n r0 = r17;\n r2 = r0.listener;\n r0 = r20;\n r1 = r16;\n r2.complete(r0, r1);\n L_0x00c6:\n r21 = 0;\n r0 = r26;\n r2 = r0.listeners;\n r0 = r2.size;\n r24 = r0;\n L_0x00d0:\n r0 = r21;\n r1 = r24;\n if (r0 < r1) goto L_0x01db;\n L_0x00d6:\n r0 = r17;\n r2 = r0.time;\n r0 = r17;\n r0.lastTime = r2;\n goto L_0x0027;\n L_0x00e0:\n r0 = r25;\n r11 = r0.time;\n r0 = r25;\n r2 = r0.loop;\n if (r2 != 0) goto L_0x00f6;\n L_0x00ea:\n r0 = r25;\n r2 = r0.endTime;\n r2 = (r11 > r2 ? 1 : (r11 == r2 ? 0 : -1));\n if (r2 <= 0) goto L_0x00f6;\n L_0x00f2:\n r0 = r25;\n r11 = r0.endTime;\n L_0x00f6:\n r0 = r17;\n r2 = r0.animation;\n if (r2 != 0) goto L_0x0144;\n L_0x00fc:\n r0 = r25;\n r9 = r0.animation;\n r0 = r25;\n r13 = r0.loop;\n r14 = 0;\n r2 = 1065353216; // 0x3f800000 float:1.0 double:5.263544247E-315;\n r15 = r2 - r8;\n r10 = r27;\n r12 = r11;\n r9.mix(r10, r11, r12, r13, r14, r15);\n r2 = java.lang.System.out;\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r0 = r25;\n r9 = r0.animation;\n r3 = r3.append(r9);\n r9 = \" -> none: \";\n r3 = r3.append(r9);\n r3 = r3.append(r8);\n r3 = r3.toString();\n r2.println(r3);\n L_0x012f:\n r2 = 1065353216; // 0x3f800000 float:1.0 double:5.263544247E-315;\n r2 = (r8 > r2 ? 1 : (r8 == r2 ? 0 : -1));\n if (r2 < 0) goto L_0x009a;\n L_0x0135:\n com.badlogic.gdx.utils.Pools.free(r25);\n r2 = 0;\n r0 = r17;\n r0.previous = r2;\n r2 = 0;\n r0 = r17;\n r0.mixDuration = r2;\n goto L_0x009a;\n L_0x0144:\n r0 = r25;\n r9 = r0.animation;\n r0 = r25;\n r13 = r0.loop;\n r14 = 0;\n r10 = r27;\n r12 = r11;\n r9.apply(r10, r11, r12, r13, r14);\n r0 = r17;\n r2 = r0.animation;\n r3 = r27;\n r2.mix(r3, r4, r5, r6, r7, r8);\n r2 = java.lang.System.out;\n r3 = new java.lang.StringBuilder;\n r3.<init>();\n r0 = r25;\n r9 = r0.animation;\n r3 = r3.append(r9);\n r9 = \" -> \";\n r3 = r3.append(r9);\n r0 = r17;\n r9 = r0.animation;\n r3 = r3.append(r9);\n r9 = \": \";\n r3 = r3.append(r9);\n r3 = r3.append(r8);\n r3 = r3.toString();\n r2.println(r3);\n goto L_0x012f;\n L_0x018b:\n r0 = r17;\n r2 = r0.animation;\n r3 = r27;\n r2.apply(r3, r4, r5, r6, r7);\n goto L_0x009a;\n L_0x0196:\n r0 = r21;\n r19 = r7.get(r0);\n r19 = (com.esotericsoftware.spine.Event) r19;\n r0 = r17;\n r2 = r0.listener;\n if (r2 == 0) goto L_0x01af;\n L_0x01a4:\n r0 = r17;\n r2 = r0.listener;\n r0 = r20;\n r1 = r19;\n r2.event(r0, r1);\n L_0x01af:\n r22 = 0;\n L_0x01b1:\n r0 = r22;\n r1 = r23;\n if (r0 < r1) goto L_0x01bb;\n L_0x01b7:\n r21 = r21 + 1;\n goto L_0x00a0;\n L_0x01bb:\n r0 = r26;\n r2 = r0.listeners;\n r0 = r22;\n r2 = r2.get(r0);\n r2 = (com.esotericsoftware.spine.AnimationStatePR.AnimationStateListener) r2;\n r0 = r20;\n r1 = r19;\n r2.event(r0, r1);\n r22 = r22 + 1;\n goto L_0x01b1;\n L_0x01d1:\n r2 = (r4 > r18 ? 1 : (r4 == r18 ? 0 : -1));\n if (r2 >= 0) goto L_0x00d6;\n L_0x01d5:\n r2 = (r5 > r18 ? 1 : (r5 == r18 ? 0 : -1));\n if (r2 < 0) goto L_0x00d6;\n L_0x01d9:\n goto L_0x00b0;\n L_0x01db:\n r0 = r26;\n r2 = r0.listeners;\n r0 = r21;\n r2 = r2.get(r0);\n r2 = (com.esotericsoftware.spine.AnimationStatePR.AnimationStateListener) r2;\n r0 = r20;\n r1 = r16;\n r2.complete(r0, r1);\n r21 = r21 + 1;\n goto L_0x00d0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.esotericsoftware.spine.AnimationStatePR.apply(com.esotericsoftware.spine.Skeleton):void\");\n }",
"@Test\n void doEffectvortexcannon() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"vortex cannon\");\n Weapon w16 = new Weapon(\"vortex cannon\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w16);\n p.setPlayerPosition(Board.getSquare(6));\n p.getPh().drawWeapon(wd, w16.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n ArrayList<GenericSquare> s = new ArrayList<>();\n s.add(Board.getSquare(10));\n try{\n p.getPh().getWeaponDeck().getWeapon(w16.getName()).doEffect(\"base\", null, null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && victim.getPlayerPosition() == Board.getSquare(10));\n\n players.clear();\n s.clear();\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('y'));\n RealPlayer victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(10));\n RealPlayer victim3 = new RealPlayer('g', \"ciccia\");\n victim3.setPlayerPosition(Board.getSquare(9));\n players.add(victim);\n players.add(victim2);\n players.add(victim3);\n s.add(Board.getSquare(10));\n try {\n p.getPh().getWeaponDeck().getWeapon(w16.getName()).doEffect(\"base\", \"opt1\", null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && victim.getPlayerPosition() == Board.getSquare(10) && victim2.getPlayerPosition() == Board.getSquare(10) && victim2.getPb().countDamages() == 1 && victim3.getPlayerPosition()==Board.getSquare(10) && victim3.getPb().countDamages()==1);\n }",
"@Test\n\tpublic void testExecuteEffect() {\n\t\tRRClientNotification clientNotification = new RRClientNotification();\n\t\tPSClientNotification psNotification = new PSClientNotification();\n\n\t\tSector source = new Sector(new Coordinate('A', 1), SectorType.SAFE);\n\t\tSector target = new Sector(new Coordinate('A', 2), SectorType.SAFE);\n\n\t\tPlayer player1 = new Player(PlayerType.HUMAN, \"\");\n\t\tPlayer player2 = new Player(PlayerType.ALIEN, \"\");\n\n\t\t// Both player located in source\n\t\tplayer1.setSector(source);\n\t\tsource.addPlayer(player1);\n\t\tplayer2.setSector(source);\n\t\tsource.addPlayer(player2);\n\n\t\t// Create a simple graph containing one sector s1\n\t\tUndirectedGraph<Sector, DefaultEdge> graph = new SimpleGraph<Sector, DefaultEdge>(\n\t\t\t\tDefaultEdge.class);\n\t\tgraph.addVertex(source);\n\t\tgraph.addVertex(target);\n\t\tgraph.addEdge(source, target);\n\n\t\t// Creates a new map from graph\n\t\tGameMap map = new GameMap(graph, 0, 0, 0, 0, \"\");\n\n\t\tGame game = new Game(map);\n\t\tgame.addPlayer(player1);\n\t\tgame.addPlayer(player2);\n\n\t\tEndTurnAction action = new EndTurnAction();\n\t\tEndTurnEffect effect = new EndTurnEffect(action);\n\n\t\tassertTrue(effect.executeEffect(game, clientNotification,\n\t\t\t\tpsNotification));\n\t}",
"protected void trace(String msg)\r\n\t{\r\n\t\tm_stream.println(msg);\r\n\t}",
"@Override\r\n\tpublic void actionFly() {\n\t\tSystem.out.println(\"날 수 있다.\");\r\n\t}",
"@Test\n void doEffectelectroscythe() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n setPlayers(pl);\n WeaponFactory wf = new WeaponFactory(\"electroscythe\");\n Weapon w1 = new Weapon(\"electroscythe\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.getWeapons().add(w1);\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w1.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(0));\n Terminator t = new Terminator('y', Board.getSquare(0));\n t.setOwnerColor(victim.getColor());\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n players.add(t);\n try{\n p.getPh().getWeaponDeck().getWeapon(w1.getName()).doEffect(\"alt\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && t.getPb().countDamages() == 2);\n\n try{\n p.getPh().getWeaponDeck().getWeapon(w1.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3 && t.getPb().countDamages() == 3);\n }",
"public void interactWhenSteppingOn() {\r\n\t\t\r\n\t}",
"public void explode() {\n\t\tSystem.out.println(\"HydrogenBomb blast from Explosion\");\n\t}",
"public void variation() {\r\n\t\t\r\n\t\tSystem.out.println(\"Line & Score\");\r\n\t\tSystem.out.println(\"Elevator Up\");\r\n\t\tElevator.setTargetPos(TeleopHandler.ElevatorStates.SCALE_POSITION_L);\r\n\t\tElevator.run(0);\r\n\t\tif(time.get()<5)\r\n\t\t\tDrive.runAt(0.25, 0.25);\r\n\t\telse {\r\n\t\t\tDrive.runAt(0, 0);\r\n\t\t\tSystem.out.println(\"Outtaking Cube\");\r\n\t\t\tIntake.run(TeleopHandler.IntakeStates.SLOW_OUTTAKING);\r\n\t\t}\r\n\t\t\t\r\n\t}",
"@Override\n public void fly() {\n System.out.println(getName() + \" is flapping\");\n }",
"public void causeFoodExhaustion(float debug1) {\n/* 1797 */ if (this.abilities.invulnerable) {\n/* */ return;\n/* */ }\n/* */ \n/* 1801 */ if (!this.level.isClientSide) {\n/* 1802 */ this.foodData.addExhaustion(debug1);\n/* */ }\n/* */ }",
"public void draw(){\n hit();\n hit();\n }",
"public void preFire(){\n\t}",
"@Test\n void doEffectzx2() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"zx-2\");\n Weapon w8 = new Weapon(\"zx-2\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.addWeapon(w8);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w8.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('b'));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n try{\n p.getPh().getWeaponDeck().getWeapon(w8.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 1 && victim.getPb().getMarkedDamages('b') == 2);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(1));\n Terminator t = new Terminator('e', Board.getSpawnpoint('b'));\n t.setOwnerColor(victim.getColor());\n RealPlayer victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSpawnpoint('r'));\n players.clear();\n players.add(victim);\n players.add(t);\n players.add(victim2);\n try{\n p.getPh().getWeaponDeck().getWeapon(w8.getName()).doEffect(\"alt\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().getMarkedDamages('b') == 1 && victim2.getPb().getMarkedDamages('b') == 1 && t.getPb().getMarkedDamages('b') == 1);\n\n players.remove(t);\n try{\n p.getPh().getWeaponDeck().getWeapon(w8.getName()).doEffect(\"alt\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().getMarkedDamages('b') == 2 && victim2.getPb().getMarkedDamages('b') == 2);\n }",
"public ParalysisEffect() {\n m_lock = SPECIAL_EFFECT_LOCK;\n }",
"private void brewCoffeeGrinds() {\r\n LOG.debug( \"Brewing coffee grinds\" );\r\n }",
"@Override\n\tpublic void trace(Message msg) {\n\n\t}",
"public void processImpactResults(Object o)\r\n/* 259: */ {\r\n/* 260:220 */ if ((o instanceof BetterSignal))\r\n/* 261: */ {\r\n/* 262:221 */ BetterSignal signal = (BetterSignal)o;\r\n/* 263:222 */ String input = (String)signal.get(0, String.class);\r\n/* 264:223 */ Connections.getPorts(this).transmit(TO_TEXT_VIEWER, new BetterSignal(new Object[] { \"Commentary\", \"clear\" }));\r\n/* 265:224 */ translate(input);\r\n/* 266: */ }\r\n/* 267: */ }",
"@Override\n protected void doPlayEffect(SwccgGame game) {\n if (gameState.getDuelState().canContinue(game)) {\n\n actionsEnvironment.emitEffectResult(new DuelAddOrModifyDuelDestiniesStepResult(subAction));\n }\n }",
"public void explosion(){\n explosionEffect.play(pitch, volume);\n }",
"@Override\n\tpublic void makeNoise() {\n\t\tSystem.out.println(\"mammals are making noise\");\n\t}",
"@Override\n protected void doPlayEffect(SwccgGame game) {\n if (gameState.getDuelState().canContinue(game)) {\n final SubAction duelCardEffectAction = new SubAction(subAction);\n duelCardEffectAction.appendEffect(\n new PassthruEffect(duelCardEffectAction) {\n @Override\n protected void doPlayEffect(SwccgGame game) {\n _duelDirections.performDuelResults(duelCardEffectAction, game, gameState.getDuelState());\n }\n }\n );\n // Stack sub-action\n subAction.stackSubAction(duelCardEffectAction);\n }\n }",
"public void act() \n {\n //plays animation with a delay between frames\n explosionSound.play();\n i = (i+1)%(frames.length); \n setImage(frames[i]);\n if(i == 0) getWorld().removeObject(this);\n }",
"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 }",
"private void doCardEffects(Card c) {\r\n\t\tcurrentPlayer.updateSkill(c.getSkill());\r\n\t\tcurrentPlayer.updateBoots(c.getBoots());\r\n\t\tcurrentPlayer.updateSwords(c.getSwords());\r\n\t\tcurrentPlayer.updateGold(c.getGold());\r\n\t\tcurrentPlayer.updateClankOnBoard(c.getClank());\r\n\t\tif (c.isTeleport()) {\r\n\t\t\tcurrentPlayer.updateTeleports(1);\r\n\t\t}\r\n\t\t\r\n\t\t// Do swag effect\r\n\t\tif (currentPlayer.getSwags() > 0 && c.getClank() > 0) currentPlayer.updateSkill(c.getClank()*currentPlayer.getSwags());\r\n\t\t\r\n\t\t// Draw last (not sure if required)\r\n\t\tcurrentPlayer.draw(c.getDraw());\r\n\t\t\r\n\t\t// Calculate conditions\r\n\t\tif (c.getCondition() != null) {\r\n\t\t\tif (c.getCondition()[0].contentEquals(\"companion\")) {\r\n\t\t\t\tif (currentPlayer.hasCompanion()) {\r\n\t\t\t\t\tcurrentPlayer.draw(1);\r\n\t\t\t\t}\r\n\t\t\t} else if (c.getCondition()[0].contentEquals(\"artifact\")) {\r\n\t\t\t\tif (currentPlayer.has(\"Artifact\")) {\r\n\t\t\t\t\tif (c.getCondition()[1].contentEquals(\"teleport\")) {\r\n\t\t\t\t\t\tcurrentPlayer.updateTeleports(1);\r\n\t\t\t\t\t} else if (c.getCondition()[1].contentEquals(\"skill\")) {\r\n\t\t\t\t\t\tcurrentPlayer.updateSkill(2);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else if (c.getCondition()[0].contentEquals(\"crown\")) {\r\n\t\t\t\tif (currentPlayer.has(\"Crown\")) {\r\n\t\t\t\t\tif (c.getCondition()[1].contentEquals(\"heart\")) {\r\n\t\t\t\t\t\tupdateHealth(currentPlayer,1);\r\n\t\t\t\t\t} else if (c.getCondition()[1].contentEquals(\"swordboot\")) {\r\n\t\t\t\t\t\tcurrentPlayer.updateSwords(1);\r\n\t\t\t\t\t\tcurrentPlayer.updateBoots(1);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else if (c.getCondition()[0].contentEquals(\"monkeyidol\")) {\r\n\t\t\t\tif (currentPlayer.has(\"MonkeyIdol\")) {\r\n\t\t\t\t\tcurrentPlayer.updateSkill(2);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Unique Cards\r\n\t\tif (c.isUnique()) {\r\n\t\t\t// Choose cards\r\n\t\t\tif (c.getName().contentEquals(\"Shrine\") || c.getName().contentEquals(\"Dragon Shrine\") ||\r\n\t\t\t\tc.getName().contentEquals(\"Treasure Hunter\") || \r\n\t\t\t\tc.getName().contentEquals(\"Underworld Dealing\") || c.getName().contentEquals(\"Mister Whiskers\") ||\r\n\t\t\t\tc.getName().contentEquals(\"Wand of Wind\")) {\r\n\t\t\t\tmustChoose.add(c.getName());\r\n\t\t\t\tchoosePrompt();\r\n\t\t\t} else if (c.getName().endsWith(\"Master Burglar\")) {\r\n\t\t\t\tcurrentPlayer.trash(\"Burgle\");\r\n\t\t\t} else if (c.getName().contentEquals(\"Dead Run\")) {\r\n\t\t\t\tcurrentPlayer.setRunning(true);\r\n\t\t\t} else if (c.getName().contentEquals(\"Flying Carpet\")) {\r\n\t\t\t\tcurrentPlayer.setFlying(true);\r\n\t\t\t} else if (c.getName().contentEquals(\"Watcher\") || c.getName().contentEquals(\"Tattle\")) {\r\n\t\t\t\tgiveOthersClank(1);\r\n\t\t\t} else if (c.getName().contentEquals(\"Swagger\")) {\r\n\t\t\t\tcurrentPlayer.setSwags(currentPlayer.getSwags()+1);\r\n\t\t\t} else if (c.getName().contentEquals(\"Search\")) {\r\n\t\t\t\tcurrentPlayer.setSearches(currentPlayer.getSearches()+1);\r\n\t\t\t} else if (c.getName().contentEquals(\"Sleight of Hand\") || c.getName().contentEquals(\"Apothecary\")) {\r\n\t\t\t\t// Including itself\r\n\t\t\t\t// If there are other cards, add discard\r\n\t\t\t\tif (currentPlayer.getPlayArea().getNonPlayedSize() > 1) {\r\n\t\t\t\t\tmustDiscard.add(c.getName());\r\n\t\t\t\t\tdiscardPrompt();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}",
"@Override\n\tpublic void trace(String message, Object p0, Object p1) {\n\n\t}",
"@Override\n\tpublic void attack() {\n\t\tSystem.out.println(\"Woof! Woof! *Crunch!*\");\n\t}",
"@Override\n\tpublic void makeNoise() {\n\t\tSystem.out.println(\"Dog goes bark!!! \");\n\n}",
"@Override\n protected void doPlayEffect(SwccgGame game) {\n if (gameState.getDuelState().canContinue(game)) {\n\n final SubAction duelCardEffectAction = new SubAction(subAction);\n duelCardEffectAction.appendEffect(\n new PassthruEffect(duelCardEffectAction) {\n @Override\n protected void doPlayEffect(SwccgGame game) {\n _duelDirections.performDuelDirections(duelCardEffectAction, game, gameState.getDuelState());\n }\n }\n );\n // Stack sub-action\n subAction.stackSubAction(duelCardEffectAction);\n }\n }",
"public void think() {\n\t\t\n\t}",
"@Override\n\tpublic void attack() {\n\t\tSystem.out.println(\"빠르게 근접공격을 하다\");\n\t}",
"private final void touchEffects(Organism org, int seg, int oseg, boolean firstCall) {\n\t\tdouble takenEnergy = 0;\n\t\tint i;\n\t\thandleMySegment(org, seg, oseg);\n\t\tif ((((_parentID == org._ID || _ID == org._parentID) && !_geneticCode.getGenerationBattle() && !org._geneticCode.getGenerationBattle()) ||\n\t\t\t(_parentID == org._parentID && !_geneticCode.getSiblingBattle() && !org._geneticCode.getSiblingBattle() && _parentID != -1 ) ||\n\t\t\t(_transfersenergy && org._transfersenergy && ((_geneticCode.getPeaceful() && org._geneticCode.getPeaceful()) ||\n\t\t\t((_lengthfriend == org._lengthfriend || _thetafriend == org._thetafriend) && _geneticCode.getSocial() && org._geneticCode.getSocial())))) && org.alive) {\n\t\t\tfor (i=_segments-1; i>=0; i--) {\n\t\t\t\tswitch (getTypeColor(_segColor[i])) {\n\t\t\t\t// Teal segment: React on other organisms\n\t\t\t\tcase TEAL:\n\t\t\t\t\tswitch (getTypeColor(_segColor[seg])) {\n\t\t\t\t\tdefault:\n\t\t switch (getTypeColor(org._segColor[oseg])) {\n\t\t default:\n\t\t\t\t\t\t\t if (_segfriendReaction[seg] == -2) {\n\t\t\t\t\t\t\t if (useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t \tdx=0;\n\t\t\t\t\t\t\t \tdy=0;\n\t\t\t\t\t\t\t \tdtheta=0;\n\t\t\t\t\t\t\t }} else\n\t\t\t\t\t\t\t if (_segfriendReaction[seg] == -1) {\n\t\t\t\t\t\t\t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\t dx=Utils.between((x1[seg]-x2[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t\t\t dy=Utils.between((y1[seg]-y2[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t\t\t dtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t\t\t }} else \n\t\t\t if (_segfriendReaction[seg] == 1) {\n\t\t\t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\t dx=Utils.between((x2[seg]-x1[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t\t\t dy=Utils.between((y2[seg]-y1[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t\t\t dtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t\t\t }} else\n\t\t\t if (_segfriendReaction[seg] == 2) {\n\t\t\t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\t\tdx=Utils.between((org._dCenterX-_dCenterX)*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t\t\t\tdy=Utils.between((org._dCenterY-_dCenterY)*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t\t\t\t }} else\n\t\t\t \t break;\t \n\t\t\t\t\t\t }\n\t\t\t\t\t\t break;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}}\n\t\t\tswitch (getTypeColor(_segColor[seg])) {\n\t\t\tcase MINT:\n\t\t\t\t// Mint segment: Remove an infection\n\t\t\t\tswitch (getTypeColor(org._segColor[oseg])) {\n\t\t\t\tcase MINT:\n\t\t\t\t\tif ((_infectedGeneticCode != null) || (org._infectedGeneticCode != null)) {\n\t\t\t\t\t if (useEnergy(Utils.MINT_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t_infectedGeneticCode = null;\n\t\t\t\t\t\t\torg._infectedGeneticCode = null;\n\t\t\t\t\t\t\torg.setColor(Utils.ColorMINT);\n\t\t\t\t\t\t\tsetColor(Utils.ColorMINT);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif (_geneticCode.getAltruist() && org._geneticCode.getAltruist()) {\n\t\t\t\t\t\tif ((org._infectedGeneticCode != _geneticCode) && (org._infectedGeneticCode != null)) {\n\t\t\t\t\t\t\tif (useEnergy(Utils.MINT_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\torg._infectedGeneticCode = null;\n\t\t\t\t\t\t\t\torg.setColor(Color.CYAN);\n\t\t\t\t\t\t\t\tsetColor(Utils.ColorMINT);\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\tif ((_geneticCode.getFamilial()) && ((_lengthfriend == org._lengthfriend) || (_thetafriend == org._thetafriend) ||\n\t\t\t\t\t\t\t(_parentID == org._ID) || (_ID == org._parentID) || (_parentID == org._parentID && _parentID != -1 ))) {\n\t\t\t\t\t\t\tif ((org._infectedGeneticCode != _geneticCode) && (org._infectedGeneticCode != null)) {\n\t\t\t\t\t\t\t\tif (useEnergy(Utils.MINT_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\t\torg._infectedGeneticCode = null;\n\t\t\t\t\t\t\t\t\torg.setColor(Color.CYAN);\n\t\t\t\t\t\t\t\t\tsetColor(Utils.ColorMINT);\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\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase MAGENTA:\n\t\t\t\t// Magenta segment: Heal all sick segments\n\t\t\t\tswitch (getTypeColor(org._segColor[oseg])) {\n\t\t\t\tcase MAGENTA:\n\t\t\t\t\tfor (int j = 0; j < org._segments; j++) {\n\t\t\t\t \tif ((org._segColor[j] == Utils.ColorLIGHTBROWN) || (org._segColor[j] == Utils.ColorGREENBROWN) || (org._segColor[j] == Utils.ColorPOISONEDJADE)\n\t\t\t\t\t\t\t|| (org._segColor[j] == Utils.ColorBROKEN) || (org._segColor[j] == Utils.ColorLIGHT_BLUE) || (org._segColor[j] == Utils.ColorICE)\n\t\t\t\t\t\t\t|| (org._segColor[j] == Utils.ColorDARKJADE) || (org._segColor[j] == Utils.ColorDARKFIRE)) {\n\t\t\t\t\t\t if (useEnergy(Utils.MAGENTA_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\torg._segColor[j] = org._geneticCode.getGene(j%org._geneticCode.getNGenes()).getColor(); \n\t\t\t\t\t\t\t\torg.setColor(Color.MAGENTA);\n\t\t\t\t\t\t\t\tsetColor(Color.MAGENTA);\n\t\t\t\t\t\t }\n\t\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t for (int j = 0; j < org._segments; j++) {\n\t\t\t\t \tif (_geneticCode.getAltruist() && org._geneticCode.getAltruist()) {\n\t\t\t\t \t\tif ((org._segColor[j] == Utils.ColorLIGHTBROWN) || (org._segColor[j] == Utils.ColorGREENBROWN) || (org._segColor[j] == Utils.ColorPOISONEDJADE)\n\t\t\t\t\t\t\t\t|| (org._segColor[j] == Utils.ColorBROKEN) || (org._segColor[j] == Utils.ColorLIGHT_BLUE) || (org._segColor[j] == Utils.ColorICE)\n\t\t\t\t\t\t\t\t|| (org._segColor[j] == Utils.ColorDARKJADE) || (org._segColor[j] == Utils.ColorDARKFIRE)) {\n\t\t\t\t\t\t if (useEnergy(Utils.MAGENTA_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\t org._segColor[j] = org._geneticCode.getGene(j%org._geneticCode.getNGenes()).getColor(); \n\t\t\t\t\t\t\t\t setColor(Color.MAGENTA);\n\t\t\t\t\t\t }\n\t\t\t\t\t\t }\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif ((_geneticCode.getFamilial()) && ((_lengthfriend == org._lengthfriend) || (_thetafriend == org._thetafriend) ||\n\t\t\t\t\t\t\t\t(_parentID == org._ID) || (_ID == org._parentID) || (_parentID == org._parentID && _parentID != -1 ))) {\n\t\t\t\t\t\t\t\tif ((org._segColor[j] == Utils.ColorLIGHTBROWN) || (org._segColor[j] == Utils.ColorGREENBROWN) || (org._segColor[j] == Utils.ColorPOISONEDJADE)\n\t\t\t\t\t\t\t\t || (org._segColor[j] == Utils.ColorBROKEN) || (org._segColor[j] == Utils.ColorLIGHT_BLUE) || (org._segColor[j] == Utils.ColorICE)\n\t\t\t\t\t\t\t\t || (org._segColor[j] == Utils.ColorDARKJADE) || (org._segColor[j] == Utils.ColorDARKFIRE)) {\n\t\t\t\t\t\t\t\t if (useEnergy(Utils.MAGENTA_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\t\t\torg._segColor[j] = org._geneticCode.getGene(j%org._geneticCode.getNGenes()).getColor(); \n\t\t\t\t\t\t\t\t\t\tsetColor(Color.MAGENTA);\n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif ((_transfersenergy) && (alive)) {\n\t\t\t\tif (_geneticCode.getAltruist() && org._geneticCode.getAltruist()) {\n\t\t\t\t\tif ((_growthRatio==1) && (_energy > (org._energy+1)) && (useEnergy(Utils.ROSE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t// Transfers energy\n\t\t\t\t\t\ttakenEnergy = Utils.between(Utils.ORGANIC_OBTAINED_ENERGY, 0, (_energy - (org._energy+1)));\n\t\t\t\t\t\t// The other organism will be shown in cyan\n\t\t\t\t\t\torg.setColor(Color.CYAN);\n\t\t\t\t\t\t// This organism will be shown in rose\n\t\t\t\t\t\tsetColor(Utils.ColorROSE);\n\t\t\t\t\t\torg._energy += takenEnergy;\n\t\t\t\t\t\t_energy -= takenEnergy;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif ((_geneticCode.getFamilial()) && ((_lengthfriend == org._lengthfriend) || (_thetafriend == org._thetafriend) ||\n\t\t\t\t\t\t(_parentID == org._ID) || (_ID == org._parentID) || (_parentID == org._parentID && _parentID != -1 ))) {\n\t\t\t\t\t\tif ((_growthRatio==1) && (_energy > (org._energy+1)) && (useEnergy(Utils.ROSE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t\t// Transfers energy\n\t\t\t\t\t\t\ttakenEnergy = Utils.between(Utils.ORGANIC_OBTAINED_ENERGY, 0, (_energy - (org._energy+1)));\n\t\t\t\t\t\t\t// The other organism will be shown in cyan\n\t\t\t\t\t\t\torg.setColor(Color.CYAN);\n\t\t\t\t\t\t\t// This organism will be shown in rose\n\t\t\t\t\t\t\tsetColor(Utils.ColorROSE);\n\t\t\t\t\t\t\torg._energy += takenEnergy;\n\t\t\t\t\t\t\t_energy -= takenEnergy;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ((_geneticCode.getPeaceful()) && (org._transfersenergy) && (!org._isaplant) && (!org._isaconsumer)) {\n\t\t\t\t\t\t\tif ((_isaplant) || (_isaconsumer)) {\n\t\t\t\t\t\t\t\tif ((_growthRatio==1) && (_energy > (org._energy+1)) && (useEnergy(Utils.ROSE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t\t\t\t// Transfers energy\n\t\t\t\t\t\t\t\t\ttakenEnergy = Utils.between(Utils.ORGANIC_OBTAINED_ENERGY, 0, (_energy - (org._energy+1)));\n\t\t\t\t\t\t\t\t\t// The other organism will be shown in cyan\n\t\t\t\t\t\t\t\t\torg.setColor(Color.CYAN);\n\t\t\t\t\t\t\t\t\t// This organism will be shown in rose\n\t\t\t\t\t\t\t\t\tsetColor(Utils.ColorROSE);\n\t\t\t\t\t\t\t\t\torg._energy += takenEnergy;\n\t\t\t\t\t\t\t\t\t_energy -= takenEnergy;\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\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\tfor (i=_segments-1; i>=0; i--) {\n\t\tswitch (getTypeColor(_segColor[i])) {\n\t\t// Teal segment: React on other organisms\n\t\tcase TEAL:\n\t\t\tswitch (getTypeColor(_segColor[seg])) {\n\t\t\tcase SPIKE:\n\t\t\tcase DARKOLIVE:\n\t\t\tcase BROKEN:\n\t\t\tcase DARKJADE:\n\t\t\tcase POISONEDJADE:\n\t\t\tcase DARKFIRE:\n\t\t\tcase LIGHTBROWN:\n\t\t\tcase GREENBROWN:\n\t\t\tcase LIGHT_BLUE:\n\t\t\tcase DEADBARK:\n\t\t\tcase ICE:\n\t\t\t\t switch (getTypeColor(org._segColor[oseg])) {\n\t\t\t\t default:\n\t\t\t\t\t if (_segsickReaction[seg] == -2) {\n\t\t\t\t\t if (useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t \tdx=0;\n\t\t\t\t\t \tdy=0;\n\t\t\t\t\t \tdtheta=0;\n\t\t\t\t\t }} else\n\t\t\t\t\t if (_segsickReaction[seg] == -1) {\n\t\t\t\t\t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t dx=Utils.between((x1[seg]-x2[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dy=Utils.between((y1[seg]-y2[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t }} else \n\t if (_segsickReaction[seg] == 1) {\n\t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t dx=Utils.between((x2[seg]-x1[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dy=Utils.between((y2[seg]-y1[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t }} else\n\t if (_segsickReaction[seg] == 2) {\n\t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\t \n\t\t\t\t\t\t\tdx=Utils.between((org._dCenterX-_dCenterX)*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t\tdy=Utils.between((org._dCenterY-_dCenterY)*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t\t }} else\n\t \t break;\t \n\t\t\t\t }\n\t\t\t\t break;\n\t\t\tdefault:\n switch (getTypeColor(org._segColor[oseg])) {\n case RED:\n \t if (_segredReaction[seg] == -2) {\n \t if (useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t \tdx=0;\n\t\t\t\t\t \tdy=0;\n\t\t\t\t\t \tdtheta=0;\n\t\t\t\t\t }} else\n \t if (_segredReaction[seg] == -1) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\t dx=Utils.between((x1[seg]-x2[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\t dy=Utils.between((y1[seg]-y2[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\t dtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t }} else \n\t if (_segredReaction[seg] == 1) {\n\t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\t dx=Utils.between((x2[seg]-x1[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\t dy=Utils.between((y2[seg]-y1[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\t dtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t }} else\n\t if (_segredReaction[seg] == 2) {\n\t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\t \n\t \t\t\t\t\t\tdx=Utils.between((org._dCenterX-_dCenterX)*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t \t\t\t\t\t\tdy=Utils.between((org._dCenterY-_dCenterY)*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t\t }} else\n\t \t break;\t \n case GREEN:\n case SPRING:\n case LIME:\n case FOREST:\n case C4:\n case JADE:\n case DARKJADE:\n case GRASS:\n \t if (_seggreenReaction[seg] == -2) {\n \t if (useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t \tdx=0;\n\t\t\t\t\t \tdy=0;\n\t\t\t\t\t \tdtheta=0;\n\t\t\t\t\t }} else\n if (_seggreenReaction[seg] == -1) {\n if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t dx=Utils.between((x1[seg]-x2[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t dy=Utils.between((y1[seg]-y2[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t dtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t }} else \n\t if (_seggreenReaction[seg] == 1) {\n\t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\t \n\t\t\t\t\t dx=Utils.between((x2[seg]-x1[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t dy=Utils.between((y2[seg]-y1[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t dtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t }} else\n\t if (_seggreenReaction[seg] == 2) {\n\t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t \t\t\t\t\tdx=Utils.between((org._dCenterX-_dCenterX)*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t \t\t\t\t\tdy=Utils.between((org._dCenterY-_dCenterY)*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t \t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t \t }} else\n\t \t break; \n case BLUE:\n \t if (_segblueReaction[seg] == -2) {\n \t if (useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t \tdx=0;\n\t\t\t\t\t \tdy=0;\n\t\t\t\t\t \tdtheta=0;\n\t\t\t\t\t }} else\n \tif (_segblueReaction[seg] == -1) {\n \tif (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\tdx=Utils.between((x1[seg]-x2[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdy=Utils.between((y1[seg]-y2[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else \n \t if (_segblueReaction[seg] == 1) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\tdx=Utils.between((x2[seg]-x1[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdy=Utils.between((y2[seg]-y1[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else\n \t if (_segblueReaction[seg] == 2) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t \t\t\t\t\tdx=Utils.between((org._dCenterX-_dCenterX)*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\t\tdy=Utils.between((org._dCenterY-_dCenterY)*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t \t }} else\n \t \t break;\n case WHITE:\n case PLAGUE:\n case BROKEN:\n \t if (org._isaplant) {\n \t if (_segwhiteReaction[seg] == -2) {\n \t if (useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t \tdx=0;\n\t\t\t\t\t \tdy=0;\n\t\t\t\t\t \tdtheta=0;\n\t\t\t\t\t }} else\n \tif (_segwhiteReaction[seg] == -1) {\n \tif (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\tdx=Utils.between((x1[seg]-x2[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdy=Utils.between((y1[seg]-y2[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else\n \t if (_segwhiteReaction[seg] == 1) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\tdx=Utils.between((x2[seg]-x1[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdy=Utils.between((y2[seg]-y1[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else\n \t if (_segwhiteReaction[seg] == 2) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t \t\t\t\t\tdx=Utils.between((org._dCenterX-_dCenterX)*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\t\tdy=Utils.between((org._dCenterY-_dCenterY)*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t \t }} else\n \t \t break;\n \t } else if ((org._isfrozen) || (org._isplague) || (org._isenhanced) || (org._isaconsumer)) {\n \t\tif (_segplagueReaction[seg] == -2) {\n \t\tif (useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t dx=0;\n \t\t\t\t\t dy=0;\n \t\t\t\t\t dtheta=0;\n \t\t\t\t\t}} else\n if (_segplagueReaction[seg] == -1) {\n if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\tdx=Utils.between((x1[seg]-x2[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\tdy=Utils.between((y1[seg]-y2[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else\n \t if (_segplagueReaction[seg] == 1) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\tdx=Utils.between((x2[seg]-x1[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\tdy=Utils.between((y2[seg]-y1[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else\n \t if (_segplagueReaction[seg] == 2) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t \t\t\t dx=Utils.between((org._dCenterX-_dCenterX)*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\tdy=Utils.between((org._dCenterY-_dCenterY)*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t \t }} else\n \t \t break;\n \t } else {\n \t\tif (_segvirusReaction[seg] == -2) {\n \t\tif (useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t \tdx=0;\n \t\t\t\t\t \tdy=0;\n \t\t\t\t\t \tdtheta=0;\n \t\t\t\t\t }} else\n \tif (_segvirusReaction[seg] == -1) {\n \tif (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\tdx=Utils.between((x1[seg]-x2[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdy=Utils.between((y1[seg]-y2[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else\n \t if (_segvirusReaction[seg] == 1) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\tdx=Utils.between((x2[seg]-x1[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdy=Utils.between((y2[seg]-y1[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else\n \t if (_segvirusReaction[seg] == 2) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t \t\t\t dx=Utils.between((org._dCenterX-_dCenterX)*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\tdy=Utils.between((org._dCenterY-_dCenterY)*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t \t }} else\n \t \t break;\n \t }\n \t break;\n case SILVER:\n \t if (org._isaconsumer) {\n \t if (_segsilverReaction[seg] == -2) {\n \t if (useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t \tdx=0;\n\t\t\t\t\t \tdy=0;\n\t\t\t\t\t \tdtheta=0;\n\t\t\t\t\t }} else\n \tif (_segsilverReaction[seg] == -1) {\n \tif (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\tdx=Utils.between((x1[seg]-x2[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdy=Utils.between((y1[seg]-y2[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else\n \t if (_segsilverReaction[seg] == 1) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\tdx=Utils.between((x2[seg]-x1[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdy=Utils.between((y2[seg]-y1[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else\n \t if (_segsilverReaction[seg] == 2) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t \t\t\t\t\tdx=Utils.between((org._dCenterX-_dCenterX)*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\t\tdy=Utils.between((org._dCenterY-_dCenterY)*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t \t }} else\n \t \t break;\n \t } else if (org._isaplant) {\n \t\tif (_segwhiteReaction[seg] == -2) {\n \t\tif (useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t dx=0;\n \t\t\t\t\t dy=0;\n \t\t\t\t\t dtheta=0;\n \t\t\t\t\t}} else\n if (_segwhiteReaction[seg] == -1) {\n if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\tdx=Utils.between((x1[seg]-x2[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\tdy=Utils.between((y1[seg]-y2[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else\n \t if (_segwhiteReaction[seg] == 1) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\tdx=Utils.between((x2[seg]-x1[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\tdy=Utils.between((y2[seg]-y1[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else\n \t if (_segwhiteReaction[seg] == 2) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t \t\t\t dx=Utils.between((org._dCenterX-_dCenterX)*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\tdy=Utils.between((org._dCenterY-_dCenterY)*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t \t }} else\n \t \t break;\n \t } else {\n \t\tif (_segplagueReaction[seg] == -2) {\n \t\tif (useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t \tdx=0;\n \t\t\t\t\t \tdy=0;\n \t\t\t\t\t \tdtheta=0;\n \t\t\t\t\t }} else\n \tif (_segplagueReaction[seg] == -1) {\n \tif (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\tdx=Utils.between((x1[seg]-x2[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdy=Utils.between((y1[seg]-y2[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else\n \t if (_segplagueReaction[seg] == 1) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\tdx=Utils.between((x2[seg]-x1[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdy=Utils.between((y2[seg]-y1[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else\n \t if (_segplagueReaction[seg] == 2) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t \t\t\t dx=Utils.between((org._dCenterX-_dCenterX)*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\tdy=Utils.between((org._dCenterY-_dCenterY)*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t \t }} else\n \t \t break;\n \t }\n \t break;\n case GRAY:\n \t if (_seggrayReaction[seg] == -2) {\n \t if (useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t \tdx=0;\n\t\t\t\t\t \tdy=0;\n\t\t\t\t\t \tdtheta=0;\n\t\t\t\t\t }} else\n \tif (_seggrayReaction[seg] == -1) {\n \tif (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\tdx=Utils.between((x1[seg]-x2[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdy=Utils.between((y1[seg]-y2[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else \t \n \t if (_seggrayReaction[seg] == 1) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\tdx=Utils.between((x2[seg]-x1[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdy=Utils.between((y2[seg]-y1[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else\n \t if (_seggrayReaction[seg] == 2) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t \t\t\t\t\tdx=Utils.between((org._dCenterX-_dCenterX)*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\t\tdy=Utils.between((org._dCenterY-_dCenterY)*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t \t }} else\n \t \t break;\n case MAGENTA:\n case ROSE:\n \t if (_segmagentaReaction[seg] == -2) {\n \t if (useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t \tdx=0;\n\t\t\t\t\t \tdy=0;\n\t\t\t\t\t \tdtheta=0;\n\t\t\t\t\t }} else\n \tif (_segmagentaReaction[seg] == -1) {\n \tif (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\tdx=Utils.between((x1[seg]-x2[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdy=Utils.between((y1[seg]-y2[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else \t \n \t if (_segmagentaReaction[seg] == 1) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\tdx=Utils.between((x2[seg]-x1[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdy=Utils.between((y2[seg]-y1[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else\n \t if (_segmagentaReaction[seg] == 2) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t \t\t\t\t\tdx=Utils.between((org._dCenterX-_dCenterX)*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\t\tdy=Utils.between((org._dCenterY-_dCenterY)*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t \t }} else\n \t \t break;\n case PINK:\n \t if (_segpinkReaction[seg] == -2) {\n \t if (useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t \tdx=0;\n\t\t\t\t\t \tdy=0;\n\t\t\t\t\t \tdtheta=0;\n\t\t\t\t\t }} else\n \tif (_segpinkReaction[seg] == -1) {\n \tif (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\tdx=Utils.between((x1[seg]-x2[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdy=Utils.between((y1[seg]-y2[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else \t \n \t if (_segpinkReaction[seg] == 1) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\tdx=Utils.between((x2[seg]-x1[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdy=Utils.between((y2[seg]-y1[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else\n \t if (_segpinkReaction[seg] == 2) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t \t\t\t\t\tdx=Utils.between((org._dCenterX-_dCenterX)*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\t\tdy=Utils.between((org._dCenterY-_dCenterY)*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t \t }} else\n \t break;\n case ORANGE:\n \t if (_segorangeReaction[seg] == -2) {\n \t if (useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t \tdx=0;\n\t\t\t\t\t \tdy=0;\n\t\t\t\t\t \tdtheta=0;\n\t\t\t\t\t }} else\n \tif (_segorangeReaction[seg] == -1) {\n \tif (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\tdx=Utils.between((x1[seg]-x2[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdy=Utils.between((y1[seg]-y2[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else \n \t if (_segorangeReaction[seg] == 1) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\tdx=Utils.between((x2[seg]-x1[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdy=Utils.between((y2[seg]-y1[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else\n \t if (_segorangeReaction[seg] == 2) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t \t\t\t\t\tdx=Utils.between((org._dCenterX-_dCenterX)*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\t\tdy=Utils.between((org._dCenterY-_dCenterY)*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t \t }} else\n \t break;\n case BARK:\n case OLDBARK:\n \t if (_segbarkReaction[seg] == -2) {\n \t if (useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t \tdx=0;\n\t\t\t\t\t \tdy=0;\n\t\t\t\t\t \tdtheta=0;\n\t\t\t\t\t }} else\n \t if (_segbarkReaction[seg] == -1) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\t dx=Utils.between((x1[seg]-x2[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\t dy=Utils.between((y1[seg]-y2[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\t dtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t }} else \n\t if (_segbarkReaction[seg] == 1) {\n\t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\t dx=Utils.between((x2[seg]-x1[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\t dy=Utils.between((y2[seg]-y1[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\t dtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t }} else\n\t if (_segbarkReaction[seg] == 2) {\n\t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t \t\t\t\t\tdx=Utils.between((org._dCenterX-_dCenterX)*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t \t\t\t\t\tdy=Utils.between((org._dCenterY-_dCenterY)*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t \t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t \t }} else\n\t break;\n case VIOLET:\n \t if (_segvioletReaction[seg] == -2) {\n \t if (useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t \tdx=0;\n\t\t\t\t\t \tdy=0;\n\t\t\t\t\t \tdtheta=0;\n\t\t\t\t\t }} else\n \tif (_segvioletReaction[seg] == -1) {\n \tif (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\tdx=Utils.between((x1[seg]-x2[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdy=Utils.between((y1[seg]-y2[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else\n \t if (_segvioletReaction[seg] == 1) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\tdx=Utils.between((x2[seg]-x1[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdy=Utils.between((y2[seg]-y1[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else\n \t if (_segvioletReaction[seg] == 2) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t \t\t\t\t\tdx=Utils.between((org._dCenterX-_dCenterX)*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\t\tdy=Utils.between((org._dCenterY-_dCenterY)*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t \t }} else\n \t break;\n case MAROON:\n \t if (_segmaroonReaction[seg] == -2) {\n \t if (useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t \tdx=0;\n\t\t\t\t\t \tdy=0;\n\t\t\t\t\t \tdtheta=0;\n\t\t\t\t\t }} else\n \tif (_segmaroonReaction[seg] == -1) {\n \tif (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\tdx=Utils.between((x1[seg]-x2[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdy=Utils.between((y1[seg]-y2[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else\n \t if (_segmaroonReaction[seg] == 1) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\tdx=Utils.between((x2[seg]-x1[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdy=Utils.between((y2[seg]-y1[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else\n \t if (_segmaroonReaction[seg] == 2) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t \t\t\t\t\tdx=Utils.between((org._dCenterX-_dCenterX)*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\t\tdy=Utils.between((org._dCenterY-_dCenterY)*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t \t }} else\n \t break;\n case OLIVE:\n \t if (_segoliveReaction[seg] == -2) {\n \t if (useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t \tdx=0;\n\t\t\t\t\t \tdy=0;\n\t\t\t\t\t \tdtheta=0;\n\t\t\t\t\t }} else\n \t if (_segoliveReaction[seg] == -1) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t dx=Utils.between((x1[seg]-x2[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dy=Utils.between((y1[seg]-y2[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t }} else \n\t if (_segoliveReaction[seg] == 1) {\n\t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t dx=Utils.between((x2[seg]-x1[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dy=Utils.between((y2[seg]-y1[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t }} else\n\t if (_segoliveReaction[seg] == 2) {\n\t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\tdx=Utils.between((org._dCenterX-_dCenterX)*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t\tdy=Utils.between((org._dCenterY-_dCenterY)*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t\t }} else\n\t break;\n case MINT:\n \t if (_segmintReaction[seg] == -2) {\n \t if (useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t \tdx=0;\n\t\t\t\t\t \tdy=0;\n\t\t\t\t\t \tdtheta=0;\n\t\t\t\t\t }} else\n \tif (_segmintReaction[seg] == -1) {\n \tif (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\tdx=Utils.between((x1[seg]-x2[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdy=Utils.between((y1[seg]-y2[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else\n \t if (_segmintReaction[seg] == 1) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\tdx=Utils.between((x2[seg]-x1[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdy=Utils.between((y2[seg]-y1[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else\n \t if (_segmintReaction[seg] == 2) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t \t\t\t\t\tdx=Utils.between((org._dCenterX-_dCenterX)*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\t\tdy=Utils.between((org._dCenterY-_dCenterY)*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t \t }} else\n \t break;\n case CREAM:\n \t if (_segcreamReaction[seg] == -2) {\n \t if (useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t \tdx=0;\n\t\t\t\t\t \tdy=0;\n\t\t\t\t\t \tdtheta=0;\n\t\t\t\t\t }} else\n \tif (_segcreamReaction[seg] == -1) {\n \tif (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\tdx=Utils.between((x1[seg]-x2[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdy=Utils.between((y1[seg]-y2[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else\n \t if (_segcreamReaction[seg] == 1) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\tdx=Utils.between((x2[seg]-x1[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdy=Utils.between((y2[seg]-y1[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else\n \t if (_segcreamReaction[seg] == 2) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t \t\t\t\t\tdx=Utils.between((org._dCenterX-_dCenterX)*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\t\tdy=Utils.between((org._dCenterY-_dCenterY)*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t \t }} else\n \t break;\n case SPIKEPOINT:\n \t if (_segspikepointReaction[seg] == -2) {\n \t if (useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t \tdx=0;\n\t\t\t\t\t \tdy=0;\n\t\t\t\t\t \tdtheta=0;\n\t\t\t\t\t }} else\n \tif (_segspikepointReaction[seg] == -1) {\n \tif (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\tdx=Utils.between((x1[seg]-x2[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdy=Utils.between((y1[seg]-y2[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else\n \t if (_segspikepointReaction[seg] == 1) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\tdx=Utils.between((x2[seg]-x1[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdy=Utils.between((y2[seg]-y1[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else\n \t if (_segspikepointReaction[seg] == 2) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t \t\t\t\t\tdx=Utils.between((org._dCenterX-_dCenterX)*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\t\tdy=Utils.between((org._dCenterY-_dCenterY)*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t \t }} else\n \t break;\n case SPIKE:\n \t if (_segspikeReaction[seg] == -2) {\n \t if (useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t \tdx=0;\n\t\t\t\t\t \tdy=0;\n\t\t\t\t\t \tdtheta=0;\n\t\t\t\t\t }} else\n \tif (_segspikeReaction[seg] == -1) {\n \tif (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\tdx=Utils.between((x1[seg]-x2[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdy=Utils.between((y1[seg]-y2[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else\n \t if (_segspikeReaction[seg] == 1) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\tdx=Utils.between((x2[seg]-x1[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdy=Utils.between((y2[seg]-y1[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else\n \t if (_segspikeReaction[seg] == 2) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t \t\t\t\t\tdx=Utils.between((org._dCenterX-_dCenterX)*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\t\tdy=Utils.between((org._dCenterY-_dCenterY)*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t \t }} else\n \t break;\n case DARKOLIVE:\n case LIGHT_BLUE:\n \t if (_seglightblueReaction[seg] == -2) {\n \t if (useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t \tdx=0;\n\t\t\t\t\t \tdy=0;\n\t\t\t\t\t \tdtheta=0;\n\t\t\t\t\t }} else\n \tif (_seglightblueReaction[seg] == -1) {\n \tif (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\tdx=Utils.between((x1[seg]-x2[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdy=Utils.between((y1[seg]-y2[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else \n \t if (_seglightblueReaction[seg] == 1) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\tdx=Utils.between((x2[seg]-x1[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdy=Utils.between((y2[seg]-y1[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else\n \t if (_seglightblueReaction[seg] == 2) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t \t\t\t\t\tdx=Utils.between((org._dCenterX-_dCenterX)*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\t\tdy=Utils.between((org._dCenterY-_dCenterY)*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t \t }} else\n \t break;\n case OCHRE:\n \t if (_segochreReaction[seg] == -2) {\n \t if (useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t \tdx=0;\n\t\t\t\t\t \tdy=0;\n\t\t\t\t\t \tdtheta=0;\n\t\t\t\t\t }} else\n \tif (_segochreReaction[seg] == -1) {\n \tif (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\tdx=Utils.between((x1[seg]-x2[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdy=Utils.between((y1[seg]-y2[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else \n \t if (_segochreReaction[seg] == 1) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\tdx=Utils.between((x2[seg]-x1[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdy=Utils.between((y2[seg]-y1[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else\n \t if (_segochreReaction[seg] == 2) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t \t\t\t\t\tdx=Utils.between((org._dCenterX-_dCenterX)*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\t\tdy=Utils.between((org._dCenterY-_dCenterY)*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t \t }} else\n \t break;\n case SKY:\n case DEEPSKY:\n \t if (_segskyReaction[seg] == -2) {\n \t if (useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t \tdx=0;\n\t\t\t\t\t \tdy=0;\n\t\t\t\t\t \tdtheta=0;\n\t\t\t\t\t }} else\n \t if (_segskyReaction[seg] == -1) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t dx=Utils.between((x1[seg]-x2[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dy=Utils.between((y1[seg]-y2[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t }} else \n\t if (_segskyReaction[seg] == 1) {\n\t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t dx=Utils.between((x2[seg]-x1[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dy=Utils.between((y2[seg]-y1[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t }} else\n\t if (_segskyReaction[seg] == 2) {\n\t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\tdx=Utils.between((org._dCenterX-_dCenterX)*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t\tdy=Utils.between((org._dCenterY-_dCenterY)*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t\t }} else\n\t break;\n case ICE:\n case DEADBARK:\n \t if (_segiceReaction[seg] == -2) {\n \t if (useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t \tdx=0;\n\t\t\t\t\t \tdy=0;\n\t\t\t\t\t \tdtheta=0;\n\t\t\t\t\t }} else\n \t if (_segiceReaction[seg] == -1) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t dx=Utils.between((x1[seg]-x2[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dy=Utils.between((y1[seg]-y2[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t }} else\n\t if (_segiceReaction[seg] == 1) {\n\t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t dx=Utils.between((x2[seg]-x1[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dy=Utils.between((y2[seg]-y1[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t }} else\n\t if (_segiceReaction[seg] == 2) {\n\t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t \t\t\t\t\tdx=Utils.between((org._dCenterX-_dCenterX)*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t \t\t\t\t\tdy=Utils.between((org._dCenterY-_dCenterY)*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t \t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t \t }} else\n\t break;\n case LILAC:\n case DARKLILAC:\n \t if (_seglilacReaction[seg] == -2) {\n \t if (useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t \tdx=0;\n\t\t\t\t\t \tdy=0;\n\t\t\t\t\t \tdtheta=0;\n\t\t\t\t\t }} else\n \t if (_seglilacReaction[seg] == -1) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t dx=Utils.between((x1[seg]-x2[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dy=Utils.between((y1[seg]-y2[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t }} else \n\t if (_seglilacReaction[seg] == 1) {\n\t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t dx=Utils.between((x2[seg]-x1[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dy=Utils.between((y2[seg]-y1[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t }} else\n\t if (_seglilacReaction[seg] == 2) {\n\t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\tdx=Utils.between((org._dCenterX-_dCenterX)*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t\tdy=Utils.between((org._dCenterY-_dCenterY)*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t\t }} else\n\t break;\n case CORAL:\n \t if (_segcoralReaction[seg] == -2) {\n \t if (useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t \tdx=0;\n\t\t\t\t\t \tdy=0;\n\t\t\t\t\t \tdtheta=0;\n\t\t\t\t\t }} else\n \t if (_segcoralReaction[seg] == -1) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\t dx=Utils.between((x1[seg]-x2[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\t dy=Utils.between((y1[seg]-y2[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\t dtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t }} else\n\t if (_segcoralReaction[seg] == 1) {\n\t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\t dx=Utils.between((x2[seg]-x1[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\t dy=Utils.between((y2[seg]-y1[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\t dtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t }} else\n\t if (_segcoralReaction[seg] == 2) {\n\t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t \t\t\t\t\tdx=Utils.between((org._dCenterX-_dCenterX)*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t \t\t\t\t\tdy=Utils.between((org._dCenterY-_dCenterY)*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t \t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t \t }} else\n\t break;\n case FIRE:\n \t if (_segfireReaction[seg] == -2) {\n \t if (useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t \tdx=0;\n\t\t\t\t\t \tdy=0;\n\t\t\t\t\t \tdtheta=0;\n\t\t\t\t\t }} else\n \t if (_segfireReaction[seg] == -1) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t dx=Utils.between((x1[seg]-x2[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dy=Utils.between((y1[seg]-y2[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t }} else \n\t if (_segfireReaction[seg] == 1) {\n\t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t dx=Utils.between((x2[seg]-x1[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dy=Utils.between((y2[seg]-y1[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t }} else\n\t if (_segfireReaction[seg] == 2) {\n\t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t \t\t\t\t\t\tdx=Utils.between((org._dCenterX-_dCenterX)*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t \t\t\t\t\t\tdy=Utils.between((org._dCenterY-_dCenterY)*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t\t }} else\n\t break;\n case LIGHTBROWN:\n case DARKFIRE:\n \t if (_seglightbrownReaction[seg] == -2) {\n \t if (useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t \tdx=0;\n\t\t\t\t\t \tdy=0;\n\t\t\t\t\t \tdtheta=0;\n\t\t\t\t\t }} else\n \t if (_seglightbrownReaction[seg] == -1) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t dx=Utils.between((x1[seg]-x2[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dy=Utils.between((y1[seg]-y2[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t }} else\n\t if (_seglightbrownReaction[seg] == 1) {\n\t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t dx=Utils.between((x2[seg]-x1[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dy=Utils.between((y2[seg]-y1[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t }} else\n\t if (_seglightbrownReaction[seg] == 2) {\n\t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t \t\t\t\t\tdx=Utils.between((org._dCenterX-_dCenterX)*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t \t\t\t\t\tdy=Utils.between((org._dCenterY-_dCenterY)*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t \t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t \t }} else\n\t break;\n case GREENBROWN:\n case POISONEDJADE:\n \t if (_seggreenbrownReaction[seg] == -2) {\n \t if (useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t \tdx=0;\n\t\t\t\t\t \tdy=0;\n\t\t\t\t\t \tdtheta=0;\n\t\t\t\t\t }} else\n \t if (_seggreenbrownReaction[seg] == -1) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t dx=Utils.between((x1[seg]-x2[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dy=Utils.between((y1[seg]-y2[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t }} else\n\t if (_seggreenbrownReaction[seg] == 1) {\n\t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t dx=Utils.between((x2[seg]-x1[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dy=Utils.between((y2[seg]-y1[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\t dtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t }} else\n\t if (_seggreenbrownReaction[seg] == 2) {\n\t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t \t\t\t\t\tdx=Utils.between((org._dCenterX-_dCenterX)*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t \t\t\t\t\tdy=Utils.between((org._dCenterY-_dCenterY)*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t \t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t \t }} else\n\t break;\n case BROWN:\n \t if (_segbrownReaction[seg] == -2) {\n \t if (useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t \tdx=0;\n\t\t\t\t\t \tdy=0;\n\t\t\t\t\t \tdtheta=0;\n\t\t\t\t\t }} else\n \tif (_segbrownReaction[seg] == -1) {\n \tif (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\tdx=Utils.between((x1[seg]-x2[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdy=Utils.between((y1[seg]-y2[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else\n \t if (_segbrownReaction[seg] == 1) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\tdx=Utils.between((x2[seg]-x1[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdy=Utils.between((y2[seg]-y1[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t }} else\n \t if (_segbrownReaction[seg] == 2) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t \t\t\t\t\tdx=Utils.between((org._dCenterX-_dCenterX)*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\t\tdy=Utils.between((org._dCenterY-_dCenterY)*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t \t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n \t \t }} else\n \t break;\n default:\n \t if (_segdefaultReaction[seg] == -2) {\n \t if (useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t \tdx=0;\n\t\t\t\t\t \tdy=0;\n\t\t\t\t\t \tdtheta=0;\n\t\t\t\t\t }} else\n \t if (_segdefaultReaction[seg] == -1) {\n \t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\t dx=Utils.between((x1[seg]-x2[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\t dy=Utils.between((y1[seg]-y2[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\t dtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t }} else \n\t if (_segdefaultReaction[seg] == 1) {\n\t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n \t\t\t\t\t\t dx=Utils.between((x2[seg]-x1[seg])*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\t dy=Utils.between((y2[seg]-y1[seg])*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n \t\t\t\t\t\t dtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t }} else\n\t if (_segdefaultReaction[seg] == 2) {\n\t if (Utils.random.nextInt(2)<1 && useEnergy(Utils.TEAL_ENERGY_CONSUMPTION)) {\n\t \t\t\t\t\tdx=Utils.between((org._dCenterX-_dCenterX)*(_m[i]*_m[i]/_mass)+12d*(x2[i]-x1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t \t\t\t\t\tdy=Utils.between((org._dCenterY-_dCenterY)*(_m[i]*_m[i]/_mass)+12d*(y2[i]-y1[i])/_mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t \t\t\t\t\tdtheta=Utils.between(dtheta+Utils.randomSign()*_m[i]*FastMath.PI/_I, -Utils.MAX_ROT, Utils.MAX_ROT);\n\t \t }} else\n\t \t break;\n }\n break;\n }\n\t\t\tbreak;\n\t\t}}\n\t\tswitch (getTypeColor(_segColor[seg])) {\n\t\tcase ORANGE:\n\t\t// Orange segment: try to get energy from the other organism\n\t\t\t// If the other segment is blue, it acts as a shield\n\t\t\tswitch (getTypeColor(org._segColor[oseg])) {\n\t\t\tcase GREEN:\n\t\t\tcase FOREST:\n\t\t\tcase SPRING:\n\t\t\tcase LIME:\n\t\t\tcase C4:\n\t\t\tcase JADE:\n\t\t\tcase TEAL:\n\t\t\tcase CYAN:\n\t\t\tcase YELLOW:\n\t\t\tcase AUBURN:\n\t\t\tcase INDIGO:\n\t\t\tcase BLOND:\n\t\t\tcase DARKGRAY:\n\t\t\tcase GOLD:\n\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\tsetColor(Color.ORANGE);\n\t\t\t\t} else {\n\t\t\t\t\tif (useEnergy(Utils.ORANGE_ENERGY_CONSUMPTION)) {\n\t\t\t\t \t// Get energy depending on segment length\n\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t// This organism will be shown in orange\n\t\t\t\t\t\tsetColor(Color.ORANGE);\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase GRASS:\n\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\tsetColor(Color.ORANGE);\n\t\t\t\t} else {\n\t\t\t\t\tif (useEnergy(Utils.ORANGE_ENERGY_CONSUMPTION)) {\n\t\t\t\t \t// Get energy depending on segment length\n\t\t\t\t\t\ttakenEnergy = Utils.between((0.5 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t// The other organism will be shown in green brown\n\t\t\t\t\t\torg.setColor(Utils.ColorGREENBROWN);\n\t\t\t\t\t\t// This organism will be shown in orange\n\t\t\t\t\t\tsetColor(Color.ORANGE);\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase BLUE:\n\t\t\t\tif (org.useEnergy(Utils.BLUE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\tif (org._isenhanced) {\n\t\t\t\t\t useEnergy(Utils.between((0.5 * FastMath.log10(org._m[oseg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, _energy));\n\t\t\t\t\t\tsetColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t} else {\n\t\t\t\t\t setColor(Color.ORANGE);\n\t\t\t\t\t}\n\t\t\t\t\torg.setColor(Color.BLUE);\n\t\t\t\t} else {\n\t\t\t\t\t// Doesn't have energy to use the shield\n\t\t\t\t\tif (useEnergy(Utils.ORANGE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t// This organism will be shown in orange\n\t\t\t\t\t\tsetColor(Color.ORANGE);\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase LIGHT_BLUE:\n\t\t\t\tif (org.useEnergy(Utils.BLUE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\tsetColor(Color.ORANGE);\n\t\t\t\t\torg.setColor(Utils.ColorLIGHT_BLUE);\n\t\t\t\t} else {\n\t\t\t\t\t// Doesn't have energy to use the shield\n\t\t\t\t\tif (useEnergy(Utils.ORANGE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t// This organism will be shown in orange\n\t\t\t\t\t\tsetColor(Color.ORANGE);\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase SKY:\n\t\t\t\tif (org.useEnergy(Utils.SKY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\torg._segColor[oseg] = Utils.ColorDEEPSKY;\n\t\t\t\t\tsetColor(Color.ORANGE);\n\t\t\t\t\torg.setColor(Utils.ColorDEEPSKY);\n\t\t\t\t} else {\n\t\t\t\t\t// Doesn't have energy to use the shield\n\t\t\t\t\tif (useEnergy(Utils.ORANGE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t// This organism will be shown in orange\n\t\t\t\t\t\tsetColor(Color.ORANGE);\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase DEEPSKY:\n\t\t\t\t\tsetColor(Color.ORANGE);\n\t\t\t\t\torg.setColor(Utils.ColorDEEPSKY);\n\t\t\t\tbreak;\n\t\t\tcase ORANGE:\n\t\t\t\tif (useEnergy(Utils.ORANGE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t// The other organism will be shown in orange\n\t\t\t\t\torg.setColor(Color.ORANGE);\n\t\t\t\t\t// This organism will be shown in orange\n\t\t\t\t\tsetColor(Color.ORANGE);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FIRE:\n\t\t\t\tif (useEnergy(Utils.ORANGE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t// The other organism will be shown in fire\n\t\t\t\t\torg.setColor(Utils.ColorFIRE);\n\t\t\t\t\t// This organism will be shown in orange\n\t\t\t\t\tsetColor(Color.ORANGE);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase SILVER:\n \tif ((org._nTotalKills > 0) || (org._isenhanced)) {\n\t\t\t\t\tif (useEnergy(Utils.ORANGE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t// The other organism will be shown in gold\n\t\t\t\t\t\torg.setColor(Utils.ColorGOLD);\n\t\t\t\t\t\t// This organism will be shown in orange\n\t\t\t\t\t\tsetColor(Color.ORANGE);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (useEnergy(Utils.ORANGE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t// This organism will be shown in orange\n\t\t\t\t\t\tsetColor(Color.ORANGE);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase MINT:\n\t\t\tcase MAGENTA:\n\t\t\tcase ROSE:\n\t\t\t\tif (_geneticCode.getAltruist()) {\n break;\n\t\t\t\t} else {\n\t\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\t\tsetColor(Color.ORANGE);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (useEnergy(Utils.ORANGE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t \t// Get energy depending on segment length\n\t\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t\t// This organism will be shown in orange\n\t\t\t\t\t\t\tsetColor(Color.ORANGE);\n\t\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase WHITE:\n\t\t\t\tif ((org._isaplant) || (org._isaconsumer) || (org._isplague) || (org._isenhanced) || (org._isfrozen)) {\t\t\t \n\t\t\t\t\tif (useEnergy(Utils.ORANGE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t// This organism will be shown in orange\n\t\t\t\t\t\tsetColor(Color.ORANGE);\t\t\t\t\t \n\t\t\t\t }\n\t\t\t }\n\t\t\t\tbreak;\n\t\t\tcase ICE:\n\t\t\tcase DEADBARK:\n\t\t\t\tif ((_isafreezer) || (_isenhanced)) {\n\t\t\t\t\tif (useEnergy(Utils.ORANGE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t// This organism will be shown in orange\n\t\t\t\t\t\tsetColor(Color.ORANGE);\t\t\t\t\t \n\t\t\t\t }\n\t\t\t }\n\t\t\t\tbreak;\n\t\t\tcase BARK:\n\t\t \torg._segColor[oseg] = Utils.ColorOLDBARK;\n\t\t \tbreak;\n\t\t\tcase OLDBARK:\n\t\t\t\tbreak;\n\t\t\tcase RED:\n\t\t\t\tbreak;\n\t\t\tcase MAROON:\n\t\t\t\tbreak;\n\t\t\tcase CREAM:\n\t\t\t\tbreak;\n\t\t\tcase OCHRE:\n\t\t\t\tbreak;\n\t\t\tcase OLIVE:\n\t\t\t\tbreak;\n\t\t\tcase DARKOLIVE:\n\t\t\t\tbreak;\n\t\t\tcase SPIKEPOINT:\n\t\t\t\tbreak;\n\t\t\tcase BROWN:\n\t\t\t\tbreak;\t\n\t\t\tdefault:\n\t\t\t\tif (useEnergy(Utils.ORANGE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t// This organism will be shown in orange\n\t\t\t\t\tsetColor(Color.ORANGE);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// energy interchange\n\t\t\torg._energy -= takenEnergy;\n\t\t\t_energy += takenEnergy;\n\t\t\tdouble CO2freed = takenEnergy * Utils.ORGANIC_SUBS_PRODUCED;\n\t\t\tuseEnergy(CO2freed);\n\t\t\torg._hasdodged =true;\n\t\t\tbreak;\n\t\tcase FIRE:\n\t\t\t// Fire segment: omnivore between red and orange\n\t\t\t\t// If the other segment is blue, it acts as a shield\n\t\t\t\tswitch (getTypeColor(org._segColor[oseg])) {\n\t\t\t\tcase GREEN:\n\t\t\t\tcase FOREST:\n\t\t\t\tcase SPRING:\n\t\t\t\tcase LIME:\n\t\t\t\tcase C4:\n\t\t\t\tcase JADE:\n\t\t\t\tcase TEAL:\n\t\t\t\tcase CYAN:\n\t\t\t\tcase YELLOW:\n\t\t\t\tcase AUBURN:\n\t\t\t\tcase INDIGO:\n\t\t\t\tcase BLOND:\n\t\t\t\tcase DARKGRAY:\n\t\t\t\tcase GOLD:\n\t\t\t\t\tif (org._isaconsumer) {\n\t\t\t\t\t\tif (useEnergy(Utils.FIRE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t\t// This organism will be shown in fire\n\t\t\t\t\t\t\tsetColor(Utils.ColorFIRE);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ((org._dodge) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\t\t\tsetColor(Utils.ColorDARKFIRE);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (useEnergy(Utils.FIRE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\t\ttakenEnergy = Utils.between((0.2 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t\t\t// This organism will be shown in dark fire\n\t\t\t\t\t\t\t\tsetColor(Utils.ColorDARKFIRE);\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\tbreak;\n\t\t\t\tcase GRASS:\n\t\t\t\t\tif (org._isaconsumer) {\n\t\t\t\t\t\tif (useEnergy(Utils.FIRE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\ttakenEnergy = Utils.between((0.5 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t// The other organism will be shown in green brown\n\t\t\t\t\t\t\torg.setColor(Utils.ColorGREENBROWN);\n\t\t\t\t\t\t\t// This organism will be shown in fire\n\t\t\t\t\t\t\tsetColor(Utils.ColorFIRE);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ((org._dodge) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\t\t\tsetColor(Utils.ColorDARKFIRE);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (useEnergy(Utils.FIRE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\t\ttakenEnergy = Utils.between((0.1 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t\t// The other organism will be shown in green brown\n\t\t\t\t\t\t\t\torg.setColor(Utils.ColorGREENBROWN);\n\t\t\t\t\t\t\t\t// This organism will be shown in dark fire\n\t\t\t\t\t\t\t\tsetColor(Utils.ColorDARKFIRE);\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\tbreak;\n\t\t\t\tcase BLUE:\n\t\t\t\t\tif (org.useEnergy(Utils.BLUE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\tif (org._isenhanced) {\n\t\t\t\t\t\t useEnergy(Utils.between((0.5 * FastMath.log10(org._m[oseg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, _energy));\n\t\t\t\t\t\t\tsetColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tsetColor(Utils.ColorDARKFIRE);\n\t\t\t\t\t\t}\n\t\t\t\t\t\torg.setColor(Color.BLUE);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Doesn't have energy to use the shield\n\t\t\t\t\t\tif (useEnergy(Utils.FIRE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\ttakenEnergy = Utils.between((0.2 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t\t// This organism will be shown in dark fire\n\t\t\t\t\t\t\tsetColor(Utils.ColorDARKFIRE);\n\t\t\t\t\t\t}\t\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase LIGHT_BLUE:\n\t\t\t\t\tif (org.useEnergy(Utils.BLUE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\tsetColor(Utils.ColorDARKFIRE);\n\t\t\t\t\t\torg.setColor(Utils.ColorLIGHT_BLUE);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Doesn't have energy to use the shield\n\t\t\t\t\t\tif (useEnergy(Utils.FIRE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\ttakenEnergy = Utils.between((0.2 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t\t// This organism will be shown in dark fire\n\t\t\t\t\t\t\tsetColor(Utils.ColorDARKFIRE);\n\t\t\t\t\t\t}\t\n\t\t\t\t\t}\n\t\t\t\t break;\n\t\t\t\tcase SKY:\n\t\t\t\t\tif (org.useEnergy(Utils.SKY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\torg._segColor[oseg] = Utils.ColorDEEPSKY;\n\t\t\t\t\t\tsetColor(Utils.ColorDARKFIRE);\n\t\t\t\t\t\torg.setColor(Utils.ColorDEEPSKY);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Doesn't have energy to use the shield\n\t\t\t\t\t\tif (useEnergy(Utils.FIRE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\ttakenEnergy = Utils.between((0.2 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t\t// This organism will be shown in dark fire\n\t\t\t\t\t\t\tsetColor(Utils.ColorDARKFIRE);\n\t\t\t\t\t\t}\t\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase DEEPSKY:\n\t\t\t\t\t\tsetColor(Utils.ColorDARKFIRE);\n\t\t\t\t\t\torg.setColor(Utils.ColorDEEPSKY);\n\t\t\t\t\tbreak;\n\t case RED:\n\t \tif (useEnergy(Utils.FIRE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t// The other organism will be shown in red\n\t\t\t\t\t\torg.setColor(Color.RED);\n\t\t\t\t\t\t// This organism will be shown in fire\n\t\t\t\t\t\tsetColor(Utils.ColorFIRE);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t case FIRE:\n\t \tif (useEnergy(Utils.FIRE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t// The other organism will be shown in fire\n\t\t\t\t\t\torg.setColor(Utils.ColorFIRE);\n\t\t\t\t\t\t// This organism will be shown in fire\n\t\t\t\t\t\tsetColor(Utils.ColorFIRE);\n\t\t\t\t\t}\n\t \tbreak;\n\t case ORANGE:\n\t \tif (useEnergy(Utils.FIRE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t// The other organism will be shown in orange\n\t\t\t\t\t\torg.setColor(Color.ORANGE);\n\t\t\t\t\t\t// This organism will be shown in fire\n\t\t\t\t\t\tsetColor(Utils.ColorFIRE);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t case SILVER:\n\t \tif ((org._nTotalKills > 0) || (org._isenhanced)) {\n\t\t\t\t\t\tif (useEnergy(Utils.FIRE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t// The other organism will be shown in gold\n\t\t\t\t\t\t\torg.setColor(Utils.ColorGOLD);\n\t\t\t\t\t\t\t// This organism will be shown in fire\n\t\t\t\t\t\t\tsetColor(Utils.ColorFIRE);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else\n\t\t\t\t\t\tif (org._isaconsumer) {\n\t\t\t\t\t\tif (useEnergy(Utils.FIRE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t\t// This organism will be shown in fire\n\t\t\t\t\t\t\tsetColor(Utils.ColorFIRE);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else \n\t\t\t\t\t\tif (useEnergy(Utils.FIRE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\ttakenEnergy = Utils.between((0.2 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t\t// This organism will be shown in dark fire\n\t\t\t\t\t\t\tsetColor(Utils.ColorDARKFIRE);\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t case PINK:\n\t \tif (org._geneticCode.getModifiespink()) {\n\t\t\t\t\t\tif (useEnergy(Utils.FIRE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t\t// This organism will be shown in fire\n\t\t\t\t\t\t\tsetColor(Utils.ColorFIRE);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (useEnergy(Utils.FIRE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\ttakenEnergy = Utils.between((0.2 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t\t// This organism will be shown in dark fire\n\t\t\t\t\t\t\tsetColor(Utils.ColorDARKFIRE);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t \tbreak;\n\t\t\t\tcase MAROON:\n\t\t\t\tcase CREAM:\n\t\t\t\t\tif (useEnergy(Utils.FIRE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\ttakenEnergy = Utils.between((0.2 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t// This organism will be shown in dark fire\n\t\t\t\t\t\tsetColor(Utils.ColorDARKFIRE);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase ICE:\n\t\t\t\tcase DEADBARK:\n\t\t\t\t\tif ((_isafreezer) && (useEnergy(Utils.FIRE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t// This organism will be shown in fire\n\t\t\t\t\t\tsetColor(Utils.ColorFIRE);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase BARK:\n\t\t\t \torg._segColor[oseg] = Utils.ColorOLDBARK;\n\t\t\t \tbreak;\n\t\t\t\tcase OLDBARK:\n\t\t\t\t\tbreak;\n\t\t\t\tcase OCHRE:\n\t\t\t\t\tbreak;\n\t\t\t\tcase OLIVE:\n\t\t\t\t\tbreak;\n\t\t\t\tcase DARKOLIVE:\n\t\t\t\t\tbreak;\n\t\t\t\tcase SPIKEPOINT:\n\t\t\t\t\tbreak;\n\t\t\t\tcase BROWN:\n\t\t\t\tcase GREENBROWN:\n\t\t\t\tcase POISONEDJADE:\n\t\t\t\t\tif (_isenhanced) {\n\t\t\t\t\t\tif (org._isaconsumer) {\n\t\t\t\t\t\t\tif (useEnergy(Utils.FIRE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t\t\t// This organism will be shown in fire\n\t\t\t\t\t\t\t\tsetColor(Utils.ColorFIRE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (useEnergy(Utils.FIRE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\t\ttakenEnergy = Utils.between((0.2 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t\t\t// This organism will be shown in dark fire\n\t\t\t\t\t\t\t\tsetColor(Utils.ColorDARKFIRE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t\tbreak;\n\t\t\t\tcase MINT:\n\t\t\t\tcase MAGENTA:\n\t\t\t\tcase ROSE:\n\t\t\t\t\tif (_geneticCode.getAltruist()) {\n\t break;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (org._isaconsumer) {\n\t\t\t\t\t\t\tif (useEnergy(Utils.FIRE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t\t\t// This organism will be shown in fire\n\t\t\t\t\t\t\t\tsetColor(Utils.ColorFIRE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif ((org._dodge) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\t\t\t\tsetColor(Utils.ColorDARKFIRE);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (useEnergy(Utils.FIRE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\t\t\ttakenEnergy = Utils.between((0.2 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t\t\t\t// This organism will be shown in dark fire\n\t\t\t\t\t\t\t\t\tsetColor(Utils.ColorDARKFIRE);\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\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif (org._isaconsumer) {\n\t\t\t\t\t\tif (useEnergy(Utils.FIRE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t\t// This organism will be shown in fire\n\t\t\t\t\t\t\tsetColor(Utils.ColorFIRE);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (useEnergy(Utils.FIRE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\ttakenEnergy = Utils.between((0.2 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t\t// This organism will be shown in dark fire\n\t\t\t\t\t\t\tsetColor(Utils.ColorDARKFIRE);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t }\n\t\t\t\t// energy interchange\n\t\t\t\torg._energy -= takenEnergy;\n\t\t\t\t_energy += takenEnergy;\n\t\t\t\tdouble CO2freed7 = takenEnergy * Utils.ORGANIC_SUBS_PRODUCED;\n\t\t\t\tuseEnergy(CO2freed7);\n\t\t\t\torg._hasdodged =true;\n\t\t\t\tbreak;\n\t\tcase RED:\n\t\t\t// Red segment: try to get energy from other consumers\n\t\t\t\tswitch (getTypeColor(org._segColor[oseg])) {\n\t\t\t\tcase RED:\n\t\t\t\t\tif (useEnergy(Utils.RED_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t// The other organism will be shown in red\n\t\t\t\t\t\torg.setColor(Color.RED);\n\t\t\t\t\t\t// This organism will be shown in red\n\t\t\t\t\t\tsetColor(Color.RED);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase FIRE:\n\t\t\t\t\tif (useEnergy(Utils.RED_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t// The other organism will be shown in fire\n\t\t\t\t\t\torg.setColor(Utils.ColorFIRE);\n\t\t\t\t\t\t// This organism will be shown in red\n\t\t\t\t\t\tsetColor(Color.RED);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase ORANGE:\n\t\t\t\tcase MAROON:\n\t\t\t\tcase PINK:\n\t\t\t\t\tif (useEnergy(Utils.RED_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t// This organism will be shown in red\n\t\t\t\t\t\tsetColor(Color.RED);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase SILVER:\n\t\t\t\t\tif ((org._nTotalKills > 0) || (org._isenhanced)) {\n\t\t\t\t\t\tif (useEnergy(Utils.RED_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t// The other organism will be shown in gold\n\t\t\t\t\t\t\torg.setColor(Utils.ColorGOLD);\n\t\t\t\t\t\t\t// This organism will be shown in red\n\t\t\t\t\t\t\tsetColor(Color.RED);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase SPIKE:\n\t\t\t\t\tif ((org._isenhanced) && (useEnergy(Utils.RED_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t// This organism will be shown in red\n\t\t\t\t\t\tsetColor(Color.RED);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase SPIKEPOINT:\n\t\t\t\t\tif ((_isenhanced) && (org._isenhanced) && (useEnergy(Utils.RED_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t// This organism will be shown in red\n\t\t\t\t\t\tsetColor(Color.RED);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase LILAC:\n\t\t\t\tcase DARKLILAC:\n\t\t\t\tcase GRAY:\n\t\t\t\t\tif ((_isenhanced) && (org._isaconsumer) && (useEnergy(Utils.RED_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\ttakenEnergy = Utils.between((0.2 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t// This organism will be shown in dark fire\n\t\t\t\t\t\tsetColor(Utils.ColorDARKFIRE);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase CREAM:\n\t\t\t\t\tif ((_isenhanced) && (useEnergy(Utils.RED_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\ttakenEnergy = Utils.between((0.2 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t// This organism will be shown in dark fire\n\t\t\t\t\t\tsetColor(Utils.ColorDARKFIRE);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase BARK:\n\t\t\t \torg._segColor[oseg] = Utils.ColorOLDBARK;\n\t\t\t \tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// energy interchange\n\t\t\t\torg._energy -= takenEnergy;\n\t\t\t\t_energy += takenEnergy;\n\t\t\t\tdouble CO2freed2 = takenEnergy * Utils.ORGANIC_SUBS_PRODUCED;\n\t\t\t\tuseEnergy(CO2freed2);\n\t\t\t\tbreak;\t\n\t\tcase PINK:\n\t\t\t// Pink segment: try to get energy from corpses, weak organisms, viruses and parasites\n\t\t\t\tswitch (getTypeColor(org._segColor[oseg])) {\n\t\t\t\tcase PINK:\n\t\t\t\t\tif (_geneticCode.getModifiespink()) {\n\t\t\t\t\t\tif (org._geneticCode.getModifiespink()) {\n\t\t\t\t\t\t\tif (useEnergy(Utils.PINK_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t\t// The other organism will be shown in pink\n\t\t\t\t\t\t\t org.setColor(Color.PINK);\n\t\t\t\t\t\t\t\t// This organism will be shown in pink\n\t\t\t\t\t\t\t\tsetColor(Color.PINK);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (useEnergy(Utils.PINK_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t\t// The other organism will be shown in dark fire\n\t\t\t\t\t\t\t\torg.setColor(Utils.ColorDARKFIRE);\n\t\t\t\t\t\t\t\t// This organism will be shown in pink\n\t\t\t\t\t\t\t\tsetColor(Color.PINK);\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\tif (org._geneticCode.getModifiespink()) {\n\t\t\t\t\t\t\tif (useEnergy(Utils.PINK_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\t\ttakenEnergy = Utils.between((0.2 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t\t// The other organism will be shown in pink\n\t\t\t\t\t\t\t org.setColor(Color.PINK);\n\t\t\t\t\t\t\t\t// This organism will be shown in dark fire\n\t\t\t\t\t\t\t\tsetColor(Utils.ColorDARKFIRE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (useEnergy(Utils.PINK_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\t\ttakenEnergy = Utils.between((0.2 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t\t// The other organism will be shown in dark fire\n\t\t\t\t\t\t\t\torg.setColor(Utils.ColorDARKFIRE);\n\t\t\t\t\t\t\t\t// This organism will be shown in dark fire\n\t\t\t\t\t\t\t\tsetColor(Utils.ColorDARKFIRE);\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\tbreak;\n\t\t\t\tcase CREAM:\n\t\t\t\t\tif (_geneticCode.getModifiespink()) {\n\t\t\t\t\t\tif (useEnergy(Utils.PINK_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t\t// This organism will be shown in pink\n\t\t\t\t\t\t\tsetColor(Color.PINK);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (useEnergy(Utils.PINK_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\ttakenEnergy = Utils.between((0.2 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t\t// This organism will be shown in dark fire\n\t\t\t\t\t\t\tsetColor(Utils.ColorDARKFIRE);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase SILVER:\n\t\t\t\t\tif (org._nTotalInfected > 0) {\n\t\t\t\t\t\tif ((org._nTotalKills > 0) || (org._isenhanced)) {\n\t\t\t\t\t\t\tif (useEnergy(Utils.PINK_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t\t// The other organism will be shown in gold\n\t\t\t\t\t\t\t\torg.setColor(Utils.ColorGOLD);\n\t\t\t\t\t\t\t\t// This organism will be shown in pink\n\t\t\t\t\t\t\t\tsetColor(Color.PINK);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (useEnergy(Utils.PINK_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t\t\t// This organism will be shown in pink\n\t\t\t\t\t\t\t\tsetColor(Color.PINK);\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\tbreak;\n\t\t\t\tcase WHITE:\n\t\t\t\tcase PLAGUE:\n\t\t\t\tcase CORAL:\n\t\t\t\tcase DARKOLIVE:\n\t\t\t\tcase DARKFIRE:\n\t\t\t\tcase LIGHTBROWN:\n\t\t\t\tcase GREENBROWN:\n\t\t\t\tcase POISONEDJADE:\n\t\t\t\tcase BROKEN:\n\t\t\t\tcase LIGHT_BLUE:\n\t\t\t\tcase DEEPSKY:\n\t\t\t\tcase ICE:\n\t\t\t\tcase DEADBARK:\n\t\t\t\t\tif (useEnergy(Utils.PINK_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t// This organism will be shown in pink\n\t\t\t\t\t\tsetColor(Color.PINK);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase BROWN:\n\t\t\t\t\tif ((_isakiller < 2) || (_geneticCode.getModifiespink())) {\n\t\t\t\t\t if (useEnergy(Utils.PINK_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t // Get energy depending on segment length\n\t\t\t\t\t\t takenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t // The other organism will be shown in yellow\n\t\t\t\t\t\t org.setColor(Color.YELLOW);\n\t\t\t\t\t\t // This organism will be shown in pink\n\t\t\t\t\t\t setColor(Color.PINK);\n\t\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase OLDBARK:\n\t\t\t\t\tif (_isenhanced) {\n\t\t\t\t\t\tif (useEnergy(Utils.PINK_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t // Get energy depending on segment length\n\t\t\t\t\t\t\tif (org._isenhanced) {\n\t\t\t\t\t\t\t\ttakenEnergy = Utils.between((0.1 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t\t// The other organism will be shown in green brown\n\t\t\t\t\t\t\t\torg.setColor(Utils.ColorGREENBROWN);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\t\t org.setColor(Color.YELLOW);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t // This organism will be shown in pink\n\t\t\t\t\t\t setColor(Color.PINK);\n\t\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase BARK:\n\t\t\t \torg._segColor[oseg] = Utils.ColorOLDBARK;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\t\n\t\t\t\t}\n\t\t\t\t// energy interchange\n\t\t\t\torg._energy -= takenEnergy;\n\t\t\t\t_energy += takenEnergy;\n\t\t\t\tdouble CO2freed3 = takenEnergy * Utils.ORGANIC_SUBS_PRODUCED;\n\t\t\t\tuseEnergy(CO2freed3);\n\t\t\t\tbreak;\n\t\tcase MAROON:\n\t\t\t// Maroon segment: try to get energy from plants and feed on ochre, sky, darkolive and cracked light blue segments\n\t\t\t\tswitch (getTypeColor(org._segColor[oseg])) {\n\t\t\t\tcase BLUE:\n\t\t\t\t\tif (org._isaplant) {\n\t\t\t\t\t if (org.useEnergy(Utils.BLUE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t \tif (org._isenhanced) {\n\t\t\t\t\t\t\t useEnergy(Utils.between((0.1 * FastMath.log10(org._m[oseg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, _energy));\n\t\t\t\t\t\t\t\tsetColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tsetColor(Utils.ColorMAROON);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t org.setColor(Color.BLUE);\n\t\t\t\t\t } else {\n\t\t\t\t\t\t\t// Doesn't have energy to use the shield\n\t\t\t\t\t\t\tif (useEnergy(Utils.MAROON_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t\t\t// This organism will be shown in maroon\n\t\t\t\t\t\t\t\tsetColor(Utils.ColorMAROON);\n\t\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\tbreak;\n\t\t\t\tcase WHITE:\n\t\t\t\tcase PLAGUE:\n\t\t\t\tcase SPIKE:\n\t\t\t\tcase BROKEN:\n\t\t\t\tcase LIGHT_BLUE:\n\t\t\t\tcase DEEPSKY:\n\t\t\t\tcase DARKOLIVE:\n\t\t\t\tcase OCHRE:\n\t\t\t\tcase DARKJADE:\n\t\t\t\t\tif (org._isaplant) {\n\t\t\t\t\t\tif (useEnergy(Utils.MAROON_ENERGY_CONSUMPTION)) { \n\t\t\t\t\t\t // Get energy depending on segment length\n\t\t\t\t\t\t takenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t // The other organism will be shown in yellow\n\t\t\t\t\t\t org.setColor(Color.YELLOW);\n\t\t\t\t\t\t // This organism will be shown in maroon\n\t\t\t\t\t\t setColor(Utils.ColorMAROON);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase OLDBARK:\n\t\t\t\t\tif (useEnergy(Utils.MAROON_ENERGY_CONSUMPTION)) { \n\t\t\t\t\t // Get energy depending on segment length\n\t\t\t\t\t\tif (org._isenhanced) {\n\t\t\t\t\t\t\ttakenEnergy = Utils.between((0.1 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t// The other organism will be shown in green brown\n\t\t\t\t\t\t\torg.setColor(Utils.ColorGREENBROWN);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\t org.setColor(Color.YELLOW);\n\t\t\t\t\t\t}\n\t\t\t\t\t // This organism will be shown in maroon\n\t\t\t\t\t setColor(Utils.ColorMAROON);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase BARK:\n\t\t\t \torg._segColor[oseg] = Utils.ColorOLDBARK;\n\t\t\t \tbreak;\n\t\t\t\tcase GREEN:\n\t\t\t\tcase FOREST:\n\t\t\t\tcase SPRING:\n\t\t\t\tcase LIME:\n\t\t\t\tcase C4:\n\t\t\t\tcase JADE:\n\t\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\t\tsetColor(Utils.ColorMAROON);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (useEnergy(Utils.MAROON_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t\t// This organism will be shown in maroon\n\t\t\t\t\t\t\tsetColor(Utils.ColorMAROON);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase GRASS:\n\t\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\t\tsetColor(Utils.ColorMAROON);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (useEnergy(Utils.MAROON_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\ttakenEnergy = Utils.between((0.5 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t// The other organism will be shown in green brown\n\t\t\t\t\t\t\torg.setColor(Utils.ColorGREENBROWN);\n\t\t\t\t\t\t\t// This organism will be shown in maroon\n\t\t\t\t\t\t\tsetColor(Utils.ColorMAROON);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase CYAN:\n\t\t\t\tcase TEAL:\n\t\t\t\tcase YELLOW:\n\t\t\t\tcase AUBURN:\n\t\t\t\tcase INDIGO:\n\t\t\t\tcase BLOND:\n\t\t\t\tcase DARKGRAY:\n\t\t\t\tcase GOLD:\n\t\t\t\t\tif ((_isenhanced) && (org._isaplant)) {\n\t\t\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\t\t\tsetColor(Utils.ColorMAROON);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (useEnergy(Utils.MAROON_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t\t\t// This organism will be shown in maroon\n\t\t\t\t\t\t\t\tsetColor(Utils.ColorMAROON);\n\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}\n\t\t\t\t\tbreak;\n\t\t\t\tcase ICE:\n\t\t\t\tcase DEADBARK:\n\t\t\t\t\tif ((_isafreezer) && (org._isaplant) && (useEnergy(Utils.MAROON_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t// This organism will be shown in maroon\n\t\t\t\t\t\tsetColor(Utils.ColorMAROON);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase RED:\n\t\t\t\t\tbreak;\n\t\t\t\tcase FIRE:\n\t\t\t\t\tbreak;\n\t\t\t\tcase ORANGE:\n\t\t\t\t\tbreak;\n\t\t\t\tcase MAROON:\n\t\t\t\t\tbreak;\n\t\t\t\tcase PINK:\n\t\t\t\t\tbreak;\n\t\t\t\tcase CREAM:\n\t\t\t\t\tbreak;\t\t\t\t\n\t\t\t\tcase LILAC:\n\t\t\t\t\tbreak;\n\t\t\t\tcase DARKLILAC:\n\t\t\t\t\tbreak;\n\t\t\t\tcase SPIKEPOINT:\n\t\t\t\t\tbreak;\n\t\t\t\tcase SKY:\n\t\t\t\t\tbreak;\n\t\t\t\tcase OLIVE:\n\t\t\t\t\tbreak;\n\t\t\t\tcase BROWN:\n\t\t\t\t\tbreak;\n\t\t\t\tcase SILVER:\n\t\t\t\t\tif ((org._nTotalKills > 0) || (org._isenhanced)) {\n\t\t break;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\tif ((org._isaplant) && (useEnergy(Utils.MAROON_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t\t// This organism will be shown in maroon\n\t\t\t\t\t\t\tsetColor(Utils.ColorMAROON);\t\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\tbreak;\n\t\t\t\tcase MINT:\n\t\t\t\tcase MAGENTA:\n\t\t\t\tcase ROSE:\n\t\t\t\t\tif (_geneticCode.getAltruist()) {\n\t\t\t\t\tbreak;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ((_isenhanced) && (org._isaplant)) {\n\t\t\t\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\t\t\t\tsetColor(Utils.ColorMAROON);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (useEnergy(Utils.MAROON_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t\t\t\t// This organism will be shown in maroon\n\t\t\t\t\t\t\t\t\tsetColor(Utils.ColorMAROON);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif ((_isenhanced) && (org._isaplant) && (useEnergy(Utils.MAROON_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\ttakenEnergy = Utils.between((FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t// This organism will be shown in maroon\n\t\t\t\t\t\tsetColor(Utils.ColorMAROON);\t\t\t\t\t\t\t\t \n\t\t\t\t\t}\t\t\n\t\t\t\t}\n\t\t\t\t// energy interchange\n\t\t\t\torg._energy -= takenEnergy;\n\t\t\t\t_energy += takenEnergy;\n\t\t\t\tdouble CO2freed4 = takenEnergy * Utils.ORGANIC_SUBS_PRODUCED;\n\t\t\t\tuseEnergy(CO2freed4);\n\t\t\t\torg._hasdodged =true;\n\t\t\t\tbreak;\n\t\tcase CREAM:\n\t\t\t// Cream segment: Parasitize on other organisms\n\t\t\ttakenEnergy = handleCream(org, seg, oseg, takenEnergy);\n\t\t\t// energy interchange\n\t\t\t\torg._energy -= takenEnergy;\n\t\t\t\t_energy += takenEnergy;\n\t\t\t\tdouble CO2freed5 = takenEnergy * Utils.CREAM_ORGANIC_SUBS_PRODUCED;\n\t\t\t\tuseEnergy(CO2freed5);\n\t\t\t\torg._hasdodged =true;\n\t\t\t\tbreak;\n\t\tcase LILAC:\n\t\t\t// Lilac segment: Weaken organisms\n\t\t\tswitch (getTypeColor(org._segColor[oseg])) {\n\t\t\tcase GREEN:\n\t\t\tcase FOREST:\n\t\t\tcase SPRING:\n\t\t\tcase LIME:\n\t\t\tcase C4:\n\t\t\tcase JADE:\n\t\t\tcase TEAL:\n\t\t\tcase CYAN:\n\t\t\tcase YELLOW:\n\t\t\tcase AUBURN:\n\t\t\tcase INDIGO:\n\t\t\tcase BLOND:\n\t\t\tcase DARKGRAY:\n\t\t\tcase GOLD:\n\t\t \tif ((_geneticCode.getModifieslilac()) || (org._isaconsumer)) {\n\t\t \t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\t\tsetColor(Utils.ColorLILAC);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (useEnergy(Utils.LILAC_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\ttakenEnergy = Utils.between((10 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t// The other organism will be shown in dark lilac\n\t\t\t\t\t\t\torg.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t\t\t// This organism will be shown in lilac\n\t\t\t\t\t\t\tsetColor(Utils.ColorLILAC);\n\t\t\t\t\t\t\t// Organism has to recharge\n\t\t\t\t\t\t\tif (!_isenhanced) {\n\t\t\t\t\t\t\t\t_segColor[seg] = Utils.ColorDARKLILAC;\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}\n\t\t \tbreak;\n\t\t\tcase GRASS:\n\t\t\t\tif ((_geneticCode.getModifieslilac()) || (org._isaconsumer)) {\n\t\t \t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\t\tsetColor(Utils.ColorLILAC);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (useEnergy(Utils.LILAC_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\ttakenEnergy = Utils.between((5 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t// The other organism will be shown in dark lilac\n\t\t\t\t\t\t\torg.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t\t // This organism will be shown in lilac\n\t\t\t\t\t\t\tsetColor(Utils.ColorLILAC);\n\t\t\t\t\t\t\t// Organism has to recharge\n\t\t\t\t\t\t\tif (!_isenhanced) {\n\t\t\t\t\t\t\t\t_segColor[seg] = Utils.ColorDARKLILAC;\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}\n\t\t \tbreak;\n\t\t case BLUE:\n\t\t\t\tif (org.useEnergy(Utils.BLUE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\tif (org._isenhanced) {\n\t\t\t\t\t useEnergy(Utils.between((0.5 * FastMath.log10(org._m[oseg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, _energy));\n\t\t\t\t\t\tsetColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsetColor(Utils.ColorLILAC);\n\t\t\t\t\t}\n\t\t\t\t\torg.setColor(Color.BLUE);\n\t\t\t\t} else {\n\t\t\t\t\t// Doesn't have energy to use the shield\n\t\t\t\t\tif (useEnergy(Utils.LILAC_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\ttakenEnergy = Utils.between((10 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t// The other organism will be shown in dark lilac\n\t\t\t\t\t\torg.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t\t// This organism will be shown in lilac\n\t\t\t\t\t\tsetColor(Utils.ColorLILAC);\n\t\t\t\t\t\t// Organism has to recharge\n\t\t\t\t\t\tif (!_isenhanced) {\n\t\t\t\t\t\t\t_segColor[seg] = Utils.ColorDARKLILAC;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t case DARKJADE:\n\t\t case OLDBARK:\n\t\t case WHITE:\n\t\t case BROWN:\n\t\t \tif ((_geneticCode.getModifieslilac()) || ((org._isaconsumer) && (org.alive))) {\n\t\t \t\tif (useEnergy(Utils.LILAC_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\ttakenEnergy = Utils.between((10 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t// The other organism will be shown in dark lilac\n\t\t\t\t\t\torg.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t\t// This organism will be shown in lilac\n\t\t\t\t\t\tsetColor(Utils.ColorLILAC);\n\t\t\t\t\t\t// Organism has to recharge\n\t\t\t\t\t\tif (!_isenhanced) {\n\t\t\t\t\t\t\t_segColor[seg] = Utils.ColorDARKLILAC;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t \t}\n\t\t\t\tbreak;\n\t\t case RED:\n\t\t \tif (org._isenhanced) {\n\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tif (useEnergy(Utils.LILAC_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\ttakenEnergy = Utils.between((10 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t// The other organism will be shown in dark lilac\n\t\t\t\t\t\torg.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t\t// This organism will be shown in lilac\n\t\t\t\t\t\tsetColor(Utils.ColorLILAC);\n\t\t\t\t\t\t// Organism has to recharge\n\t\t\t\t\t\tif (!_isenhanced) {\n\t\t\t\t\t\t\t_segColor[seg] = Utils.ColorDARKLILAC;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t case OLIVE:\n\t\t\t\tif ((!org._isaplant) || (org._isenhanced)) {\n\t break;\n\t\t\t\t} else {\n\t\t\t\t\tif (useEnergy(Utils.LILAC_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\ttakenEnergy = Utils.between((10 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t// The other organism will be shown in dark lilac\n\t\t\t\t\t\torg.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t\t// This organism will be shown in lilac\n\t\t\t\t\t\tsetColor(Utils.ColorLILAC);\n\t\t\t\t\t\t// Organism has to recharge\n\t\t\t\t\t\tif (!_isenhanced) {\n\t\t\t\t\t\t\t_segColor[seg] = Utils.ColorDARKLILAC;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\tbreak;\t\t\t\t\n\t\t case MINT:\n\t\t case MAGENTA:\n\t\t case ROSE:\n\t\t\t\tif (_geneticCode.getAltruist()) {\n break;\n\t\t\t\t} else {\n\t\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\t\tsetColor(Utils.ColorLILAC);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (useEnergy(Utils.LILAC_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\ttakenEnergy = Utils.between((10 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t// The other organism will be shown in dark lilac\n\t\t\t\t\t\t\torg.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t\t\t// This organism will be shown in lilac\n\t\t\t\t\t\t\tsetColor(Utils.ColorLILAC);\n\t\t\t\t\t\t\t// Organism has to recharge\n\t\t\t\t\t\t\tif (!_isenhanced) {\n\t\t\t\t\t\t\t\t_segColor[seg] = Utils.ColorDARKLILAC;\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\tbreak;\n\t\t case SPIKEPOINT:\n\t\t \tbreak;\n\t\t case BARK:\n\t\t\t\torg._segColor[oseg] = Utils.ColorOLDBARK;\n\t\t\t\tbreak;\n\t\t default:\n\t\t \tif (useEnergy(Utils.LILAC_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\ttakenEnergy = Utils.between((10 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t// The other organism will be shown in dark lilac\n\t\t\t\t\torg.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t// This organism will be shown in lilac\n\t\t\t\t\tsetColor(Utils.ColorLILAC);\n\t\t\t\t\t// Organism has to recharge\n\t\t\t\t\tif (!_isenhanced) {\n\t\t\t\t\t\t_segColor[seg] = Utils.ColorDARKLILAC;\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t}\n\t\t\t// energy interchange\n\t\t\torg._energy -= takenEnergy;\n\t\t\t_energy += takenEnergy;\n\t\t\tdouble CO2freed6 = takenEnergy;\n\t\t\tuseEnergy(CO2freed6);\n\t\t\torg._hasdodged =true;\n\t\t\tbreak;\n\t\tcase SPIKEPOINT:\n\t\t\t// Spike segment: Hurts organisms, if it hits with its end point, enhanced SPIKE can feed on other organisms\n\t\t\tswitch (getTypeColor(org._segColor[oseg])) {\n\t\t\tcase GREEN:\n\t\t\tcase FOREST:\n\t\t\tcase SPRING:\n\t\t\tcase LIME:\n\t\t\tcase C4:\n\t\t\tcase JADE:\n\t\t\tcase TEAL:\n\t\t\tcase CYAN:\n\t\t\tcase YELLOW:\n\t\t\tcase AUBURN:\n\t\t\tcase INDIGO:\n\t\t\tcase BLOND:\n\t\t\tcase DARKGRAY:\n\t\t\tcase GOLD:\n\t\t\t\tif (_isenhanced) {\n\t\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\t\tsetColor(Utils.ColorSPIKE);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (useEnergy(Utils.DARKGRAY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t // Get energy depending on segment length\n\t\t\t\t\t\t takenEnergy = Utils.between((0.75 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t // The other organism will be shown in yellow\n\t\t\t\t\t\t org.setColor(Color.YELLOW);\n\t\t\t\t\t\t // This organism will be shown in spike\n\t\t\t\t\t\t\tsetColor(Utils.ColorSPIKE);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\t\tsetColor(Utils.ColorSPIKE);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (useEnergy(Utils.SPIKE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\ttakenEnergy = Utils.between((5 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t// The other organism will be shown in dark lilac\n\t\t\t\t\t\t org.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t\t // This organism will be shown in spike\n\t\t\t\t\t\t\tsetColor(Utils.ColorSPIKE);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase GRASS:\n\t\t\t\tif (_isenhanced) {\n\t\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\t\tsetColor(Utils.ColorSPIKE);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (useEnergy(Utils.DARKGRAY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t // Get energy depending on segment length\n\t\t\t\t\t\t takenEnergy = Utils.between((0.375 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t // The other organism will be shown in green brown\n\t\t\t\t\t\t org.setColor(Utils.ColorGREENBROWN);\n\t\t\t\t\t\t // This organism will be shown in spike\n\t\t\t\t\t\t\tsetColor(Utils.ColorSPIKE);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\t\tsetColor(Utils.ColorSPIKE);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (useEnergy(Utils.SPIKE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\ttakenEnergy = Utils.between((2.5 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t// The other organism will be shown in dark lilac\n\t\t\t\t\t\t org.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t\t // This organism will be shown in spike\n\t\t\t\t\t\t\tsetColor(Utils.ColorSPIKE);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase BLUE:\n\t\t\t\tif (org.useEnergy(Utils.BLUE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\tif (org._isenhanced) {\n\t\t\t\t\t useEnergy(Utils.between((0.5 * FastMath.log10(org._m[oseg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, _energy));\n\t\t\t\t\t\tsetColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsetColor(Utils.ColorSPIKE);\n\t\t\t\t\t}\n\t\t\t\t\torg.setColor(Color.BLUE);\n\t\t\t\t} else {\n\t\t\t\t\t// Doesn't have energy to use the shield\n\t\t\t\t\tif (_isenhanced) {\n\t\t\t\t\t\tif (useEnergy(Utils.DARKGRAY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t // Get energy depending on segment length\n\t\t\t\t\t\t takenEnergy = Utils.between((0.75 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t // The other organism will be shown in yellow\n\t\t\t\t\t\t org.setColor(Color.YELLOW);\n\t\t\t\t\t\t // This organism will be shown in spike\n\t\t\t\t\t\t\tsetColor(Utils.ColorSPIKE);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (useEnergy(Utils.SPIKE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\ttakenEnergy = Utils.between((5 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t// The other organism will be shown in dark lilac\n\t\t\t\t\t\t org.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t\t // This organism will be shown in spike\n\t\t\t\t\t\t\tsetColor(Utils.ColorSPIKE);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase SKY:\n\t\t\t\tif (org.useEnergy(Utils.SKY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\torg._segColor[oseg] = Utils.ColorDEEPSKY;\n\t\t\t\t\tsetColor(Utils.ColorSPIKE);\n\t\t\t\t\torg.setColor(Utils.ColorDEEPSKY);\n\t\t\t\t} else {\n\t\t\t\t\t// Doesn't have energy to use the shield\n\t\t\t\t\tif (_isenhanced) {\n\t\t\t\t\t\tif (useEnergy(Utils.DARKGRAY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t // Get energy depending on segment length\n\t\t\t\t\t\t takenEnergy = Utils.between((0.75 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t // The other organism will be shown in yellow\n\t\t\t\t\t\t org.setColor(Color.YELLOW);\n\t\t\t\t\t\t // This organism will be shown in spike\n\t\t\t\t\t\t\tsetColor(Utils.ColorSPIKE);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (useEnergy(Utils.SPIKE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\ttakenEnergy = Utils.between((5 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t// The other organism will be shown in dark lilac\n\t\t\t\t\t\t org.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t\t // This organism will be shown in spike\n\t\t\t\t\t\t\tsetColor(Utils.ColorSPIKE);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase DEEPSKY:\n\t\t\t\t setColor(Utils.ColorSPIKE);\n\t\t\t org.setColor(Utils.ColorDEEPSKY);\n\t\t\t\tbreak;\n\t\t\tcase RED:\n\t\t \tif (org._isenhanced) {\n\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tif (_isenhanced) {\n\t\t\t\t\t\tif (useEnergy(Utils.DARKGRAY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t // Get energy depending on segment length\n\t\t\t\t\t\t takenEnergy = Utils.between((0.75 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t // The other organism will be shown in yellow\n\t\t\t\t\t\t org.setColor(Color.YELLOW);\n\t\t\t\t\t\t // This organism will be shown in spike\n\t\t\t\t\t\t\tsetColor(Utils.ColorSPIKE);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (useEnergy(Utils.SPIKE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\ttakenEnergy = Utils.between((5 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t// The other organism will be shown in dark lilac\n\t\t\t\t\t\t org.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t\t // This organism will be shown in spike\n\t\t\t\t\t\t\tsetColor(Utils.ColorSPIKE);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t \tbreak;\n\t\t\tcase MINT:\n\t\t case MAGENTA:\n\t\t case ROSE:\n\t\t \tif (_geneticCode.getAltruist()) {\n break;\n\t\t\t\t} else {\n\t\t\t\t\tif (_isenhanced) {\n\t\t\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\t\t\tsetColor(Utils.ColorSPIKE);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (useEnergy(Utils.DARKGRAY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t // Get energy depending on segment length\n\t\t\t\t\t\t\t takenEnergy = Utils.between((0.75 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t // The other organism will be shown in yellow\n\t\t\t\t\t\t\t org.setColor(Color.YELLOW);\n\t\t\t\t\t\t\t // This organism will be shown in spike\n\t\t\t\t\t\t\t\tsetColor(Utils.ColorSPIKE);\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\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\t\t\tsetColor(Utils.ColorSPIKE);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (useEnergy(Utils.SPIKE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\t\t\ttakenEnergy = Utils.between((5 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t\t// The other organism will be shown in dark lilac\n\t\t\t\t\t\t\t org.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t\t\t // This organism will be shown in spike\n\t\t\t\t\t\t\t\tsetColor(Utils.ColorSPIKE);\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\tbreak;\n\t\t case WHITE:\n\t\t \tif (_isenhanced) {\n\t\t \t\tif ((org._isaplant) || (org._isaconsumer) || (org._isplague) || (org._isenhanced) || (org._isfrozen)) {\n\t\t \t\t\tif (useEnergy(Utils.DARKGRAY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t // Get energy depending on segment length\n\t\t\t\t\t\t takenEnergy = Utils.between((0.75 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t // The other organism will be shown in yellow\n\t\t\t\t\t\t org.setColor(Color.YELLOW);\n\t\t\t\t\t\t // This organism will be shown in spike\n\t\t\t\t\t\t\tsetColor(Utils.ColorSPIKE);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (useEnergy(Utils.SPIKE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\ttakenEnergy = Utils.between((5 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t// The other organism will be shown in dark lilac\n\t\t\t\t\t org.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t // This organism will be shown in spike\n\t\t\t\t\t\tsetColor(Utils.ColorSPIKE);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t \tbreak;\n\t\t case BARK:\n\t\t \torg._segColor[oseg] = Utils.ColorOLDBARK;\n\t\t\t\tbreak;\n\t\t case OLDBARK:\n\t\t \tbreak;\n\t\t case CREAM:\n\t\t \tbreak;\n\t\t case SPIKEPOINT:\n\t\t \tbreak;\n\t\t case OLIVE:\n\t\t \tbreak;\n\t\t case BROWN:\n\t\t \tbreak;\n\t\t\tdefault:\n\t\t\t\tif (_isenhanced) {\n\t\t\t\t\tif (useEnergy(Utils.DARKGRAY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t // Get energy depending on segment length\n\t\t\t\t\t takenEnergy = Utils.between((0.75 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t // The other organism will be shown in yellow\n\t\t\t\t\t org.setColor(Color.YELLOW);\n\t\t\t\t\t // This organism will be shown in spike\n\t\t\t\t\t\tsetColor(Utils.ColorSPIKE);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (useEnergy(Utils.SPIKE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t// Get energy depending on segment length\n\t\t\t\t\t\ttakenEnergy = Utils.between((5 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t// The other organism will be shown in dark lilac\n\t\t\t\t\t org.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t // This organism will be shown in spike\n\t\t\t\t\t\tsetColor(Utils.ColorSPIKE);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// energy interchange\n\t\t\torg._energy -= takenEnergy;\n\t\t\t_energy += takenEnergy;\n\t\t\tif (_isenhanced) {\n\t\t\t\tdouble CO2freed9 = takenEnergy * Utils.ORGANIC_SUBS_PRODUCED;\n\t\t\t\tuseEnergy(CO2freed9);\n\t\t\t} else {\n\t\t\t double CO2freed9 = takenEnergy;\n\t\t\t useEnergy(CO2freed9);\n\t\t\t}\n\t\t\torg._hasdodged =true;\n\t\t\tbreak;\n\t\tcase OCHRE:\n\t\t\t// Ochre segment: Push other organisms away\n\t\t\tswitch (getTypeColor(org._segColor[oseg])) {\n\t\t\tcase BROWN:\n\t\t \tbreak;\n\t\t\tcase OLIVE:\n\t\t\t\tif ((!org._isaplant) || (org._isenhanced)) {\n\t break;\n\t\t\t\t} else {\n\t\t\t\t\tif (Utils.random.nextInt(2)<1 && useEnergy(Utils.OCHRE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\tdx=0;\n\t\t\t\t\t\tdy=0;\n\t\t\t\t\t\tdtheta=0;\n\t\t\t\t\t\torg.dx=Utils.between((org._dCenterX-_dCenterX)*_m[seg]*_m[seg]*_m[seg]/org._mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\torg.dy=Utils.between((org._dCenterY-_dCenterY)*_m[seg]*_m[seg]*_m[seg]/org._mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\t\torg.dtheta=0;\n\t\t\t\t\t\tif (_isenhanced) {\n\t\t\t\t\t\t\torg.useEnergy(Utils.between((FastMath.abs(org.dx) + FastMath.abs(org.dy)) * (Utils.ORGANIC_OBTAINED_ENERGY/14), 0, org._energy));\n\t\t\t\t\t\t\torg.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsetColor(Utils.ColorOCHRE);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase OCHRE:\n\t\t\t\tif (Utils.random.nextInt(2)<1 && useEnergy(Utils.OCHRE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\tdx=0;\n\t\t\t\t\tdy=0;\n\t\t\t\t\tdtheta=0;\n\t\t\t\t\torg.dx=Utils.between((org._dCenterX-_dCenterX)*_m[seg]*_m[seg]*_m[seg]/org._mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\torg.dy=Utils.between((org._dCenterY-_dCenterY)*_m[seg]*_m[seg]*_m[seg]/org._mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\torg.dtheta=0;\n\t\t\t\t\tif (_isenhanced) {\n\t\t\t\t\t\torg.useEnergy(Utils.between((FastMath.abs(org.dx) + FastMath.abs(org.dy)) * (Utils.ORGANIC_OBTAINED_ENERGY/140), 0, org._energy));\n\t\t\t\t\t\torg.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t}\n\t\t\t\t\tsetColor(Utils.ColorOCHRE);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tif (Utils.random.nextInt(2)<1 && useEnergy(Utils.OCHRE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\tdx=0;\n\t\t\t\t\tdy=0;\n\t\t\t\t\tdtheta=0;\n\t\t\t\t\torg.dx=Utils.between((org._dCenterX-_dCenterX)*_m[seg]*_m[seg]*_m[seg]/org._mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\torg.dy=Utils.between((org._dCenterY-_dCenterY)*_m[seg]*_m[seg]*_m[seg]/org._mass, -Utils.MAX_VEL, Utils.MAX_VEL);\n\t\t\t\t\torg.dtheta=0;\n\t\t\t\t\tif (_isenhanced) {\n\t\t\t\t\t\torg.useEnergy(Utils.between((FastMath.abs(org.dx) + FastMath.abs(org.dy)) * (Utils.ORGANIC_OBTAINED_ENERGY/14), 0, org._energy));\n\t\t\t\t\t\torg.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t}\n\t\t\t\t\tsetColor(Utils.ColorOCHRE);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t_hasdodged =true;\n\t\t\tbreak;\n\t\tcase WHITE:\n\t\t\t// White segment: try to infect the other organism\n\t\t\tswitch (getTypeColor(org._segColor[oseg])) {\n\t\t\tcase GREEN:\n\t\t\tcase FOREST:\n\t\t\tcase SPRING:\n\t\t\tcase LIME:\n\t\t\tcase C4:\n\t\t\tcase GRASS:\n\t\t\tcase TEAL:\n\t\t\tcase CYAN:\n\t\t\tcase YELLOW:\n\t\t\tcase AUBURN:\n\t\t\tcase BLOND:\n\t\t\tcase DARKGRAY:\n\t\t\tcase GOLD:\n\t\t\t\tif (org._infectedGeneticCode != _geneticCode) {\n\t\t\t\t\tif ((org._isaplant) || (org._isaconsumer)) {\n\t\t\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\t setColor(Color.WHITE);\n\t\t\t\t\t if (!org._isenhanced) {\n\t\t\t\t\t\t\t\torg._hasdodged =true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (_isaplant) {\n\t\t\t\t\t\t\t if (!_dodge) {\n\t\t\t\t\t\t\t \tif (useEnergy(Utils.WHITE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t\t\t\t org.setColor(Utils.ColorBLOND);\n\t\t\t\t\t\t\t\t setColor(Color.WHITE);\n\t\t\t\t\t\t\t \t}\n\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t \t_hasdodged =true;\n\t\t\t\t\t\t\t \tif (!org._isenhanced) {\n\t\t\t\t\t\t\t\t\t\torg._hasdodged =true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t } else {\n\t\t\t\t\t\t \tif (useEnergy(Utils.VIRUS_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t\t org.setColor(Utils.ColorLIGHTBROWN);\n\t\t\t\t\t\t setColor(Color.WHITE);\n\t\t\t\t\t\t }\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase JADE:\n\t\t\t\tif (org._infectedGeneticCode != _geneticCode) {\n\t\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t setColor(Color.WHITE);\n\t\t\t\t if (!org._isenhanced) {\n\t\t\t\t\t\t\torg._hasdodged =true;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (_isaplant) {\n\t\t\t\t\t\t if (!_dodge) {\n\t\t\t\t\t\t \tif (useEnergy(Utils.WHITE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t \t\torg._segColor[oseg] = Utils.ColorDARKJADE;\n\t\t\t\t\t\t\t\t setColor(Color.WHITE);\n\t\t\t\t\t\t \t}\n\t\t\t\t\t\t } else {\n\t\t\t\t\t\t \t_hasdodged =true;\n\t\t\t\t\t\t \tif (!org._isenhanced) {\n\t\t\t\t\t\t\t\t\torg._hasdodged =true;\n\t\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 \tif (useEnergy(Utils.VIRUS_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t \t\torg._segColor[oseg] = Utils.ColorDARKJADE;\n\t\t\t\t\t\t setColor(Color.WHITE);\n\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\tbreak;\n\t\t\tcase DARKJADE:\n\t\t\tcase POISONEDJADE:\n\t\t\t\tif (org._infectedGeneticCode != _geneticCode) {\n\t\t\t\t\tif ((_nChildren > 1) && (!_isaplant) && (!_isaconsumer)) {\n\t\t\t\t\t\tif (useEnergy(Utils.VIRUS_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t org.setColor(Utils.ColorLIGHTBROWN);\n\t\t\t\t\t setColor(Color.WHITE);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase BLUE:\n\t\t\t\tif (org._infectedGeneticCode != _geneticCode) {\n\t\t\t\t\tif ((org._isaplant) || (org._isaconsumer)) {\n\t\t\t\t if (org.useEnergy(Utils.BLUE_ENERGY_CONSUMPTION)) {\n\t\t\t\t \tif (org._isenhanced) {\n\t\t\t\t\t\t\t useEnergy(Utils.between((0.5 * FastMath.log10(org._m[oseg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, _energy));\n\t\t\t\t\t\t\t\tsetColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tsetColor(Color.WHITE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t org.setColor(Color.BLUE);\n\t\t\t\t } else {\n\t\t\t\t \tif (_isaplant) {\n\t\t\t\t \t\tif (!_dodge) {\n\t\t\t\t\t\t\t \tif (useEnergy(Utils.WHITE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t\t\t\t org.setColor(Utils.ColorBLOND);\n\t\t\t\t\t\t\t\t setColor(Color.WHITE);\n\t\t\t\t\t\t\t \t}\n\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t \t_hasdodged =true;\n\t\t\t\t\t\t\t \tif (!org._isenhanced) {\n\t\t\t\t\t\t\t\t\t\torg._hasdodged =true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t } else {\n\t\t\t\t\t\t \tif (useEnergy(Utils.VIRUS_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t\t org.setColor(Utils.ColorLIGHTBROWN);\n\t\t\t\t\t\t setColor(Color.WHITE);\n\t\t\t\t\t\t }\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase LIGHT_BLUE:\n\t\t\t\tif (org._infectedGeneticCode != _geneticCode) {\n\t\t\t\t\tif ((org._isaplant) || (org._isaconsumer)) {\n\t\t\t\t\t\tif (_isaplant) {\n\t\t\t\t\t\t\tif ((!_isenhanced) && (org.useEnergy(Utils.BLUE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t setColor(Color.WHITE);\n\t\t\t\t\t\t org.setColor(Utils.ColorLIGHT_BLUE);\n\t\t\t\t\t } else {\n\t\t\t\t\t \tif (!_dodge) {\n\t\t\t\t\t\t\t \tif (useEnergy(Utils.WHITE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t\t\t\t org.setColor(Utils.ColorBLOND);\n\t\t\t\t\t\t\t\t setColor(Color.WHITE);\n\t\t\t\t\t\t\t \t}\n\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t \t_hasdodged =true;\n\t\t\t\t\t\t\t \tif (!org._isenhanced) {\n\t\t\t\t\t\t\t\t\t\torg._hasdodged =true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t }\n\t\t\t\t\t }\n\t\t\t\t\t\t} else {\n\t\t\t\t\t \tif (useEnergy(Utils.VIRUS_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t org.setColor(Utils.ColorLIGHTBROWN);\n\t\t\t\t\t setColor(Color.WHITE);\n\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\tbreak;\n\t\t\tcase SKY:\n\t\t\t\tif (!_isfrozen) {\n\t\t\t\t\tif (org.useEnergy(Utils.SKY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\torg._segColor[oseg] = Utils.ColorDEEPSKY;\n\t\t\t\t\t\tsetColor(Color.WHITE);\n\t\t\t\t\t\torg.setColor(Utils.ColorDEEPSKY);\n\t\t\t } else {\n\t\t\t \tif (org._infectedGeneticCode != _geneticCode) {\n\t\t\t \t\tif ((org._isaplant) || (org._isaconsumer)) {\n\t\t\t\t\t\t\t if (_isaplant) {\n\t\t\t\t\t\t\t \tif (!_dodge) {\n\t\t\t\t\t\t\t\t \tif (useEnergy(Utils.WHITE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t\t\t\t\t org.setColor(Utils.ColorBLOND);\n\t\t\t\t\t\t\t\t\t setColor(Color.WHITE);\n\t\t\t\t\t\t\t\t \t}\n\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t \t_hasdodged =true;\n\t\t\t\t\t\t\t\t \tif (!org._isenhanced) {\n\t\t\t\t\t\t\t\t\t\t\torg._hasdodged =true;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t \tif (useEnergy(Utils.VIRUS_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t\t\t org.setColor(Utils.ColorLIGHTBROWN);\n\t\t\t\t\t\t\t setColor(Color.WHITE);\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase DEEPSKY:\n\t\t\t\tif (!_isfrozen) {\n\t\t\t\t\tsetColor(Color.WHITE);\n\t\t\t\t\torg.setColor(Utils.ColorDEEPSKY);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase OLIVE:\n\t\t\tcase DARKOLIVE:\n\t\t\t\tif (org._infectedGeneticCode != _geneticCode) {\n\t\t\t\t\tif ((org._isaplant) || (org._isaconsumer)) {\n\t\t\t\t\t if (_isaplant) {\n\t\t\t\t\t \tif (_isenhanced) {\n\t\t\t\t\t \t\tif (!_dodge) {\n\t\t\t\t\t\t\t \tif (useEnergy(Utils.WHITE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t\t\t\t org.setColor(Utils.ColorBLOND);\n\t\t\t\t\t\t\t\t setColor(Color.WHITE);\n\t\t\t\t\t\t\t \t}\n\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t \t_hasdodged =true;\n\t\t\t\t\t\t\t \tif (!org._isenhanced) {\n\t\t\t\t\t\t\t\t\t\torg._hasdodged =true;\n\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 } else {\n\t\t\t\t\t \tif (useEnergy(Utils.VIRUS_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t org.setColor(Utils.ColorLIGHTBROWN);\n\t\t\t\t\t setColor(Color.WHITE);\n\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\tbreak;\n\t\t\tcase WHITE:\n\t\t\tcase PLAGUE:\n\t\t\t\tif (org._infectedGeneticCode != _geneticCode) {\n\t\t\t\t\tif ((org._isaplant) || (org._isaconsumer)) {\n\t\t\t\t\t\tif (_isaplant) {\n\t\t\t\t\t\t\tif (!_dodge) {\n\t\t\t\t\t\t \tif (useEnergy(Utils.WHITE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t\t\t org.setColor(Utils.ColorBLOND);\n\t\t\t\t\t\t\t setColor(Color.WHITE);\n\t\t\t\t\t\t \t}\n\t\t\t\t\t\t } else {\n\t\t\t\t\t\t \t_hasdodged =true;\n\t\t\t\t\t\t \tif (!org._isenhanced) {\n\t\t\t\t\t\t\t\t\torg._hasdodged =true;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t }\n\t\t\t\t\t\t} else {\n\t\t\t\t\t \tif (useEnergy(Utils.VIRUS_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t org.setColor(Utils.ColorLIGHTBROWN);\n\t\t\t\t\t setColor(Color.WHITE);\n\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\tif ((org._indigo > 0) && (!org._isaplant) && (!org._isaconsumer)) {\n\t\t\t\t\tif (_isaplant) {\n\t\t\t\t\t\tif (org.useEnergy(Utils.INDIGO_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\tif (useEnergy(Utils.WHITE_ENERGY_CONSUMPTION)) {\n\t\t\t\t \t org.setColor(Utils.ColorINDIGO);\n\t\t\t\t \t setColor(Color.WHITE);\n\t\t\t\t\t\t }\n\t\t\t\t\t\t}\n\t\t\t\t } else {\n\t\t\t\t \tif ((_indigo == 0) || (_isaconsumer)) {\n\t\t\t\t \t\tif (org.useEnergy(Utils.INDIGO_ENERGY_CONSUMPTION)) {\n\t\t\t\t \t\t\tif (useEnergy(Utils.VIRUS_ENERGY_CONSUMPTION)) {\n\t\t\t\t \t\t\t\torg.setColor(Utils.ColorINDIGO);\n\t\t\t\t\t \t setColor(Color.WHITE);\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\t}\n\t\t\t\tbreak;\n\t\t\tcase SILVER:\n\t\t\t\tif ((org._infectedGeneticCode != _geneticCode) && (_nTotalInfected >= org._nTotalInfected)) {\n\t\t\t\t\tif ((org._isaplant) || (org._isaconsumer)) {\n\t\t\t\t\t if (_isaplant) {\n\t\t\t\t\t \tif (!_dodge) {\n\t\t\t\t\t\t \tif (useEnergy(Utils.WHITE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t\t\t org.setColor(Utils.ColorBLOND);\n\t\t\t\t\t\t\t setColor(Color.WHITE);\n\t\t\t\t\t\t \t}\n\t\t\t\t\t\t } else {\n\t\t\t\t\t\t \t_hasdodged =true;\n\t\t\t\t\t\t \tif (!org._isenhanced) {\n\t\t\t\t\t\t\t\t\torg._hasdodged =true;\n\t\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 \tif (useEnergy(Utils.VIRUS_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t org.setColor(Utils.ColorLIGHTBROWN);\n\t\t\t\t\t setColor(Color.WHITE);\n\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\tif ((org._indigo > 0) && (!org._isaplant) && (!org._isaconsumer)) {\n\t\t\t\t\tif (_isaplant) {\n\t\t\t\t\t\tif (org.useEnergy(Utils.INDIGO_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\tif (useEnergy(Utils.WHITE_ENERGY_CONSUMPTION)) {\n\t\t\t\t \t org.setColor(Utils.ColorINDIGO);\n\t\t\t\t \t setColor(Color.WHITE);\n\t\t\t\t\t\t }\n\t\t\t\t\t\t}\n\t\t\t\t } else {\n\t\t\t\t \tif ((_indigo == 0) || (_isaconsumer)) {\n\t\t\t\t \t\tif (org.useEnergy(Utils.INDIGO_ENERGY_CONSUMPTION)) {\n\t\t\t\t \t\t\tif (useEnergy(Utils.VIRUS_ENERGY_CONSUMPTION)) {\n\t\t\t\t \t\t\t\torg.setColor(Utils.ColorINDIGO);\n\t\t\t\t\t \t setColor(Color.WHITE);\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\t}\n\t\t\t\tbreak;\n\t\t\tcase INDIGO:\n\t\t\t\tif (_isaplant) {\n\t\t\t\t\tif (org.useEnergy(Utils.INDIGO_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\tif (useEnergy(Utils.WHITE_ENERGY_CONSUMPTION)) {\n\t\t\t \t org.setColor(Utils.ColorINDIGO);\n\t\t\t \t setColor(Color.WHITE);\n\t\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t } else {\n\t\t\t \tif ((_indigo == 0) || (_isaconsumer)) {\n\t\t\t \t\tif (org.useEnergy(Utils.INDIGO_ENERGY_CONSUMPTION)) {\n\t\t\t \t\t\tif (useEnergy(Utils.VIRUS_ENERGY_CONSUMPTION)) {\n\t\t\t \t\t\t\torg.setColor(Utils.ColorINDIGO);\n\t\t\t\t \t setColor(Color.WHITE);\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\t\tbreak;\n\t\t\tcase CORAL:\n\t\t\t\tif (org._infectedGeneticCode != _geneticCode) {\n\t\t\t\t\tif ((org._isaplant) || (org._isaconsumer)) {\n\t\t\t\t\t if (_isaplant) {\n\t\t\t\t\t \tif (!_dodge) {\n\t\t\t\t\t \t\tif (useEnergy(Utils.WHITE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t\t\t org.setColor(Utils.ColorBLOND);\n\t\t\t\t\t\t\t setColor(Color.WHITE);\n\t\t\t\t\t\t \t}\n\t\t\t\t\t\t } else {\n\t\t\t\t\t\t \t_hasdodged =true;\n\t\t\t\t\t\t \tif (!org._isenhanced) {\n\t\t\t\t\t\t\t\t\torg._hasdodged =true;\n\t\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 \tif (useEnergy(Utils.VIRUS_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t\t if ((!org._isenhanced) && (!_isaconsumer) && (org.useEnergy(Utils.CORAL_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t \torg.setColor(Utils.ColorCORAL);\n\t\t\t\t\t\t\t\t org._energy += _energy;\n\t\t\t\t\t\t\t\t\t_energy -= _energy;\n\t\t\t\t\t\t } else {\n\t\t\t\t\t\t \torg.setColor(Utils.ColorLIGHTBROWN);\n\t\t\t\t\t\t }\n\t\t\t\t\t setColor(Color.WHITE);\n\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\tbreak;\n\t\t\tcase MAGENTA:\n\t\t\tcase ROSE:\n\t\t\t\tif ((org._infectedGeneticCode != _geneticCode) && (!_geneticCode.getAltruist())) {\n\t\t\t\t\tif ((org._isaplant) || (org._isaconsumer)) {\n\t\t\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\t setColor(Color.WHITE);\n\t\t\t\t\t if (!org._isenhanced) {\n\t\t\t\t\t\t\t\torg._hasdodged =true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (_isaplant) {\n\t\t\t\t\t\t\t\tif (!_dodge) {\n\t\t\t\t\t\t\t \tif (useEnergy(Utils.WHITE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t\t\t\t org.setColor(Utils.ColorBLOND);\n\t\t\t\t\t\t\t\t setColor(Color.WHITE);\n\t\t\t\t\t\t\t \t}\n\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t \t_hasdodged =true;\n\t\t\t\t\t\t\t \tif (!org._isenhanced) {\n\t\t\t\t\t\t\t\t\t\torg._hasdodged =true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t } else {\n\t\t\t\t\t\t \tif (useEnergy(Utils.VIRUS_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t\t org.setColor(Utils.ColorLIGHTBROWN);\n\t\t\t\t\t\t setColor(Color.WHITE);\n\t\t\t\t\t\t }\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase PINK:\n\t\t\t\tif (org._infectedGeneticCode != _geneticCode) {\n\t\t\t\t\tif (org._geneticCode.getModifiespink()) {\n\t\t\t\t\t if (_isaplant) {\n\t\t\t\t\t \tif (!_dodge) {\n\t\t\t\t\t\t \tif (useEnergy(Utils.WHITE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t\t\t org.setColor(Utils.ColorBLOND);\n\t\t\t\t\t\t\t setColor(Color.WHITE);\n\t\t\t\t\t\t \t}\n\t\t\t\t\t\t } else {\n\t\t\t\t\t\t \t_hasdodged =true;\n\t\t\t\t\t\t \tif (!org._isenhanced) {\n\t\t\t\t\t\t\t\t\torg._hasdodged =true;\n\t\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 \tif (useEnergy(Utils.VIRUS_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t org.setColor(Utils.ColorLIGHTBROWN);\n\t\t\t\t\t setColor(Color.WHITE);\n\t\t\t\t\t }\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ((!org._isantiviral) && (_isenhanced) && (!_isaplant) && (!_isaconsumer)) {\n\t\t\t\t\t\t\tif (useEnergy(Utils.VIRUS_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t org.setColor(Utils.ColorLIGHTBROWN);\n\t\t\t\t\t setColor(Color.WHITE);\n\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\tbreak;\t\t\t\t\n\t\t\tcase CREAM:\n\t\t\t\tif (org._infectedGeneticCode != _geneticCode) {\n\t\t\t\t\tif (org._isaplant) {\n\t\t\t\t\t if (_isaplant) {\n\t\t\t\t\t \tif (_isenhanced) {\n\t\t\t\t\t \t\tif (!_dodge) {\n\t\t\t\t\t\t\t \tif (useEnergy(Utils.WHITE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t\t\t\t org.setColor(Utils.ColorBLOND);\n\t\t\t\t\t\t\t\t setColor(Color.WHITE);\n\t\t\t\t\t\t\t \t}\n\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t \t_hasdodged =true;\n\t\t\t\t\t\t\t \tif (!org._isenhanced) {\n\t\t\t\t\t\t\t\t\t\torg._hasdodged =true;\n\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 } else {\n\t\t\t\t\t \tif (useEnergy(Utils.VIRUS_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t org.setColor(Utils.ColorLIGHTBROWN);\n\t\t\t\t\t setColor(Color.WHITE);\n\t\t\t\t\t }\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ((!org._isantiviral) && (_isenhanced) && (!_isaplant) && (!_isaconsumer)) {\n\t\t\t\t\t\t\tif (useEnergy(Utils.VIRUS_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t org.setColor(Utils.ColorLIGHTBROWN);\n\t\t\t\t\t setColor(Color.WHITE);\n\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\tbreak;\n\t\t\tcase SPIKEPOINT:\n\t\t\t\tif (org._infectedGeneticCode != _geneticCode) {\n\t\t\t\t\tif (org._isenhanced) {\n\t\t\t\t\t\tif ((!org._isantiviral) && (_isenhanced) && (!_isaplant) && (!_isaconsumer)) {\n\t\t\t\t\t\t\tif (useEnergy(Utils.VIRUS_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t org.setColor(Utils.ColorLIGHTBROWN);\n\t\t\t\t\t setColor(Color.WHITE);\n\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\tbreak;\n\t\t\tcase MINT:\n\t\t\t\tbreak;\n\t\t\tcase BARK:\n\t\t\t\torg._segColor[oseg] = Utils.ColorOLDBARK;\n\t\t\t\tbreak;\n\t\t\tcase OLDBARK:\n\t\t\t\tbreak;\n\t\t\tcase OCHRE:\n\t\t\t\tbreak;\n\t\t\tcase BROWN:\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tif (org._infectedGeneticCode != _geneticCode) {\n\t\t\t\t\tif ((org._isaplant) || (org._isaconsumer)) {\n\t\t\t\t\t if (_isaplant) {\n\t\t\t\t\t \tif (!_dodge) {\n\t\t\t\t\t\t \tif (useEnergy(Utils.WHITE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t\t\t org.setColor(Utils.ColorBLOND);\n\t\t\t\t\t\t\t setColor(Color.WHITE);\n\t\t\t\t\t\t \t}\n\t\t\t\t\t\t } else {\n\t\t\t\t\t\t \t_hasdodged =true;\n\t\t\t\t\t\t \tif (!org._isenhanced) {\n\t\t\t\t\t\t\t\t\torg._hasdodged =true;\n\t\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 \tif (useEnergy(Utils.VIRUS_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t org.setColor(Utils.ColorLIGHTBROWN);\n\t\t\t\t\t setColor(Color.WHITE);\n\t\t\t\t\t }\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\tcase PLAGUE:\n\t\t\t// Force reproduction of infected victims\n\t\t\tswitch (getTypeColor(org._segColor[oseg])) {\n\t\t\tcase GREEN:\n\t\t\tcase FOREST:\n\t\t\tcase SPRING:\n\t\t\tcase LIME:\n\t\t\tcase C4:\n\t\t\tcase GRASS:\n\t\t\t\tif ((org._infectedGeneticCode == _geneticCode) && (!org._isantiviral)) {\n\t\t\t\t\tif (!_geneticCode.getPlague()) {\n\t\t\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\t\t\tsetColor(Utils.ColorPLAGUE);\n\t\t\t\t\t\t\torg._hasdodged =true;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (_isaplant) {\n\t\t\t\t\t\t\t\tif (useEnergy(Utils.PLAGUE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t org.reproduceVirus();\n\t\t\t\t\t\t\t org.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t\t\t setColor(Utils.ColorPLAGUE);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (useEnergy(Utils.SCOURGE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org.reproduceVirus();\n\t\t\t\t\t\t org.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t\t setColor(Utils.ColorPLAGUE);\n\t\t\t\t\t }\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase JADE:\n\t\t\t\tif ((org._infectedGeneticCode == _geneticCode) && (!org._isantiviral)) {\n\t\t\t\t\tif (!_geneticCode.getPlague()) {\n\t\t\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\t\t\tsetColor(Utils.ColorPLAGUE);\n\t\t\t\t\t\t\torg._hasdodged =true;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (_isaplant) {\n\t\t\t\t\t\t\t\tif (useEnergy(Utils.PLAGUE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\t\torg._segColor[oseg] = Utils.ColorDARKJADE;\n\t\t\t\t\t\t\t\t setColor(Utils.ColorPLAGUE);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (useEnergy(Utils.SCOURGE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\t\torg._segColor[oseg] = Utils.ColorDARKJADE;\n\t\t\t\t\t\t\t\t setColor(Utils.ColorPLAGUE);\n\t\t\t\t\t }\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase DARKJADE:\n\t\t\tcase POISONEDJADE:\n\t\t\t\tif ((org._infectedGeneticCode == _geneticCode) && (!org._isantiviral)) {\n\t\t\t\t\tif (!_geneticCode.getPlague()) {\n\t\t\t\t\t\tif ((_nChildren > 1) && (!_isaplant) && (!_isaconsumer)) {\n\t\t\t\t\t\t\tif (useEnergy(Utils.SCOURGE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t org.reproduceVirus();\n\t\t\t\t\t org.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t setColor(Utils.ColorPLAGUE);\n\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\tbreak;\n\t\t\tcase BLUE:\n\t\t\t\tif ((org._infectedGeneticCode == _geneticCode) && (!org._isantiviral)) {\n\t\t\t\t\tif ((!_geneticCode.getPlague()) && (org._isaplant)) {\n\t\t\t\t if (org.useEnergy(Utils.BLUE_ENERGY_CONSUMPTION)) {\n\t\t\t\t \tif (org._isenhanced) {\n\t\t\t\t\t\t\t useEnergy(Utils.between((0.5 * FastMath.log10(org._m[oseg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, _energy));\n\t\t\t\t\t\t\t\tsetColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tsetColor(Utils.ColorPLAGUE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t org.setColor(Color.BLUE);\n\t\t\t\t } else {\n\t\t\t\t \tif (_isaplant) {\n\t\t\t\t\t\t\t\tif (useEnergy(Utils.PLAGUE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t org.reproduceVirus();\n\t\t\t\t\t\t\t org.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t\t\t setColor(Utils.ColorPLAGUE);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (useEnergy(Utils.SCOURGE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org.reproduceVirus();\n\t\t\t\t\t\t org.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t\t setColor(Utils.ColorPLAGUE);\n\t\t\t\t\t }\n\t\t\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase OCHRE:\n\t\t\tcase BARK:\n\t\t\tcase OLDBARK:\n\t\t\tcase LIGHT_BLUE:\n\t\t\t\tif ((org._infectedGeneticCode == _geneticCode) && (!org._isantiviral)) {\n\t\t\t\t\tif ((!_geneticCode.getPlague()) && (org._isaplant)) {\n\t\t\t\t\t\tif (_isaplant) {\n\t\t\t\t\t\t\tif (useEnergy(Utils.PLAGUE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org.reproduceVirus();\n\t\t\t\t\t\t org.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t\t setColor(Utils.ColorPLAGUE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (useEnergy(Utils.SCOURGE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t org.reproduceVirus();\n\t\t\t\t\t org.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t setColor(Utils.ColorPLAGUE);\n\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\tbreak;\n\t\t\tcase SKY:\n\t\t\tcase DEEPSKY:\n\t\t\tcase OLIVE:\n\t\t\tcase DARKOLIVE:\n\t\t\t\tif ((org._infectedGeneticCode == _geneticCode) && (_isenhanced) && (!org._isantiviral)) {\n\t\t\t\t\tif ((!_geneticCode.getPlague()) && (org._isaplant)) {\n\t\t\t\t\t\tif (_isaplant) {\n\t\t\t\t\t\t\tif (useEnergy(Utils.PLAGUE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org.reproduceVirus();\n\t\t\t\t\t\t org.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t\t setColor(Utils.ColorPLAGUE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (useEnergy(Utils.SCOURGE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t org.reproduceVirus();\n\t\t\t\t\t org.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t setColor(Utils.ColorPLAGUE);\n\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\tbreak;\n\t\t\tcase MAROON:\n\t\t\tcase ORANGE:\n\t\t\tcase FIRE:\n\t\t\t\tif ((org._infectedGeneticCode == _geneticCode) && ((!org._isantiviral) || (org._indigo == 0))) {\n\t\t\t\t\tif (_geneticCode.getPlague()) {\n\t\t\t\t\t\tif (_isaplant) {\n\t\t\t\t\t\t\tif (useEnergy(Utils.PLAGUE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org.reproduceVirus();\n\t\t\t\t\t\t org.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t\t setColor(Utils.ColorPLAGUE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (useEnergy(Utils.SCOURGE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t org.reproduceVirus();\n\t\t\t\t\t org.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t setColor(Utils.ColorPLAGUE);\n\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\tbreak;\n\t\t\tcase RED:\n\t\t\tcase CREAM:\n\t\t\t\tif ((org._infectedGeneticCode == _geneticCode) && (_isenhanced) && ((!org._isantiviral) || (org._indigo == 0))) {\n\t\t\t\t\tif (_geneticCode.getPlague()) {\n\t\t\t\t\t\tif (_isaplant) {\n\t\t\t\t\t\t\tif (useEnergy(Utils.PLAGUE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org.reproduceVirus();\n\t\t\t\t\t\t org.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t\t setColor(Utils.ColorPLAGUE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (useEnergy(Utils.SCOURGE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t org.reproduceVirus();\n\t\t\t\t\t org.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t setColor(Utils.ColorPLAGUE);\n\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\tbreak;\n\t\t\tcase PINK:\n\t\t\t\tif ((org._infectedGeneticCode == _geneticCode) && ((org._geneticCode.getModifiespink()) || (_isenhanced)) && ((!org._isantiviral) || (org._indigo == 0))) {\n\t\t\t\t\tif (_geneticCode.getPlague()) {\n\t\t\t\t\t\tif (_isaplant) {\n\t\t\t\t\t\t\tif (useEnergy(Utils.PLAGUE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org.reproduceVirus();\n\t\t\t\t\t\t org.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t\t setColor(Utils.ColorPLAGUE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (useEnergy(Utils.SCOURGE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t org.reproduceVirus();\n\t\t\t\t\t org.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t setColor(Utils.ColorPLAGUE);\n\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\tbreak;\n\t\t\tcase LIGHTBROWN:\n\t\t\tcase GREENBROWN:\n\t\t\tcase DARKFIRE:\n\t\t\tcase BROKEN:\n\t\t\tcase ICE:\n\t\t\tcase DEADBARK:\n\t\t\t\tif ((org._infectedGeneticCode == _geneticCode) && ((!org._isantiviral) || (org._indigo == 0))) {\n\t\t\t\t\tif (((_geneticCode.getPlague()) && (org._isaconsumer)) || ((!_geneticCode.getPlague()) && (org._isaplant))) {\n\t\t\t\t\t\tif (_isaplant) {\n\t\t\t\t\t\t\tif (useEnergy(Utils.PLAGUE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org.reproduceVirus();\n\t\t\t\t\t\t org.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t\t setColor(Utils.ColorPLAGUE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (useEnergy(Utils.SCOURGE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t org.reproduceVirus();\n\t\t\t\t\t org.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t setColor(Utils.ColorPLAGUE);\n\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\tbreak;\n\t\t\tcase WHITE:\n\t\t\tcase PLAGUE:\n\t\t\t\tif ((org._infectedGeneticCode == _geneticCode) && ((!org._isantiviral) || (org._indigo == 0))) {\n\t\t\t\t\tif (((_geneticCode.getPlague()) && (org._isaconsumer)) || ((!_geneticCode.getPlague()) && (org._isaplant))) {\n\t\t\t\t\t\tif (_isaplant) {\n\t\t\t\t\t\t\tif (useEnergy(Utils.PLAGUE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org.reproduceVirus();\n\t\t\t\t\t\t org.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t\t setColor(Utils.ColorPLAGUE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (useEnergy(Utils.SCOURGE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t org.reproduceVirus();\n\t\t\t\t\t org.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t setColor(Utils.ColorPLAGUE);\n\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\tif ((org._indigo > 0) && (!org._isaplant) && (!org._isaconsumer)) {\n\t\t\t\t\tif (_isaplant) {\n\t\t\t\t\t\tif (org.useEnergy(Utils.INDIGO_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\tif (useEnergy(Utils.PLAGUE_ENERGY_CONSUMPTION)) {\n\t\t\t\t \t org.setColor(Utils.ColorINDIGO);\n\t\t\t\t \t setColor(Utils.ColorPLAGUE);\n\t\t\t\t\t\t }\n\t\t\t\t\t\t}\n\t\t\t\t } else {\n\t\t\t\t \tif ((_indigo == 0) || (_isaconsumer)) {\n\t\t\t\t \t\tif (org.useEnergy(Utils.INDIGO_ENERGY_CONSUMPTION)) {\n\t\t\t\t \t\t\tif (useEnergy(Utils.SCOURGE_ENERGY_CONSUMPTION)) {\n\t\t\t\t \t\t\t\torg.setColor(Utils.ColorINDIGO);\n\t\t\t\t \t\t\t\tsetColor(Utils.ColorPLAGUE);\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\t}\n\t\t\t\tbreak;\n\t\t\tcase SILVER:\n\t\t\t\tif ((org._infectedGeneticCode == _geneticCode) && (_nTotalInfected >= org._nTotalInfected) && ((!org._isantiviral) || (org._indigo == 0))) {\n\t\t\t\t\tif (((_geneticCode.getPlague()) && (org._isaconsumer)) || ((!_geneticCode.getPlague()) && (org._isaplant))) {\n\t\t\t\t\t\tif (_isaplant) {\n\t\t\t\t\t\t\tif (useEnergy(Utils.PLAGUE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org.reproduceVirus();\n\t\t\t\t\t\t org.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t\t setColor(Utils.ColorPLAGUE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (useEnergy(Utils.SCOURGE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t org.reproduceVirus();\n\t\t\t\t\t org.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t setColor(Utils.ColorPLAGUE);\n\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\tif ((org._indigo > 0) && (!org._isaplant) && (!org._isaconsumer)) {\n\t\t\t\t\tif (_isaplant) {\n\t\t\t\t\t\tif (org.useEnergy(Utils.INDIGO_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\tif (useEnergy(Utils.PLAGUE_ENERGY_CONSUMPTION)) {\n\t\t\t\t \t org.setColor(Utils.ColorINDIGO);\n\t\t\t\t \t setColor(Utils.ColorPLAGUE);\n\t\t\t\t\t\t }\n\t\t\t\t\t\t}\n\t\t\t\t } else {\n\t\t\t\t \tif ((_indigo == 0) || (_isaconsumer)) {\n\t\t\t\t \t\tif (org.useEnergy(Utils.INDIGO_ENERGY_CONSUMPTION)) {\n\t\t\t\t \t\t\tif (useEnergy(Utils.SCOURGE_ENERGY_CONSUMPTION)) {\n\t\t\t\t \t\t\t\torg.setColor(Utils.ColorINDIGO);\n\t\t\t\t \t\t\t\tsetColor(Utils.ColorPLAGUE);\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\t}\n\t\t\t\tbreak;\n\t\t\tcase INDIGO:\n\t\t\t\tif (_isaplant) {\n\t\t\t\t\tif (org.useEnergy(Utils.INDIGO_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\tif (useEnergy(Utils.PLAGUE_ENERGY_CONSUMPTION)) {\n\t\t\t \t org.setColor(Utils.ColorINDIGO);\n\t\t\t \t setColor(Utils.ColorPLAGUE);\n\t\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t } else {\n\t\t\t \tif ((_indigo == 0) || (_isaconsumer)) {\n\t\t\t \t\tif (org.useEnergy(Utils.INDIGO_ENERGY_CONSUMPTION)) {\n\t\t\t \t\t\tif (useEnergy(Utils.SCOURGE_ENERGY_CONSUMPTION)) {\n\t\t\t \t\t\t\torg.setColor(Utils.ColorINDIGO);\n\t\t\t \t\t\t\tsetColor(Utils.ColorPLAGUE);\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\t\tbreak;\n\t\t\tcase CYAN:\n\t\t\tcase TEAL:\n\t\t\tcase YELLOW:\n\t\t\tcase AUBURN:\n\t\t\tcase BLOND:\n\t\t\tcase DARKGRAY:\n\t\t\tcase GOLD:\n\t\t\t\tif ((org._infectedGeneticCode == _geneticCode) && ((!org._isantiviral) || (org._indigo == 0))) {\n\t\t\t\t\tif (((_geneticCode.getPlague()) && (org._isaconsumer)) || ((!_geneticCode.getPlague()) && (org._isaplant))) {\n\t\t\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\t\t\tsetColor(Utils.ColorPLAGUE);\n\t\t\t\t\t\t\torg._hasdodged =true;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (_isaplant) {\n\t\t\t\t\t\t\t\tif (useEnergy(Utils.PLAGUE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t org.reproduceVirus();\n\t\t\t\t\t\t\t org.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t\t\t setColor(Utils.ColorPLAGUE);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (useEnergy(Utils.SCOURGE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org.reproduceVirus();\n\t\t\t\t\t\t org.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t\t setColor(Utils.ColorPLAGUE);\n\t\t\t\t\t }\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase MAGENTA:\n\t\t\tcase ROSE:\n\t\t\t\tif ((org._infectedGeneticCode == _geneticCode) && (!_geneticCode.getAltruist()) && ((!org._isantiviral) || (org._indigo == 0))) {\n\t\t\t\t\tif (((_geneticCode.getPlague()) && (org._isaconsumer)) || ((!_geneticCode.getPlague()) && (org._isaplant))) {\n\t\t\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\t\t\tsetColor(Utils.ColorPLAGUE);\n\t\t\t\t\t\t\torg._hasdodged =true;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (_isaplant) {\n\t\t\t\t\t\t\t\tif (useEnergy(Utils.PLAGUE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t org.reproduceVirus();\n\t\t\t\t\t\t\t org.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t\t\t setColor(Utils.ColorPLAGUE);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (useEnergy(Utils.SCOURGE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org.reproduceVirus();\n\t\t\t\t\t\t org.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t\t setColor(Utils.ColorPLAGUE);\n\t\t\t\t\t }\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\t\t\t\t\n\t\t\tcase MINT:\n\t\t\t\tbreak;\n\t\t\tcase SPIKEPOINT:\n\t\t\t\tbreak;\n\t\t\tcase BROWN:\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tif ((org._infectedGeneticCode == _geneticCode) && (!org._isantiviral)) {\n\t\t\t\t\tif (((_geneticCode.getPlague()) && (org._isaconsumer)) || ((!_geneticCode.getPlague()) && (org._isaplant))) {\n\t\t\t\t\t\tif (_isaplant) {\n\t\t\t\t\t\t\tif (useEnergy(Utils.PLAGUE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org.reproduceVirus();\n\t\t\t\t\t\t org.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t\t setColor(Utils.ColorPLAGUE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (useEnergy(Utils.SCOURGE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t org.reproduceVirus();\n\t\t\t\t\t org.setColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t setColor(Utils.ColorPLAGUE);\n\t\t\t\t }\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\tcase SILVER:\n\t\t\t// Silver segment: infects all other organism, if it has more infections , duels with other absorbing segments\n\t\t\tswitch (getTypeColor(org._segColor[oseg])) {\n\t\t\tcase GREEN:\n\t\t\tcase FOREST:\n\t\t\tcase SPRING:\n\t\t\tcase LIME:\n\t\t\tcase C4:\n\t\t\tcase TEAL:\n\t\t\tcase CYAN:\n\t\t\tcase YELLOW:\n\t\t\tcase AUBURN:\n\t\t\tcase BLOND:\n\t\t\tcase DARKGRAY:\n\t\t\tcase GOLD:\n\t\t\t\tif ((org._infectedGeneticCode != _geneticCode) && (org._nTotalInfected < _nTotalInfected)) {\n\t\t\t\t\tif ((org._isaplant) || (org._isaconsumer)) {\n\t\t\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\t\t\tsetColor(Color.LIGHT_GRAY);\n\t\t\t\t\t\t\torg._hasdodged =true;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif ((!_dodge) || (!_isaplant)) {\n\t\t\t\t\t\t\t\tif (useEnergy(Utils.SILVER_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t\t\t org.setColor(Utils.ColorBLOND);\n\t\t\t\t\t\t\t setColor(Color.LIGHT_GRAY);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t \t_hasdodged =true;\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\torg._hasdodged =true;\n\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\tif ((_nTotalKills > 0) || (_isenhanced)) {\n\t\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\t setColor(Utils.ColorGOLD);\n\t\t\t\t\t} else {\n\t\t\t\t\t if (useEnergy(Utils.EXPERIENCE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t// Get energy depending on segment length and relation between kills of both organisms\n\t\t\t\t\t\t\ttakenEnergy = Utils.between(((_nTotalKills+18)/(org._nTotalKills+18))*(FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t\t// This organism will be shown in gold\n\t\t\t\t\t\t\tsetColor(Utils.ColorGOLD);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase JADE:\n\t\t\t\tif ((org._infectedGeneticCode != _geneticCode) && (org._nTotalInfected < _nTotalInfected)) {\n\t\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\t\tsetColor(Color.LIGHT_GRAY);\n\t\t\t\t\t\torg._hasdodged =true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ((!_dodge) || (!_isaplant)) {\n\t\t\t\t\t\t\tif (useEnergy(Utils.SILVER_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t \t\torg._segColor[oseg] = Utils.ColorDARKJADE;\n\t\t\t\t\t\t\t setColor(Color.LIGHT_GRAY);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t \t_hasdodged =true;\t\t\t\t\t\t \t\n\t\t\t\t\t\t\torg._hasdodged =true;\n\t\t\t\t\t } \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ((_nTotalKills > 0) || (_isenhanced)) {\n\t\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\t setColor(Utils.ColorGOLD);\n\t\t\t\t\t} else {\n\t\t\t\t\t if (useEnergy(Utils.EXPERIENCE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t// Get energy depending on segment length and relation between kills of both organisms\n\t\t\t\t\t\t\ttakenEnergy = Utils.between(((_nTotalKills+18)/(org._nTotalKills+18))*(FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t\t// This organism will be shown in gold\n\t\t\t\t\t\t\tsetColor(Utils.ColorGOLD);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase DARKJADE:\n\t\t\tcase POISONEDJADE:\n\t\t\t\tif ((org._infectedGeneticCode != _geneticCode) && (org._nTotalInfected < _nTotalInfected)) {\n\t\t\t\t\tif ((_nChildren > 1) && (!_isaplant) && (!_isaconsumer)) {\n\t\t\t\t\t\tif (useEnergy(Utils.SILVER_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t\t org.setColor(Utils.ColorBLOND);\n\t\t\t\t\t\t setColor(Color.LIGHT_GRAY);\n\t\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ((_nTotalKills > 0) || (_isenhanced)) {\n\t\t\t\t if (useEnergy(Utils.EXPERIENCE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t // Get energy depending on segment length and relation between kills of both organisms\n\t\t\t\t\t takenEnergy = Utils.between(((_nTotalKills+18)/(org._nTotalKills+18))*(FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t // The other organism will be shown in yellow\n\t\t\t\t\t org.setColor(Color.YELLOW);\n\t\t\t\t\t // This organism will be shown in gold\n\t\t\t\t\t setColor(Utils.ColorGOLD);\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase GRASS:\n\t\t\t\tif ((org._infectedGeneticCode != _geneticCode) && (org._nTotalInfected < _nTotalInfected)) {\n\t\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\t\tsetColor(Color.LIGHT_GRAY);\n\t\t\t\t\t\torg._hasdodged =true;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ((!_dodge) || (!_isaplant)) {\n\t\t\t\t\t\t\tif (useEnergy(Utils.SILVER_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t\t org.setColor(Utils.ColorBLOND);\n\t\t\t\t\t\t setColor(Color.LIGHT_GRAY);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t \t_hasdodged =true;\t\t\t\t\t\t \t\n\t\t\t\t\t\t\torg._hasdodged =true;\n\t\t\t\t\t } \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ((_nTotalKills > 0) || (_isenhanced)) {\n\t\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\t setColor(Utils.ColorGOLD);\n\t\t\t\t\t} else {\n\t\t\t\t\t if (useEnergy(Utils.EXPERIENCE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t// Get energy depending on segment length and relation between kills of both organisms\n\t\t\t\t\t\t\ttakenEnergy = Utils.between(((_nTotalKills+18)/(org._nTotalKills+18))*(0.5 * FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t// The other organism will be shown in green brown\n\t\t\t\t\t\t\torg.setColor(Utils.ColorGREENBROWN);\n\t\t\t\t\t\t\t// This organism will be shown in gold\n\t\t\t\t\t\t\tsetColor(Utils.ColorGOLD);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase RED:\n\t\t\t if ((org._infectedGeneticCode != _geneticCode) && (org._nTotalInfected < _nTotalInfected)) {\n\t\t\t \tif ((!_dodge) || (!_isaplant)) {\n\t\t\t\t\t\tif (useEnergy(Utils.SILVER_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t org.setColor(Utils.ColorBLOND);\n\t\t\t\t\t setColor(Color.LIGHT_GRAY);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t \t_hasdodged =true;\t\t\t\t\t\t \t\n\t\t\t\t\t\torg._hasdodged =true;\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t if ((_nTotalKills > 0) || (_isenhanced)) {\n\t\t\t\t if (useEnergy(Utils.EXPERIENCE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t // Get energy depending on segment length and relation between kills of both organisms\n\t\t\t\t\t takenEnergy = Utils.between(((_nTotalKills+18)/(org._nTotalKills+18))*(FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t // The other organism will be shown in red\n\t\t\t\t\t org.setColor(Color.RED);\n\t\t\t\t\t // This organism will be shown in gold\n\t\t\t\t\t setColor(Utils.ColorGOLD);\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FIRE:\n\t\t\t\tif ((org._infectedGeneticCode != _geneticCode) && (org._nTotalInfected < _nTotalInfected)) {\n\t\t\t\t\tif ((!_dodge) || (!_isaplant)) {\n\t\t\t\t\t\tif (useEnergy(Utils.SILVER_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t org.setColor(Utils.ColorBLOND);\n\t\t\t\t\t setColor(Color.LIGHT_GRAY);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t \t_hasdodged =true;\t\t\t\t\t\t \t\n\t\t\t\t\t\torg._hasdodged =true;\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\tif ((_nTotalKills > 0) || (_isenhanced)) {\n\t\t\t\t if (useEnergy(Utils.EXPERIENCE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t // Get energy depending on segment length and relation between kills of both organisms\n\t\t\t\t\t takenEnergy = Utils.between(((_nTotalKills+18)/(org._nTotalKills+18))*(FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t // The other organism will be shown in fire\n\t\t\t\t\t org.setColor(Utils.ColorFIRE);\n\t\t\t\t\t // This organism will be shown in gold\n\t\t\t\t\t setColor(Utils.ColorGOLD);\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase ORANGE:\n\t\t\t\tif ((org._infectedGeneticCode != _geneticCode) && (org._nTotalInfected < _nTotalInfected)) {\n\t\t\t\t\tif ((!_dodge) || (!_isaplant)) {\n\t\t\t\t\t\tif (useEnergy(Utils.SILVER_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t org.setColor(Utils.ColorBLOND);\n\t\t\t\t\t setColor(Color.LIGHT_GRAY);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t \t_hasdodged =true;\t\t\t\t\t\t \t\n\t\t\t\t\t\torg._hasdodged =true;\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\tif ((_nTotalKills > 0) || (_isenhanced)) {\n\t\t\t\t if (useEnergy(Utils.EXPERIENCE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t // Get energy depending on segment length and relation between kills of both organisms\n\t\t\t\t\t takenEnergy = Utils.between(((_nTotalKills+18)/(org._nTotalKills+18))*(FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t // The other organism will be shown in orange\n\t\t\t\t\t org.setColor(Color.ORANGE);\n\t\t\t\t\t // This organism will be shown in gold\n\t\t\t\t\t setColor(Utils.ColorGOLD);\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase PINK:\n\t\t\t\tif ((org._infectedGeneticCode != _geneticCode) && (org._nTotalInfected < _nTotalInfected)) {\n\t\t\t\t\tif (org._geneticCode.getModifiespink()) {\n\t\t\t\t\t\tif ((!_dodge) || (!_isaplant)) {\n\t\t\t\t\t\t\tif (useEnergy(Utils.SILVER_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t\t org.setColor(Utils.ColorBLOND);\n\t\t\t\t\t\t setColor(Color.LIGHT_GRAY);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t \t_hasdodged =true;\t\t\t\t\t\t \t\n\t\t\t\t\t\t\torg._hasdodged =true;\n\t\t\t\t\t }\n\t\t\t \t}\n\t\t\t\t}\n\t\t\t\tif ((_nTotalKills > 0) || (_isenhanced)) {\n\t\t\t\t\tif (_nTotalInfected > 0) {\n\t\t\t\t\t\tif (useEnergy(Utils.EXPERIENCE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t // Get energy depending on segment length and relation between kills of both organisms\n\t\t\t\t\t\t takenEnergy = Utils.between(((_nTotalKills+18)/(org._nTotalKills+18))*(FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t // The other organism will be shown in pink\n\t\t\t\t\t\t org.setColor(Color.PINK);\n\t\t\t\t\t\t // This organism will be shown in gold\n\t\t\t\t\t\t setColor(Utils.ColorGOLD);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (useEnergy(Utils.EXPERIENCE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t // Get energy depending on segment length and relation between kills of both organisms\n\t\t\t\t\t\t takenEnergy = Utils.between(((_nTotalKills+18)/(org._nTotalKills+18))*(FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t // The other organism will be shown in yellow\n\t\t\t\t\t\t org.setColor(Color.YELLOW);\n\t\t\t\t\t\t // This organism will be shown in gold\n\t\t\t\t\t\t setColor(Utils.ColorGOLD);\n\t\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase SILVER:\n\t\t\t\tif ((org._infectedGeneticCode != _geneticCode) && (org._nTotalInfected < _nTotalInfected)) {\n\t\t\t\t\tif ((org._isaplant) || (org._isaconsumer)) {\n\t\t\t\t\t\tif ((!_dodge) || (!_isaplant)) {\n\t\t\t\t\t\t\tif (useEnergy(Utils.SILVER_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t\t org.setColor(Utils.ColorBLOND);\n\t\t\t\t\t\t setColor(Color.LIGHT_GRAY);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t \t_hasdodged =true;\t\t\t\t\t\t \t\n\t\t\t\t\t\t\torg._hasdodged =true;\n\t\t\t\t\t }\n\t\t\t \t}\n\t\t\t\t}\n\t\t\t\tif ((org._indigo > 0) && (_nTotalInfected > 0) && (!org._isaplant) && (!org._isaconsumer)) {\n\t\t\t\t\tif ((_indigo == 0) || (_isaplant) || (_isaconsumer)) {\n\t\t\t \t\tif (org.useEnergy(Utils.INDIGO_ENERGY_CONSUMPTION)) {\n\t\t\t \t\t\tif (useEnergy(Utils.SILVER_ENERGY_CONSUMPTION)) {\n\t\t\t \t\t\t\torg.setColor(Utils.ColorINDIGO);\n\t\t\t \t\t\t\tsetColor(Color.LIGHT_GRAY);\n\t\t\t \t\t\t}\n\t\t\t \t\t}\n\t\t\t \t}\n\t\t\t\t}\n\t\t\t\tif ((_nTotalKills > 0) || (_isenhanced)) {\n\t\t\t\t\tif ((org._nTotalKills > 0) || (org._isenhanced)) {\n\t\t\t\t\t\tif (useEnergy(Utils.EXPERIENCE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t // Get energy depending on segment length and relation between kills of both organisms\n\t\t\t\t\t\t takenEnergy = Utils.between(((_nTotalKills+18)/(org._nTotalKills+18))*(FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t // The other organism will be shown in gold\n\t\t\t\t\t\t org.setColor(Utils.ColorGOLD);\n\t\t\t\t\t\t // This organism will be shown in gold\n\t\t\t\t\t\t setColor(Utils.ColorGOLD);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (useEnergy(Utils.EXPERIENCE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t // Get energy depending on segment length and relation between kills of both organisms\n\t\t\t\t\t\t takenEnergy = Utils.between(((_nTotalKills+18)/(org._nTotalKills+18))*(FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t // The other organism will be shown in yellow\n\t\t\t\t\t\t org.setColor(Color.YELLOW);\n\t\t\t\t\t\t // This organism will be shown in gold\n\t\t\t\t\t\t setColor(Utils.ColorGOLD);\n\t\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase WHITE:\n\t\t\tcase PLAGUE:\n\t\t\t\tif ((org._infectedGeneticCode != _geneticCode) && (org._nTotalInfected < _nTotalInfected)) {\n\t\t\t\t\tif ((org._isaplant) || (org._isaconsumer)) {\n\t\t\t\t\t\tif ((!_dodge) || (!_isaplant)) {\n\t\t\t\t\t\t\tif (useEnergy(Utils.SILVER_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t\t org.setColor(Utils.ColorBLOND);\n\t\t\t\t\t\t setColor(Color.LIGHT_GRAY);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t \t_hasdodged =true;\t\t\t\t\t\t \t\n\t\t\t\t\t\t\torg._hasdodged =true;\n\t\t\t\t\t }\n\t\t\t \t}\n\t\t\t\t}\n\t\t\t\tif ((org._indigo > 0) && (_nTotalInfected > 0) && (!org._isaplant) && (!org._isaconsumer)) {\n\t\t\t\t\tif ((_indigo == 0) || (_isaplant) || (_isaconsumer)) {\n\t\t\t \t\tif (org.useEnergy(Utils.INDIGO_ENERGY_CONSUMPTION)) {\n\t\t\t \t\t\tif (useEnergy(Utils.SILVER_ENERGY_CONSUMPTION)) {\n\t\t\t \t\t\t\torg.setColor(Utils.ColorINDIGO);\n\t\t\t \t\t\t\tsetColor(Color.LIGHT_GRAY);\n\t\t\t \t\t\t}\n\t\t\t \t\t}\n\t\t\t \t}\n\t\t\t\t}\n\t\t\t\tif ((_nTotalKills > 0) || (_isenhanced)) {\n\t\t\t\t\tif ((org._isaplant) || (org._isaconsumer) || (org._isplague) || (org._isenhanced) || (org._isfrozen)) {\n\t\t\t\t\t\tif (useEnergy(Utils.EXPERIENCE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t // Get energy depending on segment length and relation between kills of both organisms\n\t\t\t\t\t takenEnergy = Utils.between(((_nTotalKills+18)/(org._nTotalKills+18))*(FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t // The other organism will be shown in yellow\n\t\t\t\t\t org.setColor(Color.YELLOW);\n\t\t\t\t\t // This organism will be shown in gold\n\t\t\t\t\t setColor(Utils.ColorGOLD);\n\t\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase INDIGO:\n\t\t\t\tif (_nTotalInfected > 0) {\n\t\t\t\t\tif ((_indigo == 0) || (_isaplant) || (_isaconsumer)) {\n\t\t\t \t\tif (org.useEnergy(Utils.INDIGO_ENERGY_CONSUMPTION)) {\n\t\t\t \t\t\tif (useEnergy(Utils.SILVER_ENERGY_CONSUMPTION)) {\n\t\t\t \t\t\t\torg.setColor(Utils.ColorINDIGO);\n\t\t\t \t\t\t\tsetColor(Color.LIGHT_GRAY);\n\t\t\t \t\t\t}\n\t\t\t \t\t}\n\t\t\t \t}\n\t\t\t\t}\n\t\t\t\tif ((_nTotalKills > 0) || (_isenhanced)) {\n\t\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\t setColor(Utils.ColorGOLD);\n\t\t\t\t } else {\n\t\t\t\t\t if (useEnergy(Utils.EXPERIENCE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t// Get energy depending on segment length and relation between kills of both organisms\n\t\t\t\t\t\t\ttakenEnergy = Utils.between(((_nTotalKills+18)/(org._nTotalKills+18))*(FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t\t// This organism will be shown in gold\n\t\t\t\t\t\t\tsetColor(Utils.ColorGOLD);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase CORAL:\n\t\t\t\tif ((org._infectedGeneticCode != _geneticCode) && (org._nTotalInfected < _nTotalInfected)) {\n\t\t\t\t\tif ((org._isaplant) || (org._isaconsumer)) {\n\t\t\t\t\t\tif ((!_dodge) || (!_isaplant)) {\n\t\t\t\t\t\t\tif (useEnergy(Utils.SILVER_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t\t if ((!org._isenhanced) && (!_isaplant) && (!_isaconsumer) && (org.useEnergy(Utils.CORAL_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t \torg.setColor(Utils.ColorCORAL);\n\t\t\t\t\t\t\t\t org._energy += _energy;\n\t\t\t\t\t\t\t\t\t_energy -= _energy;\n\t\t\t\t\t\t } else {\n\t\t\t\t\t\t \torg.setColor(Utils.ColorBLOND);\n\t\t\t\t\t\t }\n\t\t\t\t\t\t setColor(Color.LIGHT_GRAY);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t \t_hasdodged =true;\t\t\t\t\t\t \t\n\t\t\t\t\t\t\torg._hasdodged =true;\n\t\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ((_nTotalKills > 0) || (_isenhanced)) {\n\t\t\t\t if (useEnergy(Utils.EXPERIENCE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t // Get energy depending on segment length and relation between kills of both organisms\n\t\t\t\t\t takenEnergy = Utils.between(((_nTotalKills+18)/(org._nTotalKills+18))*(FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t // The other organism will be shown in yellow\n\t\t\t\t\t org.setColor(Color.YELLOW);\n\t\t\t\t\t // This organism will be shown in gold\n\t\t\t\t\t setColor(Utils.ColorGOLD);\n\t\t\t\t }\n\t\t\t\t}\n\t\t break;\n\t\t\tcase ICE:\n\t\t\tcase DEADBARK:\n\t\t\t\tif ((org._infectedGeneticCode != _geneticCode) && (org._nTotalInfected < _nTotalInfected)) {\n\t\t\t\t\tif ((org._isaplant) || (org._isaconsumer)) {\n\t\t\t\t\t\tif ((!_dodge) || (!_isaplant)) {\n\t\t\t\t\t\t\tif (useEnergy(Utils.SILVER_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t\t org.setColor(Utils.ColorBLOND);\n\t\t\t\t\t\t setColor(Color.LIGHT_GRAY);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t \t_hasdodged =true;\t\t\t\t\t\t \t\n\t\t\t\t\t\t\torg._hasdodged =true;\n\t\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ((_nTotalKills > 0) || (_isenhanced)) {\n\t\t\t\t if ((_isafreezer) && (useEnergy(Utils.EXPERIENCE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t // Get energy depending on segment length and relation between kills of both organisms\n\t\t\t\t\t takenEnergy = Utils.between(((_nTotalKills+18)/(org._nTotalKills+18))*(FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t // The other organism will be shown in yellow\n\t\t\t\t\t org.setColor(Color.YELLOW);\n\t\t\t\t\t // This organism will be shown in gold\n\t\t\t\t\t setColor(Utils.ColorGOLD);\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase MINT:\n\t\t\tcase MAGENTA:\n\t\t\tcase ROSE:\n\t\t\t\tif (_geneticCode.getAltruist()) {\n break;\n\t\t\t\t} else {\n\t\t\t\t\tif ((org._infectedGeneticCode != _geneticCode) && (org._nTotalInfected < _nTotalInfected)) {\n\t\t\t\t\t\tif ((org._isaplant) || (org._isaconsumer)) {\n\t\t\t\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\t\t\t\tsetColor(Color.LIGHT_GRAY);\n\t\t\t\t\t\t\t\torg._hasdodged =true;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif ((!_dodge) || (!_isaplant)) {\n\t\t\t\t\t\t\t\t\tif (useEnergy(Utils.SILVER_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t\t\t\t org.setColor(Utils.ColorBLOND);\n\t\t\t\t\t\t\t\t setColor(Color.LIGHT_GRAY);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t \t_hasdodged =true;\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t\torg._hasdodged =true;\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif ((_nTotalKills > 0) || (_isenhanced)) {\n\t\t\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\t\t setColor(Utils.ColorGOLD);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t if (useEnergy(Utils.EXPERIENCE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\t// Get energy depending on segment length and relation between kills of both organisms\n\t\t\t\t\t\t\t\ttakenEnergy = Utils.between(((_nTotalKills+18)/(org._nTotalKills+18))*(FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t\t\t\t// The other organism will be shown in yellow\n\t\t\t\t\t\t\t\torg.setColor(Color.YELLOW);\n\t\t\t\t\t\t\t\t// This organism will be shown in gold\n\t\t\t\t\t\t\t\tsetColor(Utils.ColorGOLD);\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\tbreak;\n\t\t\tcase CREAM:\n\t\t\t\tif ((org._infectedGeneticCode != _geneticCode) && (org._nTotalInfected < _nTotalInfected)) {\n\t\t\t \tif (org._isaplant) {\n\t\t\t \t\tif ((!_dodge) || (!_isaplant)) {\n\t\t\t\t\t\t\tif (useEnergy(Utils.SILVER_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t\t org.setColor(Utils.ColorBLOND);\n\t\t\t\t\t\t setColor(Color.LIGHT_GRAY);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t \t_hasdodged =true;\t\t\t\t\t\t \t\n\t\t\t\t\t\t\torg._hasdodged =true;\n\t\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase MAROON:\n\t\t\tcase BLUE:\n\t\t\tcase LIGHT_BLUE:\n\t\t\tcase SKY:\n\t\t\tcase DEEPSKY:\n\t\t\tcase OCHRE:\n\t\t\tcase OLIVE:\n\t\t\tcase DARKOLIVE:\n\t\t\t\tif ((org._infectedGeneticCode != _geneticCode) && (org._nTotalInfected < _nTotalInfected)) {\n\t\t\t\t\tif ((org._isaplant) || (org._isaconsumer)) {\n\t\t\t\t\t\tif ((!_dodge) || (!_isaplant)) {\n\t\t\t\t\t\t\tif (useEnergy(Utils.SILVER_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t\t org.setColor(Utils.ColorBLOND);\n\t\t\t\t\t\t setColor(Color.LIGHT_GRAY);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t \t_hasdodged =true;\t\t\t\t\t\t \t\n\t\t\t\t\t\t\torg._hasdodged =true;\n\t\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase BARK:\n\t\t\tcase OLDBARK:\n\t\t\t\torg._segColor[oseg] = Utils.ColorOLDBARK;\n\t\t\t\tif ((org._infectedGeneticCode != _geneticCode) && (org._nTotalInfected < _nTotalInfected)) {\n\t\t\t\t\tif ((!_isaplant) && (!_isaconsumer)) {\n\t\t\t\t\t\tif (useEnergy(Utils.SILVER_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t\t org.setColor(Utils.ColorBLOND);\n\t\t\t\t\t\t setColor(Color.LIGHT_GRAY);\n\t\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase SPIKEPOINT:\n\t\t\t\tbreak;\n\t\t\tcase BROWN:\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tif ((org._infectedGeneticCode != _geneticCode) && (org._nTotalInfected < _nTotalInfected)) {\n\t\t\t\t\tif ((org._isaplant) || (org._isaconsumer)) {\n\t\t\t\t\t\tif ((!_dodge) || (!_isaplant)) {\n\t\t\t\t\t\t\tif (useEnergy(Utils.SILVER_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org.infectedBy(this);\n\t\t\t\t\t\t org.setColor(Utils.ColorBLOND);\n\t\t\t\t\t\t setColor(Color.LIGHT_GRAY);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t \t_hasdodged =true;\t\t\t\t\t\t \t\n\t\t\t\t\t\t\torg._hasdodged =true;\n\t\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ((_nTotalKills > 0) || (_isenhanced)) {\n\t\t\t\t if (useEnergy(Utils.EXPERIENCE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t // Get energy depending on segment length and relation between kills of both organisms\n\t\t\t\t\t takenEnergy = Utils.between(((_nTotalKills+18)/(org._nTotalKills+18))*(FastMath.log10(_m[seg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, org._energy);\n\t\t\t\t\t // The other organism will be shown in yellow\n\t\t\t\t\t org.setColor(Color.YELLOW);\n\t\t\t\t\t // This organism will be shown in gold\n\t\t\t\t\t setColor(Utils.ColorGOLD);\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t}\n\t\t\t// energy interchange\n\t\t\torg._energy -= takenEnergy;\n\t\t\t_energy += takenEnergy;\n\t\t\tdouble CO2freed8 = takenEnergy * Utils.ORGANIC_SUBS_PRODUCED;\n\t\t\tuseEnergy(CO2freed8);\n\t\t\tif ((_nTotalKills > 0) || (_isenhanced)) {\n\t\t\t\torg._hasdodged =true;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase CORAL:\n\t\t\t// Transform viruses and particles into children\n\t\t\tswitch (getTypeColor(org._segColor[oseg])) {\n\t\t\tcase WHITE:\n\t\t\tcase PLAGUE:\n\t\t\tcase SILVER:\n\t\t\t\tif ((!org._isaplant) && (!org._isaconsumer) && (!org._isauburn)) {\n\t\t\t\t\tif (((!_isaplant) && (!_isaconsumer)) || (_isenhanced)) {\n\t\t\t\t\t\tif (useEnergy(Utils.CORAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\tsetColor(Utils.ColorCORAL);\n\t\t\t\t\t\t\torg.infectedBy(this);\n\t\t\t\t\t\t\torg.transform();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase MAGENTA:\n\t\t\tcase ROSE:\n\t\t\t\tif ((!org._isaplant) && (!org._isaconsumer) && (!_geneticCode.getAltruist())) {\n\t\t\t\t\tif (((!_isaplant) && (!_isaconsumer)) || (_isenhanced)) {\n\t\t\t\t\t\tif (useEnergy(Utils.CORAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\tsetColor(Utils.ColorCORAL);\n\t\t\t\t\t\t\torg.infectedBy(this);\n\t\t\t\t\t\t\torg.transform();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase BLUE:\n\t\t\tcase SKY:\n\t\t\tcase DEEPSKY:\n\t\t\tcase OCHRE:\n\t\t\tcase CORAL:\n\t\t\tcase VIOLET:\n\t\t\tcase GRAY:\n\t\t\tcase LILAC:\n\t\t\tcase DARKLILAC:\n\t\t\tcase SPIKEPOINT:\n\t\t\tcase MINT:\n\t\t\tcase BROWN:\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tif ((!org._isaplant) && (!org._isaconsumer)) {\n\t\t\t\t\tif (((!_isaplant) && (!_isaconsumer)) || (_isenhanced)) {\n\t\t\t\t\t\tif (useEnergy(Utils.CORAL_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\tsetColor(Utils.ColorCORAL);\n\t\t\t\t\t\t\torg.infectedBy(this);\n\t\t\t\t\t\t\torg.transform();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\tcase MINT:\n\t\t\t// Mint segment: Remove an infection, corrupt all white and cream segments.\n\t\t\tswitch (getTypeColor(org._segColor[oseg])) {\n\t\t\tcase BROWN:\n\t\t\t\tbreak;\n\t\t\tcase MINT:\n\t\t\t\tif ((_infectedGeneticCode != null) || (org._infectedGeneticCode != null)) {\n\t\t\t\t if (useEnergy(Utils.MINT_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t_infectedGeneticCode = null;\n\t\t\t\t\t\torg._infectedGeneticCode = null;\n\t\t\t\t\t\torg.setColor(Utils.ColorMINT);\n\t\t\t\t\t\tsetColor(Utils.ColorMINT);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase CREAM:\n\t\t\t\tif (org._isaplant) {\n\t\t\t\t\tif (useEnergy(Utils.MINT_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t org._segColor[oseg] = Utils.ColorBROKEN;\n\t\t\t\t\t setColor(Utils.ColorMINT);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (org._isregenerative) {\n\t\t\t\t\t\tif (useEnergy(Utils.MINT_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org._segColor[oseg] = Utils.ColorDARKFIRE;\n\t\t\t\t\t\t setColor(Utils.ColorMINT);\n\t\t\t\t\t\t}\n\t\t\t\t } else {\n\t\t\t\t \tif (useEnergy(Utils.MINT_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org._segColor[oseg] = Utils.ColorLIGHTBROWN;\n\t\t\t\t\t\t setColor(Utils.ColorMINT);\n\t\t\t\t \t}\n\t\t\t\t }\n\t\t\t\t}\t\t\t\t\t\n\t\t\t\tif (_geneticCode.getAltruist() && org._geneticCode.getAltruist()) {\n\t\t\t\t\tif ((org._infectedGeneticCode != _geneticCode) && (org._infectedGeneticCode != null)) {\n\t\t\t\t\t\tif (useEnergy(Utils.MINT_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\torg._infectedGeneticCode = null;\n\t\t\t\t\t\t\torg.setColor(Color.CYAN);\n\t\t\t\t\t\t\tsetColor(Utils.ColorMINT);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\t\t\t\t\n\t\t\tcase WHITE:\n\t\t\tcase PLAGUE:\n\t\t\tcase CORAL:\n\t\t\t\tfor (int a = 0; a < org._segments; a++) {\n\t\t\t\t\tswitch (getTypeColor(org._segColor[a])) {\n\t\t\t\t\tcase WHITE:\n\t\t\t\t\tcase PLAGUE:\n\t\t\t\t\tcase CORAL:\n\t\t\t\t\t\tif (org._isaplant) {\n\t\t\t\t\t\t\tif (useEnergy(Utils.MINT_ENERGY_CONSUMPTION/8)) {\n\t\t\t\t\t\t\t org._segColor[a] = Utils.ColorBROKEN;\n\t\t\t\t\t\t\t setColor(Utils.ColorMINT);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (org._isaconsumer) {\n\t\t\t\t\t\t\t\tif (useEnergy(Utils.MINT_ENERGY_CONSUMPTION/8)) {\n\t\t\t\t\t\t\t\t org._segColor[a] = Utils.ColorLIGHTBROWN;\n\t\t\t\t\t\t\t\t setColor(Utils.ColorMINT);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif ((!org._isantiviral) || (_isaplant) || (_isaconsumer) || (_iscoral)) {\n\t\t\t\t\t\t\t\t\tif ((org._isregenerative) && (!org._iscoral)) {\n\t\t\t\t\t\t\t\t\t\tif (useEnergy(Utils.MINT_ENERGY_CONSUMPTION/8)) {\n\t\t\t\t\t\t\t\t\t\t org._segColor[a] = Utils.ColorDARKFIRE;\n\t\t\t\t\t\t\t\t\t\t setColor(Utils.ColorMINT);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t \tif (useEnergy(Utils.MINT_ENERGY_CONSUMPTION/8)) {\n\t\t\t\t\t\t\t\t\t\t org._segColor[a] = Utils.ColorLIGHTBROWN;\n\t\t\t\t\t\t\t\t\t\t setColor(Utils.ColorMINT);\n\t\t\t\t\t\t\t\t \t}\n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (_geneticCode.getAltruist() && org._geneticCode.getAltruist()) {\n\t\t\t\t\tif ((org._infectedGeneticCode != _geneticCode) && (org._infectedGeneticCode != null)) {\n\t\t\t\t\t\tif (useEnergy(Utils.MINT_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\torg._infectedGeneticCode = null;\n\t\t\t\t\t\t\torg.setColor(Color.CYAN);\n\t\t\t\t\t\t\tsetColor(Utils.ColorMINT);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tif ((!_isaplant) || (_isenhanced)) {\n\t\t\t\t\tfor (int a = 0; a < org._segments; a++) {\n\t\t\t\t\t\tswitch (getTypeColor(org._segColor[a])) {\n\t\t\t\t\t\tcase WHITE:\n\t\t\t\t\t\tcase PLAGUE:\n\t\t\t\t\t\tcase CORAL:\n\t\t\t\t\t\t\tif (org._isaplant) {\n\t\t\t\t\t\t\t\tif (useEnergy(Utils.MINT_ENERGY_CONSUMPTION/8)) {\n\t\t\t\t\t\t\t\t org._segColor[a] = Utils.ColorBROKEN;\n\t\t\t\t\t\t\t\t setColor(Utils.ColorMINT);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (org._isaconsumer) {\n\t\t\t\t\t\t\t\t\tif (useEnergy(Utils.MINT_ENERGY_CONSUMPTION/8)) {\n\t\t\t\t\t\t\t\t\t org._segColor[a] = Utils.ColorLIGHTBROWN;\n\t\t\t\t\t\t\t\t\t setColor(Utils.ColorMINT);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tif ((!org._isantiviral) || (_isaplant) || (_isaconsumer) || (_iscoral)) {\n\t\t\t\t\t\t\t\t\t\tif ((org._isregenerative) && (!org._iscoral)) {\n\t\t\t\t\t\t\t\t\t\t\tif (useEnergy(Utils.MINT_ENERGY_CONSUMPTION/8)) {\n\t\t\t\t\t\t\t\t\t\t\t org._segColor[a] = Utils.ColorDARKFIRE;\n\t\t\t\t\t\t\t\t\t\t\t setColor(Utils.ColorMINT);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t } else {\n\t\t\t\t\t\t\t\t\t \tif (useEnergy(Utils.MINT_ENERGY_CONSUMPTION/8)) {\n\t\t\t\t\t\t\t\t\t\t\t org._segColor[a] = Utils.ColorLIGHTBROWN;\n\t\t\t\t\t\t\t\t\t\t\t setColor(Utils.ColorMINT);\n\t\t\t\t\t\t\t\t\t \t}\n\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (_geneticCode.getAltruist() && org._geneticCode.getAltruist()) {\n\t\t\t\t\tif ((org._infectedGeneticCode != _geneticCode) && (org._infectedGeneticCode != null)) {\n\t\t\t\t\t\tif (useEnergy(Utils.MINT_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\torg._infectedGeneticCode = null;\n\t\t\t\t\t\t\torg.setColor(Color.CYAN);\n\t\t\t\t\t\t\tsetColor(Utils.ColorMINT);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\tcase MAGENTA:\n\t\t\t// Magenta segment: Heal all sick segments\n\t\t\tswitch (getTypeColor(org._segColor[oseg])) {\n\t\t\tcase BROWN:\n\t\t\t\tbreak;\n\t\t\tcase MAGENTA:\n\t\t\t for (int j = 0; j < org._segments; j++) {\n\t\t\t \tif ((org._segColor[j] == Utils.ColorLIGHTBROWN) || (org._segColor[j] == Utils.ColorGREENBROWN) || (org._segColor[j] == Utils.ColorPOISONEDJADE)\n\t\t\t\t\t\t|| (org._segColor[j] == Utils.ColorBROKEN) || (org._segColor[j] == Utils.ColorLIGHT_BLUE) || (org._segColor[j] == Utils.ColorICE)\n\t\t\t\t\t\t|| (org._segColor[j] == Utils.ColorDARKJADE) || (org._segColor[j] == Utils.ColorDARKFIRE)) {\n\t\t\t\t\t if (useEnergy(Utils.MAGENTA_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\torg._segColor[j] = org._geneticCode.getGene(j%org._geneticCode.getNGenes()).getColor(); \n\t\t\t\t\t\t\torg.setColor(Color.MAGENTA);\n\t\t\t\t\t\t\tsetColor(Color.MAGENTA);\n\t\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t }\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t for (int j = 0; j < org._segments; j++) {\n\t\t\t \tif (_geneticCode.getAltruist() && org._geneticCode.getAltruist()) {\n\t\t\t\t\t\tif ((org._segColor[j] == Utils.ColorLIGHTBROWN) || (org._segColor[j] == Utils.ColorGREENBROWN) || (org._segColor[j] == Utils.ColorPOISONEDJADE)\n\t\t\t\t\t\t || (org._segColor[j] == Utils.ColorBROKEN) || (org._segColor[j] == Utils.ColorLIGHT_BLUE) || (org._segColor[j] == Utils.ColorICE)\n\t\t\t\t\t\t || (org._segColor[j] == Utils.ColorDARKJADE) || (org._segColor[j] == Utils.ColorDARKFIRE)) {\n\t\t\t\t if (useEnergy(Utils.MAGENTA_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t org._segColor[j] = org._geneticCode.getGene(j%org._geneticCode.getNGenes()).getColor(); \n\t\t\t\t\t\t setColor(Color.MAGENTA);\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t \n\t\t\t}\n\t\t\tbreak;\n\t\tcase ROSE:\n\t\t\t// Rose segment: Transfers energy\n\t\t\tswitch (getTypeColor(org._segColor[oseg])) {\n\t\t\tcase BROWN:\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tif (_geneticCode.getAltruist() && org._geneticCode.getAltruist()) {\n\t\t\t\t\tif ((_energy > (org._energy+1)) && (_energy > (_geneticCode._reproduceEnergy/2)) && (org._energy < (org._geneticCode._reproduceEnergy/2))) {\n\t\t\t\t\t\tif ((_growthRatio==1) && (useEnergy(Utils.ROSE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t // Transfers energy\n\t\t\t\t\t\t takenEnergy = Utils.between(0.1 * Utils.ORGANIC_OBTAINED_ENERGY, 0, (_energy - (org._energy+1)));\n\t\t\t\t\t\t // The other organism will be shown in cyan\n\t\t\t\t\t\t org.setColor(Color.CYAN);\n\t\t\t\t\t\t // This organism will be shown in rose\n\t\t\t\t\t\t setColor(Utils.ColorROSE);\n\t\t\t\t\t\t org._energy += takenEnergy;\n\t\t\t\t\t\t _energy -= takenEnergy;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\tcase SKY:\n\t\t\t// Sky segment: Freeze another organism by disabling its photosynthetic and movement segments, protects itself with a frost shield\n\t\t\tswitch (getTypeColor(org._segColor[oseg])) {\n\t\t\tcase BROWN:\n\t\t\t\tbreak;\n\t\t\tcase SPIKEPOINT:\n\t\t\t\tbreak;\n\t\t\tcase BLUE:\n\t\t\t\tif ((!_isenhanced) && (org.useEnergy(Utils.BLUE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\tif (org._isenhanced) {\n\t\t\t\t\t useEnergy(Utils.between((0.5 * FastMath.log10(org._m[oseg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, _energy));\n\t\t\t\t\t\tsetColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsetColor(Utils.ColorSKY);\n\t\t\t\t\t}\n\t\t\t\t\torg.setColor(Color.BLUE);\n\t\t\t\t} else {\n\t\t\t\t\tfor (int y = 0; y < org._segments; y++) {\n\t\t\t\t\tswitch (getTypeColor(org._segColor[y])) {\n\t\t\t\t\tcase SKY:\n\t\t\t\t\tcase DEEPSKY:\n\t\t\t\t\t\tif (useEnergy(Utils.SKY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\torg._segColor[y] = Utils.ColorLIGHT_BLUE;\n\t\t\t\t\t\t\tsetColor(Utils.ColorSKY);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase CYAN:\n\t\t\t\t\tcase TEAL:\n\t\t\t\t\tcase SPRING:\n\t\t\t\t\tcase LIME:\n\t\t\t\t\tcase GREEN:\n\t\t\t\t\tcase FOREST:\n\t\t\t\t\tcase C4:\n\t\t\t\t\tcase GRASS:\n\t\t\t\t\tcase JADE:\n\t\t\t\t\tcase DARKJADE:\n\t\t\t\t\tcase POISONEDJADE:\n\t\t\t\t\tcase GREENBROWN:\n\t\t\t\t\t\tif (useEnergy(Utils.SKY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\torg._segColor[y] = Utils.ColorICE;\n\t\t\t\t\t\t\tsetColor(Utils.ColorSKY);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase OLDBARK:\n\t\t\t\t\tcase BARK:\n\t\t\t\t\t\tif (useEnergy(Utils.SKY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\torg._segColor[y] = Utils.ColorDEADBARK;\n\t\t\t\t\t\t\tsetColor(Utils.ColorSKY);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t }}}\n\t\t\t break;\n\t\t\tcase SKY:\n\t\t\t\tif ((useEnergy(Utils.SKY_ENERGY_CONSUMPTION)) && (org.useEnergy(Utils.SKY_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t_segColor[seg] = Utils.ColorDEEPSKY;\n\t\t\t\t\torg._segColor[oseg] = Utils.ColorDEEPSKY;\n\t\t\t\t\tsetColor(Utils.ColorDEEPSKY);\n\t\t\t\t org.setColor(Utils.ColorDEEPSKY);\n\t\t\t\t} else {\n\t\t\t\t\tif (useEnergy(Utils.SKY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\torg._segColor[oseg] = Utils.ColorDEEPSKY;\n\t\t\t\t\t\torg.setColor(Utils.ColorDEEPSKY);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t break;\n\t\t\tcase OLIVE:\n\t\t\t\tif ((!org._isaplant) || (org._isenhanced)) {\n\t break;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfor (int y = 0; y < org._segments; y++) {\n\t\t\t\t\t\tswitch (getTypeColor(org._segColor[y])) {\n\t\t\t\t\t\tcase SKY:\n\t\t\t\t\t\tcase DEEPSKY:\n\t\t\t\t\t\t\tif (useEnergy(Utils.SKY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\torg._segColor[y] = Utils.ColorLIGHT_BLUE;\n\t\t\t\t\t\t\t\tsetColor(Utils.ColorSKY);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase CYAN:\n\t\t\t\t\t\tcase TEAL:\n\t\t\t\t\t\tcase SPRING:\n\t\t\t\t\t\tcase LIME:\n\t\t\t\t\t\tcase GREEN:\n\t\t\t\t\t\tcase FOREST:\n\t\t\t\t\t\tcase C4:\n\t\t\t\t\t\tcase GRASS:\n\t\t\t\t\t\tcase JADE:\n\t\t\t\t\t\tcase DARKJADE:\n\t\t\t\t\t\tcase POISONEDJADE:\n\t\t\t\t\t\tcase GREENBROWN:\n\t\t\t\t\t\t\tif (useEnergy(Utils.SKY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\torg._segColor[y] = Utils.ColorICE;\n\t\t\t\t\t\t\t\tsetColor(Utils.ColorSKY);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase OLDBARK:\n\t\t\t\t\t\tcase BARK:\n\t\t\t\t\t\t\tif (useEnergy(Utils.SKY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\torg._segColor[y] = Utils.ColorDEADBARK;\n\t\t\t\t\t\t\t\tsetColor(Utils.ColorSKY);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t}}}\n\t\t\t\tbreak;\n\t\t\tcase MINT:\n\t\t\tcase MAGENTA:\n\t\t\tcase ROSE:\n\t\t\t\tif (_geneticCode.getAltruist()) {\n\t break;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfor (int y = 0; y < org._segments; y++) {\n\t\t\t\t\t\tswitch (getTypeColor(org._segColor[y])) {\n\t\t\t\t\t\tcase SKY:\n\t\t\t\t\t\tcase DEEPSKY:\n\t\t\t\t\t\t\tif (useEnergy(Utils.SKY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\torg._segColor[y] = Utils.ColorLIGHT_BLUE;\n\t\t\t\t\t\t\t\tsetColor(Utils.ColorSKY);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase CYAN:\n\t\t\t\t\t\tcase TEAL:\n\t\t\t\t\t\tcase SPRING:\n\t\t\t\t\t\tcase LIME:\n\t\t\t\t\t\tcase GREEN:\n\t\t\t\t\t\tcase FOREST:\n\t\t\t\t\t\tcase C4:\n\t\t\t\t\t\tcase GRASS:\n\t\t\t\t\t\tcase JADE:\n\t\t\t\t\t\tcase DARKJADE:\n\t\t\t\t\t\tcase POISONEDJADE:\n\t\t\t\t\t\tcase GREENBROWN:\n\t\t\t\t\t\t\tif (useEnergy(Utils.SKY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\torg._segColor[y] = Utils.ColorICE;\n\t\t\t\t\t\t\t\tsetColor(Utils.ColorSKY);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase OLDBARK:\n\t\t\t\t\t\tcase BARK:\n\t\t\t\t\t\t\tif (useEnergy(Utils.SKY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\torg._segColor[y] = Utils.ColorDEADBARK;\n\t\t\t\t\t\t\t\tsetColor(Utils.ColorSKY);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t}}}\n\t\t\t\tbreak;\n\t\t\tcase JADE:\n\t\t\t\tif (useEnergy(Utils.SKY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\torg._segColor[oseg] = Utils.ColorDARKJADE;\n\t\t\t\t\tsetColor(Utils.ColorSKY);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tfor (int y = 0; y < org._segments; y++) {\n\t\t\t\tswitch (getTypeColor(org._segColor[y])) {\n\t\t\t\tcase SKY:\n\t\t\t\tcase DEEPSKY:\n\t\t\t\t\tif (useEnergy(Utils.SKY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\torg._segColor[y] = Utils.ColorLIGHT_BLUE;\n\t\t\t\t\t\tsetColor(Utils.ColorSKY);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase CYAN:\n\t\t\t\tcase TEAL:\n\t\t\t\tcase SPRING:\n\t\t\t\tcase LIME:\n\t\t\t\tcase GREEN:\n\t\t\t\tcase FOREST:\n\t\t\t\tcase C4:\n\t\t\t\tcase GRASS:\n\t\t\t\tcase JADE:\n\t\t\t\tcase DARKJADE:\n\t\t\t\tcase POISONEDJADE:\n\t\t\t\tcase GREENBROWN:\n\t\t\t\t\tif (useEnergy(Utils.SKY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\torg._segColor[y] = Utils.ColorICE;\n\t\t\t\t\t\tsetColor(Utils.ColorSKY);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase OLDBARK:\n\t\t\t\tcase BARK:\n\t\t\t\t\tif (useEnergy(Utils.SKY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\torg._segColor[y] = Utils.ColorDEADBARK;\n\t\t\t\t\t\tsetColor(Utils.ColorSKY);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t }}}\n\t\t break;\t\t\t\t\t\t\t\n\t\tcase GRAY:\n\t\t\t// Gray segment: Kill an organism\n\t\t\tswitch (getTypeColor(org._segColor[oseg])) {\n\t\t\tcase GREEN:\n\t\t\tcase FOREST:\n\t\t\tcase SPRING:\n\t\t\tcase LIME:\n\t\t\tcase C4:\n\t\t\tcase GRASS:\n\t\t\tcase TEAL:\n\t\t\tcase CYAN:\n\t\t\tcase YELLOW:\n\t\t\tcase AUBURN:\n\t\t\tcase INDIGO:\n\t\t\tcase BLOND:\n\t\t\tcase DARKGRAY:\n\t\t\tcase GOLD:\n\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\tsetColor(Color.GRAY);\n\t\t\t\t} else {\n\t\t\t\t\tif (useEnergy(Utils.GRAY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\torg.die(this);\n\t\t\t\t\t\tsetColor(Color.GRAY);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase JADE:\n\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\tsetColor(Color.GRAY);\n\t\t\t\t} else {\n\t\t\t\t\tif (useEnergy(Utils.GRAY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\torg._segColor[oseg] = Utils.ColorDARKJADE;\n\t\t\t\t\t\tsetColor(Color.GRAY);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase BLUE:\n\t\t\t\tif (org.useEnergy(Utils.BLUE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\tif (org._isenhanced) {\n\t\t\t\t\t useEnergy(Utils.between((0.5 * FastMath.log10(org._m[oseg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, _energy));\n\t\t\t\t\t\tsetColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsetColor(Color.GRAY);\n\t\t\t\t\t}\n\t\t\t\t\torg.setColor(Color.BLUE);\n\t\t\t\t} else {\n\t\t\t\t\tif (useEnergy(Utils.GRAY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\torg.die(this);\n\t\t\t\t\t\tsetColor(Color.GRAY);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase SKY:\n\t\t\t\tif (org.useEnergy(Utils.SKY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\torg._segColor[oseg] = Utils.ColorDEEPSKY;\n\t\t\t\t\torg.setColor(Utils.ColorDEEPSKY);\n\t\t\t\t\tsetColor(Color.GRAY);\n\t\t\t\t} else {\n\t\t\t\t\tif (useEnergy(Utils.GRAY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\torg.die(this);\n\t\t\t\t\t\tsetColor(Color.GRAY);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase DEEPSKY:\n\t\t\t\tif (_isaconsumer) {\n\t\t\t\t\torg.setColor(Utils.ColorDEEPSKY);\n\t\t\t\t\tsetColor(Color.GRAY);\n\t\t\t\t} else {\n\t\t\t\t\tif (useEnergy(Utils.GRAY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\torg.die(this);\n\t\t\t\t\t\tsetColor(Color.GRAY);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase MINT:\n\t\t\tcase ROSE:\n\t\t\t\tif (_geneticCode.getAltruist()) {\n break;\n\t\t\t\t} else {\n\t\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\t\tsetColor(Color.GRAY);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (useEnergy(Utils.GRAY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\torg.die(this);\n\t\t\t\t\t\t\tsetColor(Color.GRAY);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase MAGENTA:\n\t\t\t\tif (_geneticCode.getAltruist()) {\n\t break;\n\t\t\t\t} else {\n\t\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\t\tsetColor(Color.GRAY);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ((org._isenhanced) && (org.useEnergy(Utils.MAGENTA_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\t org.setColor(Color.MAGENTA);\n\t\t\t\t\t\t setColor(Color.GRAY);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (useEnergy(Utils.GRAY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\t\torg.die(this);\n\t\t\t\t\t\t\t\tsetColor(Color.GRAY);\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\tbreak;\n\t\t\tcase RED:\n\t\t\t\tif (org._isenhanced) {\n\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tif (useEnergy(Utils.GRAY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\torg.die(this);\n\t\t\t\t\t\tsetColor(Color.GRAY);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase SILVER:\n\t\t\t\tif (_nTotalKills >= org._nTotalKills) {\n\t\t\t\t\tif (useEnergy(Utils.GRAY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\torg.die(this);\n\t\t\t\t\t\tsetColor(Color.GRAY);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase OLIVE:\n\t\t\t\tif (org.useEnergy(Utils.OLIVE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\tif (_isaplant) {\n\t\t\t\t\t _segColor[seg] = Utils.ColorBROKEN;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t_segColor[seg] = Utils.ColorLIGHTBROWN;\n\t\t\t\t\t}\n\t\t\t\t\torg.setColor(Utils.ColorDARKOLIVE);\n\t\t\t\t\torg._segColor[oseg] = Utils.ColorDARKOLIVE;\n\t\t\t\t} else {\n\t\t\t\t\tif (useEnergy(Utils.GRAY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\torg._segColor[oseg] = Utils.ColorDARKOLIVE;\n\t\t\t\t\t\tsetColor(Color.GRAY);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase OLDBARK:\n\t\t\t\tif ((_isenhanced) && (!_isaconsumer)) {\n\t\t\t\t\tif (useEnergy(Utils.GRAY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\torg.die(this);\n\t\t\t\t\t\tsetColor(Color.GRAY);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase BARK:\n\t\t\t\torg._segColor[oseg] = Utils.ColorOLDBARK;\n\t\t\t\tbreak;\n\t\t\tcase PINK:\n\t\t\t\tbreak;\n\t\t\tcase SPIKEPOINT:\n\t\t\t\tbreak;\n\t\t\tcase BROWN:\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tif (useEnergy(Utils.GRAY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\torg.die(this);\n\t\t\t\t\tsetColor(Color.GRAY);\n\t\t\t\t}\n\t\t\t}\n\t\t\torg._hasdodged =true;\n\t\t\tbreak;\t\t\t\t\n\t\tcase VIOLET:\n\t\t\t// Violet segment: Poison another segment and make it useless\n\t\t\tswitch (getTypeColor(org._segColor[oseg])) {\n\t\t\tcase GREEN:\n\t\t\tcase FOREST:\n\t\t\tcase SPRING:\n\t\t\tcase LIME:\n\t\t\tcase C4:\n\t\t\tcase GRASS:\n\t\t\tcase TEAL:\n\t\t\tcase CYAN:\n\t\t\tcase YELLOW:\n\t\t\tcase AUBURN:\n\t\t\tcase INDIGO:\n\t\t\tcase BLOND:\n\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\tsetColor(Utils.ColorVIOLET);\n\t\t\t\t} else {\n\t\t\t\t\tif (useEnergy(Utils.VIOLET_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\tif (org._isaplant) {\n\t\t\t\t\t\t org._segColor[oseg] = Utils.ColorGREENBROWN;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\torg._segColor[oseg] = Utils.ColorLIGHTBROWN;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsetColor(Utils.ColorVIOLET);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase JADE:\n\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\tsetColor(Utils.ColorVIOLET);\n\t\t\t\t} else {\n\t\t\t\t\tif (useEnergy(Utils.VIOLET_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t org._segColor[oseg] = Utils.ColorPOISONEDJADE;\n\t\t\t\t\t\tsetColor(Utils.ColorVIOLET);\n\t\t\t\t\t\torg._remember =true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase DARKJADE:\n\t\t\t\tif (useEnergy(Utils.VIOLET_ENERGY_CONSUMPTION)) {\n\t\t\t\t org._segColor[oseg] = Utils.ColorPOISONEDJADE;\n\t\t\t\t\tsetColor(Utils.ColorVIOLET);\n\t\t\t\t\torg._remember =true;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase BLUE:\n\t\t\t\tif (org.useEnergy(Utils.BLUE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\tif (org._isenhanced) {\n\t\t\t\t\t useEnergy(Utils.between((0.5 * FastMath.log10(org._m[oseg])) * Utils.ORGANIC_OBTAINED_ENERGY, 0, _energy));\n\t\t\t\t\t\tsetColor(Utils.ColorDARKLILAC);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsetColor(Utils.ColorVIOLET);\n\t\t\t\t\t}\n\t\t\t\t\torg.setColor(Color.BLUE);\n\t\t\t\t} else {\n\t\t\t\t\tif (useEnergy(Utils.VIOLET_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\tif (org._isaplant) {\n\t\t\t\t\t\t org._segColor[oseg] = Utils.ColorGREENBROWN;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\torg._segColor[oseg] = Utils.ColorLIGHTBROWN;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsetColor(Utils.ColorVIOLET);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase SKY:\n\t\t\t\tif (org.useEnergy(Utils.SKY_ENERGY_CONSUMPTION)) {\n\t\t\t\t\torg._segColor[oseg] = Utils.ColorDEEPSKY;\n\t\t\t\t\torg.setColor(Utils.ColorDEEPSKY);\n\t\t\t\t\tsetColor(Utils.ColorVIOLET);\n\t\t\t\t} else {\n\t\t\t\t\tif (useEnergy(Utils.VIOLET_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\tif (org._isaplant) {\n\t\t\t\t\t\t org._segColor[oseg] = Utils.ColorGREENBROWN;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\torg._segColor[oseg] = Utils.ColorLIGHTBROWN;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsetColor(Utils.ColorVIOLET);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase DEEPSKY:\n\t\t\t\t\torg.setColor(Utils.ColorDEEPSKY);\n\t\t\t\t\tsetColor(Utils.ColorVIOLET);\n\t\t\t\tbreak;\n\t\t\tcase ROSE:\n\t\t\t\tif (_geneticCode.getAltruist()) {\n break;\n\t\t\t\t} else {\n\t\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\t\tsetColor(Utils.ColorVIOLET);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (useEnergy(Utils.VIOLET_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\tif (org._isaplant) {\n\t\t\t\t\t\t\t org._segColor[oseg] = Utils.ColorGREENBROWN;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\torg._segColor[oseg] = Utils.ColorLIGHTBROWN;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tsetColor(Utils.ColorVIOLET);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase MINT:\n\t\t\tcase MAGENTA:\n\t\t\t\tif (_geneticCode.getAltruist()) {\n\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\t\tsetColor(Utils.ColorVIOLET);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (useEnergy(Utils.VIOLET_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\tif (org._isaplant) {\n\t\t\t\t\t\t\t org._segColor[oseg] = Utils.ColorGREENBROWN;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\torg._segColor[oseg] = Utils.ColorLIGHTBROWN;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tsetColor(Utils.ColorVIOLET);\n\t\t\t\t\t\t\torg._remember =true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase DARKGRAY:\n\t\t\tcase GOLD:\n\t\t\t\tif ((org._dodge) && (!org._isaconsumer) && (org._isakiller == 0) && (org.useEnergy(Utils.DODGE_ENERGY_CONSUMPTION))) {\n\t\t\t\t\torg.setColor(Utils.ColorTEAL);\n\t\t\t\t\tsetColor(Utils.ColorVIOLET);\n\t\t\t\t} else {\n\t\t\t\t\tif (useEnergy(Utils.VIOLET_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\tif (org._isaplant) {\n\t\t\t\t\t\t org._segColor[oseg] = Utils.ColorGREENBROWN;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\torg._segColor[oseg] = Utils.ColorLIGHTBROWN;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsetColor(Utils.ColorVIOLET);\n\t\t\t\t\t\torg._remember =true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase OLIVE:\n\t\t\t\tif (org.useEnergy(Utils.OLIVE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\tif (_isaplant) {\n\t\t\t\t\t _segColor[seg] = Utils.ColorBROKEN;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t_segColor[seg] = Utils.ColorLIGHTBROWN;\n\t\t\t\t\t}\n\t\t\t\t\torg.setColor(Utils.ColorDARKOLIVE);\n\t\t\t\t\torg._segColor[oseg] = Utils.ColorDARKOLIVE;\n\t\t\t\t} else {\n\t\t\t\t\tif (useEnergy(Utils.VIOLET_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\torg._segColor[oseg] = Utils.ColorDARKOLIVE;\n\t\t\t\t\t\tsetColor(Utils.ColorVIOLET);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase WHITE:\n\t\t\t\tif ((!_isaconsumer) && ((_isaplant) || (!org._ispoisonous) || (_iscoral) || (org._iscoral))) {\n\t\t\t\t\tif (useEnergy(Utils.VIOLET_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\tif (org._isaplant) {\n\t\t\t\t\t\t org._segColor[oseg] = Utils.ColorGREENBROWN;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\torg._segColor[oseg] = Utils.ColorLIGHTBROWN;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsetColor(Utils.ColorVIOLET);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif ((org._isaplant) || (org._isaconsumer) || (org._isplague) || (org._isenhanced) || (org._isfrozen)) {\n\t\t\t\t\t if (useEnergy(Utils.VIOLET_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t \tif (org._isaplant) {\n\t\t\t\t\t\t\t org._segColor[oseg] = Utils.ColorGREENBROWN;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\torg._segColor[oseg] = Utils.ColorLIGHTBROWN;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t setColor(Utils.ColorVIOLET);\n\t\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase SILVER:\n\t\t\t\tif ((!_isaconsumer) || (_nTotalKills >= org._nTotalKills)) {\n\t\t\t\t\tif (useEnergy(Utils.VIOLET_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\tif (org._isaplant) {\n\t\t\t\t\t\t org._segColor[oseg] = Utils.ColorGREENBROWN;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\torg._segColor[oseg] = Utils.ColorLIGHTBROWN;\n\t\t\t\t\t\t}\n\t\t\t\t\t setColor(Utils.ColorVIOLET);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FIRE:\n\t\t\t\tif ((!_isaconsumer) || (org._isenhanced)) {\n\t\t\t\t\tif (useEnergy(Utils.VIOLET_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\tif (org._isaplant) {\n\t\t\t\t\t\t org._segColor[oseg] = Utils.ColorGREENBROWN;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\torg._segColor[oseg] = Utils.ColorLIGHTBROWN;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsetColor(Utils.ColorVIOLET);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (useEnergy(Utils.VIOLET_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\torg._segColor[oseg] = Utils.ColorDARKFIRE;\n\t\t\t\t\t\tsetColor(Utils.ColorVIOLET);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase CREAM:\n\t\t\t\tif ((!_isaconsumer) && (org._isaplant)) {\n\t\t\t\t\tif (useEnergy(Utils.VIOLET_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\tif (org._isaplant) {\n\t\t\t\t\t\t org._segColor[oseg] = Utils.ColorGREENBROWN;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\torg._segColor[oseg] = Utils.ColorLIGHTBROWN;\n\t\t\t\t\t\t}\n\t\t\t\t\t setColor(Utils.ColorVIOLET);\n\t\t\t\t }\n\t\t\t\t} else {\n\t\t\t\t\tif (useEnergy(Utils.VIOLET_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\torg._segColor[oseg] = Utils.ColorDARKFIRE;\n\t\t\t\t\t\tsetColor(Utils.ColorVIOLET);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase LILAC:\n\t\t\tcase DARKLILAC:\n\t\t\tcase DARKOLIVE:\n\t\t\t\tif ((!_isaconsumer) || (_isenhanced)) {\n\t\t\t\t if (useEnergy(Utils.VIOLET_ENERGY_CONSUMPTION)) {\n\t\t\t\t \tif (org._isaplant) {\n\t\t\t\t\t\t org._segColor[oseg] = Utils.ColorGREENBROWN;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\torg._segColor[oseg] = Utils.ColorLIGHTBROWN;\n\t\t\t\t\t\t}\n\t\t\t\t\t setColor(Utils.ColorVIOLET);\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase BARK:\n\t\t\tcase OLDBARK:\n\t\t\t\torg._segColor[oseg] = Utils.ColorOLDBARK;\n\t\t\t\tif ((_isenhanced) || ((!_isaplant) && (!_isaconsumer))) {\n\t\t\t\t\tif (useEnergy(Utils.VIOLET_ENERGY_CONSUMPTION)) {\t\t\t\n\t\t\t\t\t\torg._segColor[oseg] = Utils.ColorDEADBARK;\n\t\t\t\t\t setColor(Utils.ColorVIOLET);\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase OCHRE:\n\t\t\t\tbreak;\n\t\t\tcase SPIKEPOINT:\n\t\t\t\tbreak;\n\t\t\tcase ICE:\n\t\t\t\tbreak;\n\t\t\tcase DEADBARK:\n\t\t\t\tbreak;\n\t\t\tcase DARKFIRE:\n\t\t\t\tbreak;\n\t\t\tcase LIGHTBROWN:\n\t\t\t\tbreak;\n\t\t\tcase GREENBROWN:\n\t\t\t\tbreak;\n\t\t\tcase POISONEDJADE:\n\t\t\t\tbreak;\n\t\t\tcase BROWN:\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tif (useEnergy(Utils.VIOLET_ENERGY_CONSUMPTION)) {\n\t\t\t\t\tif (org._isaplant) {\n\t\t\t\t\t org._segColor[oseg] = Utils.ColorGREENBROWN;\n\t\t\t\t\t} else {\n\t\t\t\t\t\torg._segColor[oseg] = Utils.ColorLIGHTBROWN;\n\t\t\t\t\t}\n\t\t\t\t\tsetColor(Utils.ColorVIOLET);\n\t\t\t\t}\n\t\t\t}\n\t\t\torg._hasdodged =true;\n\t\t\tbreak;\n\t\tcase OLIVE:\n\t\t\t// Olive segment: Crack defense\n\t\t\tswitch (getTypeColor(org._segColor[oseg])) {\t\t\t\n\t\t\tcase OLIVE:\n\t\t\t\tif (org._isaplant) {\n\t\t\t\t\tif (!_isaplant) {\n\t\t\t\t\t\tif (useEnergy(Utils.OLIVE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\torg._segColor[oseg] = Utils.ColorLIGHT_BLUE;\n\t\t\t\t\t\t\tsetColor(Utils.ColorOLIVE);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t if (useEnergy(Utils.OLIVE_ENERGY_CONSUMPTION)) {\n\t\t\t\t org._segColor[oseg] = Utils.ColorDARKOLIVE;\n\t\t\t\t setColor(Utils.ColorOLIVE);\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase DARKOLIVE:\n\t\t\t\tif (org._isaplant) {\n\t\t\t\t\tif (!_isaplant) {\n\t\t\t\t\t\tif (useEnergy(Utils.OLIVE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\t\t\torg._segColor[oseg] = Utils.ColorLIGHT_BLUE;\n\t\t\t\t\t\t\tsetColor(Utils.ColorOLIVE);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase BLUE:\n\t\t\tcase OCHRE:\n\t\t\tcase SKY:\n\t\t\tcase DEEPSKY:\n\t\t\t\tif (useEnergy(Utils.OLIVE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\torg._segColor[oseg] = Utils.ColorLIGHT_BLUE;\n\t\t\t\t\tsetColor(Utils.ColorOLIVE);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase GRAY:\n\t\t\tcase VIOLET:\n\t\t\t\tif (useEnergy(Utils.OLIVE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\tif (org._isaplant) {\n\t\t\t\t\t org._segColor[oseg] = Utils.ColorBROKEN;\n\t\t\t\t\t} else {\n\t\t\t\t\t\torg._segColor[oseg] = Utils.ColorLIGHTBROWN;\n\t\t\t\t\t}\n\t\t\t\t\tsetColor(Utils.ColorDARKOLIVE);\n\t\t\t\t\t_segColor[seg] = Utils.ColorDARKOLIVE;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase LILAC:\n\t\t\tcase DARKLILAC:\n\t\t\tcase SPIKE:\n\t\t\tcase SPIKEPOINT:\n\t\t\t\tif (useEnergy(Utils.OLIVE_ENERGY_CONSUMPTION)) {\n\t\t\t\t\tif (org._isaplant) {\n\t\t\t\t\t org._segColor[oseg] = Utils.ColorBROKEN;\n\t\t\t\t\t} else {\n\t\t\t\t\t\torg._segColor[oseg] = Utils.ColorLIGHTBROWN;\n\t\t\t\t\t}\n\t\t\t\t\tsetColor(Utils.ColorOLIVE);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase BARK:\n\t\t\t\torg._segColor[oseg] = Utils.ColorOLDBARK;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\torg._hasdodged =true;\n\t\t\tbreak;\n\t\t}}\n\t\tif ((_isaplant) && ((org._isaplant) || ((org._transfersenergy) && (!org._isaconsumer)))) {\n\t\tfor (i=_segments-1; i>=0; i--) {\n\t\t\tswitch (getTypeColor(_segColor[i])) {\n\t\t\tcase FOREST:\n\t\t\t\t// Enhance photosynthesis in a colony\n\t\t\t\tdouble photosynthesis = 0;\n\t\t\t\tswitch (getTypeColor(_segColor[seg])) {\n\t\t\t\tcase DARKGRAY:\n\t\t\t\t\tswitch (getTypeColor(org._segColor[oseg])) {\n\t\t\t\t\tcase DARKGRAY:\n\t\t\t\t\tcase BROWN:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tphotosynthesis += Utils.FOREST_ENERGY_CONSUMPTION * 4 * _mphoto[i];\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase FOREST:\n\t\t\t\t\tswitch (getTypeColor(org._segColor[oseg])) {\n\t\t\t\t\tcase FOREST:\t\t\t\t\t\t\n\t\t\t\t\t\tphotosynthesis += Utils.FOREST_ENERGY_CONSUMPTION * _mphoto[i];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase GREEN:\n\t\t\t\t\tcase SPRING:\n\t\t\t\t\tcase LIME:\n\t\t\t\t\tcase C4:\n\t\t\t\t\tcase JADE:\t\t\t\t\t\t\n\t\t\t\t\t\tphotosynthesis += Utils.FOREST_ENERGY_CONSUMPTION * 0.9 * _mphoto[i];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase GRASS:\n\t\t\t\t\tcase BARK:\n\t\t\t\t\tcase OLDBARK:\t\t\t\t\t\n\t\t\t\t\t\tphotosynthesis += Utils.FOREST_ENERGY_CONSUMPTION * 0.7 * _mphoto[i];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase DARKGRAY:\n\t\t\t\t\tcase BROWN:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\t\t\t\t\t\t\n\t\t\t\t\t\tphotosynthesis += Utils.FOREST_ENERGY_CONSUMPTION * 0.6 * _mphoto[i];\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase GREEN:\n\t\t\t\tcase SPRING:\n\t\t\t\tcase LIME:\n\t\t\t\tcase C4:\n\t\t\t\tcase JADE:\n\t\t\t\t\tswitch (getTypeColor(org._segColor[oseg])) {\n\t\t\t\t\tcase FOREST:\t\t\t\t\t\n\t\t\t\t\t\tphotosynthesis += Utils.FOREST_ENERGY_CONSUMPTION * 0.9 * _mphoto[i];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase GREEN:\n\t\t\t\t\tcase SPRING:\n\t\t\t\t\tcase LIME:\n\t\t\t\t\tcase C4:\n\t\t\t\t\tcase JADE:\t\t\t\t\t\n\t\t\t\t\t\tphotosynthesis += Utils.FOREST_ENERGY_CONSUMPTION * 0.8 * _mphoto[i];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase GRASS:\n\t\t\t\t\tcase BARK:\n\t\t\t\t\tcase OLDBARK:\t\t\t\t\t\n\t\t\t\t\t\tphotosynthesis += Utils.FOREST_ENERGY_CONSUMPTION * 0.6 * _mphoto[i];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase DARKGRAY:\n\t\t\t\t\tcase BROWN:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\t\t\t\t\t\t\n\t\t\t\t\t\tphotosynthesis += Utils.FOREST_ENERGY_CONSUMPTION * 0.5 * _mphoto[i];\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase GRASS:\n\t\t\t\tcase BARK:\n\t\t\t\tcase OLDBARK:\n\t\t\t\t\tswitch (getTypeColor(org._segColor[oseg])) {\n\t\t\t\t\tcase FOREST:\t\t\t\t\t\n\t\t\t\t\t\tphotosynthesis += Utils.FOREST_ENERGY_CONSUMPTION * 0.7 * _mphoto[i];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase GREEN:\n\t\t\t\t\tcase SPRING:\n\t\t\t\t\tcase LIME:\n\t\t\t\t\tcase C4:\n\t\t\t\t\tcase JADE:\t\t\t\t\t\n\t\t\t\t\t\tphotosynthesis += Utils.FOREST_ENERGY_CONSUMPTION * 0.6 * _mphoto[i];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase GRASS:\n\t\t\t\t\tcase BARK:\n\t\t\t\t\tcase OLDBARK:\t\t\t\t\t\n\t\t\t\t\t\tphotosynthesis += Utils.FOREST_ENERGY_CONSUMPTION * 0.4 * _mphoto[i];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase DARKGRAY:\n\t\t\t\t\tcase BROWN:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\t\t\t\t\t\n\t\t\t\t\t\tphotosynthesis += Utils.FOREST_ENERGY_CONSUMPTION * 0.3 * _mphoto[i];\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tswitch (getTypeColor(org._segColor[oseg])) {\n\t\t\t\t\tcase FOREST:\t\t\t\t\t\n\t\t\t\t\t\tphotosynthesis += Utils.FOREST_ENERGY_CONSUMPTION * 0.6 * _mphoto[i];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase GREEN:\n\t\t\t\t\tcase SPRING:\n\t\t\t\t\tcase LIME:\n\t\t\t\t\tcase C4:\n\t\t\t\t\tcase JADE:\t\t\t\t\t\n\t\t\t\t\t\tphotosynthesis += Utils.FOREST_ENERGY_CONSUMPTION * 0.5 * _mphoto[i];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase GRASS:\n\t\t\t\t\tcase BARK:\n\t\t\t\t\tcase OLDBARK:\t\t\t\t\t\n\t\t\t\t\t\tphotosynthesis += Utils.FOREST_ENERGY_CONSUMPTION * 0.3 * _mphoto[i];\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase DARKGRAY:\n\t\t\t\t\tcase BROWN:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\t\t\t\t\n\t\t\t\t\t\tphotosynthesis += Utils.FOREST_ENERGY_CONSUMPTION * 0.3 * _mphoto[i];\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\t\t\n\t\t\t\t}\n\t\t\t\t_energy += _world.photosynthesis(photosynthesis);\n\t\t\t\tbreak;\t\n\t\t\t}}}\n\t\t// Check if the other organism has died\n\t\tif (org.isAlive() && org._energy < Utils.tol) {\n\t\t\torg.die(this);\n\t\t}\n\t\tif (firstCall)\n\t\t\torg.touchEffects(this, oseg, seg, false);\n\t}",
"@Test\n void doEffectshotgun() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"shotgun\");\n Weapon w9 = new Weapon(\"shotgun\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w9);\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w9.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(0));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n ArrayList<GenericSquare> s = new ArrayList<>();\n try{\n p.getPh().getWeaponDeck().getWeapon(w9.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3 && victim.getPlayerPosition() == Board.getSquare(0));\n\n s.add(Board.getSquare(1));\n try{\n p.getPh().getWeaponDeck().getWeapon(w9.getName()).doEffect(\"base\", null, null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 6 && victim.getPlayerPosition() == Board.getSquare(1));\n\n s.clear();\n s.add(Board.getSpawnpoint('b'));\n try {\n p.getPh().getWeaponDeck().getWeapon(w9.getName()).doEffect(\"base\", null, null, p, players, s); //A choice of yours is yours\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(1));\n players.clear();\n players.add(victim);\n s.clear();\n try {\n p.getPh().getWeaponDeck().getWeapon(w9.getName()).doEffect(\"alt\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('b'));\n players.clear();\n players.add(victim);\n s.clear();\n try{\n p.getPh().getWeaponDeck().getWeapon(w9.getName()).doEffect(\"alt\", null, null, p, players, null); //A choice of yours is wrong\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n }",
"public void processStimulus(java.util.Enumeration en) {\n//\t\tSystem.out.println(\"physics\");\n// performPhysics();\n\n//\t\tSystem.out.println(\"behavior\");\n doEveryFrame();\n\n//\t\tobjHPindicator\n// hpAppear.setColoringAttributes(new ColoringAttributes(1.0f - (float) hitpoints / (float) maxHitpoints, (float) hitpoints / (float) maxHitpoints, 0.0f, ColoringAttributes.NICEST));\n\n// refreshPosition();\n\n if (isAlive()) {\n wakeupOn(w);\n } else {\n kill();\n }\n }",
"@Override\n\tpublic void trace(String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}",
"public String getEffects() {\n \t\tString result = getEffects_j();\n \t\tString effectsStr_e = getEffects_e();\n \t\tif (!effectsStr_e.isEmpty()) {\n \t\t\tresult += \"\\n\" + effectsStr_e;\n \t\t}\n \t\treturn result;\n \t}",
"@Override\n\tpublic void physicAttack() {\n\t\tSystem.out.println(\"进行物理攻击!\");\n\t}"
] | [
"0.6659454",
"0.6649463",
"0.6490339",
"0.64134115",
"0.634853",
"0.6277827",
"0.6234948",
"0.6213576",
"0.6188098",
"0.6023002",
"0.60008913",
"0.5850886",
"0.58287054",
"0.57975554",
"0.57859105",
"0.5779623",
"0.57544345",
"0.5740167",
"0.5688926",
"0.5640882",
"0.56368226",
"0.56203616",
"0.561378",
"0.5600771",
"0.5578684",
"0.5576069",
"0.55494404",
"0.55275846",
"0.5515064",
"0.55113876",
"0.5493715",
"0.54779136",
"0.5473505",
"0.54712903",
"0.5469302",
"0.5468982",
"0.54559094",
"0.54509354",
"0.54427856",
"0.5439136",
"0.5434395",
"0.5433568",
"0.5432969",
"0.5408121",
"0.54008347",
"0.53957486",
"0.5394561",
"0.539176",
"0.53838915",
"0.53752774",
"0.53620446",
"0.5345992",
"0.53457993",
"0.53423005",
"0.5340858",
"0.53352857",
"0.5325567",
"0.5305021",
"0.5304537",
"0.53043705",
"0.5304337",
"0.5302104",
"0.5294718",
"0.52778137",
"0.5275587",
"0.52691203",
"0.52675563",
"0.52470726",
"0.5235569",
"0.52329737",
"0.5227158",
"0.52202296",
"0.52164835",
"0.521393",
"0.5206499",
"0.5203575",
"0.5197504",
"0.5193846",
"0.518619",
"0.51858497",
"0.51829916",
"0.5181393",
"0.51788193",
"0.51709783",
"0.51707333",
"0.5167706",
"0.51650053",
"0.5160732",
"0.515971",
"0.5147271",
"0.5139488",
"0.51327753",
"0.51311904",
"0.51251614",
"0.51227593",
"0.51179487",
"0.5108497",
"0.51035154",
"0.51032686",
"0.5101585",
"0.50987464"
] | 0.0 | -1 |
Creates new form FrmServicos | public FrmServicos() {
initComponents();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public frmPesquisaServico() {\n initComponents();\n listarServicos();\n }",
"public static void create(Formulario form){\n daoFormulario.create(form);\n }",
"public creacionempresa() {\n initComponents();\n mostrardatos();\n }",
"com.soa.SolicitarServicioDocument.SolicitarServicio addNewSolicitarServicio();",
"public CrearPedidos() {\n initComponents();\n }",
"public void carregarCadastro() {\n\n try {\n\n if (codigo != null) {\n\n ClienteDao fdao = new ClienteDao();\n\n cliente = fdao.buscarCodigo(codigo);\n\n } else {\n cliente = new Cliente();\n\n }\n } catch (RuntimeException e) {\n JSFUtil.AdicionarMensagemErro(\"ex.getMessage()\");\n e.printStackTrace();\n }\n\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 }",
"@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 ContactoFormBean() {\r\n setContexto();\r\n }",
"public static Servicio insertServicio(String nombre_servicio,\n String descripcion_servicio, \n String nombre_tipo_servicio){\n \n /*Se definen valores para servicio y se agrega a la base de datos*/\n Servicio miServicio = new Servicio(nombre_servicio, \n descripcion_servicio,\n nombre_tipo_servicio);\n try {\n miServicio.registrarServicio();\n } catch (Exception e) {\n // Si hay una excepcion se imprime un mensaje\n System.err.println(e.getMessage());\n }\n \n return miServicio;\n }",
"public NewConsultasS() {\n initComponents();\n limpiar();\n bloquear();\n }",
"public FrmNuevoProveedor() {\n initComponents();\n }",
"public ControladorCatalogoServicios() {\r\n }",
"@GetMapping(\"/createRegistro\")\n\tpublic String crearValidacion(Model model) {\n\t\tList<Barrio> localidades = barrioService.obtenerBarrios();\n\t\tmodel.addAttribute(\"localidades\",localidades);\n\t\tmodel.addAttribute(\"persona\",persona);\n\t\tmodel.addAttribute(\"validacion\",validacion);\n\t\tmodel.addAttribute(\"registro\",registro);\n\t\tmodel.addAttribute(\"barrio\",barrio);\n\t\treturn \"RegistroForm\";\n\t}",
"@GetMapping(\"/producto/nuevo\")\n\tpublic String nuevoProductoForm(Model model) {\n\t\tmodel.addAttribute(\"producto\", new Producto());\n\t\treturn \"app/producto/form\";\n\t}",
"@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}",
"public FrmIntProveedor() {\n initComponents();\n muestraProveedor();\n\n }",
"public FrmCrearEmpleado() {\n initComponents();\n tFecha.setDate(new Date());\n }",
"public Tecnico(){\r\n\t\tthis.matricula = 0;\r\n\t\tthis.nome = \"NULL\";\r\n\t\tthis.email = \"NULL\";\r\n\t\tthis.telefone = \"TELEFONE\";\r\n\t\tlistaDeServicos = new ArrayList<Servico>();\r\n\t}",
"public FormularioCliente() {\n initComponents();\n }",
"private void iniciaFrm() {\n statusLbls(false);\n statusBtnInicial();\n try {\n clientes = new Cliente_DAO().findAll();\n } catch (Exception ex) {\n Logger.getLogger(JF_CadastroCliente.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public ControlMuestraServicios( ServicioConsulta servicioConsulta) {\r\n\t\tthis.servicioConsulta=servicioConsulta;\r\n\t\t\r\n\t}",
"public frmCliente() {\n initComponents();\n CargarProvinciasRes();\n CargarProvinciasTra();\n ManejadorCliente objCli = new ManejadorCliente();\n }",
"public static TipoServicio insertTipoServicio(String NOMBRE_TSERVICIO){\n TipoServicio miTipoServicio = new TipoServicio(NOMBRE_TSERVICIO);\n miTipoServicio.registrarTipoServicio();\n \n return miTipoServicio;\n }",
"@Override\n\tpublic void insertarServicio(Servicio nuevoServicio) {\n\t\tservicioDao= new ServicioDaoImpl();\n\t\tservicioDao.insertarServicio(nuevoServicio);\n\t\t\n\t\t\n\t}",
"@GetMapping(value = \"/create\") // https://localhost:8080/etiquetasTipoDisenio/create\n\tpublic String create(Model model) {\n\t\tetiquetasTipoDisenio etiquetasTipoDisenio = new etiquetasTipoDisenio();\n\t\tmodel.addAttribute(\"title\", \"Registro de una nuev entrega\");\n\t\tmodel.addAttribute(\"etiquetasTipoDisenio\", etiquetasTipoDisenio); // similar al ViewBag\n\t\treturn \"etiquetasTipoDisenio/form\"; // la ubicacion de la vista\n\t}",
"@GetMapping(\"/add\")\n public String showSocioForm(Model model, Persona persona) {\n List<Cargo> cargos = cargoService.getCargos();\n model.addAttribute(\"cargos\", cargos);\n return \"/backoffice/socioForm\";\n }",
"@GetMapping(\"/cliente/new\")\n\tpublic String newCliente(Model model) {\n\t\tmodel.addAttribute(\"cliente\", new Cliente());\n\t\tControllerHelper.setEditMode(model, false);\n\t\t\n\t\t\n\t\treturn \"cadastro-cliente\";\n\t\t\n\t}",
"@RequestMapping(value = \"/add\")\n public String addForm(Model model) {\n model.addAttribute(\"service\",fservice.findAllServices());\n model.addAttribute(\"customer\", mservice.findAllCustomer());\n model.addAttribute(\"customer\", new Customer());\n return \"customer-form\";\n }",
"public void addServicio(String nombre_servicio, List<String> parametros){\n\t\t\n\t\tboolean exists = false;\n\t\t//Se comprueba si ya estaba registrado dicho servicio\n\t\tfor(InfoServicio is: infoServicios){\n\t\t\tif(is.getNombre_servicio().equalsIgnoreCase(\"nombre_servicio\")){\n\t\t\t\texists = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(!exists){\n\t\t\t//Es un servicio nuevo, se registra.\n\t\t\tInfoServicio is = new InfoServicio(nombre_servicio,parametros);\n\t\t\tinfoServicios.add(is);\n\t\t}\n\t\telse{\n\t\t\t//Servicio ya registrado, no se hace nada.\n\t\t\tSystem.err.println(\"ERROR: Servicio \" + nombre_servicio + \" ya registrado para \" + this.getNombre_servidor());\n\t\t}\n\t\t\n\t}",
"public CadastroProdutoNew() {\n initComponents();\n }",
"public FrmNuevoEmpleado() {\n initComponents();\n }",
"public MostraVenta(String idtrasp, Object[][] clienteM1, Object[][] vendedorM1, String idmarc, String responsable,ListaTraspaso panel)\n{\n this.padre = panel;\n this.clienteM = clienteM1;\n this.vendedorM = vendedorM1;\n this.idtraspaso= idtrasp;\n this.idmarca=idmarc;\n//this.tipoenvioM = new String[]{\"INGRESO\", \"TRASPASO\"};\n String tituloTabla =\"Detalle Venta\";\n // padre=panel;\n String nombreBoton1 = \"Registrar\";\n String nombreBoton2 = \"Cancelar\";\n // String nombreBoton3 = \"Eliminar Empresa\";\n\n setId(\"win-NuevaEmpresaForm1\");\n setTitle(tituloTabla);\n setWidth(400);\n setMinWidth(ANCHO);\n setHeight(250);\n setLayout(new FitLayout());\n setPaddings(WINDOW_PADDING);\n setButtonAlign(Position.CENTER);\n setCloseAction(Window.CLOSE);\n setPlain(true);\n\n but_aceptar = new Button(nombreBoton1);\n but_cancelar = new Button(nombreBoton2);\n // addButton(but_aceptarv);\n addButton(but_aceptar);\n addButton(but_cancelar);\n\n formPanelCliente = new FormPanel();\n formPanelCliente.setBaseCls(\"x-plain\");\n //formPanelCliente.setLabelWidth(130);\n formPanelCliente.setUrl(\"save-form.php\");\n formPanelCliente.setWidth(ANCHO);\n formPanelCliente.setHeight(ALTO);\n formPanelCliente.setLabelAlign(Position.LEFT);\n\n formPanelCliente.setAutoWidth(true);\n\n\ndat_fecha1 = new DateField(\"Fecha\", \"d-m-Y\");\n fechahoy = new Date();\n dat_fecha1.setValue(fechahoy);\n dat_fecha1.setReadOnly(true);\n\ncom_vendedor = new ComboBox(\"Vendedor al que enviamos\", \"idempleado\");\ncom_cliente = new ComboBox(\"Clientes\", \"idcliente\");\n//com_tipo = new ComboBox(\"Tipo Envio\", \"idtipo\");\n initValues1();\n\n\n\n formPanelCliente.add(dat_fecha1);\n// formPanelCliente.add(com_tipo);\n// formPanelCliente.add(tex_nombreC);\n// formPanelCliente.add(tex_codigoBarra);\n // formPanelCliente.add(tex_codigoC);\nformPanelCliente.add(com_vendedor);\n formPanelCliente.add(com_cliente);\n add(formPanelCliente);\nanadirListenersTexfield();\n addListeners();\n\n }",
"public FrmCrearFotoEmpresa() {\n initComponents();\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 GestaoFormando() {\n \n initComponents();\n listarEquipamentos();\n listarmapainscritos();\n }",
"public String crea() {\n c.setId(0);\n clienteDAO.crea(c); \n //Post-Redirect-Get\n return \"visualiza?faces-redirect=true&id=\"+c.getId();\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String nombre = request.getParameter(\"nombre\");\n String descripcion = request.getParameter(\"descripcion\");\n String cantidad = request.getParameter(\"cantidad\");\n String precio = request.getParameter(\"precio\");\n String pago = request.getParameter(\"pago\");\n \n //creando objeto del costructor\n modelo.ventas venta = new modelo.ventas();\n //almacenando datos en las variables con el constructor \n venta.setNombre(nombre);\n venta.setDescripcion(descripcion);\n venta.setCantidad(Integer.parseInt(cantidad));\n venta.setPrecio(Double.parseDouble(precio));\n venta.setPago(Integer.parseInt(pago));\n \n //creando objeto para guardar cliente\n modelo.addVenta addventa = new modelo.addVenta();\n try {\n addventa.agrega(venta);\n } catch (SQLException ex) {\n Logger.getLogger(formVenta.class.getName()).log(Level.SEVERE, null, ex);\n }\n response.sendRedirect(\"ventas\");//si se guarda exitosamente se redirecciona a membresia\n }",
"public void makeFactura() {\n Usuario userCurrent = (Usuario) FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get(\"current\");\n if (userCurrent != null) {\n Calendar c = Calendar.getInstance();\n factura.setIdfactura(facturaFacade.findAll().size() + 1);\n factura.setFechaVenta(c.getTime());\n factura.setUsuarioIdusuario(userCurrent);\n factura.setHabilitada(true);\n try {\n facturaFacade.create(factura);\n FacesContext.getCurrentInstance().addMessage(\"messages\", new FacesMessage(FacesMessage.SEVERITY_INFO, \"Factura creada exitosamente\", null));\n factura = new Factura();\n articulosFacturas = new ArrayList<>();\n total = 0;\n } catch (Exception e) {\n System.err.println(\"Error en la creacion de la factura: \" + e.getMessage());\n FacesContext.getCurrentInstance().addMessage(\"messages\", new FacesMessage(FacesMessage.SEVERITY_FATAL, e.getMessage(), null));\n }\n }\n getAllFacturas();\n }",
"public void makeClient() {\n try {\n clienteFacade.create(cliente);\n FacesContext.getCurrentInstance().addMessage(\"messages\", new FacesMessage(FacesMessage.SEVERITY_INFO, \"Cliente creado exitosamente\", null));\n } catch (Exception e) {\n System.err.println(\"Error en la creacion del usuario: \" + e.getMessage());\n FacesContext.getCurrentInstance().addMessage(\"messages\", new FacesMessage(FacesMessage.SEVERITY_FATAL, e.getMessage(), null));\n }\n }",
"@GetMapping(\"/service_requests/new\")\n public String newServiceRequest(Model model){\n String role = userService.getRole(userService.getCurrentUserName());\n model.addAttribute(\"role\", role);\n\n model.addAttribute(\"serviceRequest\", new ServiceRequest());\n\n return \"/forms/new_servicerequest.html\";\n }",
"public GestorDeConseptos() {\n initComponents();\n service=new InformeService(); \n m=new ConseptoTableModel();\n this.jTable1.setModel(m);\n cuentas=new Vector<ConseptoEnCuenta>();\n }",
"public void registrarMateria() {\n materia.setIdDepartamento(departamento);\n ejbFacade.create(materia);\n RequestContext requestContext = RequestContext.getCurrentInstance();\n requestContext.execute(\"PF('MateriaCreateDialog').hide()\");\n items = ejbFacade.findAll();\n departamento = new Departamento();\n materia = new Materia();\n\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Información\", \"La materia se registró con éxito\");\n FacesContext.getCurrentInstance().addMessage(null, msg);\n requestContext.update(\"msg\");//Actualiza la etiqueta growl para que el mensaje pueda ser mostrado\n\n requestContext.update(\"MateriaListForm\");\n requestContext.update(\"MateriaCreateForm\");\n }",
"public FrmAbmAfiliado() {\n initComponents();\n }",
"public CrearQuedadaVista() {\n }",
"public FrmInsertar() {\n initComponents();\n }",
"@RequestMapping(value=\"/formpaciente\")\r\n\tpublic String crearPaciente(Map<String, Object> model) {\t\t\r\n\t\t\r\n\t\tPaciente paciente = new Paciente();\r\n\t\tmodel.put(\"paciente\", paciente);\r\n\t\tmodel.put(\"obrasociales\",obraSocialService.findAll());\r\n\t\t//model.put(\"obrasPlanesForm\", new ObrasPlanesForm());\r\n\t\t//model.put(\"planes\", planService.findAll());\r\n\t\tmodel.put(\"titulo\", \"Formulario de Alta de Paciente\");\r\n\t\t\r\n\t\treturn \"formpaciente\";\r\n\t}",
"public ClienteServicio() {\n }",
"public ArrayList<FormularioServ> listaFServActivos(){\n\t\tArrayList<FormularioServ> listFServ = new ArrayList<FormularioServ>();\n\t\ttry{\n\t\t\tc = PoolConexion.getConnection();\n\t\t\tps = c.prepareStatement(\"select * from public.\\\"formularioServ\\\" where estado<>3\", ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE, ResultSet.HOLD_CURSORS_OVER_COMMIT);\n\t\t\trs = ps.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tFormularioServ Fserv = new FormularioServ();\n\t\t\t\tFserv.setIdFormulario(rs.getInt(\"idFormulario\"));\n\t\t\t\tFserv.setIdServ(rs.getInt(\"idServ\"));\n\t\t\t\tFserv.setNombreUsuario(rs.getString(\"nombreUsuario\"));\n\t\t\t\tFserv.setEmail(rs.getString(\"email\"));\n\t\t\t\tFserv.setCuerpoEmail(rs.getString(\"cuerpoEmail\"));\n\t\t\t\tFserv.setNumerotelefono(rs.getString(\"numerotelefono\"));\n\t\t\t\tFserv.setfCreacion(rs.getTimestamp(\"fcreacion\"));\n\t\t\t\tFserv.setEstado(rs.getInt(\"estado\"));\n\t\t\t\t\n\t\t\t\tlistFServ.add(Fserv);\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e){\n\t\t\tSystem.out.println(\"DATOS: ERROR EN LISTAR Formularios \"+ e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally{\n\t\t\ttry {\n\t\t\t\tif(rs != null){\n\t\t\t\t\trs.close();\n\t\t\t\t}\n\t\t\t\tif(ps != null){\n\t\t\t\t\tps.close();\n\t\t\t\t}\n\t\t\t\tif(c != null){\n\t\t\t\t\tPoolConexion.closeConnection(c);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn listFServ;\n\t}",
"public FrmFactura() {\n initComponents();\n }",
"public FrmCadCentroCusto() {\r\n initComponents();\r\n carregarCombo();\r\n }",
"public Servicio(String servicio){\n nombreServicio = servicio;\n }",
"public FrmDepartamentos() {\n initComponents();\n setLocationRelativeTo(this);\n this.jTexCodigo.requestFocus();\n }",
"public frmTelaVendas() {\n initComponents();\n this.carrinho = new CarrinhoDeCompras();\n listaItens.setModel(this.lista);\n }",
"public FrmClienteEsc() {\n initComponents();\n }",
"public void crearEntidad() throws EntidadNotFoundException {\r\n\t\tif (validarCampos(getNewEntidad())) {\r\n\t\t\tif (validarNomNitRepetidoEntidad(getNewEntidad())) {\r\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,\r\n\t\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_WARN, \"Advertencia: \", \"Nombre, Nit o Prejifo ya existe en GIA\"));\r\n\t\t\t} else {\r\n\t\t\t\tif (entidadController.crearEntidad(getNewEntidad())) {\r\n\t\t\t\t\tmensajeGrow(\"Entidad Creada Satisfactoriamente\", getNewEntidad());\r\n\t\t\t\t\tRequestContext.getCurrentInstance().execute(\"PF('entCrearDialog').hide()\");\r\n\t\t\t\t\tsetNewEntidad(new EntidadDTO());\r\n\t\t\t\t\tresetCodigoBUA();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmensajeGrow(\"Entidad No Fue Creada\", getNewEntidad());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tlistarEntidades();\r\n\t\t\t// newEntidad = new EntidadDTO();\r\n\t\t\t// fechaActual();\r\n\t\t}\r\n\r\n\t}",
"private void crearVista() {\n\t\tVista vista = Vista.getInstancia();\n\t\tvista.addObservador(this);\n\n\t}",
"@RequestMapping(method = RequestMethod.POST, value = {\"\",\"/\"})\r\n\tpublic ResponseEntity<FormularioDTO> add(@RequestBody @Valid Formulario formulario) throws AuthenticationException {\r\n\t\tformulario.setInstituicao(new Instituicao(authService.getDados().getInstituicaoId()));\r\n\t\treturn new ResponseEntity<>(formularioService.create(formulario), HttpStatus.CREATED);\r\n\t}",
"@PostMapping(\"/costo-servicios\")\n @Timed\n public ResponseEntity<CostoServicioDTO> createCostoServicio(@RequestBody CostoServicioDTO costoServicioDTO) throws URISyntaxException {\n log.debug(\"REST request to save CostoServicio : {}\", costoServicioDTO);\n if (costoServicioDTO.getId() != null) {\n throw new BadRequestAlertException(\"A new costoServicio cannot already have an ID\", ENTITY_NAME, \"idexists\");\n }\n CostoServicioDTO result = costoServicioService.save(costoServicioDTO);\n return ResponseEntity.created(new URI(\"/api/costo-servicios/\" + result.getId()))\n .headers(HeaderUtil.createEntityCreationAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\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}",
"@GetMapping(\"/restaurante/new\")\n\tpublic String newRestaurante(Model model) {\n\t\tmodel.addAttribute(\"restaurante\", new Restaurante());\n\t\tControllerHelper.setEditMode(model, false);\n\t\tControllerHelper.addCategoriasToRequest(categoriaRestauranteRepository, model);\n\t\t\n\t\treturn \"restaurante-cadastro\";\n\t\t\n\t}",
"public void insert(Service servico){\n Database.servico.add(servico);\n }",
"public static FormV1 createEntity() {\n FormV1 formV1 = new FormV1()\n .customerId(DEFAULT_CUSTOMER_ID)\n .formType(DEFAULT_FORM_TYPE);\n return formV1;\n }",
"public VistaCrearPedidoAbonado() {\n initComponents();\n errorLabel.setVisible(false);\n controlador = new CtrlVistaCrearPedidoAbonado(this);\n }",
"public ConsultarVeiculo() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n txtNomeServico = new javax.swing.JTextField();\n txtValor = new javax.swing.JTextField();\n txtId = new javax.swing.JTextField();\n btnExcluirServico = new javax.swing.JButton();\n btnCancelar = new javax.swing.JButton();\n txtPesquisaServicos = new javax.swing.JTextField();\n btnPesquisarServicos = new javax.swing.JToggleButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n tblServicos = new javax.swing.JTable();\n btnInserir = new javax.swing.JButton();\n btnAlterar = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n lblSair = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Pesquisa de Serviços\");\n setUndecorated(true);\n setResizable(false);\n\n btnExcluirServico.setBackground(new java.awt.Color(0, 155, 219));\n btnExcluirServico.setFont(new java.awt.Font(\"Open Sans\", 0, 11)); // NOI18N\n btnExcluirServico.setForeground(new java.awt.Color(255, 255, 255));\n btnExcluirServico.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/fronteira/imgs/Lixeira.png\"))); // NOI18N\n btnExcluirServico.setText(\"Excluir\");\n btnExcluirServico.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btnExcluirServico.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnExcluirServicoActionPerformed(evt);\n }\n });\n\n btnCancelar.setBackground(new java.awt.Color(0, 155, 219));\n btnCancelar.setFont(new java.awt.Font(\"Open Sans\", 0, 11)); // NOI18N\n btnCancelar.setForeground(new java.awt.Color(255, 255, 255));\n btnCancelar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/fronteira/imgs/Cancelar IMG - Sistema.png\"))); // NOI18N\n btnCancelar.setText(\"Cancelar\");\n btnCancelar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btnCancelar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCancelarActionPerformed(evt);\n }\n });\n\n txtPesquisaServicos.setFont(new java.awt.Font(\"Open Sans\", 0, 12)); // NOI18N\n txtPesquisaServicos.setForeground(new java.awt.Color(0, 73, 125));\n txtPesquisaServicos.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 155, 219), 2));\n\n btnPesquisarServicos.setBackground(new java.awt.Color(0, 155, 219));\n btnPesquisarServicos.setFont(new java.awt.Font(\"Open Sans\", 0, 11)); // NOI18N\n btnPesquisarServicos.setForeground(new java.awt.Color(255, 255, 255));\n btnPesquisarServicos.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/fronteira/imgs/Atualizar.png\"))); // NOI18N\n btnPesquisarServicos.setText(\"Pesquisar\");\n btnPesquisarServicos.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btnPesquisarServicos.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnPesquisarServicosActionPerformed(evt);\n }\n });\n\n tblServicos.setFont(new java.awt.Font(\"Arial\", 0, 12)); // NOI18N\n tblServicos.setModel(tmServicos);\n tblServicos.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n lsmServicos = tblServicos.getSelectionModel();\n lsmServicos.addListSelectionListener (new ListSelectionListener() {\n public void valueChanged(ListSelectionEvent e) {\n if (! e.getValueIsAdjusting()) {\n tblServicosLinhaSelecionada(tblServicos);\n }\n }\n\n });\n jScrollPane1.setViewportView(tblServicos);\n\n btnInserir.setBackground(new java.awt.Color(0, 155, 219));\n btnInserir.setFont(new java.awt.Font(\"Arial\", 0, 11)); // NOI18N\n btnInserir.setForeground(new java.awt.Color(255, 255, 255));\n btnInserir.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/fronteira/imgs/Inserir.png\"))); // NOI18N\n btnInserir.setText(\"Inserir\");\n btnInserir.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btnInserir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnInserirActionPerformed(evt);\n }\n });\n\n btnAlterar.setBackground(new java.awt.Color(0, 155, 219));\n btnAlterar.setFont(new java.awt.Font(\"Open Sans\", 0, 11)); // NOI18N\n btnAlterar.setForeground(new java.awt.Color(255, 255, 255));\n btnAlterar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/fronteira/imgs/Atualizar.png\"))); // NOI18N\n btnAlterar.setText(\"Alterar\");\n btnAlterar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n btnAlterar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAlterarActionPerformed(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Arial\", 1, 24)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(0, 73, 125));\n jLabel1.setText(\"PESQUISA DE SERVIÇOS\");\n\n lblSair.setFont(new java.awt.Font(\"Open Sans\", 1, 18)); // NOI18N\n lblSair.setForeground(new java.awt.Color(0, 73, 125));\n lblSair.setText(\"X\");\n lblSair.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n lblSair.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n lblSairMouseClicked(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 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(btnInserir, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btnAlterar, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btnExcluirServico, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btnCancelar, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(txtPesquisaServicos, javax.swing.GroupLayout.PREFERRED_SIZE, 311, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(btnPesquisarServicos, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 438, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(lblSair)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\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 .addContainerGap()\n .addComponent(jLabel1))\n .addComponent(lblSair))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtPesquisaServicos, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnPesquisarServicos, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(btnCancelar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnInserir, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnAlterar, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnExcluirServico, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(30, Short.MAX_VALUE))\n );\n\n pack();\n setLocationRelativeTo(null);\n }",
"public ServicoDoSistemaView() {\n initComponents();\n this.removidos = new ArrayList<ServicoDoSistema>();\n try {\n this.c = new ServicoDoSistemaController();\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(this, \"Houve erros: \"\n + ex.getMessage());\n }\n }",
"public SalidaCajaForm() {\n\t\tinicializarComponentes();\n }",
"public ABMServicio(ControladoraVisual unaControladora) {\n initComponents();\n unaControladoraVisual = unaControladora;\n modelo.addColumn(\"ID\");\n modelo.addColumn(\"Nombre\");\n modelo.addColumn(\"Descripcion\");\n modelo.addColumn(\"Precio\");\n cargarTabla();\n }",
"@RequestMapping(value = \"/creerMouvementFini\", method = RequestMethod.POST)\r\n\tpublic @ResponseBody String creerMouvementFini(@RequestBody MouvementFiniValue pMouvementFiniValue) {\r\n\t\treturn this.mouvementFiniService.createMouvementFini(pMouvementFiniValue);\r\n\t}",
"public void adicionarServicos() {\n int i;\n if (hospedesCadastrados.isEmpty()) {\n System.err.println(\"Não existem hospedes cadastrados!\\n\");\n } else {\n\n System.err.println(\"Digite o cpf do hospede que deseja adicionar servicos:\");\n listarHospedes();\n int cpf = verifica();\n for (i = 0; i < hospedesCadastrados.size(); i++) {\n if (hospedesCadastrados.get(i).getCpf() == cpf) {//pega o indice i do objeo pessoa, pega o id da pessoa e compara com o id da pessoa digitada\n if (hospedesCadastrados.get(i).getContrato().isSituacao()) {//verifica se a situaçao do contrato ainda está aberta para esse hospede\n\n System.err.println(\"O que deseja editar do contrato\\n\");\n //adicionar carro, trocar de quarto, adicionar conta de restaurante,\n //encerrar contrato\n\n System.err.println(\"Adicionar carro (1):\\nAdicionar restaurante (2):\\n\"\n + \"Adicionar horas de BabySitter (3):\\nAdicionar quarto(4):\\n\");\n int caso = verifica();\n switch (caso) {\n case 1://carro\n if (carrosCadastrados.isEmpty()) {\n System.err.println(\"Nao existem carros cadastrados!\\n\");\n } else {\n listarCarros();\n System.err.println(\"Digite o id do carro que deseja contratar:\\n\");\n int idCarro = verifica();\n\n for (int j = 0; j < carrosCadastrados.size(); j++) {\n if (carrosCadastrados.get(j).getId() == idCarro) {\n if (carrosCadastrados.get(j).isEstado()) {\n System.err.println(\"Esse carro já está cadastrado.\\n\");\n } else {\n hospedesCadastrados.get(i).getContrato().setCarros(carrosCadastrados.get(j));\n carrosCadastrados.get(j).setEstado(true);\n }\n }\n }\n }\n break;\n\n case 2://restaurante\n System.err.println(\"Digite o quanto deseja gastar no restaurente\\n\");\n double valorRestaurante = ler.nextDouble();\n// idd();\n// int idRestaurante = id;\n// Restaurante restaurante = new Restaurante(idRestaurante, valorRestaurante);\n hospedesCadastrados.get(i).getContrato().setValorRestaurante(valorRestaurante);\n break;\n case 3://babysitter\n System.err.println(\"Digite o tempo gasto no BabySytter em horas\\n\");\n double tempoBaby = ler.nextDouble();\n hospedesCadastrados.get(i).getContrato().setHorasBaby(tempoBaby);\n break;\n case 4://quartos\n\n if (quartosCadastrados.isEmpty()) {\n\n } else {\n System.err.println(\"Digite o numero do quarto que deseja contratar:\\n\");\n listarQuartos();\n int num = verifica();\n System.err.println(\"Digite a quantidade de dis que pretente alugar o quarto:\\n\");\n int dias = verifica();\n for (int j = 0; j < quartosCadastrados.size(); j++) {\n if (num == quartosCadastrados.get(j).getNumero()) {//verifica se o numero digitado é igual ao numero do quarto do laco\n if (quartosCadastrados.get(j).getEstado()) {//verifica se o estado do quarto está como true\n System.err.println(\"Este quarto já está cadastrado em um contrato\");\n } else {//se o estado tiver em true é porque o quarto ja está cadastrado\n\n hospedesCadastrados.get(i).getContrato().setQuartos(quartosCadastrados.get(j));\n hospedesCadastrados.get(i).getContrato().getQuartosCadastrados().get(j).setDias(dias);\n hospedesCadastrados.get(i).getContrato().getQuartosCadastrados().get(j).setEstado(true);//seta o estado do quarto como ocupado\n System.err.println(\"Quarto cadastrado!\\n\");\n }\n\n }\n\n }\n\n//remove all remove todas as pessoas com tal nome\t\n }\n break;\n\n }\n } else {\n System.err.println(\"O contrato deste Hospede encontra-se encerrado\");\n break;\n }\n }\n }\n }\n }",
"protected void nuevo(){\n wp = new frmEspacioTrabajo();\n System.runFinalization();\n inicializar();\n }",
"public void getServicios() {\n\t\tjs.executeScript(\"arguments[0].click();\", cuadradito);\n\t\tinputSearch.sendKeys(\"Servicio\");\n\t\tjs.executeScript(\"arguments[0].click();\", servicios);\n\t}",
"@RequestMapping(value = { \"/new\" }, method = RequestMethod.POST)\n\tpublic String saveEntity(@Valid ENTITY tipoConsumo, BindingResult result, ModelMap model,\n\t\t\t@RequestParam(required = false) Integer idEstadia) {\n\t\ttry{\n\t\n\t\t\tif (result.hasErrors()) {\n\t\t\t\treturn viewBaseLocation + \"/form\";\n\t\t\t}\n\t\n\t\t\tabm.guardar(tipoConsumo);\n\t\n\t\t\tif(idEstadia != null){\n\t\t\t\tmodel.addAttribute(\"idEstadia\", idEstadia);\n\t\t\t}\n\t\n\t\t\tmodel.addAttribute(\"success\", \"La creación se realizó correctamente.\");\n\t\t\t\n\t\t} catch(Exception e) {\n\t\t\tmodel.addAttribute(\"success\", \"La creación no pudo realizarse.\");\n\t\t}\n\t\tmodel.addAttribute(\"loggedinuser\", getPrincipal());\n\t\treturn \"redirect:list\";\n\t}",
"@Override\n void create(Cliente cliente);",
"public Team create(TeamDTO teamForm);",
"@_esCocinero\n public Result crearPaso() {\n Form<Paso> frm = frmFactory.form(Paso.class).bindFromRequest();\n\n // Comprobación de errores\n if (frm.hasErrors()) {\n return status(409, frm.errorsAsJson());\n }\n\n Paso nuevoPaso = frm.get();\n\n // Comprobar autor\n String key = request().getQueryString(\"apikey\");\n if (!SeguridadFunctions.esAutorReceta(nuevoPaso.p_receta.getId(), key))\n return Results.badRequest();\n\n // Checkeamos y guardamos\n if (nuevoPaso.checkAndCreate()) {\n Cachefunctions.vaciarCacheListas(\"pasos\", Paso.numPasos(), cache);\n Cachefunctions.vaciarCacheListas(\"recetas\", Receta.numRecetas(), cache);\n return Results.created();\n } else {\n return Results.badRequest();\n }\n\n }",
"public com.alain.puntocoma.model.Catalogo create(long catalogoId);",
"public static ServicioAdicional insertServicioAdicional(String nombre_servicio,\n String descripcion_servicio,\n String nombre_tipo_servicio,\n float tarifa_serv_adicional,\n int cantidad_serv_adicional,\n String tipo_plan_serv_adicional){\n \n ServicioAdicional miServAdicional = new ServicioAdicional(nombre_servicio,\n descripcion_servicio,\n nombre_tipo_servicio,\n tarifa_serv_adicional,\n cantidad_serv_adicional,\n tipo_plan_serv_adicional);\n \n \n try {\n miServAdicional.registrarServicioAd();\n } catch (Exception e) {\n // Si hay una excepcion se imprime un mensaje\n System.err.println(e.getMessage());\n }\n \n return miServAdicional;\n \n }",
"public FinPagamentosListagemBean()\n {\n }",
"public void SalvarNovaPessoa(){\r\n \r\n\t\tpessoaModel.setUsuarioModel(this.usuarioController.GetUsuarioSession());\r\n \r\n\t\t//INFORMANDO QUE O CADASTRO FOI VIA INPUT\r\n\t\tpessoaModel.setOrigemCadastro(\"I\");\r\n \r\n\t\tpessoaRepository.SalvarNovoRegistro(this.pessoaModel);\r\n \r\n\t\tthis.pessoaModel = null;\r\n \r\n\t\tUteis.MensagemInfo(\"Registro cadastrado com sucesso\");\r\n \r\n\t}",
"@GetMapping(\"/create\")\n public ModelAndView create(@ModelAttribute(\"form\") final CardCreateForm form) {\n return getCreateForm(form);\n }",
"@GetMapping(path = \"/realizar\")\n public ModelAndView getForm(){\n\n return new ModelAndView(ViewConstant.MANTCOMPRASMINO).addObject(\"compraMinorista\", new CompraMinorista());\n }",
"public ProfilsFIForm() {\r\n\t\tsuper();\r\n\t}",
"public frm_tutor_subida_prueba() {\n }",
"public static Services addNewService(Services services) {\n services.setId(FuncValidation.getValidIdService(services,ENTER_SERVICE_ID,INVALID_SERVICE_ID));\n services.setNameOfService(FuncValidation.getValidName(ENTER_SERVICE_NAME,INVALID_NAME));\n services.setUsedArea(FuncValidation.getValidDoubleNumber(ENTER_USED_AREA, INVALID_DOUBLE_NUMBER,30.0));\n services.setRentalFee(FuncValidation.getValidDoubleNumber(ENTER_RENTAL_FEE, INVALID_RENTAL_FEE,0.0));\n services.setMaxGuest(FuncValidation.getValidIntegerNumber(ENTER_MAXIMUM_OF_GUEST,INVALID_MAX_GUEST,0,20));\n services.setRentType(FuncValidation.getValidName(ENTER_TYPE_OF_RENT,INVALID_NAME));\n return services;\n }",
"public JFNuevoCliente() {\n initComponents();\n \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}",
"OperacionColeccion createOperacionColeccion();",
"BeanPedido crearPedido(BeanCrearPedido pedido);",
"FORM createFORM();",
"public FormInserir() {\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 }",
"public FrmFerramentas() throws IOException {\n initComponents();\n SelecionaLocal();\n //PreencheLook();\n }",
"public Frm_EliminaProducto() {\n initComponents();\n try{\n actualizarTabla();\n }catch(Exception e){\n \n }\n }",
"public ClienteVO getFormCliente() {\n try {\n String nome = cadastroView.getTxtNome().getText();\n String cpf = cadastroView.getTxtCPF().getText().trim().replaceAll(\"\\\\.\", \"\").replaceAll(\"-\", \"\");\n String rg = cadastroView.getTxtRG().getText().trim();\n String email = cadastroView.getTxtEmail().getText().trim();\n String fone = cadastroView.getTxtTelefone().getText().trim().replace(\"(\", \"\").replace(\")\", \"\");\n return new ClienteVO(nome, cpf, rg, email, fone);\n } catch (Exception e) {\n System.out.println(e.getMessage());\n e.printStackTrace();\n }\n return null;\n }",
"@FXML\r\n private void crearSolicitud() {\r\n try {\r\n //Carga la vista de crear solicitud rma\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(Principal.class.getResource(\"/vista/CrearSolicitud.fxml\"));\r\n BorderPane vistaCrear = (BorderPane) loader.load();\r\n\r\n //Crea un dialogo para mostrar la vista\r\n Stage dialogo = new Stage();\r\n dialogo.setTitle(\"Solicitud RMA\");\r\n dialogo.initModality(Modality.WINDOW_MODAL);\r\n dialogo.initOwner(primerStage);\r\n Scene escena = new Scene(vistaCrear);\r\n dialogo.setScene(escena);\r\n\r\n //Annadir controlador y datos\r\n ControladorCrearSolicitud controlador = loader.getController();\r\n controlador.setDialog(dialogo, primerStage);\r\n\r\n //Carga el numero de Referencia\r\n int numReferencia = DAORma.crearReferencia();\r\n\r\n //Modifica el dialogo para que no se pueda cambiar el tamaño y lo muestra\r\n dialogo.setResizable(false);\r\n dialogo.showAndWait();\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public CrearProductos() {\n initComponents();\n }",
"public CARGOS_REGISTRO() {\n initComponents();\n InputMap map2 = txtNombre.getInputMap(JTextField.WHEN_FOCUSED); \n map2.put(KeyStroke.getKeyStroke(KeyEvent.VK_V, Event.CTRL_MASK), \"null\");\n InputMap maps = TxtSue.getInputMap(JTextField.WHEN_FOCUSED); \n maps.put(KeyStroke.getKeyStroke(KeyEvent.VK_V, Event.CTRL_MASK), \"null\");\n InputMap map3 = txtFun.getInputMap(JTextField.WHEN_FOCUSED); \n map3.put(KeyStroke.getKeyStroke(KeyEvent.VK_V, Event.CTRL_MASK), \"null\");\n this.setLocationRelativeTo(null);\n this.txtFun.setLineWrap(true);\n this.lblId.setText(Funciones.extraerIdMax());\n\t\tsexo.addItem(\"Administrativo\");\n\t\tsexo.addItem(\"Operativo\");\n sexo.addItem(\"Tecnico\");\n sexo.addItem(\"Servicios\");\n \n }",
"@POST\r\n public DocumentoDTO crearDocumento(DocumentoDTO documento){\r\n return new DocumentoDTO(logic.crearDocumento(documento.toEntity()));\r\n }"
] | [
"0.7042042",
"0.65392524",
"0.6358223",
"0.6335231",
"0.63203144",
"0.6176746",
"0.6110081",
"0.60868967",
"0.6079554",
"0.60590214",
"0.6044216",
"0.60398144",
"0.6025182",
"0.60152435",
"0.6006732",
"0.59987533",
"0.59899014",
"0.5969546",
"0.5949934",
"0.59412855",
"0.59371114",
"0.5928239",
"0.59276843",
"0.5922353",
"0.5920109",
"0.5916255",
"0.5911545",
"0.5886234",
"0.5871767",
"0.58690476",
"0.5850618",
"0.58493054",
"0.5844813",
"0.58152676",
"0.58066875",
"0.57966053",
"0.5785268",
"0.57728463",
"0.5766202",
"0.57577944",
"0.5745171",
"0.5732298",
"0.57194847",
"0.57135725",
"0.5708663",
"0.56632257",
"0.5658102",
"0.5650035",
"0.56453484",
"0.56435496",
"0.5630627",
"0.5629191",
"0.56260896",
"0.56200904",
"0.5611705",
"0.5609881",
"0.56073874",
"0.5599765",
"0.55983585",
"0.5592928",
"0.55927444",
"0.5579861",
"0.55763286",
"0.5574908",
"0.55707484",
"0.5569891",
"0.5569681",
"0.556505",
"0.5559604",
"0.5559569",
"0.554926",
"0.55397296",
"0.55374193",
"0.55369383",
"0.5531053",
"0.55284727",
"0.5527386",
"0.55208164",
"0.5520203",
"0.5515475",
"0.55118155",
"0.5510752",
"0.550192",
"0.550144",
"0.54958916",
"0.5493079",
"0.5491491",
"0.5491327",
"0.5486902",
"0.5480721",
"0.54793435",
"0.54709303",
"0.5467934",
"0.54667735",
"0.54557854",
"0.545498",
"0.54537344",
"0.544406",
"0.54406655",
"0.54370934"
] | 0.75584745 | 0 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
fmrNumOS = new javax.swing.JTextField();
jLabel1 = new javax.swing.JLabel();
AbrirOS = new javax.swing.JButton();
Fechar = new javax.swing.JButton();
Cadastrar = new javax.swing.JButton();
LimparCampos = new javax.swing.JButton();
jScrollPane1 = new javax.swing.JScrollPane();
jTable1 = new javax.swing.JTable();
jLabel2 = new javax.swing.JLabel();
PesquisarCompleto = new javax.swing.JButton();
fmrNomeCliente = new javax.swing.JTextField();
jLabel3 = new javax.swing.JLabel();
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
jLabel1.setText("Numero da OS");
AbrirOS.setText("Abrir OS");
AbrirOS.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
AbrirOS.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
AbrirOSActionPerformed(evt);
}
});
Fechar.setText("Fechar");
Fechar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
Fechar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
FecharActionPerformed(evt);
}
});
Cadastrar.setText("Cadastrar");
Cadastrar.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
Cadastrar.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
CadastrarActionPerformed(evt);
}
});
LimparCampos.setText("Limpar Campos");
LimparCampos.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
LimparCampos.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
LimparCamposActionPerformed(evt);
}
});
jScrollPane1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
jTable1.setAutoCreateRowSorter(true);
jTable1.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
},
new String [] {
"Nº OS", "Cliente", "Funcionário", "Status", " Problema", "Observação", "Abertura", "Fechamento", "Peça", "Valor Total"
}
) {
Class[] types = new 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, java.lang.String.class, java.lang.Double.class
};
boolean[] canEdit = new boolean [] {
false, false, false, false, false, false, false, false, false, false
};
public Class getColumnClass(int columnIndex) {
return types [columnIndex];
}
public boolean isCellEditable(int rowIndex, int columnIndex) {
return canEdit [columnIndex];
}
});
jScrollPane1.setViewportView(jTable1);
jLabel2.setFont(new java.awt.Font("Tahoma", 0, 12)); // NOI18N
jLabel2.setForeground(new java.awt.Color(51, 51, 51));
jLabel2.setText("Obs: deixe o campo vazio e clique em Pesquisar para listar todos");
PesquisarCompleto.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
PesquisarCompleto.setText("Pesquisar");
PesquisarCompleto.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
PesquisarCompleto.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
PesquisarCompletoActionPerformed(evt);
}
});
jLabel3.setText("Nome do cliente");
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)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addComponent(Cadastrar)
.addGap(18, 18, 18)
.addComponent(AbrirOS)
.addGap(18, 18, 18)
.addComponent(PesquisarCompleto)
.addGap(18, 18, 18)
.addComponent(LimparCampos)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(Fechar))
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel3)
.addComponent(fmrNomeCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel1)
.addComponent(fmrNumOS, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(175, 175, Short.MAX_VALUE)
.addComponent(jLabel2)
.addGap(19, 19, 19)))
.addContainerGap())
.addComponent(jScrollPane1)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(42, 42, 42)
.addComponent(jLabel2))
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel3)
.addGap(7, 7, 7)
.addComponent(fmrNomeCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel1)
.addGap(7, 7, 7)
.addComponent(fmrNumOS, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(18, 18, 18)
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 269, Short.MAX_VALUE)
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(Fechar)
.addComponent(AbrirOS)
.addComponent(Cadastrar)
.addComponent(LimparCampos)
.addComponent(PesquisarCompleto))
.addContainerGap())
);
pack();
setLocationRelativeTo(null);
} | {
"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 quotaGUI() {\n initComponents();\n }",
"public BloodDonationGUI() {\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.7319037",
"0.7290621",
"0.7290621",
"0.7290621",
"0.7285163",
"0.72480375",
"0.72130316",
"0.7207723",
"0.7195822",
"0.7189463",
"0.7183591",
"0.71580946",
"0.7147075",
"0.70924276",
"0.70795405",
"0.7056352",
"0.6986753",
"0.6976759",
"0.6954958",
"0.69533294",
"0.6944831",
"0.69417095",
"0.6934517",
"0.6930924",
"0.6926761",
"0.69241685",
"0.6923851",
"0.69112706",
"0.6910913",
"0.689217",
"0.689193",
"0.6890017",
"0.68896353",
"0.6888143",
"0.68825865",
"0.6881063",
"0.6880471",
"0.6877822",
"0.68752986",
"0.6873734",
"0.68713146",
"0.6859294",
"0.6856707",
"0.685489",
"0.6854541",
"0.68543345",
"0.68526614",
"0.68516856",
"0.68516856",
"0.6842822",
"0.6836592",
"0.6836195",
"0.68277925",
"0.6827518",
"0.68260497",
"0.682339",
"0.68222433",
"0.6816619",
"0.6815844",
"0.68096834",
"0.6808133",
"0.68078655",
"0.6807532",
"0.68070555",
"0.6802426",
"0.6794083",
"0.679347",
"0.6791848",
"0.6790225",
"0.6788846",
"0.67884487",
"0.6787538",
"0.67819446",
"0.6766094",
"0.676505",
"0.6764832",
"0.67562455",
"0.6754961",
"0.67515653",
"0.6750421",
"0.6742601",
"0.673875",
"0.67371166",
"0.6735209",
"0.6732373",
"0.6727282",
"0.6726048",
"0.6719771",
"0.67154175",
"0.6714355",
"0.671359",
"0.67079127",
"0.670646",
"0.670331",
"0.6700197",
"0.669957",
"0.6698499",
"0.6697054",
"0.6693929",
"0.6690299",
"0.66896695"
] | 0.0 | -1 |
End of variables declaration//GENEND:variables | public void buscaTodasOSs() {
try {
ServicoDAO sDAO = new ServicoDAO(); // instancia a classe ProdutoDB()
ArrayList<OS> cl = sDAO.consultaTodasOs(); // coloca o método dentro da variável
DefaultTableModel modeloTabela = (DefaultTableModel) jTable1.getModel();
// coloca a tabela em uma variável do tipo DefaultTableModel, que permite a modelagem dos dados da tabela
for (int i = modeloTabela.getRowCount() - 1; i >= 0; i--) {
modeloTabela.removeRow(i);
// loop que limpa a tabela antes de ser atualizada
}
for (int i = 0; i < cl.size(); i++) {
// loop que pega os dados e insere na tabela
Object[] dados = new Object[7]; // instancia os objetos. Cada objeto representa um atributo
dados[0] = cl.get(i).getNumero_OS();
dados[3] = cl.get(i).getStatus_OS();
dados[4] = cl.get(i).getDefeito_OS();
dados[5] = cl.get(i).getDataAbertura_OS();
dados[6] = cl.get(i).getDataFechamento_OS();
// pega os dados salvos do banco de dados (que estão nas variáveis) e os coloca nos objetos definidos
modeloTabela.addRow(dados); // insere uma linha nova a cada item novo encontrado na tabela do BD
}
} catch (SQLException ex) {
JOptionPane.showMessageDialog(null, "Falha na operação.\nErro: " + ex.getMessage());
} catch (Exception ex) {
Logger.getLogger(FrmPesquisar.class.getName()).log(Level.SEVERE, null, ex);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"public void mo38117a() {\n }",
"@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}",
"private void assignment() {\n\n\t\t\t}",
"private void kk12() {\n\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"public void mo21779D() {\n }",
"public final void mo51373a() {\n }",
"protected boolean func_70041_e_() { return false; }",
"public void mo4359a() {\n }",
"public void mo21782G() {\n }",
"private void m50366E() {\n }",
"public void mo12930a() {\n }",
"public void mo115190b() {\n }",
"public void method_4270() {}",
"public void mo1403c() {\n }",
"public void mo3376r() {\n }",
"public void mo3749d() {\n }",
"public void mo21793R() {\n }",
"protected boolean func_70814_o() { return true; }",
"public void mo21787L() {\n }",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo21780E() {\n }",
"public void mo21792Q() {\n }",
"public void mo21791P() {\n }",
"public void mo12628c() {\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public void mo97908d() {\n }",
"public void mo21878t() {\n }",
"public void mo9848a() {\n }",
"public void mo21825b() {\n }",
"public void mo23813b() {\n }",
"public void mo3370l() {\n }",
"public void mo21879u() {\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"public void mo21785J() {\n }",
"public void mo21795T() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void m23075a() {\n }",
"public void mo21789N() {\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"public void mo21794S() {\n }",
"public final void mo12688e_() {\n }",
"@Override\r\n\tvoid func04() {\n\t\t\r\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"public void mo6944a() {\n }",
"public static void listing5_14() {\n }",
"public void mo1405e() {\n }",
"public final void mo91715d() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"public void mo9137b() {\n }",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"public void func_70295_k_() {}",
"void mo57277b();",
"public void mo21877s() {\n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"public void Tyre() {\n\t\t\r\n\t}",
"void berechneFlaeche() {\n\t}",
"public void mo115188a() {\n }",
"public void mo21880v() {\n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"public void mo21784I() {\n }",
"private stendhal() {\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"public void mo56167c() {\n }",
"public void mo44053a() {\n }",
"public void mo21781F() {\n }",
"public void mo2740a() {\n }",
"public void mo21783H() {\n }",
"public void mo1531a() {\n }",
"double defendre();",
"private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }",
"public void stg() {\n\n\t}",
"void m1864a() {\r\n }",
"private void poetries() {\n\n\t}",
"public void skystonePos4() {\n }",
"public void mo2471e() {\n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"private void yy() {\n\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"@AnyLogicInternalCodegenAPI\n private void setupPlainVariables_Main_xjal() {\n }",
"static void feladat4() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }",
"public void furyo ()\t{\n }",
"public void verliesLeven() {\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"protected void mo6255a() {\n }"
] | [
"0.6359434",
"0.6280371",
"0.61868024",
"0.6094568",
"0.60925734",
"0.6071678",
"0.6052686",
"0.60522056",
"0.6003249",
"0.59887564",
"0.59705925",
"0.59680873",
"0.5967989",
"0.5965816",
"0.5962006",
"0.5942372",
"0.5909877",
"0.5896588",
"0.5891321",
"0.5882983",
"0.58814824",
"0.5854075",
"0.5851759",
"0.58514243",
"0.58418584",
"0.58395296",
"0.5835063",
"0.582234",
"0.58090156",
"0.5802706",
"0.5793836",
"0.57862717",
"0.5784062",
"0.5783567",
"0.5782131",
"0.57758564",
"0.5762871",
"0.5759349",
"0.5745087",
"0.57427835",
"0.573309",
"0.573309",
"0.573309",
"0.573309",
"0.573309",
"0.573309",
"0.573309",
"0.57326084",
"0.57301426",
"0.57266665",
"0.57229686",
"0.57175463",
"0.5705802",
"0.5698347",
"0.5697827",
"0.569054",
"0.5689405",
"0.5686434",
"0.56738997",
"0.5662217",
"0.56531453",
"0.5645255",
"0.5644223",
"0.5642628",
"0.5642476",
"0.5640595",
"0.56317437",
"0.56294966",
"0.56289655",
"0.56220204",
"0.56180173",
"0.56134313",
"0.5611337",
"0.56112075",
"0.56058615",
"0.5604383",
"0.5602629",
"0.56002104",
"0.5591573",
"0.55856615",
"0.5576992",
"0.55707216",
"0.5569681",
"0.55570376",
"0.55531484",
"0.5551123",
"0.5550893",
"0.55482954",
"0.5547471",
"0.55469507",
"0.5545719",
"0.5543553",
"0.55424106",
"0.5542057",
"0.55410767",
"0.5537739",
"0.55269134",
"0.55236584",
"0.55170715",
"0.55035424",
"0.55020875"
] | 0.0 | -1 |
Action after the "delete" had been confirmed. | void onDelete(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onConfirmFavouriteDeletion();",
"@FXML\r\n public void onDelete() {\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n alert.setTitle(\"Mensagem\");\r\n alert.setHeaderText(\"\");\r\n alert.setContentText(\"Deseja excluir?\");\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if (result.get() == ButtonType.OK) {\r\n AlunoModel alunoModel = tabelaAluno.getItems().get(tabelaAluno.getSelectionModel().getSelectedIndex());\r\n\r\n if (AlunoDAO.executeUpdates(alunoModel, AlunoDAO.DELETE)) {\r\n tabelaAluno.getItems().remove(tabelaAluno.getSelectionModel().getSelectedIndex());\r\n alert(\"Excluido com sucesso!\");\r\n desabilitarCampos();\r\n } else {\r\n alert(\"Não foi possivel excluir\");\r\n }\r\n }\r\n }",
"private void delete() {\n\t\tComponents.questionDialog().message(\"Are you sure?\").callback(answeredYes -> {\n\n\t\t\t// if confirmed, delete the current product PropertyBox\n\t\t\tdatastore.delete(TARGET, viewForm.getValue());\n\t\t\t// Notify the user\n\t\t\tNotification.show(\"Product deleted\", Type.TRAY_NOTIFICATION);\n\n\t\t\t// navigate back\n\t\t\tViewNavigator.require().navigateBack();\n\n\t\t}).open();\n\t}",
"public void onDelete() {\n if (DEBUG) Log.e(Thread.currentThread().getStackTrace()[2].getClassName(), Thread.currentThread().getStackTrace()[2].getMethodName());\n showDialog(R.id.dialog_confirm_delete);\n }",
"public void onPressDelete() {\r\n new ActionConfirmationFragment(this, this)\r\n .setTitle(getString(R.string.event_confirmation_delete_event))\r\n .setMessage(getString(R.string.action_confirmation_cannot_be_undone))\r\n .setRequestID(REQUEST_CONFIRMATION_DELETE_EVENT)\r\n .show(getSupportFragmentManager(), null);\r\n }",
"private void actionDelete() {\r\n showDeleteDialog();\r\n }",
"@Step(\"Delete Account\")\n public void deleteAccount() {\n Driver.waitForElement(10).until(ExpectedConditions.visibilityOf(deleteAccountButton));\n deleteAccountButton.click();\n Driver.waitForElement(10).until(ExpectedConditions.visibilityOf(confirmDeleteButton));\n confirmDeleteButton.click();\n }",
"private void delete(ActionEvent e){\r\n if (client != null){\r\n ConfirmBox.display(\"Confirm Deletion\", \"Are you sure you want to delete this entry?\");\r\n if (ConfirmBox.response){\r\n Client.deleteClient(client);\r\n AlertBox.display(\"Delete Client\", \"Client Deleted Successfully\");\r\n // Refresh view\r\n refresh();\r\n \r\n }\r\n }\r\n }",
"void deleteButton_actionPerformed(ActionEvent e) {\n doDelete();\n }",
"private void showDeleteSuccess() {\n Notification notification = Notification.show(\"Your Advert Has Been Deleted \");\n notification.addThemeVariants(NotificationVariant.LUMO_ERROR);\n UI.getCurrent().getPage().reload();\n }",
"private void confirmDelete(){\n\t\tAlertDialog.Builder dialog = new AlertDialog.Builder(this);\n\t\tdialog.setIcon(R.drawable.warning);\n\t\tdialog.setTitle(\"Confirm\");\n\t\tdialog.setMessage(\"Are you sure you want to Delete Selected Bookmark(s).?\");\n\t\tdialog.setCancelable(false);\n\t\tdialog.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdeleteBookmark();\n\t\t\t}\n\t\t});\n\t\tdialog.setNegativeButton(\"CANCEL\", new DialogInterface.OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.dismiss();\n\t\t\t}\n\t\t});\n\t\t\n\t\t// Pack and show\n\t\tAlertDialog alert = dialog.create();\n\t\talert.show();\n\t}",
"public void tryDelete() throws Exception {\r\n\t\tif (_confirmDelete && getPageDataStoresStatus() != DataStoreBuffer.STATUS_NEW) {\r\n\t\t\tscrollToMe();\r\n if (getValidator().getUseAlertsForErrors()) {\r\n addConfirmScript(_okToDeleteQuestion, _okToDeleteValue);\r\n }\r\n else {\r\n _validator.setErrorMessage(_okToDeleteQuestion, null, -1, _okToDelete);\r\n }\r\n\t\t}\r\n else {\r\n\t\t\tdoDelete();\r\n }\r\n\t}",
"public void clickConfirmDeleteButton() {\n // GeneralUtilities.waitSomeSeconds(1);\n // validateElementText(titleConfirmDeleteToDo, \"Delete To-Do?\");\n // validateElementText(titleConfirmDeleteToDoDescription, \"Are you sure you'd like to delete these To-Dos? Once deleted, you will not be able to retrieve any documents uploaded on the comments in the selected To-Dos.\");\n // waitForCssValueChanged(divConfirmDeleteToDo, \"Div Confirm Delete ToDo\", \"display\", \"block\");\n //\n // hoverElement(buttonConfirmDeleteToDo, \"Button Confirm Delete ToDo\");\n waitForAnimation(divConfirmDeleteToDoAnimate, \"Div Confirm Delete ToDo Animation\");\n clickElement(buttonConfirmDeleteToDo, \"Button Confirm Delete ToDo\");\n waitForCssValueChanged(divConfirmDeleteToDo, \"Div Confirm Delete ToDo\", \"display\", \"none\");\n }",
"public void handleUpdateItemDeleteButtonAction(ActionEvent event) {\n confirmHeader.setText(\"Confirm delete action\");\n String text = \"are you sure you want to update this item?\";\n confirmText.setText(text);\n confirmPane.setVisible(true);\n maskPane.setVisible(true);\n this.handleOnShowAnimation(confirmMessageHolderPane);\n }",
"private void handleDeletePressed() {\n if (mCtx == Context.CREATE) {\n finish();\n return;\n }\n\n DialogFactory.deletion(this, getString(R.string.dialog_note), () -> {\n QueryService.awaitInstance(service -> deleteNote(service, mNote.id()));\n }).show();\n }",
"private boolean actionDelete()\n {\n Debug.enter();\n onDeleteListener.onDelete();\n dismiss();\n Debug.leave();\n return true;\n }",
"public static Boolean confirmDeletion() {\n final AtomicReference<Boolean> reference = new AtomicReference<>(false);\n\n TopsoilNotification.showNotification(\n TopsoilNotification.NotificationType.VERIFICATION,\n \"Delete Table\",\n \"Do you really want to delete this table?\\n\"\n + \"This operation can not be undone.\"\n ).ifPresent(response -> {\n if (response == ButtonType.OK) {\n reference.set(true);\n }\n });\n\n return reference.get();\n }",
"void afterDelete(T resource);",
"public void onCancelFavouriteDeletion();",
"private void onDeleteConfirmed() {\n stopService();\n\n Intent intent = new Intent(this, StartRecordingActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n finish();\n }",
"@FXML\n\tprivate void handleDelete() {\n\t\tAlert alert = new Alert(Alert.AlertType.WARNING);\n\t\talert.getButtonTypes().clear();\n\t\talert.getButtonTypes().addAll(ButtonType.YES, ButtonType.NO);\n\t\talert.setHeaderText(lang.getString(\"deleteCustomerMessage\"));\n\t\talert.initOwner(stage);\n\t\talert.showAndWait()\n\t\t.filter(answer -> answer == ButtonType.YES)\n\t\t.ifPresent(answer -> {\n\t\t\tCustomer customer = customerTable.getSelectionModel().getSelectedItem();\n\t\t\tdeleteCustomer(customer);\n\t\t});\n\t}",
"public void execute() {\n if (DeleteTableCommand.confirmDeletion()) {\n\n TopsoilTabPane topsoilTabPane = (TopsoilTabPane) topsoilTab.getTabPane();\n topsoilTabPane.getTabs().remove(topsoilTabPane.getSelectedTab());\n }\n\n }",
"@FXML private void handleAddProdDelete(ActionEvent event) {\n Part partDeleting = fxidAddProdSelectedParts.getSelectionModel().getSelectedItem();\n \n if (partDeleting != null) {\n //Display Confirm Box\n Alert confirmDelete = new Alert(Alert.AlertType.CONFIRMATION);\n confirmDelete.setHeaderText(\"Are you sure?\");\n confirmDelete.setContentText(\"Are you sure you want to remove the \" + partDeleting.getName() + \" part?\");\n Optional<ButtonType> result = confirmDelete.showAndWait();\n //If they click OK\n if (result.get() == ButtonType.OK) {\n //Delete the part.\n partToSave.remove(partDeleting);\n //Refresh the list view.\n fxidAddProdSelectedParts.setItems(partToSave);\n\n Alert successDelete = new Alert(Alert.AlertType.CONFIRMATION);\n successDelete.setHeaderText(\"Confirmation\");\n successDelete.setContentText(partDeleting.getName() + \" has been removed from product.\");\n successDelete.showAndWait();\n }\n } \n }",
"private void deleteButtonClicked(){\n\t\tif (theDialogClient != null) theDialogClient.dialogFinished(DialogClient.operation.DELETEING);\n\t\tdispose();\n\t}",
"public void deleteRequest(Request request) {\n String title = \"Confirm delete of request(Y/N): \";\n if (Validation.confirmAction(title)) {\n if (Database.deleteRequest(request)) System.out.println(\"Request deleted successfully\");\n else System.out.println(\"Failed to delete request\");\n }else System.out.println(\"Delete of request aborted\");\n }",
"void onDeleteSuccess(int position);",
"@FXML\n void confirmDelete () {\n\n// cycles through all Elements to be deleted\n for (Element element : app.deleteElements) {\n\n// if it is a Timeline, it removes it\n if (element instanceof Timeline) {\n app.timelines.remove(element);\n }\n\n// if it is an Event, it finds the relevant Timeline, then removes the Event\n if (element instanceof Event) {\n for (Timeline timeline : app.timelines) {\n if (timeline == ((Event) element).timeline) {\n timeline.events.remove(element);\n }\n }\n }\n }\n\n exitDeleteWindow();\n\n// creates a message for the user\n setMessage(\"Exited Delete Mode: \" + app.deleteElements.size() + \" elements deleted\", false);\n }",
"@FXML\n public void confirmStudentDelete(ActionEvent e) {\n Student s = handledStudent;\n DBhandler db = new DBhandler();\n String title =\"Confirm delete\";\n String HeaderText = \"Student will be permanently deleted\";\n String ContentText = \"Are you sure you want to delete this student?\";\n\n AlertHandler ah = new AlertHandler();\n\n if (ah.getConfirmation(title, HeaderText, ContentText) == ButtonType.OK) {\n System.out.println(\"Ok pressed\");\n db.deleteStudentFromDatabase(s);\n Cancel(new ActionEvent());\n } else {\n System.out.println(\"Cancel pressed\");\n }\n }",
"public void deleteAccount(ActionEvent actionEvent) {\n }",
"public void delete() {\n\t\tdeleted = true;\n\t}",
"public void delete() throws Exception {\n\t\topenPrimaryButtonDropdown();\n\t\tgetControl(\"deleteButton\").click();\n\t}",
"@Override\r\n\tpublic int delete(ActionContext arg0) throws Exception {\n\t\treturn 0;\r\n\t}",
"public void setConfirmDelete(boolean b) {\r\n\t\t_confirmDelete = b;\r\n\t}",
"private void confirmDeleteLog() {\n new AlertDialog.Builder(this)\n .setTitle(R.string.confirm_delete_log_title)\n .setMessage(R.string.confirm_delete_log_message)\n .setPositiveButton(R.string.btn_delete_log, (dialog, which) -> {\n service.deleteEntireAuditLog();\n dialog.dismiss();\n })\n .setNegativeButton(R.string.btn_cancel, (dialog, which) -> dialog.dismiss())\n .show();\n }",
"@OnClick(R.id.cancelButton)\n public void deleteUpload() {\n callback.deleteUpload(contribution);\n }",
"@FXML\r\n private void deletePartAction() throws IOException {\r\n \r\n if (!partsTbl.getSelectionModel().isEmpty()) {\r\n Part selected = partsTbl.getSelectionModel().getSelectedItem();\r\n \r\n Alert message = new Alert(Alert.AlertType.CONFIRMATION);\r\n message.setTitle(\"Confirm delete\");\r\n message.setHeaderText(\" Are you sure you want to delete part ID: \" + selected.getId() + \", name: \" + selected.getName() + \"?\" );\r\n message.setContentText(\"Please confirm your selection\");\r\n \r\n Optional<ButtonType> response = message.showAndWait();\r\n if (response.get() == ButtonType.OK)\r\n {\r\n stock.deletePart(selected);\r\n partsTbl.setItems(stock.getAllParts());\r\n partsTbl.refresh();\r\n displayMessage(\"The part \" + selected.getName() + \" was successfully deleted\");\r\n }\r\n else {\r\n displayMessage(\"Deletion cancelled by user. Part not deleted.\");\r\n }\r\n }\r\n else {\r\n displayMessage(\"No part selected for deletion\");\r\n }\r\n }",
"public void onPostDelete() {\n if (this.deleteCallback != null) {\n this.deleteCallback.onItemDeleted();\n }\n }",
"public String btn_confirm_delete_action()\n {\n //delete the accession\n getgermplasm$SementalSessionBean().getGermplasmFacadeRemote().\n deleteSemental(\n getgermplasm$SementalSessionBean().getDeleteSemental());\n //refresh the list\n getgermplasm$SementalSessionBean().getPagination().deleteItem();\n getgermplasm$SementalSessionBean().getPagination().refreshList();\n getgermplasm$SemenGatheringSessionBean().setPagination(null);\n \n //show and hidde panels\n this.getMainPanel().setRendered(true);\n this.getAlertMessage().setRendered(false);\n MessageBean.setSuccessMessageFromBundle(\"delete_semental_success\", this.getMyLocale());\n \n return null;\n }",
"public void buttonDelete(View view) {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(UserEditActivity.this);\n builder.setMessage(R.string.text_delete_confirmation)\n .setTitle(R.string.text_attention_title)\n .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // Delete the record confirmed\n deleteRecord();\n }\n })\n .setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n return;\n }\n });\n AlertDialog dialog = builder.create();\n dialog.show();\n }",
"public void onDelete() {\n }",
"private void delete() {\n AltDatabase.getInstance().getAlts().remove(getCurrentAsEditable());\n if (selectedAccountIndex > 0)\n selectedAccountIndex--;\n updateQueried();\n updateButtons();\n }",
"@FXML\n private void confirmDeletionOfRecords(){\n ObservableList<Record> recordsToBeDeleted = tbvRecords.getSelectionModel().getSelectedItems();\n\n DBhandler db = new DBhandler();\n String title =\"Confirm delete\";\n String HeaderText = \"Record(s) will be permanently deleted\";\n String ContentText = \"Are you sure you want to delete this data?\";\n AlertHandler ah = new AlertHandler();\n\n if(recordsToBeDeleted.isEmpty()){\n ah.getTableError();\n }\n else{\n if (ah.getConfirmation(title, HeaderText, ContentText) == ButtonType.OK) {\n System.out.println(\"Ok pressed\");\n db.deleteRecordsFromDatabase(recordsToBeDeleted);\n populateRecords();\n } else {\n System.out.println(\"Cancel pressed\");\n }\n }}",
"private void addConfirmDialog() {\n builder = UIUtil.getConfirmDialog(getContext(),\"You are about to delete data for this payment. proceed ?\");\n builder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n boolean isDeleted = mydb.deletePayment(paymentId);\n if(isDeleted) {\n Bundle bundle = new Bundle();\n bundle.putString(\"orderId\", String.valueOf(orderId));\n FragmentViewPayments mfragment = new FragmentViewPayments();\n UIUtil.refreshFragment(mfragment,bundle, getFragmentManager());\n } else {\n Toast.makeText(getContext(),\"Error deleting data!\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }",
"@Override\r\n\tpublic void onDelete() {\n\t\tsuper.onDelete();\r\n\t}",
"public void onDelete(View view){\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setMessage(\"Are you sure you want to delete this item?\")\n\t\t .setCancelable(false)\n\t\t .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n\t\t public void onClick(DialogInterface dialog, int id) {\n\t\t dialog.cancel();\n\t\t }\n\t\t })\n\t\t\t\t.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\t deleteItem();\n\t }\n\t });\n\t\tAlertDialog alert = builder.create();\n\t\talert.show();\n\t}",
"@Override\n public void onClickDelete() {\n new DeleteDialog(this.getActivity(), this).show();\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tAlertDialog.Builder alertDialog = new AlertDialog.Builder(mFragment.getActivity());\n\t\t\t\talertDialog.setTitle(mFragment.getResources().getString(R.string.confirm_deleting));\n\t\t\t\talertDialog.setMessage(mFragment.getResources().getString(R.string.are_you_sure_delete));\n\n\t\t\t\t// Setting Positive \"Yes\" Btn\n\t\t\t\talertDialog.setPositiveButton(mFragment.getResources().getString(R.string.yes),\n\t\t\t\t new DialogInterface.OnClickListener() {\n\t\t\t\t public void onClick(DialogInterface dialog, int which) {\n\t\t\t\t \t\n\t\t\t\t \tTheMissApplication.getInstance().showProgressFullScreenDialog(mFragment.getActivity());\n\t\t\t\t \t\n\t\t\t\t\t\t\t\tpost.deleteInBackground(new DeleteCallback(){\n\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void done(ParseException arg0) {\n\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\t\t\t\tTheMissApplication.getInstance().hideProgressDialog();\n\t\t\t\t\t\t\t\t\t\tif(arg0 == null){\n\t\t\t\t\t\t\t\t\t\t\tmFlaggedPicturesList.remove(flaggedPicture);\n\t\t\t\t\t\t\t\t\t\t\tFlaggedPicturesListCellAdapter.this.notifyDataSetChanged();\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\n\t\t\t\t \n\t\t\t\t }\n\t\t\t\t });\n\t\t\t\t// Setting Negative \"NO\" Btn\n\t\t\t\talertDialog.setNegativeButton(\"NO\",\n\t\t\t\t new DialogInterface.OnClickListener() {\n\t\t\t\t public void onClick(DialogInterface dialog, int which) {\n\t\t\t\t \t\t\t\t \n\t\t\t\t dialog.cancel();\n\t\t\t\t }\n\t\t\t\t });\n\n\t\t\t\t// Showing Alert Dialog\n\t\t\t\talertDialog.show();\n\t\t\t}",
"void onDeleteClicked();",
"public void MarkForDeletion();",
"public void operationDelete() {\n\r\n\t\tstatusFeldDelete();\r\n\t}",
"private void delete() {\n\n\t}",
"public void setDeleteAfterCompletion(boolean deleteAfterCompletion)\r\n\t{\r\n\t\tthis.deleteAfterCompletion = deleteAfterCompletion;\r\n\t}",
"public void delete()\n {\n call(\"Delete\");\n }",
"public void deleteStaff(String action) {\n assertAndClick(xpathDeleteFormBtn.replace(\"*btn*\", action));\n waitForElementInvisibility(xpathDeleteFormBtn.replace(\"*btn*\", action));\n logger.info(\"# Clicked on '\" + action + \"' button on Delete confirmation modal\");\n }",
"public void pressOnDeleteBtn() {\n Network.sendMsg(\n new FileDeleteRequest(\n serverFilesList.getSelectionModel().getSelectedItem()));\n }",
"public boolean onDelete(Session s) throws CallbackException;",
"@FXML\n private void deleteUser(ActionEvent event) throws IOException {\n User selectedUser = table.getSelectionModel().getSelectedItem();\n\n boolean userWasRemoved = selectedUser.delete();\n\n if (userWasRemoved) {\n userList.remove(selectedUser);\n UsermanagementUtilities.setFeedback(event,selectedUser.getName().getFirstName()+\" \"+LanguageHandler.getText(\"userDeleted\"),true);\n } else {\n UsermanagementUtilities.setFeedback(event,LanguageHandler.getText(\"userNotDeleted\"),false);\n }\n }",
"public void deleteClicked(View actionView)\n {\n \tif( taskId.getText().length() > 0 )\n \t{\n \t\tdeleteTask();\n \t}\n }",
"public void delete() {\n\t\tcmd = new DeleteCommand(editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}",
"public void showDeleteConfirmationAlertDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n //builder.setTitle(\"AlertDialog\");\n builder.setMessage(R.string.income_deletion_confirmation);\n\n // add the buttons\n builder.setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n if (mIncome.getReceiptPic() != null) {\n if (!mIncome.getReceiptPic().equals(\"\")) {\n new File(mIncome.getReceiptPic()).delete();\n }\n }\n mDatabaseHandler.setPaymentLogEntryInactive(mIncome);\n //IncomeListFragment.incomeListAdapterNeedsRefreshed = true;\n setResult(MainActivity.RESULT_DATA_WAS_MODIFIED);\n IncomeViewActivity.this.finish();\n }\n });\n builder.setNegativeButton(R.string.no, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n\n }\n });\n\n // create and show the alert mDialog\n mDialog = builder.create();\n mDialog.show();\n }",
"public void handleUpdateCopyDeleteButtonAction(ActionEvent event) {\n confirmHeader.setText(\"Confirm delete action\");\n String text = \"are you sure you want to update this copy?\";\n confirmText.setText(text);\n confirmPane.setVisible(true);\n maskPane.setVisible(true);\n this.handleOnShowAnimation(confirmMessageHolderPane);\n }",
"@Override\n\tpublic void onDelete() {\n\t\tif (testSessionChangedHandler != null) {\n\t\t\ttestSessionChangedHandler.removeHandler();\n\t\t\ttestSessionChangedHandler = null;\n\t\t}\n\t\t// Release the acmi\n\t\tif (acmiSaveButton !=null) {\n\t\t\tif (PasswordManagement.adminMenuItemList.contains(acmiSaveButton))\n\t\t\t\tPasswordManagement.adminMenuItemList.remove(acmiSaveButton);\n\t\t}\n\t\tif (acmiPromoteSite!=null) {\n\t\t\tif (PasswordManagement.adminMenuItemList.contains(acmiPromoteSite))\n\t\t\t\tPasswordManagement.adminMenuItemList.remove(acmiPromoteSite);\n\t\t}\n\t\tif (acmiDeleteSite!=null) {\n\t\t\tif (PasswordManagement.adminMenuItemList.contains(acmiDeleteSite))\n\t\t\t\tPasswordManagement.adminMenuItemList.remove(acmiDeleteSite);\n\t\t}\n\t\tif (acmiCreateSite!=null) {\n\t\t\tif (PasswordManagement.adminMenuItemList.contains(acmiCreateSite))\n\t\t\t\tPasswordManagement.adminMenuItemList.remove(acmiCreateSite);\n\t\t}\n\t}",
"@FXML\n\tprivate void deleteButtonAction(ActionEvent clickEvent) {\n\t\t\n\t\tPart deletePartFromProduct = partListProductTable.getSelectionModel().getSelectedItem();\n\t\t\n\t\tif (deletePartFromProduct != null) {\n\t\t\t\n\t\t\tAlert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Pressing OK will remove the part from the product.\\n\\n\" + \"Are you sure you want to remove the part?\");\n\t\t\n\t\t\tOptional<ButtonType> result = alert.showAndWait();\n\t\t\n\t\t\tif (result.isPresent() && result.get() == ButtonType.OK) {\n\t\t\t\n\t\t\t\tdummyList.remove(deletePartFromProduct);\n\n\t\t\t}\n\t\t}\n\t}",
"private void deleteRequest() {\n\t\tboolean res = false;\n\t\tMessage messageToServer = new Message();\n\t\tmessageToServer.setMsg(req.getEcode());\n\t\tmessageToServer.setOperation(\"DeleteRequest\");\n\t\tmessageToServer.setControllerName(\"PrincipalController\");\n\t\tres = (boolean) ClientUI.client.handleMessageFromClientUI(messageToServer);\n\t\tif (res) {\n\t\t\t// success pop up\n\t\t\tTheRequestWasHandledSuccessfullyWindowController popUp = new TheRequestWasHandledSuccessfullyWindowController();\n\t\t\ttry {\n\t\t\t\tpopUp.start(new Stage());\n\t\t\t} catch (Exception e) {\n\t\t\t\tUsefulMethods.instance().printException(e);\n\t\t\t}\n\t\t} else {\n\t\t\tUsefulMethods.instance().display(\"error in deleting request!\");\n\t\t}\n\t}",
"public void handleDeleteParts()\n {\n Part partToDelete = getPartToModify();\n\n if (partToDelete != null) {\n\n // Ask user for confirmation to remove the product from part table\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n alert.setTitle(\"Confirmation\");\n alert.setHeaderText(\"Delete Confirmation\");\n alert.setContentText(\"Are you sure you want to delete this part?\");\n ButtonType confirm = new ButtonType(\"Yes\", ButtonBar.ButtonData.YES);\n ButtonType deny = new ButtonType(\"No\", ButtonBar.ButtonData.NO);\n ButtonType cancel = new ButtonType(\"Cancel\", ButtonBar.ButtonData.CANCEL_CLOSE);\n alert.getButtonTypes().setAll(confirm, deny, cancel);\n alert.showAndWait().ifPresent(type ->{\n if (type == confirm)\n {\n inventory.deletePart(partToDelete);\n updateParts();\n }\n });\n\n } else {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Input Invalid\");\n alert.setHeaderText(\"No part was selected!\");\n alert.setContentText(\"Please select a part to delete from the part table!\");\n alert.show();\n }\n // Unselect parts in table after part is deleted\n partTable.getSelectionModel().clearSelection();\n }",
"@RequestMapping(value = \"delete/{id}\", method = RequestMethod.POST)\r\n\tpublic ModelAndView deleteConfirm(@ModelAttribute Person deletedPerson, @PathVariable int id) \r\n\t{\r\n\t\tString fullName = deletedPerson.getFirstName() + \" \" + deletedPerson.getLastName();\r\n\t\tpersonService.deletePerson(deletedPerson);\r\n\t\treturn new ModelAndView(\"deleteConfirm\", \"fullName\", fullName);\r\n\t}",
"public void doDeleteconfirm ( RunData data)\n\t{\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\t\tSet deleteIdSet = new TreeSet();\n\n\t\t// cancel copy if there is one in progress\n\t\tif(! Boolean.FALSE.toString().equals(state.getAttribute (STATE_COPY_FLAG)))\n\t\t{\n\t\t\tinitCopyContext(state);\n\t\t}\n\n\t\t// cancel move if there is one in progress\n\t\tif(! Boolean.FALSE.toString().equals(state.getAttribute (STATE_MOVE_FLAG)))\n\t\t{\n\t\t\tinitMoveContext(state);\n\t\t}\n\n\t\tString[] deleteIds = data.getParameters ().getStrings (\"selectedMembers\");\n\t\tif (deleteIds == null)\n\t\t{\n\t\t\t// there is no resource selected, show the alert message to the user\n\t\t\taddAlert(state, rb.getString(\"choosefile3\"));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdeleteIdSet.addAll(Arrays.asList(deleteIds));\n\t\t\tList deleteItems = new Vector();\n\t\t\tList notDeleteItems = new Vector();\n\t\t\tList nonEmptyFolders = new Vector();\n\t\t\tList roots = (List) state.getAttribute(STATE_COLLECTION_ROOTS);\n\t\t\tIterator rootIt = roots.iterator();\n\t\t\twhile(rootIt.hasNext())\n\t\t\t{\n\t\t\t\tBrowseItem root = (BrowseItem) rootIt.next();\n\n\t\t\t\tList members = root.getMembers();\n\t\t\t\tIterator memberIt = members.iterator();\n\t\t\t\twhile(memberIt.hasNext())\n\t\t\t\t{\n\t\t\t\t\tBrowseItem member = (BrowseItem) memberIt.next();\n\t\t\t\t\tif(deleteIdSet.contains(member.getId()))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(member.isFolder())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(ContentHostingService.allowRemoveCollection(member.getId()))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdeleteItems.add(member);\n\t\t\t\t\t\t\t\tif(! member.isEmpty())\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tnonEmptyFolders.add(member);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tnotDeleteItems.add(member);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(ContentHostingService.allowRemoveResource(member.getId()))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdeleteItems.add(member);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tnotDeleteItems.add(member);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(! notDeleteItems.isEmpty())\n\t\t\t{\n\t\t\t\tString notDeleteNames = \"\";\n\t\t\t\tboolean first_item = true;\n\t\t\t\tIterator notIt = notDeleteItems.iterator();\n\t\t\t\twhile(notIt.hasNext())\n\t\t\t\t{\n\t\t\t\t\tBrowseItem item = (BrowseItem) notIt.next();\n\t\t\t\t\tif(first_item)\n\t\t\t\t\t{\n\t\t\t\t\t\tnotDeleteNames = item.getName();\n\t\t\t\t\t\tfirst_item = false;\n\t\t\t\t\t}\n\t\t\t\t\telse if(notIt.hasNext())\n\t\t\t\t\t{\n\t\t\t\t\t\tnotDeleteNames += \", \" + item.getName();\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tnotDeleteNames += \" and \" + item.getName();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\taddAlert(state, rb.getString(\"notpermis14\") + notDeleteNames);\n\t\t\t}\n\n\n\t\t\t/*\n\t\t\t\t\t//htripath-SAK-1712 - Set new collectionId as resources are not deleted under 'more' requirement.\n\t\t\t\t\tif(state.getAttribute(STATE_MESSAGE) == null){\n\t\t\t\t\t String newCollectionId=ContentHostingService.getContainingCollectionId(currentId);\n\t\t\t\t\t state.setAttribute(STATE_COLLECTION_ID, newCollectionId);\n\t\t\t\t\t}\n\t\t\t*/\n\n\t\t\t// delete item\n\t\t\tstate.setAttribute (STATE_DELETE_ITEMS, deleteItems);\n\t\t\tstate.setAttribute (STATE_DELETE_ITEMS_NOT_EMPTY, nonEmptyFolders);\n\t\t}\t// if-else\n\n\t\tif (state.getAttribute(STATE_MESSAGE) == null)\n\t\t{\n\t\t\tstate.setAttribute (STATE_MODE, MODE_DELETE_CONFIRM);\n\t\t\tstate.setAttribute(STATE_LIST_SELECTIONS, deleteIdSet);\n\t\t}\n\n\n\t}",
"@Override\n\tpublic void delete(CorsoDiLaurea corso) {\n\t\t\n\t}",
"@Override\r\n\tpublic String delete() {\n\t\treturn \"delete\";\r\n\t}",
"public static void click_delete() {\n\t\tCommonUtils.alertContentXpath();\n\t\tif (AndroidLocators.findElements_With_Id(\"alertTitle\").size() > 0) {\n\t\t\tAndroidLocators.clickElementusingXPath(\"//*[@text='DELETE']\");\n\t\t} else if (AndroidLocators.findElements_With_ResourceId(\n\t\t\t\t\"new UiSelector().resourceId(\\\"in.spoors.effortplusbeta:id/alertTitle\\\")\")\n\t\t\t\t.size() > 0) {\n\t\t\tAndroidLocators.clickElementusingResourceId(\"android:id/button1\");\n\t\t} else {\n\t\t\tAndroidLocators.clickElementusingXPath(\"//*[@text='DELETE']\");\n\t\t}\n\t}",
"@FXML\n\tpublic void deleteUser(ActionEvent e) {\n\t\tint i = userListView.getSelectionModel().getSelectedIndex();\n//\t\tUser deletMe = userListView.getSelectionModel().getSelectedItem();\n//\t\tuserList.remove(deletMe); this would work too just put the admin warning\n\t\tdeleteUser(i);\n\t}",
"@Override\n\t\tpublic void delete() {\n\t\t\tSystem.out.println(\"새로운 삭제\");\n\t\t}",
"@DELETE\n\t@Produces(\"text/plain\")\n\tpublic String onDelete() {\n\t\tmsg = null;\n\t\treturn \"Message deleted.\\n\";\n\t}",
"@Override\n\tpublic void delete(Note e) {\n\t\t\n\t}",
"@Override\n public CompletableFuture<Void> delete() {\n return delete(false);\n }",
"public static void deleteAlert() {\n\n }",
"@FXML\r\n void onActionDeletePart(ActionEvent event) {\r\n\r\n Part part = TableView2.getSelectionModel().getSelectedItem();\r\n if(part == null)\r\n return;\r\n\r\n //EXCEPTION SET 2 REQUIREMENT\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n alert.setHeaderText(\"You are about to delete the product you have selected!\");\r\n alert.setContentText(\"Are you sure you wish to continue?\");\r\n\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if (result.get() == ButtonType.OK){\r\n product.deleteAssociatedPart(part.getId());\r\n }\r\n }",
"public void delete() {\n\n\t}",
"private void showDeleteConfirmationDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.delete_dialog_msg);\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Delete\" button, so delete the pet.\n deleteFav();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Cancel\" button, so dismiss the dialog\n // and continue editing the pet.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }",
"@FXML\r\n void onActionDelete(ActionEvent event) throws IOException {\r\n\r\n Appointment toDelete = appointmentsTable.getSelectionModel().getSelectedItem();\r\n\r\n\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION, \"Are you sure you want to delete appointment ID# \" + toDelete.getAppointmentID() + \" Title: \" + toDelete.getTitle()\r\n + \" Type: \" + toDelete.getType());\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if (result.isPresent() && result.get() == ButtonType.OK) {\r\n\r\n DBAppointments.deleteAppointment(toDelete.getAppointmentID());\r\n\r\n stage = (Stage) ((Button) event.getSource()).getScene().getWindow();\r\n scene = FXMLLoader.load(getClass().getResource(\"/view/appointments.fxml\"));\r\n stage.setScene(new Scene(scene));\r\n stage.show();\r\n }\r\n }",
"private void showDeleteConfirmationDialog() {\n // Create an AlertDialog.Builder and set the message, and click listeners\n // for the postive and negative buttons on the dialog.\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.delete_dialog_msg);\n builder.setPositiveButton(R.string.delete, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Delete\" button, so delete the goal.\n deleteGoal();\n }\n });\n builder.setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User clicked the \"Cancel\" button, so dismiss the dialog\n // and continue editing the product.\n if (dialog != null) {\n dialog.dismiss();\n }\n }\n });\n\n // Create and show the AlertDialog\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n }",
"public void delete()\n\t{\n\t\t_Status = DBRowStatus.Deleted;\n\t}",
"void onDELETEFinish(String result, int requestCode, boolean isSuccess);",
"private void delete() {\n DialogInterface.OnClickListener dialogClickListener = new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n switch (which){\n case DialogInterface.BUTTON_POSITIVE:\n setResult(RESULT_OK, null);\n datasource.deleteContact(c);\n dbHelper.commit();\n finish();\n break;\n\n case DialogInterface.BUTTON_NEGATIVE:\n //Do Nothing\n break;\n }\n }\n };\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(getString(R.string.confirm_delete) + (c==null?\"\":c.getName()) + \"?\").setPositiveButton(getString(R.string.yes), dialogClickListener)\n .setNegativeButton(getString(R.string.no), dialogClickListener).show();\n }",
"@DefaultMessage(\"Pressing commit will delete the current record from the database\")\n @Key(\"gen.deleteMessage\")\n String gen_deleteMessage();",
"@Override\n public void actionPerformed(ActionEvent e) {\n String[] buttons = { \"Yes\", \"No\" };\n int returnValue = JOptionPane.showOptionDialog(frame, \"Are you sure you want to delete this user?\", \"Confirm Deletion\",\n JOptionPane.WARNING_MESSAGE, 0, null, buttons, buttons[1]);\n\n if (returnValue == 0) {\n Billboard billboard = billboardList.get(billboardJList.getSelectedIndex());\n\n Request deleteBillboard = Request.deleteBillboardReq(billboard.getBillboardName(), connector.session);\n\n Response response;\n\n try {\n response = deleteBillboard.Send(connector);\n } catch (IOException excep) {\n JOptionPane.showMessageDialog(null, \"Cannot delete billboard\");\n return;\n }\n\n // check status of response\n boolean status = response.isStatus();\n\n if (!status) {\n String errorMsg = (String) response.getData();\n JOptionPane.showMessageDialog(null, \"Cannot delete billboard. Error: \" + errorMsg);\n }\n\n if (status) {\n billboardList.remove(billboard);\n model.removeElement(billboard.getBillboardName());\n billboardJList.setModel(model);\n JOptionPane.showMessageDialog(null, \"Billboard successfully deleted.\");\n }\n }\n }",
"private void delete_btnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_delete_btnActionPerformed\n // pull current table model\n DefaultTableModel model = (DefaultTableModel) remindersTable.getModel();\n if (remindersTable.getSelectedRow() == -1) {\n if (remindersTable.getRowCount() == 0) {\n dm.messageEmptyTable();\n } else {\n dm.messageSelectLine();\n }\n } else {\n int input = JOptionPane.showConfirmDialog(frame, \"Do you want to Delete!\");\n // 0 = yes, 1 = no, 2 = cancel\n if (input == 0) {\n model.removeRow(remindersTable.getSelectedRow());\n dm.messageReminderDeleted();// user message;\n saveDataToFile();// Save changes to file\n getSum(); // Update projected balance\n } else {\n // delete canceled\n }\n }\n }",
"public void clickOnDeleteButton() {\r\n\t\tsafeClick(addMarkerOkButton.replace(\".ant-modal-footer button.ant-btn.ant-btn-primary\",\r\n\t\t\t\t\".ant-btn.ant-btn-danger.ant-btn-circle\"), MEDIUMWAIT);\r\n\t}",
"public ConfirmDialogPage pressDeleteButton() {\n controls.getDeleteButton().click();\n return new ConfirmDialogPage();\n }",
"@Override\n\tpublic void delete(BatimentoCardiaco t) {\n\t\t\n\t}",
"public static void printTaskDeletedConfirmation(Task taskAdded, int index) {\n System.out.println(HORIZONTAL_LINE);\n taskAdded.printTaskDeletedMessage(index);\n System.out.println(HORIZONTAL_LINE);\n }",
"public void handleDelete(ActionEvent event) throws InterruptedException{\r\n \t tempUser.removeUser(currentUser);\r\n \t feedback_Manage.setText(\"User Remove Successful!\");\r\n \t this.changeView(\"../view/Login.fxml\");\r\n }",
"protected boolean afterDelete() {\n if (!DOCSTATUS_Drafted.equals(getDocStatus())) {\n JOptionPane.showMessageDialog(null, \"El documento no se puede eliminar ya que no esta en Estado Borrador.\", \"Error\", JOptionPane.ERROR_MESSAGE);\n return false;\n } \n \n //C_AllocationLine\n String sql = \"DELETE FROM C_AllocationLine \"\n + \"WHERE c_payment_id = \"+getC_Payment_ID();\n \n DB.executeUpdate(sql, get_TrxName());\n \n //C_PaymentAllocate\n sql = \"DELETE FROM C_PaymentAllocate \"\n + \"WHERE c_payment_id = \"+getC_Payment_ID();\n \n DB.executeUpdate(sql, get_TrxName());\n \n //C_VALORPAGO\n sql = \"DELETE FROM C_VALORPAGO \"\n + \"WHERE c_payment_id = \"+getC_Payment_ID();\n \n DB.executeUpdate(sql, get_TrxName());\n \n //C_PAYMENTVALORES\n sql = \"DELETE FROM C_PAYMENTVALORES \"\n + \"WHERE c_payment_id = \"+getC_Payment_ID();\n \n DB.executeUpdate(sql, get_TrxName());\n \n //C_PAYMENTRET\n sql = \"DELETE FROM C_PAYMENTRET \"\n + \"WHERE c_payment_id = \"+getC_Payment_ID();\n \n DB.executeUpdate(sql, get_TrxName());\n \n return true;\n\n }",
"public void onDelete(Statement delete, Connection cx, SimpleFeatureType featureType) throws SQLException {\r\n }",
"public void verifyDeleteRequestOnPopup() {\n getLogger().info(\"Verify to delete a request on the popup.\");\n boolean isCheckDeleteRequest = false;\n try {\n clickElement(deleteRequestBtn, \"click to deleteRequestBtn\");\n waitForClickableOfLocator(By.xpath(deleteRequestMenuStr));\n Thread.sleep(smallerTimeOut);\n sendKeyTextBox(findRequestEmpty1, \"Deleted the request\", \"send data to findRequestEmpty1\");\n isCheckDeleteRequest = clickElement(deleteRequestMenu, \"click to deleteRequestMenu\");\n if (isCheckDeleteRequest) {\n NXGReports.addStep(\"Verify to delete a request on the popup.\", LogAs.PASSED, null);\n } else {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"Verify to delete a request on the popup.\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n } catch (Exception ex) {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"Verify to delete a request on the popup.\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n }",
"private byte[] handleDelete() {\n\t\tboolean success = replaceSecretWith(currentUser, \"\");\n\n\t\tif (success) {\n\t\t\tComMethods.report(\"SecretServer has deleted \"+currentUser+\"'s secret.\", simMode);\n\t\t\treturn preparePayload(\"secretdeleted\".getBytes());\n\t\t} else {\n\t\t\tComMethods.report(\"SecretServer has FAILED to delete \"+currentUser+\"'s secret.\", simMode);\n\t\t\treturn preparePayload(\"writingfailure\".getBytes());\n\t\t}\n\t}",
"protected abstract void doDelete();",
"private void showDeleteConfirmationDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n builder.setMessage(R.string.delete_book_warning);\r\n builder.setPositiveButton(R.string.delete_button, new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialogInterface, int i) {\r\n deletebook();\r\n }\r\n });\r\n builder.setNegativeButton(R.string.cancel_button, new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialogInterface, int i) {\r\n if (dialogInterface != null) {\r\n dialogInterface.dismiss();\r\n }\r\n }\r\n });\r\n\r\n //show alert dialog upon deletion\r\n AlertDialog alertDialog = builder.create();\r\n alertDialog.show();\r\n }",
"protected boolean afterDelete() throws DBSIOException{return true;}",
"@Override\n\tpublic void delete() {\n\t\tSystem.out.println(\"no goin\");\n\t\t\n\t}"
] | [
"0.7319812",
"0.7167816",
"0.71370625",
"0.7068965",
"0.7004396",
"0.6942503",
"0.67933714",
"0.6751654",
"0.67327106",
"0.6692881",
"0.667517",
"0.6672486",
"0.66340107",
"0.6621262",
"0.6601785",
"0.65580815",
"0.6547022",
"0.6525123",
"0.6502112",
"0.6485209",
"0.6466119",
"0.64585686",
"0.6429135",
"0.64088315",
"0.6406365",
"0.64010066",
"0.6363792",
"0.63587993",
"0.6333427",
"0.6328638",
"0.63058954",
"0.62948877",
"0.62865055",
"0.6276802",
"0.6256345",
"0.62531966",
"0.62368846",
"0.6227626",
"0.6222181",
"0.6216797",
"0.6212743",
"0.62125456",
"0.62115115",
"0.6210789",
"0.6195108",
"0.6194346",
"0.6190432",
"0.6183157",
"0.6177286",
"0.61613256",
"0.61569315",
"0.6153634",
"0.61498076",
"0.61395544",
"0.61154485",
"0.61115783",
"0.6105432",
"0.6097464",
"0.6094438",
"0.6088012",
"0.6087901",
"0.6084445",
"0.6054203",
"0.60510796",
"0.6042235",
"0.60318685",
"0.6028974",
"0.6028649",
"0.601827",
"0.6012699",
"0.6010402",
"0.60087734",
"0.6008217",
"0.6003921",
"0.5998653",
"0.599621",
"0.599471",
"0.59937346",
"0.5987723",
"0.59861195",
"0.5977959",
"0.59747267",
"0.5974605",
"0.5970466",
"0.59632516",
"0.5953118",
"0.59506464",
"0.59499115",
"0.59428614",
"0.59311146",
"0.59271365",
"0.5915452",
"0.59137195",
"0.5910019",
"0.59080994",
"0.5904968",
"0.5900984",
"0.5887783",
"0.5886858",
"0.587849"
] | 0.646136 | 21 |
The delete action, calling the onDeleteListener if necessary. | private boolean actionDelete()
{
Debug.enter();
onDeleteListener.onDelete();
dismiss();
Debug.leave();
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void actionDelete() {\r\n showDeleteDialog();\r\n }",
"void onDelete();",
"void onDeleteClicked();",
"void deleteButton_actionPerformed(ActionEvent e) {\n doDelete();\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tdeleteListener.onDeleteListener(vo.id);\n\t\t\t}",
"public void onDelete() {\n }",
"@Override\r\n\tpublic void onDelete() {\n\t\tsuper.onDelete();\r\n\t}",
"@Override\r\n\tprotected ActionListener deleteBtnAction() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic int delete(ActionContext arg0) throws Exception {\n\t\treturn 0;\r\n\t}",
"public void onDelete() {\n if (DEBUG) Log.e(Thread.currentThread().getStackTrace()[2].getClassName(), Thread.currentThread().getStackTrace()[2].getMethodName());\n showDialog(R.id.dialog_confirm_delete);\n }",
"@Override\r\n\tpublic void deleteObjectListener(ActionEvent e) {\n\t\t\r\n\t}",
"@SuppressWarnings(\"serial\")\r\n private Action getDeleteAction() {\r\n if (this.deleteAction == null) {\r\n String actionCommand = bundle.getString(DELETE_NODE_KEY);\r\n String actionKey = bundle.getString(DELETE_NODE_KEY + \".action\");\r\n this.deleteAction = 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 // Checks if several nodes will be deleted\r\n if (nodes.length > 1) {\r\n model.deleteNodes(nodes);\r\n } else {\r\n model.deleteNode(nodes[0]);\r\n }\r\n }\r\n }\r\n\r\n private boolean checkAction() {\r\n // No node selected\r\n if (nodes == null) {\r\n JOptionPane.showMessageDialog(JZVNode.this, bundle\r\n .getString(\"dlg.error.deleteWithoutSelection\"),\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 this.deleteAction.putValue(Action.ACTION_COMMAND_KEY, actionKey);\r\n\r\n this.getInputMap(WHEN_IN_FOCUSED_WINDOW).put(\r\n KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, 0), actionKey);\r\n this.getActionMap().put(actionKey, this.deleteAction);\r\n }\r\n return this.deleteAction;\r\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tdelete();\n\t\t\t}",
"public void deleteAccount(ActionEvent actionEvent) {\n }",
"private void delete(ActionEvent e){\r\n if (client != null){\r\n ConfirmBox.display(\"Confirm Deletion\", \"Are you sure you want to delete this entry?\");\r\n if (ConfirmBox.response){\r\n Client.deleteClient(client);\r\n AlertBox.display(\"Delete Client\", \"Client Deleted Successfully\");\r\n // Refresh view\r\n refresh();\r\n \r\n }\r\n }\r\n }",
"@Override\n\tpublic void deleteClick(int id) {\n\t\t\n\t}",
"@Override\n public void onClickDelete() {\n new DeleteDialog(this.getActivity(), this).show();\n }",
"@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\tdelete();\n\t\t}",
"public void deleteClicked(View actionView)\n {\n \tif( taskId.getText().length() > 0 )\n \t{\n \t\tdeleteTask();\n \t}\n }",
"public void onDelete(final R record) {\n // can be overridden.\n }",
"@FXML\r\n public void onDelete() {\r\n Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\r\n alert.setTitle(\"Mensagem\");\r\n alert.setHeaderText(\"\");\r\n alert.setContentText(\"Deseja excluir?\");\r\n Optional<ButtonType> result = alert.showAndWait();\r\n if (result.get() == ButtonType.OK) {\r\n AlunoModel alunoModel = tabelaAluno.getItems().get(tabelaAluno.getSelectionModel().getSelectedIndex());\r\n\r\n if (AlunoDAO.executeUpdates(alunoModel, AlunoDAO.DELETE)) {\r\n tabelaAluno.getItems().remove(tabelaAluno.getSelectionModel().getSelectedIndex());\r\n alert(\"Excluido com sucesso!\");\r\n desabilitarCampos();\r\n } else {\r\n alert(\"Não foi possivel excluir\");\r\n }\r\n }\r\n }",
"public void onPressDelete() {\r\n new ActionConfirmationFragment(this, this)\r\n .setTitle(getString(R.string.event_confirmation_delete_event))\r\n .setMessage(getString(R.string.action_confirmation_cannot_be_undone))\r\n .setRequestID(REQUEST_CONFIRMATION_DELETE_EVENT)\r\n .show(getSupportFragmentManager(), null);\r\n }",
"@Override\n public void onClick(View v) {\n delete();\n }",
"public void delete() {\n\t\tcmd = new DeleteCommand(editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}",
"public abstract void onRemoveAction();",
"@Override\n\tpublic void deleteClick(Object id) {\n\t\t\n\t}",
"public void onClick(View v) {\n delete();\n }",
"protected abstract void onDelete(Person person);",
"public void onPostDelete() {\n if (this.deleteCallback != null) {\n this.deleteCallback.onItemDeleted();\n }\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tdelete();\n\t\t\t}",
"@Command(\"delete\")\n @NotifyChange({\"events\", \"selectedEvent\"})\n public void delete() {\n if(this.selectedEvent != null) {\n eventDao.delete(this.selectedEvent);\n this.selectedEvent = null;\n }\n }",
"private void handleDeletePressed() {\n if (mCtx == Context.CREATE) {\n finish();\n return;\n }\n\n DialogFactory.deletion(this, getString(R.string.dialog_note), () -> {\n QueryService.awaitInstance(service -> deleteNote(service, mNote.id()));\n }).show();\n }",
"public void pressOnDeleteBtn() {\n Network.sendMsg(\n new FileDeleteRequest(\n serverFilesList.getSelectionModel().getSelectedItem()));\n }",
"void onItemDeleted();",
"@Override\r\n\tpublic String delete() {\n\t\treturn \"delete\";\r\n\t}",
"void onDeleteItem(E itemElementView);",
"@DELETE\n public void delete() {\n }",
"@DELETE\n public void delete() {\n }",
"@Override\n\tprotected String onDelete(HttpServletRequest req, HttpServletResponse resp, FunctionItem fi,\n\t\t\tHashtable<String, String> params, String action, L l, S s) throws Exception {\n\t\treturn null;\n\t}",
"public DeleteAction(GraphModel graph) {\n super(\"Delete Selection\");\n\n this.graph = graph;\n\n graph.addObserver(this);\n\n setEnabled(false);\n }",
"protected abstract void doDelete();",
"@FXML\n\tpublic void deleteUser(ActionEvent e) {\n\t\tint i = userListView.getSelectionModel().getSelectedIndex();\n//\t\tUser deletMe = userListView.getSelectionModel().getSelectedItem();\n//\t\tuserList.remove(deletMe); this would work too just put the admin warning\n\t\tdeleteUser(i);\n\t}",
"@FXML\n public void Delete_Item(ActionEvent actionEvent) {\n }",
"public void deleteTeam(ActionEvent actionEvent) {}",
"@DELETE\n public void delete() {\n }",
"public void operationDelete() {\n\r\n\t\tstatusFeldDelete();\r\n\t}",
"private Delete() {}",
"private Delete() {}",
"public void delete()\n {\n call(\"Delete\");\n }",
"void onDeleteSuccess(int position);",
"@Override\n\tpublic void delete() {\n\n\t}",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\titemdeleteListener.itemDelClick(position);\r\n\t\t\t}",
"private void deleteFile() {\r\n actionDelete(dataModelArrayList.get(position));\r\n }",
"@Override\n\tpublic void delete(int id) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(int id) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(int id) {\n\t\t\n\t}",
"@Override\n\tpublic void delete(int id) {\n\t\t\n\t}",
"@OnClick(R.id.cancelButton)\n public void deleteUpload() {\n callback.deleteUpload(contribution);\n }",
"@Override\n\tpublic void delete(int id) {\n\t}",
"@Override\n public void delete(int id) {\n }",
"@FXML\n private void handleDeleteRecordButton(ActionEvent e) {\n deleteRecord();\n }",
"@Override\n\tpublic void deleteCB(CB cb) {\n\t\t\n\t}",
"public void onDelete(View view){\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setMessage(\"Are you sure you want to delete this item?\")\n\t\t .setCancelable(false)\n\t\t .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n\t\t public void onClick(DialogInterface dialog, int id) {\n\t\t dialog.cancel();\n\t\t }\n\t\t })\n\t\t\t\t.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\t deleteItem();\n\t }\n\t });\n\t\tAlertDialog alert = builder.create();\n\t\talert.show();\n\t}",
"void onItemDelete(int position);",
"public interface DeleteCallback {\n /** Called when current item has been deleted. */\n void onItemDeleted();\n }",
"@Deprecated\n\t@Override\n\tpublic void onDelete()\n\t{\n\t}",
"@Deprecated\n\t@Override\n\tpublic void onDelete()\n\t{\n\t}",
"public void delete() {\n\n\t}",
"void onGroupeDelete();",
"@FXML\n public void Delete_List(ActionEvent actionEvent) {\n }",
"@FXML public void deleteBT_handler(ActionEvent e) {\n\t\tif(list.getSelectionModel().getSelectedIndex() == -1) {\n\t\t\tAlert error = new Alert(AlertType.ERROR, \"Nothing Selected.\\nPlease select correctly or add new User\", ButtonType.OK);\n\t error.showAndWait();\n\t\t}\n\t\telse {\n\t\t\tAlert warning = new Alert(AlertType.WARNING,\"Delete this User from list?\", ButtonType.YES, ButtonType.NO);\n\t warning.showAndWait();\n\t if(warning.getResult() == ButtonType.NO){\n\t return;\n\t }\n\t\n\t int idx = list.getSelectionModel().getSelectedIndex();\n\t if(list.getSelectionModel().getSelectedItem().getUserName().equals(\"stock\")) {\n\t \tAlert error = new Alert(AlertType.ERROR, \"You can't delete stock username\", ButtonType.OK);\n\t error.showAndWait();\n\t \treturn;\n\t }\n\t obs.remove(idx);\n\t mgUsr.arrList.remove(idx);\n\t\t}\n\t}",
"public void deleteItem(ActionEvent actionEvent) {\n // find the list that the item belongs in\n // removeItem() from its parenting list\n }",
"@Override\n\tpublic ActionForward delete(HttpServletRequest request, HttpServletResponse response) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic ActionForward delete(HttpServletRequest request, HttpServletResponse response) {\n\t\treturn null;\n\t}",
"public void onDelete(Statement delete, Connection cx, SimpleFeatureType featureType) throws SQLException {\r\n }",
"@Override\n\t\tpublic void delete() {\n\n\t\t}",
"private void deleteButtonClicked(){\n\t\tif (theDialogClient != null) theDialogClient.dialogFinished(DialogClient.operation.DELETEING);\n\t\tdispose();\n\t}",
"@FXML\n private void deleteUser(ActionEvent event) throws IOException {\n User selectedUser = table.getSelectionModel().getSelectedItem();\n\n boolean userWasRemoved = selectedUser.delete();\n\n if (userWasRemoved) {\n userList.remove(selectedUser);\n UsermanagementUtilities.setFeedback(event,selectedUser.getName().getFirstName()+\" \"+LanguageHandler.getText(\"userDeleted\"),true);\n } else {\n UsermanagementUtilities.setFeedback(event,LanguageHandler.getText(\"userNotDeleted\"),false);\n }\n }",
"@Override\r\n\tpublic void delete(int id) {\n\t\t\r\n\t}",
"public boolean onDelete(Session s) throws CallbackException;",
"@Override\n\tpublic void delete() {\n\t\t\n\t}",
"@Override\n\tpublic void delete() {\n\t\t\n\t}",
"private void delete() {\n\t\tComponents.questionDialog().message(\"Are you sure?\").callback(answeredYes -> {\n\n\t\t\t// if confirmed, delete the current product PropertyBox\n\t\t\tdatastore.delete(TARGET, viewForm.getValue());\n\t\t\t// Notify the user\n\t\t\tNotification.show(\"Product deleted\", Type.TRAY_NOTIFICATION);\n\n\t\t\t// navigate back\n\t\t\tViewNavigator.require().navigateBack();\n\n\t\t}).open();\n\t}",
"@FXML\n\tprivate void handleDelete() {\n\t\tAlert alert = new Alert(Alert.AlertType.WARNING);\n\t\talert.getButtonTypes().clear();\n\t\talert.getButtonTypes().addAll(ButtonType.YES, ButtonType.NO);\n\t\talert.setHeaderText(lang.getString(\"deleteCustomerMessage\"));\n\t\talert.initOwner(stage);\n\t\talert.showAndWait()\n\t\t.filter(answer -> answer == ButtonType.YES)\n\t\t.ifPresent(answer -> {\n\t\t\tCustomer customer = customerTable.getSelectionModel().getSelectedItem();\n\t\t\tdeleteCustomer(customer);\n\t\t});\n\t}",
"@Override\n\tpublic void deleteItem(Object toDelete) {}",
"public void addMouseMotionListener(DeleteAction deleteAction) {\n\t\t\n\t}",
"public void delete() {\n\t\tTimelineUpdater timelineUpdater = TimelineUpdater.getCurrentInstance(\":mainForm:timeline\");\n\t\tmodel.delete(event, timelineUpdater);\n\n\t\tFacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"The booking \" + getRoom() + \" has been deleted\", null);\n\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\n\t}",
"@Override\n public void delete()\n {\n }",
"private void delete() {\n\n\t}",
"@Override\n\tpublic void delete(Note e) {\n\t\t\n\t}",
"public abstract void onDelete(final ResourceType type, final Integer... resources);",
"@Override\n public void onClick(ClickEvent event) {\n onRemoveAction();\n }",
"@FXML\r\n\tprivate void deleteEmployee(ActionEvent event) {\r\n\t\teraseFieldsContent();\r\n\t\tEmployee e = listaStaff.getSelectionModel().getSelectedItem();\r\n\t\tservice.deleteEmployee(e);\r\n\t\tlistaStaff.getItems().remove(e);\r\n\t\tbtDelete.setDisable(true);\r\n\t\tbtEditar.setDisable(true);\r\n\t\tupdateList();\r\n\t}",
"@Override\n\tpublic int deleteAction(JSONObject params) {\n\t\treturn this.delete(\"deleteAction\", params);\n\t}",
"public void onConfirmFavouriteDeletion();",
"@Override\n public void delete() {\n }",
"@Override\r\n\tpublic void adminSelectDelete() {\n\t\t\r\n\t}",
"@Override\n\tpublic void delete() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"@SuppressWarnings(\"serial\")\r\n\tprotected Action getDeleteAction() {\r\n\t\tif (this.deleteAction != null)\r\n\t\t\treturn this.deleteAction; // Already defined;\r\n\t\tAction action = new AbstractAction(\"Delete\") {\r\n\t\t\tpublic void actionPerformed(ActionEvent ev) {\r\n\t\t\t\tif (ExtendedTupleEditorSupport.this.tuple == null)\r\n\t\t\t\t\treturn;\r\n\t\t\t\tAttrType type = ((AttrInstance) ExtendedTupleEditorSupport.this.tuple).getType();\r\n\t\t\t\tint slot = ExtendedTupleEditorSupport.this.tableView.getSelectedRow();\r\n\t\t\t\t\r\n\t\t\t\tif (slot >= type.getNumberOfEntries(ExtendedTupleEditorSupport.this.viewSetting)){\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse if (!type.isOwnMemberAt(ExtendedTupleEditorSupport.this.viewSetting, slot)) {\r\n\t\t\t\t\tsetMessage(\"Cannot delete this attribute member which belongs to a parent type.\"\r\n\t\t\t\t\t\t\t+\" Each attribute member must be deleted from its own type tuple.\");\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\r\n\t\t\t\t\t\t\t\"<html><body>\"\r\n\t\t\t\t\t\t\t+\"Cannot delete this attribute member which belongs to a parent type.\"\r\n\t\t\t\t\t\t\t+\"<br>\"\r\n\t\t\t\t\t\t\t+\"Each attribute member must be deleted from its own type tuple.\",\r\n\t\t\t\t\t\t\t\" Cannot delete \",\r\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\ttype.deleteMemberAt(ExtendedTupleEditorSupport.this.viewSetting, slot);\r\n\t\t\t}\r\n\t\t};\r\n\t\taction\r\n\t\t\t\t.putValue(Action.SHORT_DESCRIPTION,\r\n\t\t\t\t\t\t\"Removes the selected member\");\r\n\t\taddMemberAction(action);\r\n\t\tthis.deleteAction = action;\r\n\t\treturn action;\r\n\t}",
"Future<DeleteListenerResponse> deleteListener(\n DeleteListenerRequest request,\n AsyncHandler<DeleteListenerRequest, DeleteListenerResponse> handler);"
] | [
"0.76467764",
"0.74480534",
"0.74249697",
"0.7407384",
"0.7375581",
"0.7327324",
"0.7293149",
"0.7195361",
"0.71244603",
"0.70338714",
"0.6986209",
"0.69047403",
"0.68886316",
"0.6881291",
"0.6861116",
"0.6844204",
"0.6804155",
"0.6784633",
"0.6776915",
"0.67656493",
"0.6745706",
"0.67328554",
"0.672035",
"0.6694886",
"0.6665363",
"0.6660933",
"0.6657594",
"0.66326195",
"0.65886855",
"0.6588055",
"0.65829617",
"0.65789115",
"0.65539813",
"0.65332687",
"0.65015036",
"0.6494125",
"0.64920866",
"0.64920866",
"0.64800394",
"0.6457708",
"0.6452655",
"0.6448773",
"0.64411753",
"0.6440165",
"0.64210933",
"0.6418192",
"0.6412793",
"0.6412793",
"0.6381295",
"0.63761866",
"0.6366616",
"0.63639605",
"0.6363295",
"0.63616925",
"0.63616925",
"0.63616925",
"0.63616925",
"0.6351223",
"0.635081",
"0.63486725",
"0.63470775",
"0.634313",
"0.6340167",
"0.6334377",
"0.63221145",
"0.6315063",
"0.6315063",
"0.63142425",
"0.6313003",
"0.6312502",
"0.63095975",
"0.6302801",
"0.62996763",
"0.62996763",
"0.62864554",
"0.62824076",
"0.62786525",
"0.6273208",
"0.6272651",
"0.62722784",
"0.6270432",
"0.6270432",
"0.62676275",
"0.62672305",
"0.6265907",
"0.6265835",
"0.62638164",
"0.62585783",
"0.6255409",
"0.62531394",
"0.6247393",
"0.6243118",
"0.6237672",
"0.62339866",
"0.62251204",
"0.62145555",
"0.6211533",
"0.6210876",
"0.6208892",
"0.62058777"
] | 0.7265455 | 7 |
Life cycle methods The dialog is being created. | @Override
public void onCreate( final Bundle savedInstanceState )
{
super.onCreate( savedInstanceState );
{
Debug.enter();
setContentView( R.layout.dialog_delete );
setCanceledOnTouchOutside( true );
setTitle( title );
if ( message != null )
{
final TextView messageText = (TextView) findViewById( R.id.text );
final String messageFormat = Android.App.INSTANCE.getString( R.string.delete_that_message_text );
messageText.setText( String.format( messageFormat, message ) );
}
final Button okButton = (Button) findViewById( R.id.ok_button );
okButton.setOnClickListener( okButtonListener );
final Button cancelButton = (Button) findViewById( R.id.cancel_button );
cancelButton.setOnClickListener( cancelButtonListener );
super.onCreate( savedInstanceState );
cancelButton.requestFocus();
Debug.leave();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initDialog() {\n }",
"private Dialogs () {\r\n\t}",
"void makeDialog()\n\t{\n\t\tfDialog = new ViewOptionsDialog(this.getTopLevelAncestor());\n\t}",
"public Dialog() {\n\t}",
"public abstract void initDialog();",
"public DialogManager() {\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n return mDialog;\n }",
"public BaseDialog create()\n {\n LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n // instantiate the dialog with the custom Theme\n final BaseDialog dialog = new BaseDialog(context, R.style.Dialog);\n\n View layout = inflater.inflate(R.layout.view_shared_basedialog, null);\n\n //set the dialog's image\n this.icon = (ImageView) layout.findViewById(R.id.view_shared_basedialog_icon);\n\n if (this.imageResource > 0 || this.imageUrl != null)\n {\n this.icon.setVisibility(View.VISIBLE);\n if (this.imageResource > 0)\n {\n this.icon.setBackgroundResource(this.imageResource);\n }\n else\n {\n// TextureRender.getInstance().setBitmap(this.imageUrl, this.icon, R.drawable.no_data_error_image);\n }\n }\n else\n {\n this.icon.setVisibility(View.GONE);\n }\n\n // set check box's text and default value\n this.checkLayout = layout.findViewById(R.id.view_shared_basedialog_checkbox_layout);\n this.checkBox = (CheckBox) layout.findViewById(R.id.view_shared_basedialog_checkbox);\n this.checkBoxTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_checkbox_text);\n\n if (!TextUtils.isEmpty(this.checkBoxText))\n {\n this.checkLayout.setVisibility(View.VISIBLE);\n this.checkBoxTextView.setText(this.checkBoxText);\n this.checkBox.setChecked(checkBoxDefaultState);\n }\n else\n {\n this.checkLayout.setVisibility(View.GONE);\n }\n\n // set the dialog main title and sub title\n this.maintitleTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_maintitle_textview);\n this.subtitleTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_subtitle_textview);\n this.titleDivideTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_titledivide_textview);\n if (!TextUtils.isEmpty(title1))\n {\n this.maintitleTextView.setText(title1);\n if (this.title1BoldAndBig)\n {\n this.maintitleTextView.setTypeface(null, Typeface.BOLD);\n this.maintitleTextView.setTextSize(17);\n }\n\n this.maintitleTextView.setVisibility(View.VISIBLE);\n }\n else\n {\n this.maintitleTextView.setVisibility(View.GONE);\n }\n\n if (!TextUtils.isEmpty(title2))\n {\n this.subtitleTextView.setText(title2);\n this.subtitleTextView.setVisibility(View.VISIBLE);\n }\n else\n {\n this.subtitleTextView.setVisibility(View.GONE);\n }\n this.titleDivideTextView.setVisibility(View.GONE);\n\n // set the confirm button\n this.positiveButton = ((Button) layout.findViewById(R.id.view_shared_basedialog_positivebutton));\n if (!TextUtils.isEmpty(positiveButtonText))\n {\n this.positiveButton.setText(positiveButtonText);\n this.positiveButton.setVisibility(View.VISIBLE);\n if (positiveButtonClickListener != null)\n {\n this.positiveButton.setOnClickListener(new View.OnClickListener()\n {\n public void onClick(View v)\n {\n positiveButtonClickListener.onClick(dialog, DialogInterface.BUTTON_POSITIVE);\n if (checkBox.isChecked()&&onCheckBoxListener!=null)\n {\n onCheckBoxListener.checkedOperation();\n }\n }\n });\n }\n }\n else\n {\n // if no confirm button just set the visibility to GONE\n this.positiveButton.setVisibility(View.GONE);\n }\n\n // set the cancel button\n this.negativeButton = ((Button) layout.findViewById(R.id.view_shared_basedialog_negativebutton));\n if (!TextUtils.isEmpty(negativeButtonText))\n {\n this.negativeButton.setText(negativeButtonText);\n this.negativeButton.setVisibility(View.VISIBLE);\n if (negativeButtonClickListener != null)\n {\n this.negativeButton.setOnClickListener(new View.OnClickListener()\n {\n public void onClick(View v)\n {\n negativeButtonClickListener.onClick(dialog, DialogInterface.BUTTON_NEGATIVE);\n }\n });\n }\n }\n else\n {\n // if no confirm button just set the visibility to GONE\n this.negativeButton.setVisibility(View.GONE);\n }\n\n // set button's background\n this.buttonDivideTextView = (TextView) layout.findViewById(R.id.view_shared_basedialog_buttondivide_textview);\n if (!TextUtils.isEmpty(negativeButtonText) && !TextUtils.isEmpty(negativeButtonText))\n {\n this.buttonDivideTextView.setVisibility(View.VISIBLE);\n this.positiveButton.setBackgroundResource(R.drawable.view_shared_corner_round_rightbottom);\n this.negativeButton.setBackgroundResource(R.drawable.view_shared_corner_round_leftbottom);\n }\n else\n {\n this.buttonDivideTextView.setVisibility(View.GONE);\n this.positiveButton.setBackgroundResource(R.drawable.view_shared_corner_round_bottom);\n this.negativeButton.setBackgroundResource(R.drawable.view_shared_corner_round_bottom);\n }\n\n // set the content message\n this.contentLayout = layout.findViewById(R.id.view_shared_basedialog_content_layout);\n if (!TextUtils.isEmpty(message))\n {\n this.contentTextView = ((TextView) layout.findViewById(R.id.view_shared_basedialog_content_textview));\n this.contentTextView.setText(message);\n this.contentTextView.setMovementMethod(ScrollingMovementMethod.getInstance());\n }\n else if (contentView != null)\n {\n // if no message set\n // add the contentView to the dialog body\n ((ViewGroup) this.contentLayout).removeAllViews();\n ((ViewGroup) this.contentLayout).addView(contentView, new ViewGroup.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT));\n }\n else\n {\n this.contentLayout.setVisibility(View.GONE);\n }\n\n int[] params = Utils.getLayoutParamsForHeroImage();\n dialog.setContentView(layout, new ViewGroup.LayoutParams(params[0]*4/5, ViewGroup.LayoutParams.MATCH_PARENT));\n return dialog;\n }",
"@Override\n public void onStart() {\n pDialog.show();\n }",
"@Override\n\t\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\t\treturn mDialog;\n\t\t}",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n setRetainInstance(true);\n\n Dialog dialog = new Dialog(getContext(), R.style.DialogTheme);\n dialog.setContentView(R.layout.add_student_feedback_dialog);\n\n return dialog;\n }",
"public StandardDialog() {\n super();\n init();\n }",
"public FiltroGirosDialog() {\n \n }",
"private void creatDialog() {\n \t mDialog=new ProgressDialog(this);\n \t mDialog.setTitle(\"\");\n \t mDialog.setMessage(\"正在加载请稍后\");\n \t mDialog.setIndeterminate(true);\n \t mDialog.setCancelable(true);\n \t mDialog.show();\n \n\t}",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n setRetainInstance(true);\n\n Dialog dialog = new Dialog(getContext(), R.style.DialogTheme);\n dialog.setContentView(R.layout.add_sale_item_dialog);\n\n return dialog;\n }",
"public InfoDialog() {\r\n\t\tcreateContents();\r\n\t}",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(R.string.dialog_fire_missiles)\n .setPositiveButton(R.string.fire, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n }\n });\n return builder.create();\n }",
"private void mostrarDialogoCargar(){\n materialDialog = new MaterialDialog.Builder(this)\n .title(\"Validando datos\")\n .content(\"Por favor espere\")\n .progress(true, 0)\n .contentGravity(GravityEnum.CENTER)\n .widgetColorRes(R.color.colorPrimary)\n .show();\n\n materialDialog.setCancelable(false);\n materialDialog.setCanceledOnTouchOutside(false);\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n View view = getActivity().getLayoutInflater().inflate(R.layout.rollback_detail_dialog, new LinearLayout(getActivity()), false);\n\n initUI(view);\n // clickEvents();\n\n /*\n assert getArguments() != null;\n voucherTypes = (ArrayList<VoucherType>) getArguments().getSerializable(\"warehouses\");\n voucherType=\"\";\n*/\n\n Dialog builder = new Dialog(getActivity());\n builder.requestWindowFeature(Window.FEATURE_NO_TITLE);\n builder.setContentView(view);\n return builder;\n\n\n }",
"@Override\n\tprotected Dialog onCreateDialog(int id)\n\t{\n\t\tsuper.onCreateDialog(id);\n\t\treturn visitor.instantiateDialog(id);\n\t}",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflator = getActivity().getLayoutInflater();\n View view = inflator.inflate(R.layout.informationdialog, datePicker);\n builder.setView(view);\n init(view);\n Dialog dialog = builder.create();\n\n //Dialog will not close automatically until user click on cancle button.\n setCancelable(false);\n return dialog;\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = requireActivity().getLayoutInflater();\n final View view = inflater.inflate(R.layout.on_click_dialog, null);\n builder.setView(view);\n\n\n\n\n\n\n\n\n return builder.create();\n }",
"private void initDialog() {\n dialog = new Dialog(context);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n dialog.setContentView(R.layout.dialog_custom_ok);\n }",
"public void showLifeCycleDialog() {\n\t\t\tlifeCycleDialogBox = new DialogBox(true);\n\t\t\tlifeCycleDialogBox.setGlassEnabled(true);\n\t\t\tlifeCycleDialogBox.setText(\"Seguimiento del Documento\");\n\n\t\t\t// Vertical Panel\n\t\t\tVerticalPanel vp = new VerticalPanel();\n\t\t\tvp.setSize(\"100%\", \"100%\");\n\t\t\tvp.add(lifeCycleCellTree);\n\t\t\tvp.add(new HTML(\" \"));\n\t\t\tvp.add(lifeCycleCloseButton);\n\n\t\t\t// Scroll Panel\n\t\t\tScrollPanel scrollPanel = new ScrollPanel();\n\t\t\tif (getUiParams().isMobile())\n\t\t\t\tscrollPanel.setSize(Window.getClientWidth() + \"px\", Window.getClientHeight() + \"px\");\n\t\t\telse\n\t\t\t\tscrollPanel.setSize(Window.getClientWidth() * .4 + \"px\", Window.getClientHeight() * .3 + \"px\");\n\t\t\tscrollPanel.setWidget(vp);\n\t\t\tlifeCycleDialogBox.setWidget(scrollPanel);\n\n\t\t\tDouble d = Window.getClientWidth() * .3;\n\t\t\tif (!getUiParams().isMobile()) \n\t\t\t\tlifeCycleDialogBox.setPopupPosition(d.intValue(), UiTemplate.NORTHSIZE * 3);\n\n\t\t\tlifeCycleDialogBox.show();\n\t\t}",
"public abstract Dialog createDialog(DialogDescriptor descriptor);",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tprogress = UserCenterDialog.onCreateDialog(this);\r\n\t\tcontext = this;\r\n\t\tshellRW = new RWSharedPreferences(context, \"addInfo\");\r\n\t\tinitDialog(NoticeActivityGroup.LOTNO);\r\n\t}",
"@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n return mDialog;\n }",
"@Override\n\tprotected Dialog onCreateDialog(int id) {\n\t\treturn buildDialog(MainActivity.this);\n\t\t\n\t}",
"@Override\n protected Dialog onCreateDialog(int id) {\n \tswitch (id) {\n\t\tcase DLG_PROGRESSBAR:\n\t\t\treturn dialogoProgressBar();\n\t\tcase DLG_BUTTONS:\n\t\t\treturn dialogButtons();\n\t\tcase DLG_LIST:\n\t\t\treturn dialogLista();\n\t\tcase DLG_LIST_SELECT:\n\t\t\treturn dialogListaSelect();\n\t\tdefault:\n\t\t\treturn dialogButtons();\n\t\t}\n }",
"public Dialog onCreateDialog(Bundle savedInstanceState) {\r\n\t return mDialog;\r\n\t }",
"protected abstract JDialog createDialog();",
"public DialogUtil create() {\n \t//\n \t LayoutInflater inflater = LayoutInflater.from(CurrentActivityContext.getInstance().getCurrentContext());\n \n // instantiate the dialog with the custom Theme\n final DialogUtil dialog = new DialogUtil(context, R.style.Dialog);\n \n View layout = inflater.inflate(R.layout.dialog_layout, null);\n \n // set the content and title message\n ((TextView) layout.findViewById(R.id.dialog_title_txt)).setText(title);\n ((TextView) layout.findViewById(R.id.dialog_message_txt)).setText(message);\n \n //set the button text\n if(negativeButtonText != null) {\n \t((TextView) layout.findViewById(R.id.dialog_cancel_txt)).setText(negativeButtonText);\n \tif(negativeButtonClickListener == null){\n \tnegativeButtonClickListener = new OnClickListener() {\n \t\t\t\t\t\n \t\t\t\t\t@Override\n \t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n \t\t\t\t\t\t// TODO Auto-generated method stub\n \t\t\t\t\t\tdialog.dismiss();\n \t\t\t\t\t\tdialog = null;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\t\n \t\t\t\t//\n \t\t\t\tlayout.findViewById(R.id.dialog_cancel_txt).setOnClickListener(new View.OnClickListener(){\n\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\t// TODO Auto-generated method stub\n \t\t\t\t\tnegativeButtonClickListener.onClick(dialog, DialogInterface.BUTTON_NEGATIVE);\n \t\t\t\t}\n \t\n });\n }else{\n \t layout.findViewById(R.id.dialog_cancel_txt).setOnClickListener(new View.OnClickListener(){\n\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\t// TODO Auto-generated method stub\n \t\t\t\t\tnegativeButtonClickListener.onClick(dialog, DialogInterface.BUTTON_NEGATIVE);\n \t\t\t\t}\n \t\n });\n \t \n \t //\n \t if(dialog != null) dialog.dismiss();\n }\n }else{\n \tlayout.findViewById(R.id.dialog_cancel_txt).setVisibility(View.GONE);\n// \tlayout.findViewById(R.id.dialog_confirm_txt).setBackgroundResource(R.drawable.dialog_single_gray_btn_bg);\n }\n \n //\n if(positiveButtonText != null) ((TextView) layout.findViewById(R.id.dialog_confirm_txt)).setText(positiveButtonText);\n \n \n //cancel button\n \n \n //confirm button\n layout.findViewById(R.id.dialog_confirm_txt).setOnClickListener(new View.OnClickListener(){\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tpositiveButtonClickListener.onClick(dialog, DialogInterface.BUTTON_POSITIVE);\n\t\t\t\t\t\n\t\t\t\t\tif(dialog != null)\tdialog.dismiss();\n\t\t\t\t}\n \t\n });\n \n dialog.setContentView(layout);\n return dialog;\n }",
"public ReorganizeDialog() { }",
"@Override\n\tpublic void init() {\n//\t\tSystem.out.println(\"init UIAgent\");\n\n//\t\tSystem.out.println(\"closing old dialog of \");\n\t\tif (ui != null) {\n\t\t\tui.dispose();\n\t\t\tui = null;\n\t\t}\n//\t\tSystem.out.println(\"old dialog closed. Trying to open new dialog. \");\n\t\ttry {\n\t\t\tui = new EnterBidDialog(this, null, true,\n\t\t\t\t\t(AdditiveUtilitySpace) utilitySpace, null);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Problem in UIAgent2.init:\" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n//\t\tSystem.out.println(\"finished init of UIAgent2\");\n\t}",
"public JDialogParticleAnalysisNew() { }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int hour = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n // Retornar en nueva instancia del dialogo selector de tiempo\n return new TimePickerDialog(getActivity(),this, hour, minute, DateFormat.is24HourFormat(getActivity()));\n }",
"@Override\r\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\r\n \r\n LayoutInflater inflater = getActivity().getLayoutInflater();\r\n builder.setTitle(\"New Wallet\");\r\n \r\n\t final View view = inflater.inflate(R.layout.new_wallet_dialog, null);\r\n\t \r\n\t final EditText name = (EditText) view.findViewById(R.id.newWallet_text);\r\n\t \r\n builder.setPositiveButton(R.string.confirmRecord, new DialogInterface.OnClickListener() {\r\n \r\n \tpublic void onClick(DialogInterface dialog, int id) {\r\n \t\tlistener.comfirmPressed(name.getText().toString());\t\r\n \t\t}\r\n });\r\n builder.setNegativeButton(R.string.cancelRecord, new DialogInterface.OnClickListener() {\r\n \tpublic void onClick(DialogInterface dialog, int id) {\r\n \t\tlistener.cancelPressed();\r\n \t\t}\r\n \t});\r\n // Create the AlertDialog object and return it\r\n return builder.create();\r\n }",
"@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(getArguments().getString(\"title\"))\n .setMessage(getArguments().getString(\"message\"))\n .setCancelable(false)\n .setPositiveButton(R.string.OK, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // FIRE ZE MISSILES!\n // call callback method\n // mListener.onInfoDialogOKClick(InfoDialog.this);\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }",
"public PHConstDialog() {\n\t\tinitComponents();\n\t}",
"public void popupAdd() {\n builder = new AlertDialog.Builder(getView().getContext());\n View views = getLayoutInflater().inflate(R.layout.departmentpopup, (ViewGroup) null);\n DepartmentName = (EditText) views.findViewById(R.id.department_name);\n DepartmentId = (EditText) views.findViewById(R.id.department_id);\n pbar =views.findViewById(R.id.departmentProgress);\n Button button =views.findViewById(R.id.save_depart);\n saveButton = button;\n button.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n addDeparatments();\n }\n });\n builder.setView(views);\n AlertDialog create =builder.create();\n dialog = create;\n create.show();\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n int hour = calendarSelected.get(Calendar.HOUR_OF_DAY);\n int minute = calendarSelected.get(Calendar.MINUTE);\n\n // Create a new instance of TimePickerDialog and return it\n return new TimePickerDialog(getActivity(), this, hour, minute,\n DateFormat.is24HourFormat(getActivity()));\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState){\n final Calendar c = Calendar.getInstance();\n int hour = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n //Create and return a new instance of TimePickerDialog\n return new TimePickerDialog(getActivity(), AlertDialog.THEME_HOLO_DARK,this, hour, minute, false);\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n LayoutInflater inflater = getActivity().getLayoutInflater();\n\n\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(\"CREA USUARIO\")\n .setView(inflater.inflate(R.layout.register_dialog, null))\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n editUser = ((AlertDialog) dialog).findViewById(R.id.username);\n editPass = ((AlertDialog) dialog).findViewById(R.id.password);\n startConexion();\n }\n })\n .setNegativeButton(\"CANCEL\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }",
"@Override\n public Dialog onCreateDialog(Bundle state) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n // Set the title\n builder.setTitle(R.string.new_location_title);\n\n // Get the layout inflater\n LayoutInflater inflater = getActivity().getLayoutInflater();\n\n // Pass null as the parent view because its going in the dialog layout\n view = inflater.inflate(R.layout.fire_report, null);\n builder.setView(view);\n\n populate();\n\n // Add a cancel button\n builder.setNegativeButton(R.string.close, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n Boolean checked = ((CheckBox) view.findViewById(R.id.checkExtinguished)).isChecked();\n if (fire.isExtinguished() != checked) {\n fire.setExtinguished(checked);\n if (!new Cloud(view.getContext()).updateExtinguishedToCloud(fire)) {\n fire.setExtinguished(!checked);\n view.post(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(view.getContext(), R.string.extinguished_failed, Toast.LENGTH_SHORT).show();\n }\n });\n }\n }\n }\n }).start();\n }\n });\n\n dlg = builder.create();\n\n return dlg;\n }",
"@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n // Use the Builder class for convenient dialog construction\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(R.string.title_add_to_shopping);\n\n // initialize itemcreation\n m_createItemDlg = new CreateItemDialog(this);\n\n // create item selection\n builder.setView(createItemSelection());\n\n // set buttonss\n builder.setPositiveButton(R.string.button_add, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n if(m_callback != null) {\n m_callback.readAddToShoppingDlgAndUpdate();\n }\n }\n });\n builder.setNegativeButton(R.string.button_cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) { }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }",
"@Override\r\n public Dialog onCreateDialog(Bundle savedInstanceState) {\r\n //use the builder class for convenient dialog construction\r\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\r\n //get the layout inflater\r\n LayoutInflater inflater = getActivity().getLayoutInflater();\r\n View rootView = inflater.inflate(R.layout.dialog_room, null);\r\n mRoomNumber = rootView.findViewById(R.id.roomNumberEditText);\r\n mAllergy = rootView.findViewById(R.id.allergyEditText);\r\n mPlateType = rootView.findViewById(R.id.plateTypeEditText);\r\n mChemicalDiet = rootView.findViewById(R.id.chemicalDietEditText);\r\n mTextureDiet = rootView.findViewById(R.id.textureDietEditText);\r\n mLiquidDiet = rootView.findViewById(R.id.liquidDietEditText);\r\n mLikes = rootView.findViewById(R.id.likesEditText);\r\n mDislikes = rootView.findViewById(R.id.dislikesEditText);\r\n mNotes = rootView.findViewById(R.id.notesEditText);\r\n mMeal = rootView.findViewById(R.id.mealEditText);\r\n mDessert = rootView.findViewById(R.id.dessertEditText);\r\n mBeverage = rootView.findViewById(R.id.beverageEditText);\r\n\r\n mBeverage.setOnEditorActionListener(new TextView.OnEditorActionListener() {\r\n @Override\r\n public boolean onEditorAction(TextView textView, int i, KeyEvent keyEvent) {\r\n if (i == EditorInfo.IME_ACTION_DONE || keyEvent.getAction() == KeyEvent.ACTION_DOWN){\r\n addRoom();\r\n }\r\n return true;\r\n }\r\n });\r\n\r\n //inflate and set the layout for the dialog\r\n //pass null as the parent view cause its going in the dialog layout.\r\n builder.setView(rootView).setPositiveButton(R.string.button_done, new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialogInterface, int i) {\r\n addRoom();\r\n }\r\n });\r\n\r\n return builder.create();\r\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n mhour = c.get(Calendar.HOUR_OF_DAY);\n mminute = c.get(Calendar.MINUTE);\n\n\n // Create a new instance of TimePickerDialog and return it\n return new TimePickerDialog(getActivity(), this, mhour, mminute,\n DateFormat.is24HourFormat(getActivity()));\n }",
"public CommonDialog(@NonNull Context context) {\n super(context,R.style.EditDialong);\n// this.listener = listener;\n// View contentView = LayoutInflater.from(context).inflate(R.layout.dialog_edit, null);\n// setContentView(contentView);\n// Window dialongWindow = getWindow();\n// WindowManager.LayoutParams lp = dialongWindow.getAttributes();\n// DisplayMetrics d = context.getResources().getDisplayMetrics();\n// lp.width = (int) (d.widthPixels*0.8);\n// dialongWindow.setAttributes(lp);\n// initView();\n// initListener();\n }",
"@SuppressLint(\"StaticFieldLeak\")\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n myear = c.get(Calendar.YEAR);\n mmonth= c.get(Calendar.MONTH);\n mday= c.get(Calendar.DAY_OF_MONTH);\n return new DatePickerDialog(getActivity(), this, myear, mmonth, mday);\n }",
"@Override\n\t\tpublic Dialog onCreateDialog(Bundle savedInstanceState) \n\t\t{\n\t\t\tfinal Calendar c = Calendar.getInstance();\n\t\t\tint hour = c.get(Calendar.HOUR_OF_DAY);\n\t\t\tint minute = c.get(Calendar.MINUTE);\n\n\t\t\t// Create a new instance of TimePickerDialog and return it\n\t\t\treturn new TimePickerDialog(getActivity(), this, hour, minute,\n\t\t\t\t\tDateFormat.is24HourFormat(getActivity()));\n\t\t}",
"public void crearDialogo() {\r\n final PantallaCompletaDialog a2 = PantallaCompletaDialog.a(getString(R.string.hubo_error), getString(R.string.no_hay_internet), getString(R.string.cerrar).toUpperCase(), R.drawable.ic_error);\r\n a2.f4589b = new a() {\r\n public void onClick(View view) {\r\n a2.dismiss();\r\n }\r\n };\r\n a2.show(getParentFragmentManager(), \"TAG\");\r\n }",
"protected Dialog onCreateDialog (int id) {\n\t\tif (!this.hasWindowFocus())\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tdismissDialog (DIALOG_CREATE);\r\n\t\t\t}\r\n\t\t\tcatch (Exception e)\r\n\t\t\t{\r\n\r\n\t\t\t}\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tdismissDialog (DIALOG_SUBMIT);\r\n\t\t\t}\r\n\t\t\tcatch (Exception e)\r\n\t\t\t{\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\tAlertDialog.Builder bld = new AlertDialog.Builder(this);\r\n\t\tswitch (id){\r\n\t\tcase DIALOG_CREATE: \r\n\t\t{bld.setMessage(\"More than one call needs to be reported. Your most recent call is first.\").setCancelable(false).setPositiveButton(\"OK\", new DialogInterface.OnClickListener()\r\n\t\t{\tpublic void onClick(DialogInterface dialog, int which) {\r\n\t\t\tdialog.dismiss();\r\n\t\t}\r\n\t\t}).setTitle(\"New Record\");\r\n\t\tbreak;\r\n\t\t}\r\n\t\tcase DIALOG_SUBMIT:\r\n\t\t{\r\n\t\t\tbld.setMessage(\"Please submit your previous call record now.\").setCancelable(false).setPositiveButton(\"OK\", new DialogInterface.OnClickListener()\r\n\t\t\t{\tpublic void onClick(DialogInterface dialog, int which) {\r\n\t\t\t\tdialog.dismiss();\r\n\t\t\t}\r\n\t\t\t}).setTitle(\"Older Record\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t}\r\n\t\treturn bld.create();\r\n\t}",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(R.string.dialog_leave_channel)\n .setPositiveButton(R.string.button_yes, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n Log.v(LOGTAG, \"YES clicked\");\n getGTracker().send(MapBuilder\n .createEvent(\"ui_action\", \"channel_dialog\", \"leave_yes\", null)\n .build()\n );\n mListener.onDialogLeaveChannelConfirm(LeaveChanDialog.this);\n }\n })\n .setNegativeButton(R.string.button_no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n Log.v(LOGTAG, \"NO clicked\");\n getGTracker().send(MapBuilder\n .createEvent(\"ui_action\", \"channel_dialog\", \"leave_no\", null)\n .build()\n );\n }\n })\n .setTitle(R.string.dialog_signup_title);\n // Create the AlertDialog object and return it\n return builder.create();\n }",
"@Override\r\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\r\n int year = c.get(Calendar.YEAR);\r\n int month = c.get(Calendar.MONTH);\r\n int day = c.get(Calendar.DAY_OF_MONTH);\r\n\r\n d_fechaCreacion = getActivity().findViewById(R.id.d_fechaTransectaItem);\r\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), this, year, month, day);\r\n datePickerDialog.updateDate(year, month, day);\r\n // Create a new instance of DatePickerDialog and return it\r\n return datePickerDialog;\r\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(\"Done entering class?\")\n .setPositiveButton(\"yes\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n }\n })\n .setNegativeButton(\"no\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n Intent tmp = new Intent(getContext(), course_info.class);\n startActivity(tmp);\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }",
"public void addRelationshipDialog() { new RelationshipDialog(); }",
"@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this,\n myDateListener, year, month, day);\n }\n if (id == 998) {\n return new DatePickerDialog(this,\n myDateListener_end, year, month, day);\n }\n return null;\n }",
"@Override\r\n\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\r\n\t\tDialog dialog = super.onCreateDialog(savedInstanceState);\r\n\t\tdialog.setCanceledOnTouchOutside(false);\r\n\t\treturn dialog;\r\n\t}",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(this.m)\n .setPositiveButton(R.string.donesuccess, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // onFailure();\n onLoginFailed(m);\n }\n });\n return builder.create();\n }",
"public ClassChoiceDialog(Context context) {\n // 通过LayoutInflater来加载一个xml的布局文件作为一个View对象\n this.context = context;\n initialView();\n dialog = builder.create();\n initListener();\n\n }",
"@Override\n protected Dialog onCreateDialog(int id) {\n Dialog dialog = null;\n switch (id) {\n case CHOOSE_METHOD_DIALOG:\n return chooseActionContextMenu.createMenu(this.getString(R.string.choose_action_title));\n case ABOUT_DIALOG:\n dialog = createAboutDialog();\n break;\n default:\n dialog = null;\n break;\n }\n return dialog;\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int hour = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n // Create a new instance of DatePickerDialog and return it\n TimePickerDialog dialog = new TimePickerDialog(getActivity(), this, hour, minute,\n DateFormat.is24HourFormat(getActivity()));\n\n dialog.setButton(DialogInterface.BUTTON_NEGATIVE, \"Cancel\", new DialogInterface\n .OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n if (which == DialogInterface.BUTTON_NEGATIVE) {\n dialog.cancel();\n }\n }\n });\n\n return dialog;\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n builder.setMessage(msg)\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n return;\n }\n });\n\n Dialog dialog = builder.create();\n\n // Create the AlertDialog object and return it\n return dialog;\n }",
"@Override\n\t\t\tpublic void onStart()\n\t\t\t{\n\t\t\t\tsuper.onStart();\n\t\t\t\tdialog = MessageDialog.createLoadingDialog(HelpActivity.this, \"Loadding\");\n\t\t\t\tdialog.show();\n\t\t\t}",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int hour = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n // Create a new instance of TimePickerDialog and return it\n return new TimePickerDialog(getActivity(), this, hour, minute,\n DateFormat.is24HourFormat(getActivity()));\n\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n String mess = \"They decliened your invitation\";\n if(getArguments().getBoolean(\"hostDeclined\"))\n {\n mess = \"They canceled their invitation\";\n }\n builder.setMessage(mess)\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // FIRE ZE MISSILES!\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }",
"protected void dialog() {\n TextInputDialog textInput = new TextInputDialog(\"\");\n textInput.setTitle(\"Text Input Dialog\");\n textInput.getDialogPane().setContentText(\"Nyt bord nr: \");\n textInput.showAndWait()\n .ifPresent(response -> {\n if (!response.isEmpty()) {\n newOrderbutton(response.toUpperCase());\n }\n });\n }",
"@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity(),\n R.style.RedButtonAlertDialog);\n\n builder.setTitle(\"Add new profile\").setView(R.layout.dialog_add_player)\n .setPositiveButton(\"Add\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n EditText profileNameEditText =\n (EditText) getDialog().findViewById(R.id.add_player_edit_text);\n String name = profileNameEditText.getText().toString();\n DartLogDatabaseHelper dbHelper = new DartLogDatabaseHelper(getContext());\n dbHelper.addPlayer(name);\n getProfilesAdapter().updateDataSetFromDatabase();\n }\n })\n .setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }",
"public Dialog onCreateDialog(Bundle savedInstanceState){\n AlertDialog.Builder sample_builder = new AlertDialog.Builder(getActivity());\n sample_builder.setView(\"activity_main\");\n sample_builder.setMessage(\"This is a sample prompt. No new networks should be scanned while this prompt is up\");\n sample_builder.setCancelable(true);\n sample_builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n listener.onDialogPositiveClick(StationFragment.this);\n }\n });\n sample_builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n listener.onDialogNegativeClick(StationFragment.this);\n }\n });\n return sample_builder.create();\n\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = getActivity().getLayoutInflater();\n View view = inflater.inflate(R.layout.complete_workout_dialog,null);\n builder.setView(view);\n completeScore = view.findViewById(R.id.score_edit_text);\n completeTime = view.findViewById(R.id.time_edit_text);\n\n // Inflate and set the layout for the dialog\n // Pass null as the parent view because its going in the dialog layout\n // Add action buttons\n builder.setMessage(\"\")\n .setPositiveButton(\"Ok \", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n completeWorkoutListener.onCompletedWorkoutSelected(completeScore.getText().toString(), completeTime.getText().toString());\n }\n })\n .setNegativeButton(\" Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int hour = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n // Create a new instance of TimePickerDialog and return it\n return new TimePickerDialog(getActivity(), this, hour, minute,\n DateFormat.is24HourFormat(getActivity()));\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int hour = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n // Create a new instance of TimePickerDialog and return it\n return new TimePickerDialog(getActivity(), this, hour, minute,\n DateFormat.is24HourFormat(getActivity()));\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int hour = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n // Create a new instance of TimePickerDialog and return it\n return new TimePickerDialog(getActivity(), this, hour, minute,\n DateFormat.is24HourFormat(getActivity()));\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int hour = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n // Create a new instance of TimePickerDialog and return it\n return new TimePickerDialog(getActivity(), this, hour, minute,\n DateFormat.is24HourFormat(getActivity()));\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int hour = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n // Create a new instance of TimePickerDialog and return it\n return new TimePickerDialog(getActivity(), this, hour, minute,\n DateFormat.is24HourFormat(getActivity()));\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int hour = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n // Create a new instance of TimePickerDialog and return it\n return new TimePickerDialog(getActivity(), this, hour, minute,\n DateFormat.is24HourFormat(getActivity()));\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n int hour = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n // Create a new instance of TimePickerDialog and return it\n return new TimePickerDialog(getActivity(), this, hour, minute,\n DateFormat.is24HourFormat(getActivity()));\n }",
"@Override\r\n\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\r\n\t\tAlertDialog.Builder builder = new Builder(this.getActivity());\r\n\t\tView view = LayoutInflater.from(getActivity()).inflate(\r\n\t\t\t\tR.layout.load_dialog, null);\r\n\r\n\t\tbuilder.setView(view);\r\n\t\tbuilder.setCancelable(false);\r\n\t\tdialog=builder.create();\r\n\t\treturn dialog;\r\n\t}",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n //Use the current time as the default values for the time picker\n final Calendar c = Calendar.getInstance();\n int hour = c.get(Calendar.HOUR_OF_DAY);\n int minute = c.get(Calendar.MINUTE);\n\n //Create and return a new instance of TimePickerDialog\n return new TimePickerDialog(getActivity(), this, hour, minute,\n DateFormat.is24HourFormat(getActivity()));\n }",
"public AbstractListenerDialog() {\n\t\tlisteners = new ArrayList<>();\n\t}",
"@Override\r\n\t protected Dialog onCreateDialog(int id) {\n\t \r\n\t screenDialog = null;\r\n\t switch(id){\r\n\t case(ID_SCREENDIALOG):\r\n\t screenDialog = new Dialog(this);\r\n\t screenDialog.setContentView(R.layout.message);\r\n\t messageText=(EditText)screenDialog.findViewById(R.id.messagetext1);\r\n\t send=(Button)screenDialog.findViewById(R.id.button1);\r\n\t send.setOnClickListener(sendmessage);\r\n\t cancel=(Button)screenDialog.findViewById(R.id.button2);\r\n\t cancel.setOnClickListener(cancelmessage);\r\n\t }\r\n\t return screenDialog;\r\n\t }",
"@Override\n public Dialog onCreateDialog (Bundle savedInstanceState)\n {\n // Use the current time as the default values for the picker\n final Calendar c = Calendar.getInstance();\n year = c.get(Calendar.YEAR);\n month = c.get(Calendar.MONTH);\n day = c.get(Calendar.DAY_OF_MONTH);\n // Create a new instance of TimePickerDialog and return it\n return new DatePickerDialog(getActivity(), this, year, month, day);\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\n hour = c.get(Calendar.HOUR_OF_DAY);\n minute = c.get(Calendar.MINUTE);\n\n // Create a new instance of TimePickerDialog and return it\n return new TimePickerDialog(getActivity(), this, hour, minute,\n DateFormat.is24HourFormat(getActivity()));\n }",
"private void startMealToDatabaseAlert() {\n AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(this);\n TextView dialogTitle = new TextView(this);\n int blackValue = Color.parseColor(\"#000000\");\n dialogTitle.setText(R.string.title_dialog_meal);\n dialogTitle.setGravity(Gravity.CENTER_HORIZONTAL);\n dialogTitle.setPadding(0, 30, 0, 0);\n dialogTitle.setTextSize(25);\n dialogTitle.setTextColor(blackValue);\n dialogBuilder.setCustomTitle(dialogTitle);\n View dialogView = getLayoutInflater().inflate(R.layout.dialog_add_meal, null);\n\n this.startEditTexts(dialogView);\n this.startLocationSpinner(dialogView);\n this.startAddPhotoButton(dialogView);\n this.startMealDialogButtonListeners(dialogBuilder);\n\n dialogBuilder.setView(dialogView);\n AlertDialog permission_dialog = dialogBuilder.create();\n permission_dialog.show();\n }",
"@Override\r\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n Calendar cal = Calendar.getInstance();\r\n int year = cal.get(Calendar.YEAR);\r\n int month = cal.get(Calendar.MONTH);\r\n int day = cal.get(Calendar.DAY_OF_MONTH);\r\n Log.i(TAG,\"onCreate Date: \" + year + \"-\" + month + \"-\" + day);\r\n // Create a new instance of TimePickerDialog and return it\r\n DatePickerDialog dpd = new DatePickerDialog(getActivity(),this, year, month, day);\r\n dpd.getDatePicker().setMaxDate(System.currentTimeMillis() + 1000);\r\n return dpd;\r\n }",
"private void newDialog() {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setTitle(getString(R.string.addmark));\n\t\tfinal EditText input = new EditText(this);\n\t\tinput.setHint(getString(R.string.pleasemark));\n\t\tbuilder.setView(input);\n\t\tbuilder.setPositiveButton(getString(R.string.yes),\n\t\t\t\tnew OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tif (input.getText().toString().trim().length() > 0) {\n\t\t\t\t\t\t\taddTag(input.getText().toString());\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\tToast.makeText(ArchermindReaderActivity.this,\n\t\t\t\t\t\t\t\t\tgetString(R.string.successaddmark),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tToast.makeText(ArchermindReaderActivity.this,\n\t\t\t\t\t\t\t\t\tgetString(R.string.pleasemark),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\tnewDialog();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.setNegativeButton(getString(R.string.no),\n\t\t\t\tnew OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.show();\n\t}",
"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}",
"@Override\r\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n final Calendar c = Calendar.getInstance();\r\n int hour = c.get(Calendar.HOUR_OF_DAY);\r\n int minute = c.get(Calendar.MINUTE);\r\n\r\n // Create a new instance of TimePickerDialog and return it\r\n return new TimePickerDialog(getActivity(), this, hour, minute,\r\n DateFormat.is24HourFormat(getActivity()));\r\n }",
"private void initDialogs() {\n messageDialog = new MessageDialog(primaryStage, CLOSE_BUTTON_LABEL);\n yesNoCancelDialog = new YesNoCancelDialog(primaryStage);\n }",
"@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this, myDateListener, year, month, day);\n }\n return null;\n }",
"@Override\n protected Dialog onCreateDialog(int id) {\n if (id == 999) {\n return new DatePickerDialog(this, myDateListener, year, month, day);\n }\n return null;\n }",
"public MyDialog(){\n\t\t\n\t\tsuper();\n\t\t\n\t\tthis.getContentPane().setBackground(Color.GRAY);\n//\t\tthis.setLayout(new GridLayout(0,1));\n//\t\tthis.setLayout(new FlowLayout());\n//\t\tthis.setBackground(new Color(250, 240, 230));\n//\t\tcomp.setSize(icon.getIconWidth(),icon.getIconHeight());\n//\t\tcomp.setLocation(0, 0);\n//\t\tcomp.setOpaque(false);\n//\t\tthis.add(comp);\n\t}",
"@Override\n public void run() {\n new ExpenseDaoImpl().init();\n new PopupDescDaoImpl().init();\n new ScheduleDaoImpl().init();\n\n Main dialog = new Main(new javax.swing.JFrame(), true);\n dialog.addWindowListener(new java.awt.event.WindowAdapter() {\n @Override\n public void windowClosing(java.awt.event.WindowEvent e) { \n System.exit(0);\n }\n });\n dialog.setVisible(true);\n }",
"@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n //setting the message and the title of dialog\n builder.setTitle(R.string.dialog_title)\n .setMessage(R.string.dialog_message)\n .setPositiveButton(android.R.string.yes, (dialog, which) -> {\n getActivity().finish();\n })\n .setOnCancelListener(dialog -> getActivity().finish());\n\n //creating and returning the dialog\n return builder.create();\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n builder.setMessage(R.string.dialog_internet_eng_text).setPositiveButton\n (R.string.ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n System.exit(1);\n /*\n Intent homeIntent= new Intent(getContext(), MainCardActivity.class);\n homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(homeIntent);\n */\n }\n });\n return builder.create();\n }",
"@Override\n protected Dialog onCreateDialog(int id) {\n switch (id) {\n // create a new TimePickerDialog with values you want to show\n case TIME_DIALOG_ID:\n return new TimePickerDialog(this, mTimeSetListener, mHour, mMinute, false);\n }\n return null;\n }",
"@Override\n public void run() {\n pDialog.dismiss();\n RoomCreationActivity.this.finish();\n }",
"protected void createDialogSize ()\n {\n }",
"public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = getActivity().getLayoutInflater();\n\n View layout = inflater.inflate(R.layout.add_item_layout, null);\n\n builder.setView(layout)\n .setPositiveButton(\"Add\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n int price = (int) (Float.parseFloat(((EditText)layout.findViewById(R.id.price)).getText().toString())*100);\n Group g = Group.getCurrentGroup();\n for(int i = 0; i < Integer.parseInt(((EditText) layout.findViewById(R.id.quantity)).getText().toString()); i++) {\n g.addItem(\n new Item(\n ((EditText)layout.findViewById(R.id.item_name)).getText().toString(),\n price\n )\n );\n }\n getDialog().dismiss();\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n getDialog().dismiss();\n }\n })\n .setTitle(\"Add Items\");\n // Create the AlertDialog object and return it\n return builder.create();\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n Applicationmanagerclass = new Applicationmanager();\n dialog = new Dialog(HomeActivity.this);\n OnCreateFunction();\n\n }",
"@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n DatePickerDialog dialog = new DatePickerDialog(getActivity(), this, mmd_year, mmd_month, mmd_day);\n return dialog;\n }"
] | [
"0.74879545",
"0.73306644",
"0.71519846",
"0.7139153",
"0.6970602",
"0.69208723",
"0.69012177",
"0.6835099",
"0.66980505",
"0.6673283",
"0.6641643",
"0.6640246",
"0.66111636",
"0.6601063",
"0.6588277",
"0.6520888",
"0.6481222",
"0.6456213",
"0.6454755",
"0.6422355",
"0.64221877",
"0.63961565",
"0.6384324",
"0.6382421",
"0.6373409",
"0.63514477",
"0.6336536",
"0.63160753",
"0.630101",
"0.6287301",
"0.6274708",
"0.6268144",
"0.6267451",
"0.6266513",
"0.6260884",
"0.6254036",
"0.62402445",
"0.6228929",
"0.62277824",
"0.62231624",
"0.62203014",
"0.62176883",
"0.62096536",
"0.6202994",
"0.6188975",
"0.6186493",
"0.6178688",
"0.6173854",
"0.61424464",
"0.6138101",
"0.6136072",
"0.6128512",
"0.6126211",
"0.612207",
"0.612194",
"0.6110941",
"0.61097646",
"0.6109572",
"0.6103674",
"0.60911226",
"0.6086705",
"0.6076005",
"0.6072687",
"0.6071076",
"0.60695016",
"0.6058183",
"0.6056897",
"0.60521156",
"0.6050153",
"0.6048865",
"0.60406166",
"0.60406166",
"0.60406166",
"0.60406166",
"0.60406166",
"0.60406166",
"0.60406166",
"0.6040001",
"0.60398954",
"0.60386497",
"0.6035264",
"0.6030592",
"0.6022612",
"0.60205567",
"0.6016492",
"0.6012818",
"0.60123664",
"0.6010356",
"0.60094494",
"0.6007757",
"0.6007757",
"0.6007734",
"0.6006438",
"0.6005788",
"0.60010177",
"0.5999235",
"0.59917426",
"0.5983918",
"0.5979536",
"0.59780246",
"0.5977972"
] | 0.0 | -1 |
This is pretty perfunctory, just to show that the EJB works locally | @Test
public void testOnce() {
String actual = new SpecialsBean().getNextCouponCode();
assertNotNull(actual);
assertTrue(actual.startsWith("Special"));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void testEJBBinding()\n throws Exception\n {\n getLog().debug(\"HAJndiTestCase.testEJBBinding()\");\n validateUrls();\n \n // CalledHome EJB is contained in cross-server.jar and bound during deployment\n \n // lookup binding locally on Node0 - should succeed\n Context naming = getContext(NODE0_JNDI);\n CalledHome home = (CalledHome)lookup(naming, CALLED_HOME_KEY);\n if (home != null)\n { // ensure that EJB is operational \n CalledRemote remote = home.create();\n remote.remove();\n }\n closeContext(naming);\n assertNotNull(\"lookup EJB binding on same server using local JNDI\", home);\n \n // lookup binding locally on Node1 - should succeed\n naming = getContext(NODE1_JNDI);\n home = (CalledHome)lookup(naming, CALLED_HOME_KEY);\n if (home != null)\n { // ensure that EJB is operational \n CalledRemote remote = home.create();\n remote.remove();\n }\n closeContext(naming);\n assertNotNull(\"lookup EJB binding on different server in cluster using local JNDI\", home);\n \n // lookup binding using HA-JNDI on Node0 - should succeed\n naming = getContext(NODE0_HAJNDI);\n home = (CalledHome)lookup(naming, CALLED_HOME_KEY);\n if (home != null)\n { // ensure that EJB is operational \n CalledRemote remote = home.create();\n remote.remove();\n }\n closeContext(naming);\n assertNotNull(\"lookup EJB binding on same server using HA-JNDI\", home);\n \n // lookup binding using HA-JNDI on Node1 - should succeed\n naming = getContext(NODE1_HAJNDI);\n home = (CalledHome)lookup(naming, CALLED_HOME_KEY);\n if (home != null)\n { // ensure that EJB is operational \n CalledRemote remote = home.create();\n remote.remove();\n }\n closeContext(naming);\n assertNotNull(\"lookup EJB binding on different server in cluster using HA-JNDI\", home);\n\n }",
"public void ejbLoad() {\n }",
"public void ejbLoad() {\n }",
"@Override\n @Test(groups = {\"EJB access\"})\n public void testEJB00() throws Exception {\n super.testEJB00();\n }",
"public static void main(String[] args) throws Exception {\n\t\tProperties props = new Properties();\n\t\tprops.put(Context.INITIAL_CONTEXT_FACTORY, \"org.apache.openejb.client.RemoteInitialContextFactory\");\n\t\tprops.put(Context.PROVIDER_URL, \"ejbd://127.0.0.1:4201\");\n\t\tContext ctx = new InitialContext(props);\n\n\t\t// Look up the stateless bean example\n\t\tExampleStateless stateless = (ExampleStateless) ctx.lookup(\"ExampleStatelessBeanRemote\");\n\t\t// Perform operation on the stateless bean\n\t\tString result = stateless.sayHello();\n\t\tSystem.out.println(result);\n\n\t\t// Look up the stateful session bean example\n\t\tExampleStateful stateful = (ExampleStateful) ctx.lookup(\"ExampleStatefulBeanRemote\");\n\t\t// Notice how each run of the client will have the same output\n\t\t// Because state of the bean is kept separately for each client run\n\t\tSystem.out.println(stateful.inc());\n\t\tSystem.out.println(stateful.inc());\n\t\tSystem.out.println(stateful.reset());\n\t\tSystem.out.println(stateful.inc());\n\n\t\t// Look up the stateless bean that operates with entity beans\n\t\tExampleEntities movies = (ExampleEntities) ctx.lookup(\"ExampleEntityBeansRemote\");\n\n\t\t// Add some data\n\t\tint d1 = movies.addDirector(\"Steven Spielberg\");\n\t\tmovies.addMovie(\"Jurassic Park\", d1);\n\t\tmovies.addMovie(\"E.T. the Extra-Terrestrial\", d1);\n\t\tint d2 = movies.addDirector(\"George Lucas\");\n\t\tmovies.addMovie(\"Star Wars\", d2);\n\t\tmovies.addMovie(\"Return of the Jedi\", d2);\n\n\t\t// List the data\n\t\t// Notice how the list grows with multiple client runs because directors / movies\n\t\t// have an extra integer as a primary key, and not the names\n\t\t// Also notice that stopping and restarting the EJB server does not forget\n\t\t// the data thanks to the persistence\n\t\tList<String> list = movies.getDirectors();\n\t\tfor (String d: list) {\n\t\t\tSystem.out.println(d);\n\t\t}\n\t\tlist = movies.getDirectorsWithMovies();\n\t\tfor (String d: list) {\n\t\t\tSystem.out.println(d);\n\t\t}\n\t}",
"public static void main(String[] args) throws NamingException {\n Logger.getLogger(\"org.xnio\").setLevel(Level.WARNING);\n Logger.getLogger(\"org.jboss.remoting\").setLevel(Level.WARNING);\n Logger.getLogger(\"org.jboss.ejb.client\").setLevel(Level.WARNING);\n\n // Create the JNDI InitialContext, configuring it for use with JBoss EJB\n Hashtable<String, String> jndiProperties = new Hashtable<>();\n jndiProperties.put(Context.INITIAL_CONTEXT_FACTORY, \"org.wildfly.naming.client.WildFlyInitialContextFactory\");\n final Context context = new InitialContext(jndiProperties);\n\n /*\n * The app name is the application name of the deployed EJBs. This is typically the ear name without the .ear suffix.\n * However, the application name could be overridden in the application.xml of the EJB deployment on the server. Since\n * we haven't deployed the application as a .ear, the app name for us will be an empty string\n */\n final String appName = \"\";\n\n /*\n * This is the module name of the deployed EJBs on the server. This is typically the jar name of the EJB deployment,\n * without the .jar suffix, but can be overridden via the ejb-jar.xml. In this example, we have deployed the EJBs in a\n * jboss-shopping-cart-server.jar, so the module name is jboss-shopping-cart-server\n */\n final String moduleName = \"shopping-cart-server\";\n\n /*\n * JBoss EAP allows each deployment to have an (optional) distinct name. We haven't specified a distinct name for our EJB\n * deployment, so this is an empty string\n */\n final String distinctName = \"\";\n\n /*\n * The EJB name which by default is the simple class name of the bean implementation class\n */\n final String beanName = ShoppingCartBean.class.getSimpleName();\n\n /* The remote view fully qualified class name */\n final String viewClassName = ShoppingCart.class.getName();\n\n /* Lookup the remote interface of the shopping cart */\n String lookupName = \"ejb:\" + appName + \"/\" + moduleName + \"/\" + distinctName + \"/\" + beanName + \"!\" + viewClassName\n + \"?stateful\";\n final ShoppingCart cart = (ShoppingCart) context.lookup(lookupName);\n\n System.out.println(\"\\n&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&\");\n System.out.println(\"Obtained the remote interface to the shopping cart\");\n\n /* invoke on the remote interface */\n System.out.println(\"Buying a \\\"\" + ACCESSORIES_2 + \"\\\"\");\n cart.buy(ACCESSORIES_2, 1);\n System.out.println(\"Buying another \\\"\" + ACCESSORIES_2 + \"\\\"\");\n cart.buy(ACCESSORIES_2, 1);\n\n System.out.println(\"Buying a \\\"\" + ACCESSORIES_1 + \"\\\"\");\n cart.buy(ACCESSORIES_1, 1);\n\n System.out.println(\"\\nPrint cart:\");\n Map<String, Integer> cartContents = cart.getCartContents();\n for (String product : cartContents.keySet()) {\n System.out.println(cartContents.get(product) + \" \" + product);\n }\n\n System.out.println(\"\\nCheckout\");\n cart.checkout();\n\n /* Try to access the cart after checkout */\n try {\n cart.getCartContents();\n System.err.println(\"ERROR: The cart should not be available after Checkout!\");\n } catch (NoSuchEJBException e) {\n System.out.println(\"Cart was correctly removed, as expected, after Checkout and is no longer available!\");\n }\n System.out.println(\"&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&\\n\");\n }",
"static void deployMockEJB() throws Exception {\r\n if (!mockEJBDeployed) {\r\n // deploy ejb's to MockContainer.\r\n MockContextFactory.setAsInitial();\r\n MockContainer mockContainer = new MockContainer(new InitialContext());\r\n // Instead of LoginRemote mock ejb containere returns MockLoginBean now.\r\n SessionBeanDescriptor beanDescriptor = new SessionBeanDescriptor(LoginRemoteHome.EJB_REF_NAME,\r\n LoginRemoteHome.class, LoginRemote.class, MockLoginBean.class);\r\n mockContainer.deploy(beanDescriptor);\r\n // change deployment status. To avoid unnecessary deployment.\r\n mockEJBDeployed = true;\r\n }\r\n }",
"com.hps.july.persistence.Worker getTechStuff() throws java.rmi.RemoteException, javax.ejb.FinderException;",
"public interface LocalHelloWorldHome extends EJBLocalHome {\n com.sunflower.ejb.LocalHelloWorld create() throws CreateException;\n}",
"public interface InvoiceEntityHome\n extends javax.ejb.EJBHome\n{\n public static final String COMP_NAME=\"java:comp/env/ejb/InvoiceEntity\";\n public static final String JNDI_NAME=\"ejb/InvoiceEntity\";\n\n public com.csr.billing.ejb.InvoiceEntity create(com.csr.billing.ejb.InvoiceDTO invoice)\n throws javax.ejb.CreateException,java.rmi.RemoteException;\n\n public java.util.Collection findAll()\n throws javax.ejb.FinderException,java.rmi.RemoteException;\n\n public com.csr.billing.ejb.InvoiceEntity findByPrimaryKey(java.lang.Integer pk)\n throws javax.ejb.FinderException,java.rmi.RemoteException;\n\n}",
"public interface DatosPublicacionSTLocalHome extends javax.ejb.EJBLocalHome {\n\t\n\tpublic static final String JNDI_NAME = \"ejb/co/com/telefonica/atiempo/soltec/datos_publicacion/ejb/sb/DatosPublicacionSTLocalHome\";\n\t\n\t/**\n\t * Creates a default instance of Session Bean: DatosPublicacionST\n\t */\n\tpublic co\n\t\t.com\n\t\t.telefonica\n\t\t.atiempo\n\t\t.soltec\n\t\t.datos_publicacion\n\t\t.ejb\n\t\t.sb\n\t\t.DatosPublicacionSTLocal create()\n\t\tthrows javax.ejb.CreateException;\n}",
"public interface UserAccountHandlerRemoteHome extends EJBHome {\r\n\r\n String COMP_NAME = \"java:comp/env/ejb/UserAccountHandler\";\r\n\r\n String JNDI_NAME = \"ejb/UserAccountHandler\";\r\n\r\n UserAccountHandlerRemote create() throws CreateException, RemoteException;\r\n\r\n}",
"public interface ModelManagerRemoteHome extends javax.ejb.EJBHome {\n \n \n \n /**\n *\n */\n org.tgdb.model.modelmanager.ModelManagerRemote create() throws javax.ejb.CreateException, java.rmi.RemoteException;\n \n \n}",
"public interface Bitacora_peticionLocalHome extends javax.ejb.EJBLocalHome {\n\t/**\n\t * Creates an instance from a key for Entity Bean: Bitacora_peticion\n\t */\n\t static final String JNDI_NAME=\"ejb/co/com/telefonica/atiempo/ejb/eb/Bitacora_peticionLocalHome\";\n\tpublic co.com.telefonica.atiempo.ejb.eb.Bitacora_peticionLocal create(\n\t\tjava.lang.Long bipe_id)\n\t\tthrows javax.ejb.CreateException;\n\t/**\n\t * Finds an instance using a key for Entity Bean: Bitacora_peticion\n\t */\n\tpublic co\n\t\t.com\n\t\t.telefonica\n\t\t.atiempo\n\t\t.ejb\n\t\t.eb\n\t\t.Bitacora_peticionLocal findByPrimaryKey(\n\t\tco.com.telefonica.atiempo.ejb.eb.Bitacora_peticionKey primaryKey)\n\t\tthrows javax.ejb.FinderException;\n\t/**\n\t * Creates an instance from a key for Entity Bean: Bitacora_peticion\n\t */\n\tpublic co.com.telefonica.atiempo.ejb.eb.Bitacora_peticionLocal create(\n\t\tjava.lang.Long bipe_id,\n\t\tjava.lang.Long usua_id,\n\t\tjava.sql.Timestamp bipe_fecha_inicio,\n\t\tco.com.telefonica.atiempo.ejb.eb.ActividadLocal argFk_acti_2_bipe,\n\t\tco.com.telefonica.atiempo.ejb.eb.PeticionLocal argFk_peticion)\n\t\tthrows javax.ejb.CreateException;\n\n\t/**\n\t * @param idActividad\n\t * @param object\n\t * @param idPeticion\n\t * @param idUsuario\n\t * @param date\n\t * @param object2\n\t * @param object3\n\t * @param esReversa\n\t * @return\n\t */\n\tpublic co.com.telefonica.atiempo.ejb.eb.Bitacora_peticionLocal create(\n\t\tLong idActividad,\n\t\tLong idCausa,\n\t\tLong peticion,\n\t\tLong usuaId,\n\t\tDate bipeFechaInicio,\n\t\tDate bipeFechaFin,\n\t\tString bipeObservacion,\n\t\tShort esReversa)\n\t\tthrows CreateException;\n\n\tpublic java.util.Collection findbyNumeroPeticion(java.lang.Long idPeticion) throws javax.ejb.FinderException;\n//\tpublic java.util.Collection findFechaFin(java.lang.Long idPeticion) throws javax.ejb.FinderException;\n//\n\tpublic java.util.Collection findByPetiOrden(java.lang.Long idPeticion) throws javax.ejb.FinderException;\n\tpublic Bitacora_peticionLocal findByPeticionActividad(java.lang.Long idPeticion, java.lang.Long idActividad) throws javax.ejb.FinderException;\n\tpublic Bitacora_peticionLocal findByPeticionActividadUsuario(java.lang.Long idPeticion, java.lang.Long idActividad, java.lang.Long idUsuario)\n\t\tthrows javax.ejb.FinderException;\n//\t//public Bitacora_peticionLocal findNumPeticionActividad(java.lang.Long numPeticion) throws javax.ejb.FinderException;\n//\tpublic java.util.Collection findByPeticionFechaTerminoNula(java.lang.Long nroPeticion) throws javax.ejb.FinderException;\n//\tpublic Bitacora_peticionLocal findObsPeticionActividad(java.lang.Long numeroPeticion, java.lang.Long numeroActividad)\n//\t\tthrows javax.ejb.FinderException;\n//\tpublic Bitacora_peticionLocal findByCodigoObservacionPeticion(java.lang.Long peticion) throws javax.ejb.FinderException;\n//\tpublic Bitacora_peticionLocal findByIdPeticionAndMdfTerminada(java.lang.Long idPeticion) throws javax.ejb.FinderException;\n//\t\n\tpublic java.util.Collection findbyPeticionRol(java.lang.Long idPeticion, java.lang.Long idRol) throws javax.ejb.FinderException;\n//\tpublic java.util.Collection findByPeticionActividadNoNula(java.lang.Long idPeticion, java.lang.Long idActividad) throws javax.ejb.FinderException;\n\tpublic java.util.Collection findByPeticionActividadCerrada(java.lang.Long petiNumero, java.lang.Long actId) throws javax.ejb.FinderException;\n\tpublic java.util.Collection findPreviuosActivity(java.lang.Long petiNumero)\n\t\tthrows javax.ejb.FinderException;\n\tpublic java.util.Collection findbypeticionfechafin(java.lang.Long idPeticion)\n\t\tthrows javax.ejb.FinderException;\n\tpublic java.util.Collection findByOpenAct(java.lang.Long idActividad)\n\t\tthrows javax.ejb.FinderException;\n\tpublic co.com.telefonica.atiempo.ejb.eb.Bitacora_peticionLocal findbyMaxActivity(java.lang.Long idPeticion, java.lang.Long idActividad) throws javax.ejb.FinderException;\n}",
"public interface ConectorLocalHome extends javax.ejb.EJBLocalHome {\n\t/**\n\t * Creates an instance from a key for Entity Bean: Conector\n\t */\n\t static final String JNDI_NAME=\"ejb/co/com/telefonica/atiempo/ejb/eb/ConectorLocalHome\";\n\t \n\tpublic co.com.telefonica.atiempo.ejb.eb.ConectorLocal create(\n\t\tjava.lang.Integer cod_conector)\n\t\tthrows javax.ejb.CreateException;\n\t/**\n\t * Finds an instance using a key for Entity Bean: Conector\n\t */\n\tpublic co.com.telefonica.atiempo.ejb.eb.ConectorLocal findByPrimaryKey(\n\t\tco.com.telefonica.atiempo.ejb.eb.ConectorKey primaryKey)\n\t\tthrows javax.ejb.FinderException;\n}",
"public void ejbCreate() {\n\t\tSystem.out.println(\"ejbCreate\");\n\t}",
"public interface Pie2NriHome extends javax.ejb.EJBHome {\ncom.hps.july.arenda.billing.Pie2Nri create() throws javax.ejb.CreateException, java.rmi.RemoteException;\n}",
"@Remote\npublic interface PassengerStatefulEJBRemote {\n\n Passenger getPassenger();\n void createPassengers(String ssn, String firstName, String lastName, Integer frequentFlyerMiles, byte[] picture, Date dateOfBirth, PassengerType passengerType, Date lastFlight);\n void pickPassenger(long id);\n void setAddress(Address address);\n void addCreditCard(CreditCard creditCard);\n void addTicket(double price, Status status);\n void checkOut();\n}",
"private JDBCMiddler() {\n System.out.println(\"new EJB[\" + this.hashCode() + \"]\");\n }",
"public void ejbCreate() {\n\n }",
"zzana mo29855eb() throws RemoteException;",
"public boolean isStateless ()\n {\n return false;\n }",
"public interface FMISComLocalHome extends javax.ejb.EJBLocalHome {\n\t/**\n\t * Creates a default instance of Session Bean: FMISBusiness\n\t */\n\tpublic FMISComLocal create() throws javax.ejb.CreateException;\n}",
"public void ejbActivate() {\n testAllowedOperations(\"ejbActivate\");\n }",
"public interface CSActsWorkerLocal extends javax.ejb.EJBLocalObject {\n\t/**\n\t * Returns the cdFipsWrkr.\n\t * @return String\n\t */\n\tpublic String getCdFipsWrkr();\n\t/**\n\t * Returns the cdWrkrType.\n\t * @return String\n\t */\n\tpublic String getCdWrkrType();\n\t/**\n\t * Returns the csActsWorkerInquiry.\n\t * @return CSActsWorkerInquiry\n\t */\n\tpublic CSActsWorkerInquiry getCsActsWorkerInquiry();\n\t/**\n\t * getEntityContext\n\t */\n\tpublic javax.ejb.EntityContext getEntityContext();\n\t/**\n\t * Returns the idEmail.\n\t * @return String\n\t */\n\tpublic String getIdEmail();\n\t/**\n\t * Returns the idWrkr.\n\t * @return String\n\t */\n\tpublic String getIdWrkr();\n\t/**\n\t * Returns the idWrkrLogon.\n\t * @return String\n\t */\n\tpublic String getIdWrkrLogon();\n\t/**\n\t * Returns the myEntityCtx.\n\t * @return javax.ejb.EntityContext\n\t */\n\tpublic javax.ejb.EntityContext getMyEntityCtx();\n\t/**\n\t * Returns the nbFaxWorker.\n\t * @return String\n\t */\n\tpublic String getNbFaxWorker();\n\t/**\n\t * Returns the nbTelWorker.\n\t * @return String\n\t */\n\tpublic String getNbTelWorker();\n\t/**\n\t * Returns the nmWrkr.\n\t * @return String\n\t */\n\tpublic String getNmWrkr();\n\t/**\n\t * Returns the tmLunchEnd.\n\t * @return String\n\t */\n\tpublic String getTmLunchEnd();\n\t/**\n\t * Returns the tmLunchStart.\n\t * @return String\n\t */\n\tpublic String getTmLunchStart();\n\t/**\n\t * Returns the tmWorkEnd.\n\t * @return String\n\t */\n\tpublic String getTmWorkEnd();\n\t/**\n\t * Returns the tmWorkStart.\n\t * @return String\n\t */\n\tpublic String getTmWorkStart();\n\t/**\n\t * Sets the cdFipsWrkr.\n\t * @param cdFipsWrkr The cdFipsWrkr to set\n\t */\n\tpublic void setCdFipsWrkr(String cdFipsWrkr);\n\t/**\n\t * Sets the cdWrkrType.\n\t * @param cdWrkrType The cdWrkrType to set\n\t */\n\tpublic void setCdWrkrType(String cdWrkrType);\n\t/**\n\t * Sets the csActsWorkerInquiry.\n\t * @param csActsWorkerInquiry The csActsWorkerInquiry to set\n\t */\n\tpublic void setCsActsWorkerInquiry(CSActsWorkerInquiry csActsWorkerInquiry);\n\t/**\n\t * setEntityContext\n\t */\n\tpublic void setEntityContext(javax.ejb.EntityContext ctx);\n\t/**\n\t * Sets the idEmail.\n\t * @param idEmail The idEmail to set\n\t */\n\tpublic void setIdEmail(String idEmail);\n\t/**\n\t * Sets the idWrkr.\n\t * @param idWrkr The idWrkr to set\n\t */\n\tpublic void setIdWrkr(String idWrkr);\n\t/**\n\t * Sets the idWrkrLogon.\n\t * @param idWrkrLogon The idWrkrLogon to set\n\t */\n\tpublic void setIdWrkrLogon(String idWrkrLogon);\n\t/**\n\t * Sets the myEntityCtx.\n\t * @param myEntityCtx The myEntityCtx to set\n\t */\n\tpublic void setMyEntityCtx(javax.ejb.EntityContext myEntityCtx);\n\t/**\n\t * Sets the nbFaxWorker.\n\t * @param nbFaxWorker The nbFaxWorker to set\n\t */\n\tpublic void setNbFaxWorker(String nbFaxWorker);\n\t/**\n\t * Sets the nbTelWorker.\n\t * @param nbTelWorker The nbTelWorker to set\n\t */\n\tpublic void setNbTelWorker(String nbTelWorker);\n\t/**\n\t * Sets the nmWrkr.\n\t * @param nmWrkr The nmWrkr to set\n\t */\n\tpublic void setNmWrkr(String nmWrkr);\n\t/**\n\t * Sets the tmLunchEnd.\n\t * @param tmLunchEnd The tmLunchEnd to set\n\t */\n\tpublic void setTmLunchEnd(String tmLunchEnd);\n\t/**\n\t * Sets the tmLunchStart.\n\t * @param tmLunchStart The tmLunchStart to set\n\t */\n\tpublic void setTmLunchStart(String tmLunchStart);\n\t/**\n\t * Sets the tmWorkEnd.\n\t * @param tmWorkEnd The tmWorkEnd to set\n\t */\n\tpublic void setTmWorkEnd(String tmWorkEnd);\n\t/**\n\t * Sets the tmWorkStart.\n\t * @param tmWorkStart The tmWorkStart to set\n\t */\n\tpublic void setTmWorkStart(String tmWorkStart);\n\t/**\n\t * Returns the actsWorkerEntityBean.\n\t * @return ActsWorkerEntityBean\n\t */\n\tpublic ActsWorkerEntityBean getActsWorkerEntityBean();\n\t/**\n\t * Sets the actsWorkerEntityBean.\n\t * @param actsWorkerEntityBean The actsWorkerEntityBean to set\n\t */\n\tpublic void setActsWorkerEntityBean(ActsWorkerEntityBean actsWorkerEntityBean);\n}",
"@Local\r\npublic interface AdministrativeEJBLocal extends AbstractSolaTransactionEJBLocal {\r\n\r\n List<ChangeStatusType> getChangeStatusTypes(String languageCode);\r\n\r\n List<BaUnitType> getBaUnitTypes(String languageCode);\r\n\r\n List<MortgageType> getMortgageTypes(String languageCode);\r\n\r\n List<RrrGroupType> getRRRGroupTypes(String languageCode);\r\n\r\n List<RrrType> getRRRTypes(String languageCode);\r\n\r\n BaUnit getBaUnitById(String id);\r\n\r\n Rrr getRrr(String id);\r\n\r\n BaUnit getBaUnitByCode(String nameFirstPart, String nameLastPart);\r\n\r\n BaUnit saveBaUnit(String serviceId, BaUnit baUnit);\r\n\r\n List<BaUnit> getBaUnitsByTransactionId(String transactionId);\r\n\r\n List<BaUnitRelType> getBaUnitRelTypes(String languageCode);\r\n\r\n BaUnit terminateBaUnit(String baUnitId, String serviceId);\r\n\r\n BaUnit cancelBaUnitTermination(String baUnitId);\r\n\r\n List<RrrLoc> getRrrLocsById(String locId);\r\n\r\n Moth saveMoth(Moth moth);\r\n\r\n Moth getMoth(String id);\r\n\r\n List<Moth> getMoths(String vdcCode, String mothLuj);\r\n\r\n Moth getMoth(String vdcCode, String mothLuj, String mothLujNumber);\r\n\r\n Loc saveLoc(Loc loc);\r\n\r\n Loc getLoc(String id);\r\n\r\n LocWithMoth getLocWithMoth(String id);\r\n\r\n BaUnit saveBaUnit(BaUnit baUnit);\r\n\r\n LocWithMoth getLocByPageNoAndMoth(LocSearchByMothParams searchParams);\r\n\r\n List<LocWithMoth> getLocListByPageNoAndMoth(LocSearchByMothParams searchParams);\r\n\r\n List<Loc> getLocList(String mothId);\r\n\r\n List<RestrictionReason> getRestrictionReasons(String languageCode);\r\n\r\n List<RestrictionReleaseReason> getRestrictionReleaseReasons(String languageCode);\r\n\r\n List<RestrictionOffice> getRestrictionOffices(String languageCode);\r\n\r\n List<OwnerType> getOwnerTypes(String languageCode);\r\n\r\n List<OwnershipType> getOwnershipTypes(String languageCode);\r\n\r\n List<TenancyType> getTenancyTypes(String languageCode);\r\n\r\n void deletePendingBaUnit(String baUnitId);\r\n\r\n List<Moth> searchMoths(MothSearchParams params);\r\n\r\n List<Moth> searchMothsByParts(String searchString);\r\n}",
"@Test\n public void testGetServerLocal() throws ApplicationException {\n CommunicationFactory instance = CommunicationFactory.getFactory();\n String expResult = bundle.getString(IPropertiesConstants.COMM_LOCAL_CONNECTOR);\n String result = instance.getServer(\"localhost\").getClass().getName();\n assertEquals(expResult, result);\n }",
"public static void main(String[] args) {\n\t\t\ntry {\n\t\t\t\n\t\t\t// Create Properties for JNDI InitialContext.\n\t\t\tProperties prop = new Properties();\n\t\t\tprop.put(Context.INITIAL_CONTEXT_FACTORY, org.jboss.naming.remote.client.InitialContextFactory.class.getName()); \n\t\t\tprop.put(Context.URL_PKG_PREFIXES, \"org.jboss.ejb.client.naming\");\n\t\t\tprop.put(Context.PROVIDER_URL, \"http-remoting://localhost:8080\");\n\t\t\tprop.put(\"jboss.naming.client.ejb.context\", true);\n\t\t\t\n\n\t\t\t// Create the JNDI InitialContext.\n\t\t\tContext context = new InitialContext(prop);\n\t\t\t\n\t\t\t// Formulate the full JNDI name for the Diary session bean.\n\t\t\tString appName = \"MarketDataAnalyser\";\n\t\t\tString moduleName = \"MarketDataAnalyserEJB\";\n\t\t\tString beanName = \"MarketDataAnalyserBean\";\n\t\t\tString packageName = \"market.dataanalyser.ejb\";\n\t\t\tString className = \"MarketDataAnalyserBeanRemote\";\n\t\t\t\n\t\t\t// Lookup the bean using the full JNDI name.\n\t\t\tString fullJndiName = String.format(\"%s/%s/%s!%s.%s\", appName, moduleName, beanName, packageName, className);\n\t\t\tSystem.out.println(fullJndiName);\n\t\t\tMarketDataAnalyserBeanRemote bean = (MarketDataAnalyserBeanRemote) context.lookup(fullJndiName);\n\n\t\t\tList<String> stockList=bean.listAllStocks();\n\t\t\t\n//\t\t\tfor(String elem: stockList){\n//\t\t\t\tSystem.out.println(elem);\n//\t\t\t}\n\t\t\tSystem.out.println(\"no. of elements: \"+stockList.size());\n\t\t\tNasdaq data=(Nasdaq)bean.fetchStockDetails(\"AACC\");\n\t\t\tSystem.out.println(data.toString());\n\t\t\t\n\t\t\tbean.fetchStockVariation(\"AACC\", 20110103, 20110113);\n\t\t\t//bean.IsArrowUp(\"AACC\");\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t\tSystem.out.println(\"Exception: \" + ex.getMessage());\n\t\t}\n\t}",
"@Override\n @Test(groups = {\"java:comp/env access\"})\n public void testJNDI00() throws Exception {\n super.testJNDI00();\n }",
"public interface AInstalarTOALocalHome extends javax.ejb.EJBLocalHome {\n\t\n\tpublic static final String JNDI_NAME = \"ejb/co/com/telefonica/atiempo/vpistbba/actividades/df/instalacion/ejb/sb/AInstalarTOALocalHome\";\t\n\n\t/**\n\t * Creates a default instance of Session Bean: AInstalarTOA\n\t */\n\tpublic co.com.telefonica.atiempo.vpistbba.actividades.df.instalacion.ejb.sb.AInstalarTOALocal create()\n\t\tthrows javax.ejb.CreateException;\n}",
"public interface SimpleLogRemote extends javax.ejb.EJBObject, com.arexis.mugen.simplelog.SimpleLogRemoteBusiness {\n \n \n}",
"@javax.ejb.Remote\npublic interface EjbApi\n{\n public String compute( String d1, String d2 );\n}",
"zzang mo29839S() throws RemoteException;",
"public void test01_getEJBObject(){\n\n try{\n EJBObject object = ejbHandle.getEJBObject();\n assertNotNull( \"The EJBObject is null\", object );\n // Wait until isIdentical is working.\n //assertTrue(\"EJBObjects are not identical\", object.isIdentical(ejbObject));\n } catch (Exception e){\n fail(\"Received Exception \"+e.getClass()+ \" : \"+e.getMessage());\n }\n }",
"public boolean isStateless() {\n return false;\n }",
"public interface AGenerarReciboLocalHome extends javax.ejb.EJBLocalHome {\n\t\n\tpublic static final String JNDI_NAME = \"ejb/co/com/telefonica/atiempo/vpistbba/actividades/df/configuracion/ejb/sb/AGenerarReciboLocalHome\";\n\t\n\t/**\n\t * Creates a default instance of Session Bean: AGenerarRecibo\n\t */\n\tpublic co.com.telefonica.atiempo.vpistbba.actividades.df.configuracion.ejb.sb.AGenerarReciboLocal create()\n\t\tthrows javax.ejb.CreateException;\n}",
"public interface ResearchApplicationRemoteHome extends javax.ejb.EJBHome {\n \n \n \n /**\n *\n */\n org.tgdb.model.researchapplication.ResearchApplicationRemote findByPrimaryKey(Integer key) throws javax.ejb.FinderException, java.rmi.RemoteException;\n\n java.util.Collection findByProject(int pid) throws javax.ejb.FinderException, java.rmi.RemoteException;\n\n org.tgdb.model.researchapplication.ResearchApplicationRemote create(java.lang.String name, java.lang.String comm, int pid, int raid, TgDbCaller caller) throws javax.ejb.CreateException, java.rmi.RemoteException;\n\n Collection findByName(String name) throws javax.ejb.FinderException, java.rmi.RemoteException;\n\n Collection findByKeyword(Keyword keyword, TgDbCaller caller) throws javax.ejb.FinderException, java.rmi.RemoteException;\n \n}",
"protected void setupLocal() {}",
"public interface EmpSessionHome extends EJBHome {\n swforge.EmpSession create() throws RemoteException, CreateException;\n}",
"public void ejbPassivate() {\n testAllowedOperations(\"ejbPassivate\");\n }",
"public interface TestingEntityLocalHome extends javax.ejb.EJBLocalHome {\n \n \n \n /**\n *\n */\n test.TestingEntityLocal findByPrimaryKey(java.lang.String key) throws javax.ejb.FinderException;\n \n \n \n /**\n *\n */\n test.TestingEntityLocal create(java.lang.String key) throws javax.ejb.CreateException;\n\n TestingEntityLocal createTest1() throws CreateException;\n\n TestingEntityLocal createTest2(String a, int b) throws CreateException, IOException;\n\n String homeTestMethod1();\n\n String homeTestMethod2(String a, int b) throws Exception;\n\n Collection findByTest1() throws FinderException;\n \n \n}",
"zzafe mo29840Y() throws RemoteException;",
"public interface TestSessionBeanLocal\n extends javax.ejb.EJBLocalObject\n{\n\n}",
"public static void main(String[] args) throws NamingException {\n\n\n Properties p = new Properties();\n p.put(\"remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED\", \"false\");\n p.put(\"remote.connections\", \"one\");\n p.put(\"remote.connection.one.port\", \"8080\");\n p.put(\"remote.connection.one.host\", \"localhost\");\n p.put(\"remote.connection.one.username\", \"user\");\n p.put(\"remote.connection.one.password\", \"password\");\n\n p.put(\"remote.clusters\", \"ejb\");\n p.put(\"remote.cluster.ejb.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS\", \"false\"); \n p.put(\"remote.cluster.ejb.username\", \"user\");\n p.put(\"remote.cluster.ejb.password\", \"password\");\n \n EJBClientConfiguration cc = new PropertiesBasedEJBClientConfiguration(p);\n ContextSelector<EJBClientContext> selector = new ConfigBasedEJBClientContextSelector(cc);\n EJBClientContext.setSelector(selector);\n\n Properties props = new Properties();\n props.put(Context.URL_PKG_PREFIXES, \"org.jboss.ejb.client.naming\");\n InitialContext context = new InitialContext(props);\n\n final String rcal = \"ejb:/ejbtestcase/TestClusterBean!org.ing.ejb.ejbtestcase.TestClusterInf\";\n final TestClusterInf remote = (TestClusterInf) context.lookup(rcal);\n final String result = remote.sayHello(9);\n\n System.out.println(\"sayHello succeed: \" + result);\n\t\t\n\t}",
"public void ejbStore() {\n }",
"public void ejbStore() {\n }",
"public interface AccessSessionLocal\n extends javax.ejb.EJBLocalObject\n{\n /**\n * Business Method\n */\n public boolean authenticateUser( java.security.cert.X509Certificate[] certificates ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public org.emayor.servicehandling.interfaces.ServiceSessionLocal[] getAllServiceSessions( ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public org.emayor.servicehandling.interfaces.ServiceSessionLocal getServiceSession( java.lang.String ssid ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public java.lang.String startServiceSession( java.lang.String serviceId,boolean isForwarded,java.lang.String xmlDoc,java.lang.String docSig ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public java.lang.String startServiceSession( java.lang.String serviceId,java.lang.String requestDocument ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public boolean stopServiceSession( java.lang.String ssid ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public boolean stopAllServiceSessions( ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public org.emayor.servicehandling.kernel.ServiceInfo[] listAvailableServices( ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public boolean stop( ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public org.eMayor.PolicyEnforcement.C_UserProfile getUserProfile( ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public java.lang.String getSessionId( ) throws org.emayor.servicehandling.kernel.SessionException;\n\n /**\n * Business Method\n */\n public java.lang.String getUserId( ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public void setUserId( java.lang.String userId ) throws org.emayor.servicehandling.kernel.AccessSessionException;\n\n /**\n * Business Method\n */\n public java.util.Date getStartDate( ) throws org.emayor.servicehandling.kernel.SessionException;\n\n}",
"public void ejbCreate() throws jakarta.ejb.CreateException {\n testAllowedOperations(\"ejbCreate\");\n }",
"public interface SatlujRemoteHome\n extends EJBHome\n{\n\n public abstract SatlujRemote create()\n throws CreateException, RemoteException;\n}",
"public void ejbActivate() {\n }",
"static void undeployMockEJB() {\r\n if (mockEJBDeployed) {\r\n MockContextFactory.revertSetAsInitial();\r\n mockEJBDeployed = false;\r\n }\r\n }",
"public void ejbPassivate() {\n }",
"public static void main(String[] args) throws NamingException {\n\t\tInitialContext ctx = new InitialContext();\n\t\tObject obj = ctx.lookup(\"ProjJSF2-ear/ProjJSF2-ejb/Test!services.TestRemote\");\n\t\tTestRemote tr = (TestRemote) obj;\n\t\ttr.Consommation();\n\t}",
"@Remote\r\npublic interface AdministrarGestionarLocalesCentroComercialBORemote {\r\n\r\n /**\r\n * Metodo encargado de obtener los registros de LocalCentroComercial de la\r\n * base de datos\r\n *\r\n * @return Lista de LocalCentroComercial\r\n */\r\n public List<LocalCentroComercial> consultarLocalesCentroComercialRegistrados();\r\n\r\n /**\r\n * Metodo encargado de obtener los registros de LocalCentroComercial por\r\n * medio de parametros de busqueda\r\n *\r\n * @param filtros Parametros de busqueda\r\n * @return Lista de LocalCentroComercial\r\n */\r\n public List<LocalCentroComercial> consultarLocalesCentroComercialPorParametro(Map<String, String> filtros);\r\n\r\n /**\r\n * Metodo encargado de obtener un LocalCentroComercial por medio de su id\r\n *\r\n * @param idLocalCentroComercial Id del local\r\n * @return LocalCentroComercial identificado por el id dado\r\n */\r\n public LocalCentroComercial obtenerLocalCentroComercialPorID(BigInteger idLocalCentroComercial);\r\n\r\n /**\r\n * Metodo encargado de actualizar la informacion de un LocalCentroComercial\r\n *\r\n * @param localCentroComercial LocalCentroComercial a editar\r\n */\r\n public void actualizarInformacionLocalCentroComercial(LocalCentroComercial localCentroComercial);\r\n\r\n /**\r\n * Metodo encargado de registrar un LocalCentroComercial en la base de datos\r\n *\r\n * @param localCentroComercialNuevo LocalCentroComercial a registrar\r\n */\r\n public void almacenarNuevoLocalCentroComercialEnSistema(LocalCentroComercial localCentroComercialNuevo);\r\n\r\n /**\r\n * Metodo encargado de validar si el numero de local ya esta registradp\r\n *\r\n * @param numeroLocal Numero local\r\n * @return true -> no existe / false -> ya existe\r\n */\r\n public Boolean obtenerLocalPorNumeroLocal(String numeroLocal);\r\n}",
"private void initialDeploy() {\n }",
"@Local\r\npublic interface ComercioNacionalEJBLocal {\r\n\r\n /**\r\n *\r\n * @param idCliente\r\n * @param idPuntoVenta\r\n * @return\r\n */\r\n List<ProductosXCliente> consultarProductosXCliente(Long idCliente, Long idPuntoVenta);\r\n\r\n /**\r\n *\r\n * @param solicitud\r\n * @param productosXDocumento\r\n * @param log\r\n * @return\r\n */\r\n Documento ingresarSolicitudComercioNacional(Documento solicitud, List<ProductosXDocumento> productosXDocumento, LogAuditoria log);\r\n}",
"public interface EJBLocalHome {\n\n /**\n * <p>Remove an EJB object identified by its primary key.</p>\n *\n * <p>This method can only be used by local clients of an entity bean.\n * An attempt to call this method on a session bean will result in an EJBException.</p>\n *\n * @param primaryKey - The primary key\n * @exception RemoveException - Thrown if the enterprise Bean or the container does\n * not allow the client to remove the object.\n * @exception EJBException - Thrown when the method failed due to a system-level failure.\n */\n public void remove(java.lang.Object primaryKey)\n throws RemoveException, EJBException;\n}",
"@Remote\npublic interface TripEJBRemote {\n\n public List<Trip> getAllTrips();\n\n public List<Location> getAllDestinations();\n\n Location getDestinationForName(String destinationName);\n\n Trip getTripForID(int id);\n\n void storeNewTrips(List<TripElement> lst);\n\n Flight findFlightById(int id);\n\n Location findLocationByCode(String code);\n\n List<Trip> getPossibleTrips(String destination, Date departureDate, Date arrivalDate, int numberOfPersons);\n\n Booking createBooking(double totalPrice, int nrOfTrips, PaymentType paymentType, Trip trip);\n\n List<String> getAllContintentDestinationsOfTrips();\n\n List<String> getAllContintentFromOfTrips();\n\n List<Location> getAllDestinationsOfTrips();\n\n List<Location> getAllFromOfTrips();\n\n List<Trip> getAllTripsFiltered(String toloc, String fromloc, String tocon, String fromcon);\n}",
"public interface EJBControllerLocalHome extends EJBLocalHome {\n public EJBControllerLocal create() \n throws CreateException;\n}",
"zzand mo29852bb() throws RemoteException;",
"public interface ContactHome extends javax.ejb.EJBLocalHome {\n\t/**\n\t * Creates an instance from a key for Entity Bean: Contact\n\t */\n\tpublic com.vh.locker.ejb.Contact create(java.lang.Long id, java.lang.String name, java.lang.String nickName, java.lang.String phone, java.lang.String email, com.vh.locker.ejb.User anUser) throws javax.ejb.CreateException;\n\t\n /**\n\t * Finds an instance using a key for Entity Bean: Contact\n\t */\n\tpublic com.vh.locker.ejb.Contact findByPrimaryKey(java.lang.Long primaryKey) throws javax.ejb.FinderException;\n\tpublic java.util.Collection findByUser(java.lang.Long userId) throws javax.ejb.FinderException;\n}",
"@Local\npublic interface LocalMaterialEJB {\n /**\n * Gets the amount of materials\n *\n * @return int\n * @throws litfitsserver.exceptions.ReadException\n */\n int countMaterials() throws ReadException;\n\n /**\n * Inserts a new material in the database\n *\n * @param material\n * @throws litfitsserver.exceptions.CreateException\n */\n void createMaterial(Material material) throws CreateException;\n\n /**\n * Edits a Material\n *\n * @param material\n * @throws litfitsserver.exceptions.UpdateException\n */\n void editMaterial(Material material) throws UpdateException;\n\n /**\n * Gets all the materials\n *\n * @return List\n * @throws litfitsserver.exceptions.ReadException\n */\n List<Material> findAllMaterials() throws ReadException;\n\n /**\n * Gets a Material by its name\n *\n * @param name\n * @return Material\n * @throws litfitsserver.exceptions.ReadException\n */\n Material findMaterial(String name) throws ReadException;\n\n /**\n * Deletes a material\n *\n * @param material\n * @throws litfitsserver.exceptions.ReadException\n * @throws litfitsserver.exceptions.DeleteException\n */\n void removeMaterial(Material material) throws ReadException, DeleteException;\n}",
"int mo742l() throws RemoteException;",
"@Override\n protected void startUp() {\n }",
"private FTC_ReceivablesLocalHome getFTC_ReceivablesLocalHome() {\n try {\n ServiceLocator service = ServiceLocator.getInstance();\n return (FTC_ReceivablesLocalHome) service.getEJBLocalHome(\"FTC_ReceivablesEJB.FTC_ReceivablesLocalHome\");\n }\n catch (ServiceLocatorException ex) {\n String errorMsg = \"Error occurred in getFTC_ReceivablesLocalHome() method when lookup the local home interface\";\n throw new EJBException(errorMsg, ex);\n }\n }",
"EJBLocalObject getEJBLocalObject() throws IllegalStateException;",
"public void ejbActivate() throws RemoteException, EJBException {\n\t\ttry {\n\t\t\t// really should use a utility class that caches these EJBHomes. Use\n\t\t\t// xdoclet to create when I have more than a few hrs to impl.\n\t\t\t// TODO Tech Upgrade!!\n\t\t\t_idshome = (IdentityServiceHome) JndiHelper.getObject(\n\t\t\t\t\t\"com.carescience.ics.pids.IdentityServiceHome\",\n\t\t\t\t\tIdentityServiceHome.class);\n\t\t\t// _corhome = (CorrelationHome)\n\t\t\t// JndiHelper.getObject(\"CorrelationUtils\", CorrelationHome.class);\n\t\t} catch (NamingException e) {\n\t\t\tEJBException ejbx = new EJBException(e.getExplanation(), e);\n\t\t\tthrow ejbx;\n\t\t}\n\t}",
"private void makeConnection() {\n try {\n InitialContext ic = new InitialContext();\n DataSource ds = (DataSource) ic.lookup(dbName);\n\n con = ds.getConnection();\n } catch (Exception ex) {\n throw new EJBException(\"Unable to connect to database. \" + ex.getMessage());\n }\n }",
"@Test\r\n public void testFind() throws Exception {\r\n Map props = new HashMap();\r\n// props.put(\"org.glassfish.ejb.embedded.glassfish.instance.root\",\r\n// \"/Applications/GlassFish/glassfishv3-webprofile/glassfish/domains/domain1\");\r\n props.put(EJBContainer.MODULES, new File[]{\r\n new File(\"web/WEB-INF/classes\"),\r\n new File(\"test/conf/\")\r\n });\r\n\r\n \r\n System.out.println(\"find\");\r\n String key = \"\";\r\n// EJBContainer container = javax.ejb.embeddable.EJBContainer.createEJBContainer();\r\n EJBContainer container = javax.ejb.embeddable.EJBContainer.createEJBContainer(props);\r\n LoginSessionBean instance = (LoginSessionBean)container.getContext().lookup(\"java:global/classes/LoginSessionBean\");\r\n Users expResult = null;\r\n Users result = instance.find(key);\r\n assertEquals(expResult, result);\r\n container.close();\r\n // TODO review the generated test code and remove the default call to fail.\r\n //fail(\"The test case is a prototype.\");\r\n }",
"@Test\n public void testCreateMedecin() throws Exception {\n System.out.println(\"createMedecin\");\n String wscaller = \"\";\n String nom = \"\";\n Integer num_secu = null;\n String adresse = \"\";\n String email = \"\";\n String telephone = \"\";\n String code_postal = \"\";\n String cabinet = \"\";\n String specialite = \"\";\n EJBContainer container = javax.ejb.embeddable.EJBContainer.createEJBContainer();\n MonWebService instance = (MonWebService)container.getContext().lookup(\"java:global/classes/MonWebService\");\n String expResult = \"\";\n String result = instance.createMedecin(wscaller, nom, num_secu, adresse, email, telephone, code_postal, cabinet, specialite);\n assertEquals(expResult, result);\n container.close();\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"public FMISComLocal create() throws javax.ejb.CreateException;",
"public interface EJBContainerProvider\n{\n /**\n * Called by the embeddable container bootstrap process to find a suitable embeddable container\n * implementation. An embeddable container provider may deem itself as appropriate for the\n * embeddable application if any of the following are true : The javax.ejb.embeddable.initial\n * property was included in the Map passed to createEJBContainer and the value of the property is\n * the provider's implementation class. No javax.ejb.embeddable.initial property was specified.\n * If a provider does not qualify as the provider for the embeddable application, it must return null.\n * \n * @param properties\n * @return EJBContainer instance or null\n * @throws EJBException\n */\n EJBContainer createEJBContainer(Map<?, ?> properties) throws EJBException;\n}",
"public void ejbActivate() {\n\t\tSystem.out.println(\"ejbActivate\");\n\t}",
"public EbbServerImpl(String name) throws RemoteException {\r\n \tthis.name = name;\r\n \ti =0;\r\n \tdatabase = new DatabaseImpl();\r\n \tdatabase.startConnection();\r\n \t//database.dropTable();\r\n \t//database.createTable();\r\n }",
"@Test\n public void testAddOrcamento() throws Exception {\n System.out.println(\"addOrcamento\");\n Orcamento orc = null;\n EJBContainer container = javax.ejb.embeddable.EJBContainer.createEJBContainer();\n OrcamentoService instance = (OrcamentoService)container.getContext().lookup(\"java:global/classes/OrcamentoService\");\n Orcamento expResult = null;\n Orcamento result = instance.addOrcamento(orc);\n assertEquals(expResult, result);\n container.close();\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"protected void instantiateEJB() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n if ( ejbRef() != null )\n return;\n\n com.hps.july.trailcom.beans.OpticalHopKey key = keyFromFields(initKey_hopid_hopsid);\n ejbRef = ejbHome().findByPrimaryKey(key);\n }",
"public void testTargetAwareDeployment() {\n final java.io.File appArchive = \n new java.io.File(APPLICATION);\n printAllDeployedComponents();\n //deployApplication(appArchive,getTargets());\n printAllDeployedComponents();\n //checkDeploymentPassed(\"stateless-simple\", getTargets());\n //undeployApplication(appArchive, getTargets());\n }",
"public interface PersonLocal extends javax.ejb.EJBLocalObject {\r\n\t/**\r\n\t * Get accessor for persistent attribute: password\r\n\t */\r\n\tpublic java.lang.String getPassword();\r\n\t/**\r\n\t * Set accessor for persistent attribute: password\r\n\t */\r\n\tpublic void setPassword(java.lang.String newPassword);\r\n\t/**\r\n\t * Get accessor for persistent attribute: firstName\r\n\t */\r\n\tpublic java.lang.String getFirstName();\r\n\t/**\r\n\t * Set accessor for persistent attribute: firstName\r\n\t */\r\n\tpublic void setFirstName(java.lang.String newFirstName);\r\n\t/**\r\n\t * Get accessor for persistent attribute: lastName\r\n\t */\r\n\tpublic java.lang.String getLastName();\r\n\t/**\r\n\t * Set accessor for persistent attribute: lastName\r\n\t */\r\n\tpublic void setLastName(java.lang.String newLastName);\r\n\t/**\r\n\t * Get accessor for persistent attribute: emailAddress\r\n\t */\r\n\tpublic java.lang.String getEmailAddress();\r\n\t/**\r\n\t * Set accessor for persistent attribute: emailAddress\r\n\t */\r\n\tpublic void setEmailAddress(java.lang.String newEmailAddress);\r\n\t/**\r\n\t * This method was generated for supporting the relationship role named todo.\r\n\t * It will be deleted/edited when the relationship is deleted/edited.\r\n\t */\r\n\tpublic java.util.Collection getTodo();\r\n\t/**\r\n\t * This method was generated for supporting the relationship role named todo.\r\n\t * It will be deleted/edited when the relationship is deleted/edited.\r\n\t */\r\n\tpublic void setTodo(java.util.Collection aTodo);\r\n\t/**\r\n\t * This is our method to get all todos for one person\r\n\t */\r\n\tpublic java.util.Collection getTodos();\r\n\tpublic boolean isPasswordCorrect(String password);\r\n}",
"private Map getEjbModuleInfo(ConfigContext ctx, String name) \n throws RepositoryException {\n \n // validate mandatory arguments\n if ( (ctx == null) || (name == null) ) {\n throw new IllegalArgumentException();\n }\n\n Map map = new HashMap();\n\n try {\n // module type is EJB\n map.put(WebServiceInfoProvider.MOD_TYPE_PROP_NAME,\n WebServiceInfoProvider.MOD_TYPE_EJB);\n\n // ejb module id\n map.put(WebServiceInfoProvider.APP_ID_PROP_NAME, name);\n\n // bundle name is empty\n map.put(WebServiceInfoProvider.BUNDLE_NAME_PROP_NAME, null);\n\n // APP_ROOT_LOCATION is not used\n // ejb module config bean\n //EjbModule ejbMod = (EjbModule)\n // ApplicationHelper.findApplication(ctx, name);\n //\n // applications/j2ee-modules/moduleName\n //String ejbModuleRoot = \n // RelativePathResolver.resolvePath(ejbMod.getLocation());\n //map.put(WebServiceInfoProvider.APP_ROOT_LOCATION_PROP_NAME, \n // ejbModuleRoot);\n\n // generated/xml/j2ee-modules/moduleName\n String xmlDir = instanceRoot\n + File.separator + PEFileLayout.GENERATED_DIR\n + File.separator + PEFileLayout.XML_DIR \n + File.separator + PEFileLayout.J2EE_MODULES_DIR \n + File.separator + name;\n map.put(WebServiceInfoProvider.BUNDLE_ROOT_LOCATION_PROP_NAME, \n xmlDir);\n\n // generated/xml/j2ee-modules/moduleName/META-INF/ejb-jar.xml\n String ejbXML = xmlDir + File.separator + META_INF\n + File.separator + EJB_JAR_XML;\n map.put(WebServiceInfoProvider.\n EJB_JAR_XML_PROP_NAME, getFormattedFileContents(ejbXML));\n\n // generated/xml/j2ee-modules/moduleName/META-INF/sun-ejb-jar.xml\n String sunEjbXML = xmlDir + File.separator + META_INF \n + File.separator + SUN_EJB_JAR_XML;\n map.put(WebServiceInfoProvider.SUN_EJB_JAR_XML_LOCATION_PROP_NAME, \n sunEjbXML);\n map.put(WebServiceInfoProvider.\n SUN_EJB_JAR_XML_PROP_NAME, getFormattedFileContents(sunEjbXML));\n\n // generated/xml/j2ee-modules/moduleName/META-INF/webservices.xml\n String wsXML = xmlDir + File.separator + META_INF \n + File.separator + WEBSERVICES_XML;\n map.put(WebServiceInfoProvider.WS_XML_LOCATION_PROP_NAME, wsXML);\n map.put(WebServiceInfoProvider.WS_XML_PROP_NAME,\n getFormattedFileContents(wsXML));\n\n } catch (Exception e) {\n throw new RepositoryException(e);\n }\n\n return map;\n }",
"private WebServicesFabrica(){}",
"@Test\n public void testGetServerRemoto() throws ApplicationException {\n CommunicationFactory instance = CommunicationFactory.getFactory();\n String expResult = bundle.getString(IPropertiesConstants.COMM_REMOTE_CONNECTOR);\n String result = instance.getServer(\"cmcdell\").getClass().getName();\n assertEquals(expResult, result);\n }",
"private RepositorioOrdemServicoHBM() {\n\n\t}",
"@Ignore\n @Test\n public void testDajLokaciju() throws Exception {\n System.out.println(\"dajLokaciju\");\n String adresa = \"\";\n EJBContainer container = javax.ejb.embeddable.EJBContainer.createEJBContainer();\n MeteoIoTKlijent instance = (MeteoIoTKlijent)container.getContext().lookup(\"java:global/classes/MeteoIoTKlijent\");\n Lokacija expResult = null;\n Lokacija result = instance.dajLokaciju(adresa);\n assertEquals(expResult, result);\n container.close();\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"@Test\n public void testGetOrcamentos() throws Exception {\n System.out.println(\"getOrcamentos\");\n Integer idOfCostumer = null;\n EJBContainer container = javax.ejb.embeddable.EJBContainer.createEJBContainer();\n OrcamentoService instance = (OrcamentoService)container.getContext().lookup(\"java:global/classes/OrcamentoService\");\n List<Orcamento> expResult = null;\n List<Orcamento> result = instance.getOrcamentos(idOfCostumer);\n assertEquals(expResult, result);\n container.close();\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"private static void boot() {\n\t\tEJB3StandaloneBootstrap.boot(null);\r\n\r\n\t\t// Deploy custom stateless beans (datasource, mostly)\r\n\t\tEJB3StandaloneBootstrap.deployXmlResource(\"META-INF/superStar-beans.xml\");\r\n\r\n\t\t// Deploy all EJBs found on classpath (slow, scans all)\r\n\t\t// EJB3StandaloneBootstrap.scanClasspath();\r\n\r\n\t\t// Deploy all EJBs found on classpath (fast, scans only build\r\n\t\t// directory)\r\n\t\t// This is a relative location, matching the substring end of one of\r\n\t\t// java.class.path locations!\r\n\t\t// Print out System.getProperty(\"java.class.path\") to understand\r\n\t\t// this...\r\n\t\tEJB3StandaloneBootstrap.scanClasspath(\"SuperStar/build\".replace(\"/\", File.separator));\r\n\t}",
"@Remote\r\npublic interface HrJBorrowcontractFacadeRemote {\r\n\t/**\r\n\t * Perform an initial save of a previously unsaved HrJBorrowcontract entity.\r\n\t * All subsequent persist actions of this entity should use the #update()\r\n\t * method.\r\n\t * \r\n\t * @param entity\r\n\t * HrJBorrowcontract entity to persist\r\n\t * @throws RuntimeException\r\n\t * when the operation fails\r\n\t */\r\n\tpublic void save(HrJBorrowcontract entity);\r\n\t/**\r\n\t * \r\n\t * @param entity\r\n\t */\r\n\tpublic long save2(HrJBorrowcontract entity);\r\n\t/**\r\n\t * Delete a persistent HrJBorrowcontract entity.\r\n\t * \r\n\t * @param entity\r\n\t * HrJBorrowcontract entity to delete\r\n\t * @throws RuntimeException\r\n\t * when the operation fails\r\n\t */\r\n\tpublic void delete(HrJBorrowcontract entity);\r\n\r\n\t/**\r\n\t * Persist a previously saved HrJBorrowcontract entity and return it or a\r\n\t * copy of it to the sender. A copy of the HrJBorrowcontract entity\r\n\t * parameter is returned when the JPA persistence mechanism has not\r\n\t * previously been tracking the updated entity.\r\n\t * \r\n\t * @param entity\r\n\t * HrJBorrowcontract entity to update\r\n\t * @return HrJBorrowcontract the persisted HrJBorrowcontract entity\r\n\t * instance, may not be the same\r\n\t * @throws RuntimeException\r\n\t * if the operation fails\r\n\t */\r\n\tpublic HrJBorrowcontract update(HrJBorrowcontract entity);\r\n\t/**\r\n\t * \r\n\t * @param entity\r\n\t * @throws DataChangeException\r\n\t * @throws SQLException\r\n\t */\r\n\tpublic HrJBorrowcontract update2(HrJBorrowcontract entity)throws DataChangeException,SQLException;\r\n\tpublic HrJBorrowcontract findById(Long id);\r\n\r\n\t/**\r\n\t * Find all HrJBorrowcontract entities with a specific property value.\r\n\t * \r\n\t * @param propertyName\r\n\t * the name of the HrJBorrowcontract property to query\r\n\t * @param value\r\n\t * the property value to match\r\n\t * @return List<HrJBorrowcontract> found by query\r\n\t */\r\n\tpublic List<HrJBorrowcontract> findByProperty(String propertyName,\r\n\t\t\tObject value);\r\n\r\n\t/**\r\n\t * Find all HrJBorrowcontract entities.\r\n\t * \r\n\t * @return List<HrJBorrowcontract> all HrJBorrowcontract entities\r\n\t */\r\n\tpublic List<HrJBorrowcontract> findAll();\r\n\t/**\r\n\t * \r\n\t * @param entity\r\n\t */\r\n\tpublic void logicDelete(String strBorrowContractId,String user_id,String strOldUpdateTime)throws DataChangeException,SQLException;\r\n\t/**\r\n\t * \r\n\t * @param strBorrowContractId\r\n\t * @param user_id\r\n\t * @param strOldUpdateTime\r\n\t * @throws DataChangeException\r\n\t * @throws SQLException\r\n\t */\r\n\t\r\n\tpublic void repoet(String strBorrowContractId,String user_id,String strOldUpdateTime)\r\n throws DataChangeException ,SQLException;\r\n}",
"public interface UserEntityHome extends javax.ejb.EJBLocalHome {\n\n /**\n * Creates a new <code>UserEntity</code> record in the database.\n *\n * @param userId the id of user\n * @return the newly created UserEntity\n * @throws CreateException if the new record cannot be created in the database\n */\n public UserEntity create(String userId) throws CreateException;\n\n /**\n * Returns the UserEntity identified by the primary key, which is the userid.\n * @param userId String the primary key of the UserEntity to find\n * @throws FinderException when the UserEntity with the given id cannot be found\n * @return UserEntity the user with id userId\n */\n public UserEntity findByPrimaryKey(String userId) throws FinderException;\n\n /**\n * Returns all users of the system in a Collection of UserEntity.\n *\n * <p> If there are no users in the system, the method returns an empty\n * Collection.\n *\n * @throws FinderException defined by the spec, is never thrown\n * @return Collection of all users in the system as UserEntity's. If no users\n * are found return an empty Collection\n */\n public Collection findAllUsers() throws FinderException;\n\n /**\n * Finds all users in the system assigned to the specified LD roles in the\n * specified run and returns them in a Collection of UserEntity's.\n *\n * <p>The roleids passed is a space seperated list of LD role ids to match.\n *\n * <p> If no users are found the method returns an empty Collection.\n *\n * @param runId int the id of the run the users belong to\n * @param roleId String a space seperated list of LD ids of the roles the users\n * are assigned to\n * @throws FinderException defined by the spec, is never thrown\n * @return Collection of users assigned to the specified LD role(s) in the\n * specified run as UserEntity's\n */\n public Collection findByRoleId(int runId, String roleId) throws\n FinderException;\n \n \n /**\n * Finds all users in the system assigned to the specified role instances in the\n * specified run and returns them in a Collection of UserEntity's.\n *\n * <p>The roleids passed is a space seperated list of role isntance ids to match.\n *\n * <p> If no users are found the method returns an empty Collection.\n *\n * @param runId int the id of the run the users belong to\n * @param roleInstanceIds String a space seperated list of instance ids of the roles the users\n * are assigned to\n * @throws FinderException defined by the spec, is never thrown\n * @return Collection of users assigned to the specified role instances in the\n * specified run as UserEntity's\n */\n public Collection findByRoleInstanceId(int runId, String roleInstanceIds) throws FinderException;\n\n}",
"public interface CSUserLocal extends javax.ejb.EJBLocalObject {\n\t/**\n\t * getEntityContext\n\t */\n\tpublic javax.ejb.EntityContext getEntityContext();\n\t/**\n\t * Returns the idPassword.\n\t * @return String\n\t */\n\tpublic String getIdPassword();\n\t/**\n\t * Returns the idProfile.\n\t * @return String\n\t */\n\tpublic String getIdProfile();\n\t/**\n\t * Returns the idProfileDesc.\n\t * @return String\n\t */\n\tpublic String getIdProfileDesc();\n\t/**\n\t * Returns the idWrkr.\n\t * @return String\n\t */\n\tpublic String getIdWrkr();\n\t/**\n\t * Returns the idWrkrCreate.\n\t * @return String\n\t */\n\tpublic String getIdWrkrCreate();\n\t/**\n\t * Returns the idWrkrUpdate.\n\t * @return String\n\t */\n\tpublic String getIdWrkrUpdate();\n\t/**\n\t * Returns the myEntityCtx.\n\t * @return javax.ejb.EntityContext\n\t */\n\tpublic javax.ejb.EntityContext getMyEntityCtx();\n\t/**\n\t * Returns the tsCreate.\n\t * @return java.sql.Timestamp\n\t */\n\tpublic java.sql.Timestamp getTsCreate();\n\t/**\n\t * Returns the tsUpdate.\n\t * @return java.sql.Timestamp\n\t */\n\tpublic java.sql.Timestamp getTsUpdate();\n\t/**\n\t * Sets the idPassword.\n\t * @param idPassword The idPassword to set\n\t */\n\tpublic void setIdPassword(String idPassword);\n\t/**\n\t * Sets the idProfile.\n\t * @param idProfile The idProfile to set\n\t */\n\tpublic void setIdProfile(String idProfile);\n\t/**\n\t * Sets the idProfileDesc.\n\t * @param idProfileDesc The idProfileDesc to set\n\t */\n\tpublic void setIdProfileDesc(String idProfileDesc);\n\t/**\n\t * Sets the idWrkrUpdate.\n\t * @param idWrkrUpdate The idWrkrUpdate to set\n\t */\n\tpublic void setIdWrkrUpdate(String idWrkrUpdate);\n\t/**\n\t * Sets the tsUpdate.\n\t * @param tsUpdate The tsUpdate to set\n\t */\n\tpublic void setTsUpdate(java.sql.Timestamp tsUpdate);\n\t/**\n\t * Returns the nmWrkr.\n\t * @return String\n\t */\n\tpublic String getNmWrkr();\n\t/**\n\t * Sets the nmWrkr.\n\t * @param nmWrkr The nmWrkr to set\n\t */\n\tpublic void setNmWrkr(String nmWrkr);\n\t/**\n\t * Returns the cdPasswordStatus.\n\t * @return String\n\t */\n\tpublic String getCdPasswordStatus();\n\t/**\n\t * Sets the cdPasswordStatus.\n\t * @param cdPasswordStatus The cdPasswordStatus to set\n\t */\n\tpublic void setCdPasswordStatus(String cdPasswordStatus);\n\t/**\n\t * Returns the cdAccptWrkld.\n\t * @return String\n\t */\n\tpublic String getCdAccptWrkld();\n\t/**\n\t * Returns the nbApproval.\n\t * @return int\n\t */\n\tpublic int getNbApproval();\n\t/**\n\t * Returns the nbCompleted.\n\t * @return int\n\t */\n\tpublic int getNbCompleted();\n\t/**\n\t * Returns the nbOutstanding.\n\t * @return int\n\t */\n\tpublic int getNbOutstanding();\n\t/**\n\t * Sets the cdAccptWrkld.\n\t * @param cdAccptWrkld The cdAccptWrkld to set\n\t */\n\tpublic void setCdAccptWrkld(String cdAccptWrkld);\n\t/**\n\t * Sets the nbApproval.\n\t * @param nbApproval The nbApproval to set\n\t */\n\tpublic void setNbApproval(int nbApproval);\n\t/**\n\t * Sets the nbCompleted.\n\t * @param nbCompleted The nbCompleted to set\n\t */\n\tpublic void setNbCompleted(int nbCompleted);\n\t/**\n\t * Sets the nbOutstanding.\n\t * @param nbOutstanding The nbOutstanding to set\n\t */\n\tpublic void setNbOutstanding(int nbOutstanding);\n\t/**\n\t * Returns the byAgent.\n\t * @return boolean\n\t */\n\tpublic boolean isByAgent();\n\t/**\n\t * Returns the byControlNbr.\n\t * @return boolean\n\t */\n\tpublic boolean isByControlNbr();\n\t/**\n\t * Returns the byCounty.\n\t * @return boolean\n\t */\n\tpublic boolean isByCounty();\n\t/**\n\t * Returns the byCP.\n\t * @return boolean\n\t */\n\tpublic boolean isByCP();\n\t/**\n\t * Returns the byCustomer.\n\t * @return boolean\n\t */\n\tpublic boolean isByCustomer();\n\t/**\n\t * Returns the byDtCompleted.\n\t * @return boolean\n\t */\n\tpublic boolean isByDtCompleted();\n\t/**\n\t * Returns the byDtDue.\n\t * @return boolean\n\t */\n\tpublic boolean isByDtDue();\n\t/**\n\t * Returns the byDtReceived.\n\t * @return boolean\n\t */\n\tpublic boolean isByDtReceived();\n\t/**\n\t * Returns the byEmail.\n\t * @return boolean\n\t */\n\tpublic boolean isByEmail();\n\t/**\n\t * Returns the byIdPart.\n\t * @return boolean\n\t */\n\tpublic boolean isByIdPart();\n\t/**\n\t * Returns the byNbCase.\n\t * @return boolean\n\t */\n\tpublic boolean isByNbCase();\n\t/**\n\t * Returns the byNbDkt.\n\t * @return boolean\n\t */\n\tpublic boolean isByNbDkt();\n\t/**\n\t * Returns the byNbSSN.\n\t * @return boolean\n\t */\n\tpublic boolean isByNbSSN();\n\t/**\n\t * Returns the byNCP.\n\t * @return boolean\n\t */\n\tpublic boolean isByNCP();\n\t/**\n\t * Returns the byReferralType.\n\t * @return boolean\n\t */\n\tpublic boolean isByReferralType();\n\t/**\n\t * Returns the bySrc1.\n\t * @return boolean\n\t */\n\tpublic boolean isBySrc1();\n\t/**\n\t * Returns the bySrc2.\n\t * @return boolean\n\t */\n\tpublic boolean isBySrc2();\n\t/**\n\t * Returns the bySrc3.\n\t * @return boolean\n\t */\n\tpublic boolean isBySrc3();\n\t/**\n\t * Returns the bySrc4.\n\t * @return boolean\n\t */\n\tpublic boolean isBySrc4();\n\t/**\n\t * Returns the dirty.\n\t * @return boolean\n\t */\n\tpublic boolean isDirty();\n\t/**\n\t * Sets the byAgent.\n\t * @param byAgent The byAgent to set\n\t */\n\tpublic void setByAgent(boolean byAgent);\n\t/**\n\t * Sets the byControlNbr.\n\t * @param byControlNbr The byControlNbr to set\n\t */\n\tpublic void setByControlNbr(boolean byControlNbr);\n\t/**\n\t * Sets the byCounty.\n\t * @param byCounty The byCounty to set\n\t */\n\tpublic void setByCounty(boolean byCounty);\n\t/**\n\t * Sets the byCP.\n\t * @param byCP The byCP to set\n\t */\n\tpublic void setByCP(boolean byCP);\n\t/**\n\t * Sets the byCustomer.\n\t * @param byCustomer The byCustomer to set\n\t */\n\tpublic void setByCustomer(boolean byCustomer);\n\t/**\n\t * Sets the byDtCompleted.\n\t * @param byDtCompleted The byDtCompleted to set\n\t */\n\tpublic void setByDtCompleted(boolean byDtCompleted);\n\t/**\n\t * Sets the byDtDue.\n\t * @param byDtDue The byDtDue to set\n\t */\n\tpublic void setByDtDue(boolean byDtDue);\n\t/**\n\t * Sets the byDtReceived.\n\t * @param byDtReceived The byDtReceived to set\n\t */\n\tpublic void setByDtReceived(boolean byDtReceived);\n\t/**\n\t * Sets the byEmail.\n\t * @param byEmail The byEmail to set\n\t */\n\tpublic void setByEmail(boolean byEmail);\n\t/**\n\t * Sets the byIdPart.\n\t * @param byIdPart The byIdPart to set\n\t */\n\tpublic void setByIdPart(boolean byIdPart);\n\t/**\n\t * Sets the byNbCase.\n\t * @param byNbCase The byNbCase to set\n\t */\n\tpublic void setByNbCase(boolean byNbCase);\n\t/**\n\t * Sets the byNbDkt.\n\t * @param byNbDkt The byNbDkt to set\n\t */\n\tpublic void setByNbDkt(boolean byNbDkt);\n\t/**\n\t * Sets the byNbSSN.\n\t * @param byNbSSN The byNbSSN to set\n\t */\n\tpublic void setByNbSSN(boolean byNbSSN);\n\t/**\n\t * Sets the byNCP.\n\t * @param byNCP The byNCP to set\n\t */\n\tpublic void setByNCP(boolean byNCP);\n\t/**\n\t * Sets the byReferralType.\n\t * @param byReferralType The byReferralType to set\n\t */\n\tpublic void setByReferralType(boolean byReferralType);\n\t/**\n\t * Sets the bySrc1.\n\t * @param bySrc1 The bySrc1 to set\n\t */\n\tpublic void setBySrc1(boolean bySrc1);\n\t/**\n\t * Sets the bySrc2.\n\t * @param bySrc2 The bySrc2 to set\n\t */\n\tpublic void setBySrc2(boolean bySrc2);\n\t/**\n\t * Sets the bySrc3.\n\t * @param bySrc3 The bySrc3 to set\n\t */\n\tpublic void setBySrc3(boolean bySrc3);\n\t/**\n\t * Sets the bySrc4.\n\t * @param bySrc4 The bySrc4 to set\n\t */\n\tpublic void setBySrc4(boolean bySrc4);\n\t/**\n\t * Returns the cdApprovalRequired.\n\t * @return String\n\t */\n\tpublic String getCdApprovalRequired();\n\t/**\n\t * Sets the cdApprovalRequired.\n\t * @param cdApprovalRequired The cdApprovalRequired to set\n\t */\n\tpublic void setCdApprovalRequired(String cdApprovalRequired);\n\t/**\n\t * Returns the userEntityBean.\n\t * @return UserEntityBean\n\t */\n\tpublic UserEntityBean getUserEntityBean();\n\t/**\n\t * Sets the userEntityBean.\n\t * @param userEntityBean The userEntityBean to set\n\t */\n\tpublic void setUserEntityBean(UserEntityBean userEntityBean);\n}",
"boolean mo743m() throws RemoteException;",
"EJBObject getEJBObject() throws IllegalStateException;",
"@Remote\r\npublic interface EquJEquchangFacadeRemote {\r\n\t\r\n\tpublic int save(EquJEquchang entity);\r\n\r\n\tpublic void delete(Long changeId);\r\n\r\n\tpublic EquJEquchang update(EquJEquchang entity);\r\n\r\n\tpublic EquJEquchang findById(Long id);\r\n\tpublic PageObject findChangeList(String workerCOde,String changeNo,String changeTitle,String flag,String entryIds,\r\n\t\t\tString enterpriseCode,final int... rowStartIdxAndCount) throws ParseException;\r\n\t\r\n\t/**\r\n\t * 根据部门编码查询部门名称\r\n\t * @param deptCode\r\n\t * @return\r\n\t */\r\n\tpublic String getEquChangeDeptName(String deptCode);\r\n\t\r\n\tpublic int getMaxNo(String maxNo,String enterpriseCode);\r\n\t\r\n\tpublic void reportEquChange(Long equChangeId, Long actionId,String workerCode, String approveText, String nextRoles,\r\n\t\t\tString nextRolePs, String workflowType);\r\n\t\r\n\tpublic EquJEquchang approveEquChange(String equChangeId,String workflowType,String workerCode,\r\n\t\t\tString actionId,String eventIdentify, String approveText, String nextRoles, String enterpriseCode);\r\n\t\r\n\tpublic String getMajorNo(String special);\r\n\r\n\tpublic String getEquSpecialName(String specialCode);\r\n\t\r\n\tpublic String getEquChangeSourceName(String sourceCode,String enterpriseCode);\r\n\t\r\n\tpublic void saveEquJEquchangBackfill(EquJEquchangBackfill entity);\r\n\t\r\n\tpublic EquJEquchangBackfill findEquJEquchangBackfill(String changeNo) throws ParseException;\r\n\tpublic String getApplyManName(String applyMan);\r\n\t/**\r\n\t * 根据设备编码查询异动信息\r\n\t * @param equCode\r\n\t * @param enterpriseCode\r\n\t * @param rowStartIdxAndCount\r\n\t * @return PageObject\r\n\t *add by kzhang 20100921\r\n\t */\r\n\tpublic PageObject findChangeListByEquCode(String equCode,String enterpriseCode,final int... rowStartIdxAndCount);\r\n\r\n}",
"protected void instantiateEJB() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n if ( ejbRef() != null )\n return;\n\n com.hps.july.persistence.SuperRegionAccKey key = keyFromFields(initKey_accessid);\n ejbRef = ejbHome().findByPrimaryKey(key);\n }",
"@Test\n public void testGetItens() throws Exception {\n System.out.println(\"getItens\");\n Integer idOfOrcamento = null;\n EJBContainer container = javax.ejb.embeddable.EJBContainer.createEJBContainer();\n OrcamentoService instance = (OrcamentoService)container.getContext().lookup(\"java:global/classes/OrcamentoService\");\n List<Orcamentoitem> expResult = null;\n List<Orcamentoitem> result = instance.getItens(idOfOrcamento);\n assertEquals(expResult, result);\n container.close();\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"private com.hps.july.persistence.CarHome ejbHome() throws java.rmi.RemoteException, javax.naming.NamingException {\n return (com.hps.july.persistence.CarHome) PortableRemoteObject.narrow(getHome(), com.hps.july.persistence.CarHome.class);\n }",
"void method0() {\nprotected File configBase = null;\n/**\n * The Context container associated with our web application.\n */\nprotected Context context = null;\n/**\n * The debugging detail level for this servlet.\n */\nprotected int debug = 1;\n/**\n * File object representing the directory into which the deploy() command\n * will store the WAR and context configuration files that have been\n * uploaded.\n */\nprotected File deployed = null;\n/**\n * Path used to store revisions of webapps.\n */\nprotected File versioned = null;\n/**\n * Path used to store context descriptors.\n */\nprotected File contextDescriptors = null;\n/**\n * The associated host.\n */\nprotected Host host = null;\n/**\n * The host appBase.\n */\nprotected File appBase = null;\n/**\n * MBean server.\n */\nprotected MBeanServer mBeanServer = null;\n/**\n * The associated deployer ObjectName.\n */\nprotected ObjectName oname = null;\n/**\n * The global JNDI <code>NamingContext</code> for this server,\n * if available.\n */\nprotected javax.naming.Context global = null;\n/**\n * The string manager for this package.\n */\nprotected static final StringManager sm = StringManager.getManager(Constants.Package);\n/**\n * The Wrapper container associated with this servlet.\n */\nprotected Wrapper wrapper = null;\n}",
"public interface ForumMessageLocalHome extends EJBLocalHome {\n public ForumMessageLocal create(String title, String author,\n StringBuffer message) throws CreateException;\n\n public ForumMessageLocal findByPrimaryKey(Integer id) throws FinderException;\n}",
"@Test\n public void testSetOrcamento() throws Exception {\n System.out.println(\"setOrcamento\");\n Orcamento orc = null;\n EJBContainer container = javax.ejb.embeddable.EJBContainer.createEJBContainer();\n OrcamentoService instance = (OrcamentoService)container.getContext().lookup(\"java:global/classes/OrcamentoService\");\n Orcamento expResult = null;\n Orcamento result = instance.setOrcamento(orc);\n assertEquals(expResult, result);\n container.close();\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"@PostConstruct\n public void init() throws SQLException, IOException {\n Server.createWebServer(\"-webPort\", \"1777\").start();\n\n\n }",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"public static void main(String[] args) throws NamingException {\n\r\n\t\tContext context = new InitialContext();\r\n\r\n\t\tfloat subfees = 50;\r\n\t\tString jndi = \"rnr.care-ear/rnr.care-ejb/EventManager!rnr.care.services.EventManagerRemote\";\r\n\r\n\t\tEventManagerRemote eventManagementRemote = (EventManagerRemote) context.lookup(jndi);\r\n\t\tString jndi1 = \"rnr.care-ear/rnr.care-ejb/UserManager!rnr.care.services.UserManagerRemote\";\r\n\t\tUserManagerRemote userManagementRemote = (UserManagerRemote) context.lookup(jndi1);\r\n\t\tString jndi2 = \"rnr.care-ear/rnr.care-ejb/ParticipationManagement!rnr.care.services.ParticipationManagementRemote\";\r\n\t\tParticipationManagementRemote participationManagementRemote = (ParticipationManagementRemote) context\r\n\t\t\t\t.lookup(jndi2);\r\n\r\n\tUser user = userManagementRemote.findUserById(1);\r\n\r\n\t\tEvent event = eventManagementRemote.findEventById(1);\r\n\r\n\t\t//participationManagementRemote.saveOrUpdateParticipation(6, 1, new Date,user , event);\r\n\t}",
"protected void instantiateEJB() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n if ( ejbRef() != null )\n return;\n\n com.hps.july.persistence.StoragePlaceKey key = keyFromFields(initKey_storageplace);\n ejbRef = ejbHome().findByPrimaryKey(key);\n }"
] | [
"0.65787786",
"0.64531386",
"0.64531386",
"0.6327654",
"0.6321929",
"0.62754285",
"0.6228392",
"0.6219912",
"0.61978877",
"0.61829454",
"0.617153",
"0.61559004",
"0.61387384",
"0.61138225",
"0.611005",
"0.60893685",
"0.6086036",
"0.60783434",
"0.6033565",
"0.60170424",
"0.59801257",
"0.5953645",
"0.59531236",
"0.5952303",
"0.59326375",
"0.58901983",
"0.5884853",
"0.5880794",
"0.587673",
"0.58569247",
"0.58494395",
"0.58465856",
"0.5843365",
"0.58402723",
"0.5828925",
"0.5824013",
"0.581912",
"0.58052",
"0.5791242",
"0.5780494",
"0.57635564",
"0.57562804",
"0.57546026",
"0.5740521",
"0.57333183",
"0.57333183",
"0.57066464",
"0.56828034",
"0.5667593",
"0.5640039",
"0.5634335",
"0.5625961",
"0.5625289",
"0.5613412",
"0.5606447",
"0.55926555",
"0.55863947",
"0.55788535",
"0.55615",
"0.55411714",
"0.5533576",
"0.55307674",
"0.5510392",
"0.55055726",
"0.5502133",
"0.5490579",
"0.548096",
"0.5479106",
"0.5476159",
"0.5474418",
"0.5461054",
"0.54510784",
"0.54370457",
"0.54337096",
"0.5432094",
"0.5427926",
"0.54274225",
"0.54251",
"0.54225767",
"0.53847474",
"0.5374134",
"0.5374101",
"0.53737026",
"0.5373593",
"0.5366291",
"0.5358388",
"0.5357006",
"0.5352791",
"0.5352782",
"0.53511655",
"0.53431845",
"0.53388107",
"0.5334927",
"0.53342116",
"0.5333134",
"0.5328484",
"0.532552",
"0.53221285",
"0.5320971",
"0.53199357",
"0.53195506"
] | 0.0 | -1 |
try to run org.slf4j.bridge.SLF4JBridgeHandler.install(); | protected static void configureJULtoSLF4J(ServletContext servletContext) {
try {
// Try to locate class and method using current classloader
Class<?> clazz = Class.forName("org.slf4j.bridge.SLF4JBridgeHandler", true,
JULConfigurer.class.getClassLoader());
Method installMethod = clazz.getDeclaredMethod("install", (Class[]) null);
// Check if JUL to SLF4J is already configured in current classloader
if (isJULtoSLF4JAlreadyConfigured(clazz)) {
return;
}
// Method is found, check if we must clean previous JUL handlers.
Boolean removeConsoleHandler = Boolean.valueOf(servletContext.getInitParameter(REMOVE_JUL_CONSOLEHANDLER_PARAM));
if (removeConsoleHandler == Boolean.TRUE) {
removeJULConsoleHandler(servletContext);
}
installMethod.invoke(null, (Object[]) null);
addSLF4JHandlerToLoggers(servletContext, clazz);
servletContext.log("jul-to-slf4j successfully initialized");
} catch (ClassNotFoundException e) {
servletContext.log("jul-to-slf4j is disabled : org.slf4j.bridge.SLF4JBridgeHandler not found in classpath");
} catch (NoSuchMethodException e) {
servletContext.log("jul-to-slf4j is disabled : org.slf4j.bridge.SLF4JBridgeHandler.install() method not found. "
+ "Check your jul-to-slf4j version");
} catch (SecurityException e) {
throw new RuntimeException("Unexpected error while trying to configure jul-to-slf4j", e);
} catch (IllegalArgumentException e) {
throw new RuntimeException("Unexpected error while trying to configure jul-to-slf4j", e);
} catch (IllegalAccessException e) {
throw new RuntimeException("Unexpected error while trying to configure jul-to-slf4j", e);
} catch (InvocationTargetException e) {
throw new RuntimeException("Unexpected error while trying to configure jul-to-slf4j", e);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n\t\torg.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(Slf4j.class);\n\t\t\n\t\tlogger.info(\"Hello World\");\n\t\t\n\t}",
"public static void setupLoggers() {\n SLF4JBridgeHandler.removeHandlersForRootLogger();\n\n // add SLF4JBridgeHandler to j.u.l's root logger\n SLF4JBridgeHandler.install();\n }",
"private void initJulLogger() {\n SLF4JBridgeHandler.removeHandlersForRootLogger();\n SLF4JBridgeHandler.install();\n }",
"protected static Logger initLogger() {\n \n \n File logFile = new File(\"workshop2_slf4j.log\");\n logFile.delete();\n return LoggerFactory.getLogger(Slf4j.class.getName());\n }",
"protected static void addSLF4JHandlerToLoggers(ServletContext servletContext, Class<?> bridgeHandlerClass) {\n String loggerList = servletContext.getInitParameter(BRIDGED_JUL_LOGGERS_PARAM);\n Handler bridgHandler = getSLF4JBridgeHandler(bridgeHandlerClass);\n if (loggerList != null) {\n String[] loggerNames = loggerList.split(\",\");\n for (String loggerName : loggerNames) {\n Logger logger = Logger.getLogger(loggerName);\n logger.addHandler(bridgHandler);\n logger.setUseParentHandlers(false);\n servletContext.log(\"SLF4JBridgeHandler added JUL logger '\" + loggerName + \"'\");\n }\n }\n }",
"public static void main(String args[]) throws Exception {\n SLF4JBridgeHandler.install();\n\n try {\n JettyServer server = new JettyServer(8080);\n server.start();\n log.info(\"Server started\");\n server.join();\n } catch (Exception e) {\n log.error(\"Failed to start server.\", e);\n }\n }",
"private void doIt() {\n\t\tlogger.debug(\"hellow this is the first time I use Logback\");\n\t\t\n\t}",
"@Override\n protected void startup() throws Throwable {\n\n\tsetTraceBase(baseDir);\n\n }",
"public Slf4jLogService() {\n this(System.getProperties());\n }",
"private void setupLogging() {\n\t\t// Ensure all JDK log messages are deferred until a target is registered\n\t\tLogger rootLogger = Logger.getLogger(\"\");\n\t\tHandlerUtils.wrapWithDeferredLogHandler(rootLogger, Level.SEVERE);\n\n\t\t// Set a suitable priority level on Spring Framework log messages\n\t\tLogger sfwLogger = Logger.getLogger(\"org.springframework\");\n\t\tsfwLogger.setLevel(Level.WARNING);\n\n\t\t// Set a suitable priority level on Roo log messages\n\t\t// (see ROO-539 and HandlerUtils.getLogger(Class))\n\t\tLogger rooLogger = Logger.getLogger(\"org.springframework.shell\");\n\t\trooLogger.setLevel(Level.FINE);\n\t}",
"void installIfNeeded()\n throws Exception;",
"public static void setUp() {\n Handler handler = new LoggerHandler();\n handler.setFormatter(new SimpleFormatter());\n getInstance().addHandler(handler);\n }",
"private void init() {\r\n this.log = this.getLog(LOGGER_MAIN);\r\n\r\n if (!(this.log instanceof org.apache.commons.logging.impl.Log4JLogger)) {\r\n throw new IllegalStateException(\r\n \"LogUtil : apache Log4J library or log4j.xml file are not present in classpath !\");\r\n }\r\n\r\n // TODO : check if logger has an appender (use parent hierarchy if needed)\r\n if (this.log.isWarnEnabled()) {\r\n this.log.warn(\"LogUtil : logging enabled now.\");\r\n }\r\n\r\n this.logBase = this.getLog(LOGGER_BASE);\r\n this.logDev = this.getLog(LOGGER_DEV);\r\n }",
"@Override\n public void run(TestResult result)\n {\n _result = result;\n CatchSevere catchSevere = new CatchSevere();\n Logger apacheLogger = Logger.getLogger(\"org.apache\");\n apacheLogger.addHandler(catchSevere);\n\n try\n {\n RenderKitBootstrap.setFactories(_facesConfigInfo);\n super.run(result);\n }\n finally\n {\n apacheLogger.removeHandler(catchSevere);\n RenderKitBootstrap.clearFactories();\n }\n }",
"public static void main(String[] args) throws Exception {\n System.setProperty(\"hazelcast.logging.type\", \"slf4j\");\n Bootstrap.main(args);\n }",
"private static void setupLogger() {\n\t\tLogManager.getLogManager().reset();\n\t\t// set the level of logging.\n\t\tlogger.setLevel(Level.ALL);\n\t\t// Create a new Handler for console.\n\t\tConsoleHandler consHandler = new ConsoleHandler();\n\t\tconsHandler.setLevel(Level.SEVERE);\n\t\tlogger.addHandler(consHandler);\n\n\t\ttry {\n\t\t\t// Create a new Handler for file.\n\t\t\tFileHandler fHandler = new FileHandler(\"HQlogger.log\");\n\t\t\tfHandler.setFormatter(new SimpleFormatter());\n\t\t\t// set level of logging\n\t\t\tfHandler.setLevel(Level.FINEST);\n\t\t\tlogger.addHandler(fHandler);\n\t\t}catch(IOException e) {\n\t\t\tlogger.log(Level.SEVERE, \"File logger not working! \", e);\n\t\t}\n\t}",
"@Override\n public void startup() {\n }",
"@Override\n\tpublic void earlyStartup() {\n\t}",
"@Before\n public void setup() throws Exception{\n \n System.setProperty(\"app.home\", BASE_DIR + \"/scribengin\");\n System.setProperty(\"vm.app.dir\", BASE_DIR + \"/scribengin\");\n \n localScribenginCluster = new LocalScribenginCluster(BASE_DIR) ;\n localScribenginCluster.clean(); \n localScribenginCluster.useLog4jConfig(\"classpath:scribengin/log4j/vm-log4j.properties\"); \n localScribenginCluster.start();\n registry = RegistryConfig.getDefault().newInstance().connect();\n shell = localScribenginCluster.getShell();\n \n }",
"public void start()\n/* 354: */ {\n/* 355:434 */ onStartup();\n/* 356: */ }",
"void initializeLogging();",
"@Override\n\tpublic void doStart() throws Exception {\n\t\tlog.info(\"starting...\");\n\t}",
"protected void install() {\n\t\t//\n\t}",
"@BeforeClass\n public static void setupClass() {\n build = System.getenv(\"BUILD\");\n \n File logFile = new File(LOG_FILE);\n if(!logFile.exists()) {\n System.out.println(\"Creating log file\");\n try {\n logFile.createNewFile();\n System.out.println(\"Created log file: \" + logFile.getPath());\n } catch (IOException e) {\n System.out.println(e.getMessage());\n //e.printStackTrace();\n }\n }\n \n try {\n FileHandler fileHandler = new FileHandler(logFile.getPath());\n fileHandler.setFormatter(new LogFormatter());\n LOGGER.addHandler(fileHandler);\n \n } catch (SecurityException e) {\n System.out.println(e.getMessage());\n //e.printStackTrace();\n } catch (IOException e) {\n System.out.println(e.getMessage());\n //e.printStackTrace();\n }\n \n LOGGER.setUseParentHandlers(false);\n \n }",
"@Override\n\tprotected void initial() throws SiDCException, Exception {\n\t\tLogAction.getInstance().initial(logger, this.getClass().getCanonicalName());\n\t}",
"public Object run() {\n for (Handler h : logger.getHandlers()) {\n logger.removeHandler(h);\n }\n\n logger.setUseParentHandlers(false);\n for (Handler handler : handlers) {\n logger.addHandler(handler); \n }\n\n Level logLevel = getConfiguredLogLevel(logger.getName());\n if( logLevel != null ) {\n logger.setLevel( logLevel );\n }\n postInitializeLogger( logger );\n return null;\n }",
"public void preInstallHook() {\n }",
"@PostConstruct // bcoz of java 9 and higher version i need to download jar file\r\n\tpublic void doMyStartupStuff() {\r\n\t\tSystem.out.println(\">> TennisCoach: inside of doMyStrtupStuff()\");\r\n\t}",
"private void m7280d() {\n if (this.f5512c == null) {\n try {\n this.f5512c = new C0036q(this.f5510a);\n } catch (IOException e) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Could not open log file: \");\n sb.append(this.f5510a);\n C0135c.m449h().mo280e(\"CrashlyticsCore\", sb.toString(), e);\n }\n }\n }",
"private static void setupOsgi() {\r\n FrameworkStarter.getInstance().start();\r\n }",
"private native void initialiseLoggerReference(Logger logger);",
"private native void initialiseLoggerReference(Logger logger);",
"@Override\n\tpublic void initLogger() {\n\t\t\n\t}",
"public LoggingSAXErrorHandler()\n {\n setLogger(getDefaultLogger());\n }",
"synchronized static public void systemInstall() {\n if (installed == 0) {\n initStreams();\n try {\n ((AnsiPrintStream) out).install();\n ((AnsiPrintStream) err).install();\n } catch (IOException e) {\n throw new IOError(e);\n }\n System.setOut(out);\n System.setErr(err);\n }\n installed++;\n }",
"@BeforeClass\n\tpublic static void setup() {\n\t\tLogger root = (Logger) LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME);\n\t\troot.setLevel(Level.INFO);\n\t}",
"private void initLogger(BundleContext bc) {\n\t\tBasicConfigurator.configure();\r\n\t\tlogger = Logger.getLogger(Activator.class);\r\n\t\tLogger.getLogger(\"org.directwebremoting\").setLevel(Level.WARN);\r\n\t}",
"public void earlyStartup() {\r\n\t\ttry {\r\n\t\t\tearlyStartupInternal();\r\n\t\t} catch (Throwable t) {\r\n\t\t\tlogger.error(\"Unexpected Error\", t);\r\n\t\t}\r\n\t}",
"public void startup() {\n\t\tstart();\n }",
"public void setInstallTracked() {\n }",
"public static void setup() {\n/* 78 */ s_envCurrentJRE = getProperty(\"jnlpx.jpda.env\");\n/* 79 */ o_envCurrentJRE = decodeJpdaEnv(s_envCurrentJRE);\n/* */ \n/* */ \n/* */ \n/* 83 */ if (getProperty(\"jpda.notification\") != null) {\n/* 84 */ showJpdaNotificationWindow(o_envCurrentJRE);\n/* 85 */ Main.systemExit(0);\n/* */ } \n/* */ }",
"private void loggerEinrichten() {\n\t\tlogger.setLevel(Level.INFO);\n//\t\tHandler handler = new FileHandler(\"/home/programmieren/TestFiles/iCalender/temp.log\");\n\t\tHandler handler = new ConsoleHandler();\n\t\thandler.setLevel(Level.FINEST);\n\t\thandler.setFormatter(new Formatter() {\n\t\t\t@Override\n\t\t\tpublic String format(LogRecord record) {\n\t\t\t\treturn record.getSourceClassName() + \".\" + record.getSourceMethodName() + \": \" + record.getMessage()\n\t\t\t\t\t\t+ \"\\n\";\n\t\t\t}\n\t\t});\n\t\tlogger.addHandler(handler);\n\t\tlogger.setUseParentHandlers(false);\n\t\tlogger.finest(\"begonnen\");\n\t}",
"public void activateConsoleMode() {\n logger.addHandler(mConsoleHandler);\n }",
"@Override\n\tpublic void onStart() {\n\t\tnew Starfire();\n\t}",
"protected void initLogger() {\n initLogger(\"DEBUG\");\n }",
"private JavaUtilLogHandlers() { }",
"private static final void a() {\n NoClassDefFoundError noClassDefFoundError2;\n block5: {\n int n10 = 0;\n Object object = null;\n try {\n int n11 = i.h.d.l();\n if (n11 == 0) {\n object = i.h.d.f();\n i.h.d.s((Set)object);\n }\n StaticLoggerBinder.getSingleton();\n p = n11 = 3;\n i.h.d.r((Set)object);\n i.h.d.g();\n i.h.d.p();\n object = q;\n ((h)object).b();\n return;\n }\n catch (Exception exception) {\n i.h.d.e(exception);\n IllegalStateException illegalStateException = new IllegalStateException(\"Unexpected initialization failure\", exception);\n throw illegalStateException;\n }\n catch (NoSuchMethodError noSuchMethodError) {\n String string2 = noSuchMethodError.getMessage();\n if (string2 == null) throw noSuchMethodError;\n String string3 = \"org.slf4j.impl.StaticLoggerBinder.getSingleton()\";\n int n12 = string2.contains(string3);\n if (n12 == 0) throw noSuchMethodError;\n p = n12 = 2;\n i.h.h.i.c(\"slf4j-api 1.6.x (or later) is incompatible with this binding.\");\n i.h.h.i.c(\"Your binding is version 1.5.5 or earlier.\");\n string2 = \"Upgrade your binding to version 1.6.x.\";\n i.h.h.i.c(string2);\n throw noSuchMethodError;\n }\n catch (NoClassDefFoundError noClassDefFoundError2) {\n String string4 = noClassDefFoundError2.getMessage();\n boolean bl2 = i.h.d.m(string4);\n if (!bl2) break block5;\n p = n10 = 4;\n i.h.h.i.c(\"Failed to load class \\\"org.slf4j.impl.StaticLoggerBinder\\\".\");\n i.h.h.i.c(\"Defaulting to no-operation (NOP) logger implementation\");\n String string5 = \"See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.\";\n i.h.h.i.c(string5);\n }\n return;\n }\n i.h.d.e(noClassDefFoundError2);\n throw noClassDefFoundError2;\n }",
"private void initLoggers() {\n _logger = LoggerFactory.getInstance().createLogger();\n _build_logger = LoggerFactory.getInstance().createAntLogger();\n }",
"public static void main(final String[] args) {\n\n System.setProperty(\"org.restlet.engine.loggerFacadeClass\", \"org.restlet.ext.slf4j.Slf4jLoggerFacade\");\n\n // Start application with the command line arguments\n Bootstrapper.launchApp(new OImaging(args));\n }",
"@PostConstruct\n @SuppressWarnings(\"EmptyCatchBlock\")\n public synchronized void init() {\n try {\n Driver driver = DriverManager.getDriver(URL_PREFIX);\n LOGGER.error(\"LoggingDriver already installed; removing\");\n try {\n DriverManager.deregisterDriver(driver);\n } catch (SQLException e) {\n throw new IllegalStateException(\"Unable to de-register logging JDBC driver\", e);\n }\n } catch (SQLException expected) {\n // ignore\n }\n\n try {\n DriverManager.registerDriver(this);\n } catch (SQLException e) {\n throw new IllegalStateException(\"Unable to register logging JDBC driver\", e);\n }\n }",
"private void start() {\n\t\tif (null == this.sourceRunner || null == this.channel) {\n\t\t\tthrow new FlumeException(\n\t\t\t\t\t\"Source/Channel is null. Cannot start flume components\");\n\t\t}\n\t\tthis.sourceRunner.start();\n\t\tthis.channel.start();\n\t\tthis.sinkCounter.start();\n\t}",
"@Override\n public void onFlingStarted() {\n Timber.d(\"A fling just started\");\n\n }",
"public void startup(){}",
"private void setup() {\n py.exec(\"from org.python.core import Py\");\n py.exec(\"import python.main.PythonTraceFunction\");\n py.set(\"ptf\", ptf);\n py.exec(\"Py.getThreadState().tracefunc = ptf\");\n py.set(\"console\", python.panel.getImplementation());\n py.set(\"__impl\", python.bot.getImplementation());\n }",
"public void enableLogging();",
"public void startup()\n\t{\n\t\t; // do nothing\n\t}",
"static public void setup() throws IOException {\n Logger logger = Logger.getLogger(\"\");\n\n logger.setLevel(Level.INFO);\n Calendar cal = Calendar.getInstance();\n //SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH-mm-ss\");\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n String dateStr = sdf.format(cal.getTime());\n fileTxt = new FileHandler(\"log_\" + dateStr + \".txt\");\n fileHTML = new FileHandler(\"log_\" + dateStr + \".html\");\n\n // Create txt Formatter\n formatterTxt = new SimpleFormatter();\n fileTxt.setFormatter(formatterTxt);\n logger.addHandler(fileTxt);\n\n // Create HTML Formatter\n formatterHTML = new LogHTMLFormatter();\n fileHTML.setFormatter(formatterHTML);\n logger.addHandler(fileHTML);\n }",
"public void earlyStartup() {\r\n //To initialize the sensor.\r\n try {\r\n EclipseSensor.getInstance();\r\n }\r\n catch (SensorShellException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"private static void setupLogger(String path, String filename, Level level) throws IOException {\n Path logDir = Paths.get(path, filename + \"_log\");\n\t\tif (!Files.exists(logDir)) {\n\t\t\tFiles.createDirectories(logDir);\n\t\t}\n\t\tString fileName = logDir.resolve(\"searsia.log\").toString();\n Handler fileHandler = new FileHandler(fileName, 1048576, 100, true);\n fileHandler.setFormatter(new SimpleFormatter());\n LogManager.getLogManager().reset();\n\t\tLOGGER.addHandler(fileHandler);\n\t\tLOGGER.setLevel(level);\n\t\tLOGGER.warning(\"Searsia restart\");\n\t}",
"@Override\n public void startInJvm() throws SpineStartupException {\n startInternally();\n }",
"@Override\n protected void startUp() {\n }",
"public static void main(String[] args) {\n\n try {\n HB.runDebug(MethodHandles.lookup().lookupClass());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public static void main(String[] args) {\n\n try {\n HB.runDebug(MethodHandles.lookup().lookupClass());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public static void main(String[] args) {\n\n try {\n HB.runDebug(MethodHandles.lookup().lookupClass());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public static void initialize(){\n Logger logger = Logger.getLogger(\"\");\n\n //from: http://stackoverflow.com/questions/6029454/disabling-awt-swing-debug-fine-log-messages\n Logger.getLogger(\"java.awt\").setLevel(Level.OFF);\n Logger.getLogger(\"sun.awt\").setLevel(Level.OFF);\n Logger.getLogger(\"sun.lwawt\").setLevel(Level.OFF);\n Logger.getLogger(\"javax.swing\").setLevel(Level.OFF);\n\n if (uiLoggerFormatter==null){\n uiLoggerFormatter = new SimpleFormatter();\n }\n\n if (consoleLoggerFormatter==null){\n consoleLoggerFormatter = new SimpleFormatter();\n }\n Handler[] handlers = logger.getHandlers();\n // suppress the logging output to the console\n if (!enableConsoleLogger){\n if (handlers[0] instanceof ConsoleHandler) {\n logger.removeHandler(handlers[0]);\n }\n }\n else{\n if (handlers[0] instanceof ConsoleHandler) {\n handlers[0].setFormatter(consoleLoggerFormatter);\n }\n }\n\n setLevel(lvl);\n\n if(fileHandler!=null){\n if (fileLoggerFormatter==null){\n fileLoggerFormatter = new SimpleFormatter();\n }\n fileHandler.setFormatter(fileLoggerFormatter);\n logger.addHandler(fileHandler);\n }\n\n if(enableUILogger){\n txtAreaHandler = new EZUIHandler(uiLoggerSizeLimit);\n txtAreaHandler.setFormatter(uiLoggerFormatter);\n logger.addHandler(txtAreaHandler);\n }\n \n initialized = true;\n }",
"@Override\n protected void onStart() {\n super.onStart();\n initializeLogging();\n }",
"public void notifyFeatureInstallBegin(IFeatureLocalInstall iFeatureLocalInstall, Handler handler) {\n if (handler == null) {\n handler = this.mHandler;\n }\n handler.post(new l(iFeatureLocalInstall));\n }",
"public static void main(String[] args) {\n\t\tLoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();\n\n\t\ttry {\n\t\t\tJoranConfigurator configurator = new JoranConfigurator();\n\t\t\tconfigurator.setContext(lc);\n\t\t\tlc.reset();\n\t\t\tconfigurator.doConfigure(args[0]);\n\t\t} catch (JoranException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t}\n\t\tStatusPrinter.printInCaseOfErrorsOrWarnings(lc);\n\t\tlogger.info(\"Entering the application\");\n\t\tLogback_Using logback =new Logback_Using();\n\t\tlogback.doIt();\n\t\tlogger.info(\"exit the application\");\n\t\t\n\t}",
"public final void include(RuntimeEnv env, RuntimeStack stack, Scope3202 scope)\n throws IncludeEventException {\n env.addManualClassLoad(\"Symfony\\\\Component\\\\Console\\\\Logger\\\\ConsoleLogger\");\n }",
"public static void start() {\n // TODO(xingliu): Find a better way to access feature in Java code.\n // https://crbug.com/1017860.\n if (!ChimeSessionJni.get().isEnabled() || sRegistered) return;\n\n // Install the DFM and then reigster.\n if (ChimeModule.isInstalled()) {\n registerChimeInternal();\n return;\n }\n\n ChimeModule.install((success) -> {\n if (success) registerChimeInternal();\n });\n }",
"public void installDefaultLibraries() {\n //APACHE\n this.install(\"org.apache.httpcomponents\", \"httpcore-nio\", \"4.4.6\", Repository.CENTRAL);\n this.install(\"org.apache.httpcomponents\", \"httpcore\", \"4.3.2\", Repository.CENTRAL);\n this.install(\"org.apache.httpcomponents\", \"httpmime\", \"4.5.3\", Repository.CENTRAL);\n this.install(\"org.apache.httpcomponents\", \"httpclient\", \"4.5.3\", Repository.CENTRAL);\n this.install(\"org.apache.httpcomponents\", \"httpclient\", \"4.5.2\", Repository.CENTRAL);\n this.install(\"org.apache.commons\", \"commons-lang3\", \"3.5\", Repository.CENTRAL);\n\n this.install(\"commons-io\", \"commons-io\", \"2.6\", Repository.CENTRAL);\n this.install(\"commons-logging\", \"commons-logging\", \"1.2\", Repository.CENTRAL);\n this.install(\"commons-lang\", \"commons-lang\", \"2.5\", Repository.CENTRAL);\n this.install(\"org.slf4j\", \"slf4j-api\", \"1.7.25\", Repository.CENTRAL);\n this.install(\"org.apache.logging.log4j\", \"log4j-api\", \"2.5\", Repository.CENTRAL);\n this.install(\"log4j\", \"log4j\", \"1.2.17\", Repository.CENTRAL);\n\n //NETWORK\n this.install(\"io.netty\", \"netty-all\", \"4.1.44.Final\", Repository.CENTRAL);\n this.install(\"javax.servlet\", \"servlet-api\", \"2.5\", Repository.CENTRAL);\n\n //Logging and Console\n this.install(\"jline\", \"jline\", \"2.14.6\", Repository.CENTRAL);\n this.install(\"org.jline\", \"jline-terminal-jna\", \"3.18.0\", Repository.CENTRAL);\n this.install(\"org.jline\", \"jline-terminal\", \"3.19.0\", Repository.CENTRAL);\n this.install(\"ch.qos.logback\", \"logback-classic\", \"1.2.3\", Repository.CENTRAL);\n this.install(\"ch.qos.logback\", \"logback-core\", \"1.2.3\", Repository.CENTRAL);\n\n //Database\n this.install(\"mysql\", \"mysql-connector-java\", \"8.0.11\", Repository.CENTRAL);\n this.install(\"org.mongodb\", \"bson\", \"4.2.0\", Repository.CENTRAL);\n this.install(\"org.mongodb\", \"mongodb-driver\", \"3.12.7\", Repository.CENTRAL);\n this.install(\"org.mongodb\", \"mongodb-driver-core\", \"3.12.7\", Repository.CENTRAL);\n this.install(\"org.mongodb\", \"mongo-java-driver\", \"3.12.7\", Repository.CENTRAL);\n //this.install(\"com.arangodb\", \"arangodb-java-driver\", \"6.9.1\", Repository.CENTRAL);\n\n //OTHER\n this.install(\"org.openjfx\", \"javafx-base\", \"11\", Repository.CENTRAL);\n this.install(\"org.projectlombok\", \"lombok\", \"1.18.16\", Repository.CENTRAL);\n this.install(\"com.google.code.gson\", \"gson\", \"2.8.5\", Repository.CENTRAL);\n this.install(\"com.google.guava\", \"guava\", \"25.1-jre\", Repository.CENTRAL);\n this.install(\"com.google.j2objc\", \"j2objc-annotations\", \"1.1\", Repository.CENTRAL);\n this.install(\"com.google.protobuf\", \"protobuf-java\", \"3.14.0\", Repository.CENTRAL);\n this.install(\"dnsjava\", \"dnsjava\", \"3.3.1\", Repository.CENTRAL);\n\n this.loaded = true;\n }",
"public void fulshLog() {\n\t\tif (logConfigurator!=null) {\n\t\t\tlogConfigurator.setImmediateFlush(true);\n\t\t\tlogConfigurator.setImmediateFlush(false);\n\t\t\tlogConfigurator.configure();\n\t\t}\n\t}",
"static void jhsdb() {\n\n }",
"void setupFileLogging();",
"public LogStepMonitorHandler ()\r\n {\r\n setFilter(new LogLevelsFilter(Level.INFO));\r\n }",
"public void lambda$connect$0$Installer() {\n IBinder binder = ServiceManager.getService(\"installd\");\n if (binder != null) {\n try {\n binder.linkToDeath(new IBinder.DeathRecipient() {\n /* class com.android.server.pm.Installer.AnonymousClass1 */\n\n @Override // android.os.IBinder.DeathRecipient\n public void binderDied() {\n Slog.w(Installer.TAG, \"installd died; reconnecting\");\n Installer.this.lambda$connect$0$Installer();\n }\n }, 0);\n } catch (RemoteException e) {\n binder = null;\n }\n }\n if (binder != null) {\n this.mInstalld = IInstalld.Stub.asInterface(binder);\n try {\n invalidateMounts();\n } catch (InstallerException e2) {\n }\n } else {\n Slog.w(TAG, \"installd not found; trying again\");\n BackgroundThread.getHandler().postDelayed(new Runnable() {\n /* class com.android.server.pm.$$Lambda$Installer$SebeftIfAJ7KsTmM0tju6PfW4Pc */\n\n @Override // java.lang.Runnable\n public final void run() {\n Installer.this.lambda$connect$0$Installer();\n }\n }, 1000);\n }\n }",
"private void initLogger() {\n\t\ttry {\n\t\t\tjava.util.logging.Logger rootLogger = java.util.logging.Logger.getLogger(\"\");\n\t\t\trootLogger.setUseParentHandlers(false);\n\t\t\tHandler csvFileHandler = new FileHandler(\"logger/log.csv\", 100000, 1, true);\n\t\t\tlogformater = new LogFormatter();\n\t\t\trootLogger.addHandler(csvFileHandler);\n\t\t\tcsvFileHandler.setFormatter(logformater);\n\t\t\tlogger.setLevel(Level.ALL);\n\t\t} catch (IOException ie) {\n\t\t\tSystem.out.println(\"Logger initialization failed\");\n\t\t\tie.printStackTrace();\n\t\t}\n\t}",
"private static void startup( String path )\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tStandardizerServerSettings.initializeSettings();\r\n\r\n\t\t\tStandardizerServerConfig.read( path );\r\n\r\n\t\t\tStandardizerServerLogger.initialize();\r\n\r\n\t\t\tStandardizerServerSessionImpl.initialize();\r\n\r\n\t\t\tStandardizerServerBootstrap bootstrap =\r\n\t\t\t\tnew StandardizerServerBootstrapImpl();\r\n\r\n\t\t\tRegistry registry =\r\n\t\t\t\tLocateRegistry.createRegistry\r\n\t\t\t\t(\r\n\t\t\t\t\tStandardizerServerConfig.getRmiRegistryPort()\r\n\t\t\t\t);\r\n\r\n\t\t\tregistry.rebind( \"SpellingStandardizer\" , bootstrap );\r\n\r\n\t\t\tSystem.out.println\r\n\t\t\t(\r\n\t\t\t\tStandardizerServerSettings.getString\r\n\t\t\t\t(\r\n\t\t\t\t\t\"Standardizerserverstarted\"\r\n\t\t\t\t)\r\n\t\t\t);\r\n\t\t}\r\n\t\tcatch ( Exception e )\r\n\t\t{\r\n\t\t\tSystem.out.println\r\n\t\t\t(\r\n\t\t\t\tStandardizerServerSettings.getString\r\n\t\t\t\t(\r\n\t\t\t\t\t\"Standardizerserverstartupfailure\"\r\n\t\t\t\t)\r\n\t\t\t);\r\n\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t\tSystem.exit( 1 );\r\n\t\t}\r\n\t}",
"public abstract void startup();",
"public static void main(String[] args) {\n // logger.info(\"Message\");\n // System.out.println(\"cdkdk\");\n\n }",
"@Override\n\tpublic void start() throws Exception {\n\t\t\n\t}",
"public void init() {\n log.info(\"initialization\");\n }",
"private void setup() throws Exception {\n\t}",
"@Activate\n protected void start(BundleContext bundleContext) throws Exception {\n log.info(\"Service Component is activated\");\n\n // Create Stream Processor Service\n EditorDataHolder.setDebugProcessorService(new DebugProcessorService());\n EditorDataHolder.setSiddhiManager(new SiddhiManager());\n EditorDataHolder.setBundleContext(bundleContext);\n\n serviceRegistration = bundleContext.registerService(EventStreamService.class.getName(),\n new DebuggerEventStreamService(), null);\n }",
"@Test\n public void test9MLog_Siebel_SingleRun() throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IOException, IllegalAccessException {\n String logPath_base = \"/home/xiaohe/workspace/DATA/FakeData4TestingPerf/Pub_fake.log\";\n// Common.testLog_multiTimes(logPath_base, 5, true); //eager eval\n\n// Common.testLog_multiTimes(logPath_base, 1, false); //lazy eval\n\n// String logPath_base = \"/home/xiaohe/workspace/DATA/ldccComplete_MonpolyStyle\";\n\n String[] args = new String[]{\"./test/count/insert.sig\", \"./test/count/insert.fl\", logPath_base};\n Main.main(args);\n\n }",
"private DbHandler()\n\t{\n\t\ttry\n\t\t{\n\t\t\t// Check if library exists\n\t\t\tClass.forName(DRIVER_CLASS);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tIO.dbOutF(\"Failed to load the SQLite JDBC Driver.\");\n\t\t}\n\t}",
"public static void main(String[] args) {\n Log4J.force();\n // HACK: make DOTranslatorUtility happy\n System.setProperty(\"fedoraServerHost\", \"localhost\");\n System.setProperty(\"fedoraServerPort\", \"80\");\n transformAllFromProperties(getTransformationProperties(args));\n }",
"public static void init()\n {\n debugger = new Debugger(\"log\");\n info = true;\n }",
"public static void main(String[] args) {\n\t\tLogger baseLogger = new ConsoleLogger(EnumSet.of(LogLevel.DEBUG));\n\t\t// Logger for more serious issues, indirectly called by baseLogger\n\t\tLogger secondaryLogger = new DatabaseLogger(EnumSet.of(LogLevel.WARNING, LogLevel.ERROR));\n\t\t// Logger for fatal errors, indirectly called by secondaryLogger\n\t\t// This is the end of the chain\n\t\tLogger fallbackLogger = new FileLogger(EnumSet.of(LogLevel.FATAL));\n\t\t// Configure the chain\n\t\tbaseLogger.setSuccessor(secondaryLogger);\n\t\tsecondaryLogger.setSuccessor(fallbackLogger);\n\t\t// The the chain\n\t\tbaseLogger.log(\"Loading resources\", LogLevel.INFO);\n\t\tbaseLogger.log(\"Missing laguages.xml\", LogLevel.DEBUG);\n\t\tbaseLogger.log(\"Missing styles.css\", LogLevel.WARNING);\n\t\tbaseLogger.log(\"Could not render page\", LogLevel.ERROR);\n\t\tbaseLogger.log(\"Unexpected exception occured\", LogLevel.FATAL);\n\t}",
"static void feladat4() {\n\t}",
"private static void _logInfo ()\n {\n System.err.println (\"Logging is enabled using \" + log.getClass ().getName ());\n }",
"void addFramework(FrameworkContext fw) {\n bundleHandler.addFramework(fw);\n synchronized (wrapMap) {\n if (debug == null) {\n debug = fw.debug;\n }\n framework.add(fw);\n }\n }",
"public static void main(String... args) {\n\n System.setProperty(\"file.encoding\", StandardCharsets.UTF_8.name());\n\n // Register the PID within the logback context\n String name = String.valueOf(ManagementFactory.getRuntimeMXBean().getName());\n if (name != null) {\n MDC.put(\"process_id\", name.split(\"@\")[0]);\n }\n\n try {\n if (args.length == 0) {\n displayHelp();\n return;\n }\n int argi = 0;\n while (argi < args.length) {\n String arg = args[argi++].intern();\n // Options that are not followed by additional parameters\n // come first.\n JDBCConfig jdbcConfig = new JDBCConfig();\n if (Objects.equals(arg, \"-h\") || Objects.equals(arg, \"-help\")) {\n displayHelp();\n somethingDone = true;\n } else if (Objects.equals(arg, \"-version\")) {\n displayVersion();\n somethingDone = true;\n } else if (Objects.equals(arg, \"-d\") || Objects.equals(arg, \"-debug\")) {\n if (debugLevel++ == 0) {\n LogDebugUtils.enableDebugLogging();\n displayVersion();\n }\n } else if (Objects.equals(arg, \"--forceRegister\")) {\n forceRegister = true;\n somethingDone = true;\n getService();\n } else if (Objects.equals(arg, \"-MO\") || Objects.equals(arg, \"-modules\")) {\n somethingDone = true;\n logModules();\n } else if (Objects.equals(arg, \"-V\") || Objects.equals(arg, \"-views\")) {\n somethingDone = true;\n Stream<ModelData> modelsStream =\n StreamSupport.stream(getService().getModels().spliterator(), false);\n if (modelId != null) {\n modelsStream = modelsStream\n .filter(model -> modelId.equals(model.getId()) || modelId.equals(model.getName()));\n }\n if (workspaceId != null) {\n modelsStream = modelsStream.filter(model -> {\n String modelWorkspaceId = model.getCurrentWorkspaceId();\n Workspace modelWorkspace = service.getWorkspace(modelWorkspaceId);\n if (modelWorkspace == null) {\n return false;\n }\n return workspaceId.equals(modelWorkspace.getId()) ||\n workspaceId.equals(modelWorkspace.getName());\n });\n }\n modelsStream = modelsStream.sorted(Comparator.comparing(ModelData::getCurrentWorkspaceId)\n .thenComparing(ModelData::getId));\n\n List<ModelData> models = modelsStream.collect(Collectors.toList());\n // If the current user is a visitor user, they may not get data about the used workspace/model so we'll\n // just try with the provided input\n if (models.isEmpty()) {\n Model model = getModel(workspaceId, modelId);\n if (model != null) {\n models = Collections.singletonList(model.getData());\n }\n }\n for (ModelData model : models) {\n logModuleViews(model);\n }\n } else if (Objects.equals(arg, \"-W\") || Objects.equals(arg, \"-workspaces\")) {\n somethingDone = true;\n Iterable<Workspace> workspaces = getService().getWorkspaces();\n String log = Utils.formatTSV(\"WS_ID\", \"WS_NAME\", \"WS_ALLOCATED_SIZE\", \"WS_SIZE\");\n LOG.info(log);\n for (Workspace workspace : workspaces) {\n log = Utils\n .formatTSV(workspace.getId(), workspace.getName(), workspace.getSizeAllowance(),\n workspace.getCurrentSize());\n LOG.info(log);\n }\n } else if (Objects.equals(arg, \"-M\") || Objects.equals(arg, \"-models\")) {\n somethingDone = true;\n Map<String, String> workspaceNames = StreamSupport\n .stream(getService().getWorkspaces().spliterator(), false)\n .collect(Collectors.toMap(Workspace::getId, Workspace::getName));\n Iterable<ModelData> models = getService().getModels();\n String log = Utils.formatTSV(\"WS_ID\", \"WS_NAME\", \"MODEL_ID\", \"MODEL_NAME\", \"MODEL_SIZE\");\n LOG.info(log);\n for (ModelData model : models) {\n String workspaceId = model.getCurrentWorkspaceId();\n String workspaceName = Optional.ofNullable(workspaceNames.get(workspaceId))\n .orElse(\"\");\n log = Utils.formatTSV(workspaceId, workspaceName, model.getId(), model.getName(),\n model.getMemoryUsage());\n LOG.info(log);\n }\n } else if (Objects.equals(arg, \"-F\") || Objects.equals(arg, \"-files\")) {\n somethingDone = true;\n Model model = getModel(workspaceId, modelId);\n if (model != null) {\n String log;\n for (ServerFile serverFile : model.getServerFiles()) {\n log = Utils.formatTSV(\n serverFile.getId(),\n serverFile.getCode(),\n serverFile.getName());\n LOG.info(log);\n }\n }\n } else if (Objects.equals(arg, \"-I\") || Objects.equals(arg, \"-imports\")) {\n somethingDone = true;\n Model model = getModel(workspaceId, modelId);\n if (model != null) {\n String log;\n for (Import serverImport : model.getImports()) {\n log = Utils.formatTSV(\n serverImport.getId(),\n serverImport.getCode(),\n serverImport.getName(),\n serverImport.getImportType(),\n serverImport.getSourceFileId());\n LOG.info(log);\n }\n }\n } else if (Objects.equals(arg, \"-A\") || Objects.equals(arg, \"-actions\")) {\n somethingDone = true;\n Model model = getModel(workspaceId, modelId);\n if (model != null) {\n String log;\n for (Action serverAction : model.getActions()) {\n log = Utils.formatTSV(\n serverAction.getId(),\n serverAction.getCode(),\n serverAction.getName());\n LOG.info(log);\n }\n }\n } else if (Objects.equals(arg, \"-E\") || Objects.equals(arg, \"-exports\")) {\n somethingDone = true;\n Model model = getModel(workspaceId, modelId);\n if (model != null) {\n String log;\n for (Export serverExport : model.getExports()) {\n log = Utils.formatTSV(\n serverExport.getId(),\n serverExport.getCode(),\n serverExport.getName());\n LOG.info(log);\n }\n }\n } else if (Objects.equals(arg, \"-P\") || Objects.equals(arg, \"-processes\")) {\n somethingDone = true;\n Model model = getModel(workspaceId, modelId);\n if (model != null) {\n String log;\n for (Process serverProcess : model.getProcesses()) {\n log = Utils.formatTSV(\n serverProcess.getId(),\n serverProcess.getCode(),\n serverProcess.getName());\n LOG.info(log);\n }\n }\n } else if (Objects.equals(arg, \"-L\") || \"-lists\".equals(arg)) {\n if (argi == args.length) {\n somethingDone = true;\n Service service = getService();\n Model model = getModel(workspaceId, modelId);\n if (service != null && model != null) {\n service\n .exportListNames(fileType, fileId, model.getCurrentWorkspaceId(), model.getId());\n }\n }\n } else if (Objects.equals(arg, \"-l\") || Objects.equals(arg, \"-list\")) {\n listId = args[argi++];\n if (argi >= args.length) {\n somethingDone = true;\n Service service = getService();\n Model model = getModel(workspaceId, modelId);\n if (service != null) {\n service.exportListMetadata(fileType, fileId, model.getCurrentWorkspaceId(),\n model.getId(), listId);\n }\n }\n } else if (Objects.equals(arg, GET_JSON) || Objects.equals(arg, \"-get:csv\") || Objects\n .equals(arg, \"-get:csv_sc\") ||\n Objects.equals(arg, \"-get:csv_mc\")) {\n boolean supportedListTypes = Objects.equals(arg, GET_JSON) || Objects\n .equals(arg, \"-get:csv\");\n boolean supportedModuleTypes =\n Objects.equals(arg, GET_JSON) || Objects.equals(arg, \"-get:csv_sc\") || Objects\n .equals(arg, \"-get:csv_mc\");\n fileType = arg.substring(\"-get:\".length());\n if (argi < args.length) {\n fileId = args[argi];\n }\n argi++;\n somethingDone = true;\n Model model = getModel(workspaceId, modelId);\n if (argi >= args.length - 1) {\n if (executeParamPresent && moduleId != null && supportedModuleTypes) {\n Module module = getModule(workspaceId, modelId, moduleId);\n if (module != null) {\n module\n .exportViewData(fileType, fileId, model.getCurrentWorkspaceId(), model.getId(),\n viewId, pagesSplit);\n }\n } else if (supportedListTypes) {\n Service service = getService();\n if (service != null) {\n if (executeParamPresent) {\n service.exportListItems(fileType, fileId, model.getCurrentWorkspaceId(),\n model.getId(), listId, includeAll);\n } else if (supportedListTypes) {\n if (listId == null) {\n service.exportListNames(fileType, fileId, model.getCurrentWorkspaceId(),\n model.getId());\n } else {\n service.exportListMetadata(fileType, fileId, model.getCurrentWorkspaceId(),\n model.getId(), listId);\n }\n }\n }\n }\n }\n } else if (Objects.equals(arg, \"-emd\")) {\n somethingDone = true;\n Export export = getExport(workspaceId, modelId, exportId);\n ExportMetadata emd = export.getExportMetadata();\n String delimiter = emd.getDelimiter();\n if (\"\\t\".equals(delimiter)) {\n delimiter = \"\\\\t\";\n }\n String exportName = export.getName();\n int columnCount = emd.getColumnCount();\n int rowCount = emd.getRowCount();\n String exportFormat = emd.getExportFormat();\n String encoding = emd.getEncoding();\n String separator = emd.getSeparator();\n LOG.info(\n \"Export: {}\\ncolumns: {}\\nrows: {}\\nformat: {}\\ndelimiter: {}\\nencoding: {}\\nseparator: {}\"\n , exportName, columnCount, rowCount, exportFormat, delimiter, encoding, separator);\n\n String[] headerNames = emd.getHeaderNames();\n DataType[] dataTypes = emd.getDataTypes();\n String[] listNames = emd.getListNames();\n\n String dataType;\n for (int i = 0; i < headerNames.length; i++) {\n dataType = dataTypes[i].toString();\n LOG.info(\" col {}:\\n name: {}\\n type: {}\\n list: {}\", i, headerNames[i], dataType, listNames[i]);\n }\n } else if (Objects.equals(arg, \"-x:all\") || Objects.equals(arg, \"-execute:all\")) {\n somethingDone = true;\n executeParamPresent = true;\n includeAll = true;\n } else if (Objects.equals(arg, \"-x\") || Objects.equals(arg, \"-execute\")) {\n executeParamPresent = true;\n TaskFactory taskFactory = null;\n if (importId != null) {\n somethingDone = true;\n taskFactory = getImport(workspaceId, modelId, importId);\n } else if (exportId != null) {\n somethingDone = true;\n taskFactory = getExport(workspaceId, modelId, exportId);\n } else if (actionId != null) {\n somethingDone = true;\n taskFactory = getAction(workspaceId, modelId, actionId);\n } else if (processId != null) {\n taskFactory = getProcess(workspaceId, modelId,\n processId);\n }\n if (taskFactory != null) {\n somethingDone = true;\n Task task = taskFactory.createTask(taskParameters);\n lastResult = task.runTask();\n } else if (listId != null) {\n // Performing list operations, like retrieving a list items\n } else if (moduleId != null) {\n // Performing module operations, like retrieving module view data\n } else {\n LOG.error(\"An import, export, action or \"\n + \"process must be specified before {}\", arg);\n }\n\n } else if (Objects.equals(arg, \"-gets\") || Objects.equals(arg, \"-getc\")) {\n somethingDone = true;\n String sourceId = null;\n if (fileId != null) {\n sourceId = fileId;\n } else if (exportId != null) {\n if (lastResult != null && lastResult.isSuccessful()) {\n sourceId = exportId;\n } else {\n LOG.error(\"Export failed - ignoring content\");\n }\n }\n if (null != sourceId) {\n ServerFile serverFile = getServerFile(workspaceId,\n modelId, sourceId, false);\n if (serverFile != null) {\n if (Objects.equals(arg, \"-gets\")) {\n InputStream inputStream = serverFile\n .getDownloadStream();\n byte[] buffer = new byte[4096];\n int read;\n String stringBuilder = \"\";\n do {\n if (0 < (read = inputStream.read(buffer))) {\n stringBuilder = stringBuilder.concat(new String(buffer));\n }\n } while (-1 != read);\n LOG.info(stringBuilder);\n inputStream.close();\n } else {\n CellReader cellReader = serverFile\n .getDownloadCellReader();\n String[] row = cellReader.getHeaderRow();\n do {\n StringBuilder line = new StringBuilder();\n for (int i = 0; i < row.length; ++i) {\n if (line.length() > 0) {\n line.append('\\t');\n }\n line.append(row[i]);\n }\n String log = line.toString();\n LOG.info(log);\n row = cellReader.readDataRow();\n } while (null != row);\n }\n }\n }\n\n } else if (Objects.equals(arg, \"-ch\") || Objects.equals(arg, \"-chunksize\")) {\n fetchChunkSize(args[argi++]);\n } else if (Objects.equals(arg, \"-pages\")) {\n String delim = \",\";\n String regex = \"(?<!\\\\\\\\)\" + Pattern.quote(delim);\n String pages = args[argi++];\n pagesSplit = pages.split(regex);\n } else if (Objects.equals(arg, \"-auth\") || Objects.equals(arg, \"-authserviceurl\")) {\n authServiceUrl = new URI(args[argi++]);\n } else if (Objects.equals(arg, \"-puts\") || Objects.equals(arg, \"-putc\")) {\n somethingDone = true;\n ServerFile serverFile = getServerFile(workspaceId, modelId,\n fileId, true);\n if (serverFile != null) {\n if (Objects.equals(arg, \"-puts\")) {\n OutputStream uploadStream = serverFile.getUploadStream(chunkSize);\n byte[] buf = new byte[4096];\n int read;\n do {\n if (0 < (read = System.in.read(buf))) {\n uploadStream.write(buf, 0, read);\n }\n } while (-1 != read);\n uploadStream.close();\n } else {\n CellWriter cellWriter = serverFile.getUploadCellWriter(chunkSize);\n LineNumberReader lnr = new LineNumberReader(new InputStreamReader(System.in));\n String line;\n while (null != (line = lnr.readLine())) {\n String[] row = line.split(\"\\\\t\");\n if (1 == lnr.getLineNumber()) {\n cellWriter.writeHeaderRow(row);\n } else {\n cellWriter.writeDataRow(row);\n }\n }\n cellWriter.close();\n }\n LOG.info(\"Upload to {} completed.\", fileId);\n }\n // Now check the additional parameter is present before\n // processing consuming options\n } else if (argi >= args.length) {\n break;\n } else if (Objects.equals(arg, \"-oauth-client-id\")) {\n authType = AUTH_TYPE.OAUTH;\n clientId = args[argi++];\n } else if (Objects.equals(arg, \"--rotatable\")) {\n refreshType = ROTATABLE;\n } else if (Objects.equals(arg, \"-s\") || Objects.equals(arg, \"-service\")) {\n serviceLocation = new URI(args[argi++]);\n } else if (Objects.equals(arg, \"-u\") || Objects.equals(arg, \"-user\")) {\n String auth = args[argi++];\n int colonPosition = auth.indexOf(':');\n if (colonPosition != -1) {\n setUsername(auth.substring(0, colonPosition));\n setPassphrase(auth.substring(colonPosition + 1));\n } else {\n setUsername(auth);\n setPassphrase(\"?\");\n }\n } else if (Objects.equals(arg, \"-v\") || Objects.equals(arg, \"-via\")) {\n URI uri = new URI(args[argi++]);\n setProxyLocation(\n new URI(uri.getScheme(), null, uri.getHost(), uri.getPort(), null, null, null));\n } else if (Objects.equals(arg, \"-vu\") || Objects.equals(arg, \"-viauser\")) {\n String auth = args[argi++];\n int colonPosition = auth.indexOf(':');\n if (colonPosition != -1) {\n setProxyUsername(auth.substring(0, colonPosition));\n setProxyPassphrase(auth.substring(colonPosition + 1));\n } else {\n setProxyUsername(auth);\n setProxyPassphrase(\"?\");\n }\n } else if (Objects.equals(arg, \"-mrc\") || Objects.equals(arg, \"-maxretrycount\")) {\n maxRetryCount = fetchMaxRetryCount(args[argi++]);\n } else if (Objects.equals(arg, \"-rt\") || Objects.equals(arg, \"-retrytimeout\")) {\n retryTimeout = fetchRetryTimeout(args[argi++]);\n } else if (Objects.equals(arg, \"-ct\") || Objects.equals(arg, \"-httptimeout\")) {\n httpConnectionTimeout = fetchHttpTimeout(args[argi++]);\n } else if (Objects.equals(arg, \"-c\") || Objects.equals(arg, \"-certificate\")) {\n String certificatePath = args[argi++];\n setCertificatePath(certificatePath);\n } else if (Objects.equals(arg, \"-pkey\") || Objects.equals(arg, \"-privatekey\")) {\n if (keyStorePath != null) {\n throw new IllegalArgumentException(\n \"expected either the privatekey or the keystore arguments\");\n }\n String auth = args[argi++];\n int colonPosition = auth.lastIndexOf(':');\n if (colonPosition != -1) {\n setPrivateKeyPath(auth.substring(0, colonPosition));\n setPassphrase(auth.substring(colonPosition + 1));\n } else {\n setUsername(auth);\n setPassphrase(\"?\");\n }\n } else if (Objects.equals(arg, \"-k\") || Objects.equals(arg, \"-keystore\")) {\n if (passphrase != null || privateKeyPath != null) {\n throw new IllegalArgumentException(\n \"expected either the privatekey or keystore arguments\");\n }\n String keyStorePath = args[argi++];\n setKeyStorePath(keyStorePath);\n } else if (Objects.equals(arg, \"-ka\") || Objects.equals(arg, \"-keystorealias\")) {\n String keyStoreAlias = args[argi++];\n setKeyStoreAlias(keyStoreAlias);\n } else if (Objects.equals(arg, \"-kp\") || Objects.equals(arg, \"-keystorepass\")) {\n String keyStorePassword = args[argi++];\n setKeyStorePassword(keyStorePassword);\n } else if (Objects.equals(arg, \"-w\") || Objects.equals(arg, \"-workspace\")) {\n workspaceId = args[argi++];\n } else if (Objects.equals(arg, \"-w_id\") || Objects.equals(arg, \"-workspace_id\")) {\n workspaceId = args[argi++];\n noValidateWorkspace = true;\n } else if (Objects.equals(arg, \"-m\") || Objects.equals(arg, \"-model\")) {\n modelId = args[argi++];\n } else if (Objects.equals(arg, \"-m_id\") || Objects.equals(arg, \"-model_id\")) {\n modelId = args[argi++];\n noValidateModel = true;\n } else if (Objects.equals(arg, \"-mo\") || Objects.equals(arg, \"-module\")) {\n moduleId = args[argi++];\n } else if (Objects.equals(arg, \"-vi\") || Objects.equals(arg, \"-view\")) {\n viewId = args[argi++];\n } else if (Objects.equals(arg, \"-f\") || Objects.equals(arg, \"-file\")) {\n fileId = args[argi++];\n } else if (Objects.equals(arg, \"-g\") || Objects.equals(arg, \"-get\")) {\n somethingDone = true;\n File targetFile = new File(args[argi++]);\n String sourceId;\n if (fileId != null) {\n sourceId = fileId;\n } else if (exportId != null) {\n if (lastResult != null && lastResult.isSuccessful()) {\n sourceId = exportId;\n } else {\n LOG.error(\"Export failed - ignoring content\");\n sourceId = null;\n }\n } else {\n sourceId = targetFile.getName();\n }\n if (sourceId != null) {\n ServerFile serverFile = getServerFile(workspaceId, modelId, sourceId, false);\n if (serverFile != null) {\n serverFile.downLoad(targetFile, true);\n LOG.info(\"The server file {} has been downloaded to {}\", sourceId,\n targetFile.getAbsolutePath());\n }\n }\n } else if (Objects.equals(arg, \"-putItems:json\") || Objects.equals(arg, \"-putItems:csv\")\n || Objects.equals(arg, \"-putItems:jdbc\") ||\n Objects.equals(arg, \"-upsertItems:jdbc\") || Objects.equals(arg, \"-upsertItems:json\") || Objects\n .equals(arg, \"-upsertItems:csv\")) {\n somethingDone = true;\n boolean upsert = arg.startsWith(\"-upsertItems:\");\n String type = arg.startsWith(\"-putItems\") ? arg.substring(\"-putItems:\".length()) :\n arg.substring(\"-upsertItems:\".length());\n final Path outputPath = getOutput(args, argi);\n String outputType = null;\n if (outputPath != null) {\n outputType = args[argi + 1].substring(OUTPUT.length());\n }\n ListItemResultData result = new ListItemResultData();\n result.setFailures(new ArrayList<>(0));\n ListImpl listImpl;\n final Path itemMapFile = (\"\".equals(itemPropertiesPath) || itemPropertiesPath == null) ?\n null : new File(itemPropertiesPath).toPath();\n if (\"jdbc\".equalsIgnoreCase(type)) {\n final Map<String, String> headerMap = getHeader(jdbcConfig, itemMapFile, args[argi++]);\n listImpl = new ListImpl(getService(), workspaceId, modelId, listId, true);\n result = JDBCUtils.doActionsItemsFromJDBC(jdbcConfig, listImpl, headerMap,\n ListImpl.ListAction.ADD, (itemPropertiesPath != null));\n } else {\n final File sourceFile = new File(args[argi++]);\n listImpl = new ListImpl(getService(), workspaceId, modelId, listId, false);\n\n result = listImpl.doActionToItems(sourceFile.toPath(), itemMapFile, FileType\n .valueOf(type.toUpperCase()), ListImpl.ListAction.ADD);\n }\n\n if (result != null) {\n LOG.info(\"{} items added to the list\", result.getAdded());\n manageItemLog(upsert, outputPath, outputType, result, listImpl);\n }\n if (outputPath != null) {\n String log = outputPath.toString();\n LOG.info(DUMP_FILE_WRITTEN, log);\n argi += 2;\n }\n\n } else if (Objects.equals(arg, \"-updateItems:json\") || Objects\n .equals(arg, \"-updateItems:csv\") ||\n Objects.equals(arg, \"-updateItems:jdbc\")) {\n somethingDone = true;\n String type = arg.substring(\"-updateItems:\".length());\n final Path outputPath = getOutput(args, argi);\n String outputType = null;\n if (outputPath != null) {\n outputType = args[argi + 1].substring(OUTPUT.length());\n }\n final ListImpl listImpl;\n ListItemResultData result = new ListItemResultData();\n result.setFailures(new ArrayList<>(0));\n final Path itemMapFile = (\"\".equals(itemPropertiesPath) || itemPropertiesPath == null)\n ? null : new File(itemPropertiesPath).toPath();\n if (\"jdbc\".equalsIgnoreCase(type)) {\n listImpl = new ListImpl(getService(), workspaceId, modelId, listId, true);\n final Map<String, String> headerMap = getHeader(jdbcConfig, itemMapFile, args[argi++]);\n result = JDBCUtils\n .doActionsItemsFromJDBC(jdbcConfig, listImpl, headerMap, ListAction.UPDATE,\n (itemPropertiesPath != null));\n } else {\n listImpl = new ListImpl(getService(), workspaceId, modelId, listId, false);\n final File sourceFile = new File(args[argi++]);\n\n result = listImpl\n .doActionToItems(sourceFile.toPath(), itemMapFile,\n FileType.valueOf(type.toUpperCase()), ListImpl.ListAction.UPDATE);\n }\n if (result != null) {\n String log = String.format(\"%d items updated in the list\", result.getUpdated());\n LOG.info(log);\n if (result.getIgnored() > 0) {\n int ignored = result.getIgnored();\n LOG.info(ITEMS_IGNORED, ignored);\n }\n }\n if (outputPath != null) {\n addLogItemToOutput(result, outputPath, outputType, listImpl.getContent());\n argi += 2;\n String log = outputPath.toString();\n LOG.info(DUMP_FILE_WRITTEN, log);\n }\n } else if (Objects.equals(arg, \"-deleteItems:json\") || Objects.equals(arg, \"-deleteItems:csv\") ||\n Objects.equals(arg, \"-deleteItems:jdbc\")) {\n somethingDone = true;\n String type = arg.substring(\"-deleteItems:\".length());\n final Path outputPath = getOutput(args, argi);\n String outputType = null;\n if (outputPath != null) {\n outputType = args[argi + 1].substring(OUTPUT.length());\n }\n final Path itemMapFile = (\"\".equals(itemPropertiesPath) || itemPropertiesPath == null) ?\n null : new File(itemPropertiesPath).toPath();\n ListItemResultData result = new ListItemResultData();\n result.setFailures(new ArrayList<>());\n if (\"jdbc\".equalsIgnoreCase(type)) {\n final Map<String, String> headerMap = getHeader(jdbcConfig, itemMapFile, args[argi++]);\n final ListImpl listImpl = new ListImpl(getService(), workspaceId, modelId, listId,\n true);\n result = JDBCUtils.doActionsItemsFromJDBC(jdbcConfig, listImpl, headerMap,\n ListImpl.ListAction.DELETE, (itemPropertiesPath != null));\n argi = handleDeleteLog(result, outputPath, outputType, listImpl.getContent(), argi);\n } else {\n final File sourceFile = new File(args[argi++]);\n final ListImpl listImpl = new ListImpl(getService(), workspaceId, modelId, listId, false);\n result = listImpl.doActionToItems(sourceFile.toPath(), itemMapFile, FileType\n .valueOf(type.toUpperCase()), ListImpl.ListAction.DELETE);\n argi = handleDeleteLog(result, outputPath, outputType, listImpl.getContent(), argi);\n }\n } else if (Objects.equals(arg, \"-p\") || Objects.equals(arg, \"-put\")) {\n somethingDone = true;\n File sourceFile = new File(args[argi++]);\n String destId = fileId == null ? sourceFile.getName() : fileId;\n ServerFile serverFile = getServerFile(workspaceId, modelId,\n destId, true);\n if (serverFile != null) {\n serverFile.upLoad(sourceFile, true, chunkSize);\n LOG.info(\"The file \\\"{}\\\" has been uploaded as {}.\", sourceFile, destId);\n }\n } else if (Objects.equals(arg, \"-i\") || Objects.equals(arg, \"-import\")) {\n importId = args[argi++];\n exportId = null;\n actionId = null;\n processId = null;\n } else if (Objects.equals(arg, \"-e\") || Objects.equals(arg, \"-export\")) {\n importId = null;\n exportId = args[argi++];\n actionId = null;\n processId = null;\n } else if (Objects.equals(arg, \"-a\") || Objects.equals(arg, \"-action\")) {\n importId = null;\n exportId = null;\n actionId = args[argi++];\n processId = null;\n } else if (Objects.equals(arg, \"-pr\") || Objects.equals(arg, \"-process\")) {\n importId = null;\n exportId = null;\n actionId = null;\n processId = args[argi++];\n } else if (Objects.equals(arg, \"-xl\") || Objects.equals(arg, \"-locale\")) {\n String[] localeName = args[argi++].split(\"_\");\n taskParameters.setLocale(localeName[0], localeName.length > 0 ? localeName[1] : null);\n } else if (Objects.equals(arg, \"-xc\") || Objects.equals(arg, \"-connectorproperty\")) {\n String[] propEntry = args[argi++].split(\":\", 2);\n if (propEntry.length != 2) {\n throw new IllegalArgumentException(\n \"expected \" + arg + \" [(<source>|<type>)/]property:(value|?)\");\n }\n\n String[] propKey = propEntry[0].split(\"/\", 2);\n String prompt = propEntry[0];\n if (propKey.length < 2) {\n prompt = \"Import source/\" + prompt;\n }\n String property = propKey[propKey.length - 1];\n String propValue = promptForValue(prompt, propEntry[1],\n property.toLowerCase().endsWith(\"password\"));\n if (propKey.length == 2) {\n taskParameters.addConnectorParameter(propKey[0],\n propKey[1], propValue);\n } else {\n taskParameters.addConnectorParameter(propKey[0],\n propValue);\n }\n } else if (Objects.equals(arg, \"-im\") || Objects.equals(arg, \"-itemmappingproperty\")) {\n itemPropertiesPath = Optional.ofNullable(args[argi++]).orElse(\"\");\n } else if (Objects.equals(arg, \"-xm\") || Objects.equals(arg, \"-mappingproperty\")) {\n String[] propEntry = args[argi++].split(\":\", 2);\n if (propEntry.length != 2) {\n throw new IllegalArgumentException(\"expected \" + arg\n + \" [(<import id>|<import name>)/]dimension\"\n + \":(value|?)\");\n }\n String[] propKey = propEntry[0].split(\"/\", 2);\n String propValue = promptForValue(propEntry[0],\n propEntry[1], false);\n if (propKey.length == 2) {\n taskParameters.addMappingParameter(propKey[0],\n propKey[1], propValue);\n } else {\n taskParameters.addMappingParameter(propKey[0],\n propValue);\n }\n } else if (Objects.equals(arg, \"-o\") || Objects.equals(arg, \"-output\")) {\n File outputFile = new File(args[argi++]);\n retrieveOutput(lastResult, outputFile);\n } else if (Objects.equals(arg, \"-loadclass\")) {\n argi++;\n //Removing the usage of loadclass parameter\n LOG.error(\n \"Warning : Loadclass parameter is deprecated starting in Anaplan Connect v1.4.4. Anaplan Connect will automatically load the right driver. This parameter will be removed in a future Anaplan Connect version.\");\n } else if (arg.equals(\"-jdbcproperties\")) {\n String propertiesFilePath = args[argi++];\n jdbcConfig = loadJdbcProperties(propertiesFilePath);\n if (fileId != null) {\n ServerFile serverFile = getServerFile(workspaceId, modelId,\n fileId, true);\n CellWriter cellWriter = null;\n CellReader cellReader = null;\n try {\n cellWriter = serverFile.getUploadCellWriter(chunkSize);\n cellReader = new JDBCCellReader(jdbcConfig)\n .connectAndExecute();\n String[] row = cellReader.getHeaderRow();\n cellWriter.writeHeaderRow(row);\n int rowCount = 0;\n do {\n if (null != (row = cellReader.readDataRow())) {\n cellWriter.writeDataRow(row);\n ++rowCount;\n }\n somethingDone = true; // TBD\n } while (null != row && row.length > 0);\n cellWriter.close();\n cellWriter = null;\n LOG.info(\"Transferred {} records to {}\", rowCount, fileId);\n } finally {\n if (cellReader != null) {\n cellReader.close();\n }\n if (cellWriter != null) {\n cellWriter.abort();\n }\n }\n } else if (exportId != null) {\n ServerFile serverFile = getServerFile(workspaceId, modelId,\n exportId, true);\n if (serverFile != null) {\n CellWriter cellWriter = null;\n somethingDone = true;\n Export export = getExport(workspaceId, modelId, exportId);\n if (export == null) {\n continue;\n }\n ExportMetadata emd = export.getExportMetadata();\n int columnCount = emd.getColumnCount();\n String separator = emd.getSeparator();\n //build map for metadata for exports\n HashMap<String, Integer> headerName = new HashMap<>();\n for (int i = 0; i < emd.getHeaderNames().length; i++) {\n headerName.put(emd.getHeaderNames()[i], i);\n }\n doTransfer(serverFile, jdbcConfig, cellWriter, headerName, separator, columnCount);\n }\n }\n } else {\n break;\n }\n }\n if (!somethingDone) {\n displayHelp();\n }\n closeDown();\n } catch (Exception thrown) {\n if (authType == AUTH_TYPE.OAUTH && thrown instanceof FeignException) {\n FeignException exception = (FeignException) thrown;\n if (exception.status() == 403) {\n LOG.error(\"The refresh token has expired. Please register again using -forceRegister parameter once.\", exception);\n } else {\n LOG.error(Utils.formatThrowable(thrown));\n }\n } else if (!(thrown instanceof InterruptedException)) {\n // Some brevity for those who don't\n LOG.error(Utils.formatThrowable(thrown));\n }\n // System.exit causes abrupt termination, but the status is useful\n // when run from an automated script.\n closeDown();\n Thread.currentThread().interrupt();\n System.exit(1);\n }\n }",
"public void start() {\n if (Log.isLoggingEnabled())\n log.log(\"Start deadlock detection protocol\");\n }",
"public static synchronized void bootstrap() {\n ImplementingClassResolver.clearCache();\n if (bootstrapedNeeded) {\n reflectionsModel.rescann(\"\");\n }\n bootstrapedNeeded = false;\n }",
"public static void main(String[] args) {\n Runner.class.getClassLoader().getResource(\"log4j.properties\");\n\n // Log in console\n logger.info(\"Log4j console appender configuration is successful !!\");\n\t\t\n\t\tint N = 5;\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tlogger.info(\"Choisir une valeur y/n >> \");\n\t\tString choice = sc.nextLine();\n\t\t\n\t\tif(choice.equals(\"y\")) {\n\t\t\tlogger.info(\"Entrez la valeur: \");\n\t\t\tN = sc.nextInt();\n\t\t}\n\n\t\tlogger.info(\"\\n\");\n\t\tfor(int i=1; i<=N; i++) {\n\t\t\tlogger.info(Fibonacci.fib(i));\n\t\t}\n\t}",
"private static void initLogger() {\n if (initialized) {\n return;\n }\n\n initialized = true;\n\n System.out.println(\"\");\n System.out.println(\"=> Begin System Logging Configuration\");\n URL fileUrl = null;\n String filePath = null;\n\n try {\n final Region region = EnvironmentConfiguration.getRegion();\n filePath = \"log4j-\" + region.getCode() + \".xml\";\n System.out.println(\"=> searching for log configuration file : \" + filePath);\n fileUrl = LogFactory.class.getResource(\"/\" + filePath);\n DOMConfigurator.configure(fileUrl);\n System.out.println(\"=> found log configuration file : \" + fileUrl);\n System.out.println(\"=> System Logging has been initialized\");\n }\n catch (final NoClassDefFoundError ncdf) {\n System.out.println(\"=> Logging Configuration Failed\");\n System.err.println(LogFactory.class.getName()\n + \"::loadProps() - Unable to find needed classes. Logging disabled. \" + ncdf);\n }\n catch (final Exception e) {\n System.out.println(\"=> Logging Configuration Failed\");\n System.err.println(\n LogFactory.class.getName() + \"::loadProps() - Unable to initialize logger from file=\"\n + filePath + \". Logging disabled.\");\n }\n System.out.println(\"=> End System Logging Configuration\");\n System.out.println(\"\");\n }",
"@Override\n\tpublic void start() {\n\t\tSystem.out.println(\"TESLA has been started\");\n\t}",
"private void startUp () {\n NativeMethodBroker.loadLibrary(false);\n try {\n start_up();\n } catch (UnsatisfiedLinkError e) {\n try {\n NativeMethodBroker.loadLibrary(true);\n NativeMethodBroker.traceln(AX_PROGRESS, \"There apparently were problems \" +\n \"in initially loading JavaContainer.dll. \" +\n \"It appears to be ok now. Error message \" +\n \"was \" + e.getMessage());\n start_up();\n } catch (UnsatisfiedLinkError e2) {\n NativeMethodBroker.traceln(AX_ERROR, fatalErrorMessage +\n \" Error message was: \" + e2.getMessage());\n // Really should exit here.\n // System.exit(-1);\n }\n }\n }",
"private void startLoggerService() {\n Intent intent = new Intent(this, GestureLoggerService.class);\n intent.putExtra(GestureLoggerService.EXTRA_START_SERVICE, true);\n\n startService(intent);\n }"
] | [
"0.6011383",
"0.5932845",
"0.5883612",
"0.5578339",
"0.53924865",
"0.53579015",
"0.53462154",
"0.52926785",
"0.5245893",
"0.5211601",
"0.51528853",
"0.5148134",
"0.51317096",
"0.5126036",
"0.5112048",
"0.5063703",
"0.50433064",
"0.50249547",
"0.50200635",
"0.5014578",
"0.49838102",
"0.49792215",
"0.4976573",
"0.4975579",
"0.49682367",
"0.49502844",
"0.4909613",
"0.4906177",
"0.49037233",
"0.48694137",
"0.48474208",
"0.48474208",
"0.4843467",
"0.48404697",
"0.48388276",
"0.482719",
"0.48150465",
"0.4803749",
"0.4789514",
"0.4784663",
"0.47720298",
"0.47550735",
"0.4752371",
"0.47501835",
"0.47476166",
"0.47419378",
"0.47314477",
"0.47296613",
"0.47149646",
"0.47121498",
"0.4708311",
"0.47056657",
"0.46978047",
"0.46974367",
"0.4696455",
"0.46931696",
"0.4691686",
"0.4690655",
"0.4680885",
"0.46527788",
"0.46510684",
"0.46363676",
"0.46363676",
"0.46363676",
"0.4632658",
"0.46236414",
"0.46187997",
"0.4596561",
"0.4592677",
"0.45884278",
"0.45787767",
"0.45740426",
"0.4566282",
"0.45655805",
"0.4550782",
"0.454073",
"0.45271802",
"0.45188",
"0.45154652",
"0.45150915",
"0.4503753",
"0.45006442",
"0.44996804",
"0.4498385",
"0.44983083",
"0.4497362",
"0.44969147",
"0.44946417",
"0.44915316",
"0.44864392",
"0.44713333",
"0.44678965",
"0.44659942",
"0.4464269",
"0.445963",
"0.4459221",
"0.44568345",
"0.4454413",
"0.44527152",
"0.44509214"
] | 0.65394366 | 0 |
Add SLF$J Bridge Handler to each logger declared in BRIDGED_JUL_LOGGERS_PARAM param. This prevents log events to reach ROOT logger, as we don't want to log to ConsoleHandler which is associated with ROOT logger by default. | protected static void addSLF4JHandlerToLoggers(ServletContext servletContext, Class<?> bridgeHandlerClass) {
String loggerList = servletContext.getInitParameter(BRIDGED_JUL_LOGGERS_PARAM);
Handler bridgHandler = getSLF4JBridgeHandler(bridgeHandlerClass);
if (loggerList != null) {
String[] loggerNames = loggerList.split(",");
for (String loggerName : loggerNames) {
Logger logger = Logger.getLogger(loggerName);
logger.addHandler(bridgHandler);
logger.setUseParentHandlers(false);
servletContext.log("SLF4JBridgeHandler added JUL logger '" + loggerName + "'");
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initJulLogger() {\n SLF4JBridgeHandler.removeHandlersForRootLogger();\n SLF4JBridgeHandler.install();\n }",
"public static void setupLoggers() {\n SLF4JBridgeHandler.removeHandlersForRootLogger();\n\n // add SLF4JBridgeHandler to j.u.l's root logger\n SLF4JBridgeHandler.install();\n }",
"protected static void configureJULtoSLF4J(ServletContext servletContext) {\n try {\n // Try to locate class and method using current classloader\n Class<?> clazz = Class.forName(\"org.slf4j.bridge.SLF4JBridgeHandler\", true,\n JULConfigurer.class.getClassLoader());\n Method installMethod = clazz.getDeclaredMethod(\"install\", (Class[]) null);\n\n // Check if JUL to SLF4J is already configured in current classloader\n if (isJULtoSLF4JAlreadyConfigured(clazz)) {\n return;\n }\n\n // Method is found, check if we must clean previous JUL handlers.\n Boolean removeConsoleHandler = Boolean.valueOf(servletContext.getInitParameter(REMOVE_JUL_CONSOLEHANDLER_PARAM));\n if (removeConsoleHandler == Boolean.TRUE) {\n removeJULConsoleHandler(servletContext);\n }\n\n installMethod.invoke(null, (Object[]) null);\n\n addSLF4JHandlerToLoggers(servletContext, clazz);\n servletContext.log(\"jul-to-slf4j successfully initialized\");\n } catch (ClassNotFoundException e) {\n servletContext.log(\"jul-to-slf4j is disabled : org.slf4j.bridge.SLF4JBridgeHandler not found in classpath\");\n } catch (NoSuchMethodException e) {\n servletContext.log(\"jul-to-slf4j is disabled : org.slf4j.bridge.SLF4JBridgeHandler.install() method not found. \"\n + \"Check your jul-to-slf4j version\");\n } catch (SecurityException e) {\n throw new RuntimeException(\"Unexpected error while trying to configure jul-to-slf4j\", e);\n } catch (IllegalArgumentException e) {\n throw new RuntimeException(\"Unexpected error while trying to configure jul-to-slf4j\", e);\n } catch (IllegalAccessException e) {\n throw new RuntimeException(\"Unexpected error while trying to configure jul-to-slf4j\", e);\n } catch (InvocationTargetException e) {\n throw new RuntimeException(\"Unexpected error while trying to configure jul-to-slf4j\", e);\n }\n }",
"private void postInitializeLogger( final Logger logger ) {\n final Handler customHandler = getCustomHandler( );\n final Filter customFilter = getCustomFilter( );\n if( ( customHandler == null)\n &&( customFilter == null ) ) {\n return;\n }\n java.security.AccessController.doPrivileged(\n new java.security.PrivilegedAction<Object>() {\n public Object run() {\n if( customHandler != null ) {\n logger.addHandler( customHandler );\n }\n if( customFilter != null ) {\n logger.setFilter( customFilter );\n }\n return null;\n }\n }\n );\n }",
"public void removeAllLogHandlers() {\n if ( _logger == null ) {\n return ;\n }\n Log.log(this, \"removeAllLogHandlers\");\n synchronized ( _logger ) {\n Handler[] handlers = _logger.getHandlers();\n for ( int i = 0; i < handlers.length; i++ ) {\n _logger.removeHandler( handlers[ i ] );\n }\n }\n }",
"private void internalInitializeLogger( final Logger logger ) {\n \n java.security.AccessController.doPrivileged(\n new java.security.PrivilegedAction<Object>() {\n public Object run() {\n // Explicitly remove all handlers.\n for (Handler h : logger.getHandlers()) {\n logger.removeHandler(h);\n }\n\n logger.setUseParentHandlers(false);\n for (Handler handler : handlers) {\n logger.addHandler(handler); \n }\n\n Level logLevel = getConfiguredLogLevel(logger.getName());\n if( logLevel != null ) {\n logger.setLevel( logLevel );\n }\n postInitializeLogger( logger );\n return null;\n }\n }\n );\n }",
"public Object run() {\n for (Handler h : logger.getHandlers()) {\n logger.removeHandler(h);\n }\n\n logger.setUseParentHandlers(false);\n for (Handler handler : handlers) {\n logger.addHandler(handler); \n }\n\n Level logLevel = getConfiguredLogLevel(logger.getName());\n if( logLevel != null ) {\n logger.setLevel( logLevel );\n }\n postInitializeLogger( logger );\n return null;\n }",
"private void addHandlers(final Bootstrap b, final Map<String, ChannelHandler> channelHandlers) {\n b.handler(new ChannelInitializer<Channel>() {\n @Override\n protected void initChannel(final Channel ch) throws Exception {\n for (Map.Entry<String, ChannelHandler> entry : channelHandlers.entrySet()) {\n ch.pipeline().addLast(entry.getKey(), entry.getValue());\n }\n }\n });\n }",
"private void setupLogging() {\n\t\t// Ensure all JDK log messages are deferred until a target is registered\n\t\tLogger rootLogger = Logger.getLogger(\"\");\n\t\tHandlerUtils.wrapWithDeferredLogHandler(rootLogger, Level.SEVERE);\n\n\t\t// Set a suitable priority level on Spring Framework log messages\n\t\tLogger sfwLogger = Logger.getLogger(\"org.springframework\");\n\t\tsfwLogger.setLevel(Level.WARNING);\n\n\t\t// Set a suitable priority level on Roo log messages\n\t\t// (see ROO-539 and HandlerUtils.getLogger(Class))\n\t\tLogger rooLogger = Logger.getLogger(\"org.springframework.shell\");\n\t\trooLogger.setLevel(Level.FINE);\n\t}",
"private void initLogger(BundleContext bc) {\n\t\tBasicConfigurator.configure();\r\n\t\tlogger = Logger.getLogger(Activator.class);\r\n\t\tLogger.getLogger(\"org.directwebremoting\").setLevel(Level.WARN);\r\n\t}",
"protected static void removeJULConsoleHandler(ServletContext servletContext) {\n Logger rootLogger = LogManager.getLogManager().getLogger(\"\");\n Handler[] handlers = rootLogger.getHandlers();\n if (handlers != null) {\n for (Handler handler : handlers) {\n if (handler instanceof ConsoleHandler) {\n servletContext.log(\"Removing java.util.logging.ConsoleHandler to avoid System.err output\");\n rootLogger.removeHandler(handler);\n }\n }\n }\n }",
"void addLogger(BotLogger logger);",
"private static void normal(List<Logger> loggers)\n {\n for ( Logger logger : loggers ) {\n logger.setLevel(Level.INFO);\n }\n }",
"public LogHandler createDefaultLogHandler() {\r\n return new JavaLoggingHandler();\r\n }",
"@Override\n\tpublic void update() {\n\t\tFile logFile = new File(AppStorage.getInstance().getLogFileLocation());\n\t\tlogFile.getParentFile().mkdirs();\n\n\t\ttry {\n\t\t\tFileHandler fileHandler = new FileHandler(AppStorage.getInstance().getLogFileLocation(), true);\n\t\t\tSimpleFormatter formatter = new SimpleFormatter();\n\t\t\tfileHandler.setFormatter(formatter);\n\n\t\t\twhile (logger.getHandlers().length > 0) {\n\t\t\t\tFileHandler prevFileHandler = (FileHandler)logger.getHandlers()[0];\n\t\t\t\tlogger.removeHandler(prevFileHandler);\n\t\t\t\tprevFileHandler.close();\n\t\t\t}\n\n\t\t\tlogger.addHandler(fileHandler);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void addLogHandler( Handler h ) {\n if ( h == null ) {\n return ;\n }\n Log.log(this, \"addLogHandler, handler is a \" + h.getClass().getName());\n if ( _logger == null ) {\n _logger = LoggerFactory.getInstance().createLogger();\n }\n h.setLevel( Level.ALL );\n _logger.addHandler( h );\n }",
"private JavaUtilLogHandlers() { }",
"protected void addLogHandler(Handler handler) {\n LOG.addHandler(handler);\n }",
"protected static boolean isJULtoSLF4JAlreadyConfigured(Class<?> bridgeHandlerClass) {\n return getSLF4JBridgeHandler(bridgeHandlerClass) != null;\n }",
"private void addFileHandler(Logger logger) {\n try {\n fileHandler = new FileHandler(LoggerExample.class.getName() + \".log\");\n } catch (IOException ex) {\n logger.log(Level.SEVERE, null, ex);\n } catch (SecurityException ex) {\n logger.log(Level.SEVERE, null, ex);\n }\n logger.addHandler(fileHandler);\n }",
"private void callHandlerAddedForAllHandlers() {\n /*\n r2 = this;\n monitor-enter(r2)\n r0 = 1\n r2.registered = r0 // Catch:{ all -> 0x0015 }\n io.netty.channel.DefaultChannelPipeline$PendingHandlerCallback r0 = r2.pendingHandlerCallbackHead // Catch:{ all -> 0x0015 }\n r1 = 0\n r2.pendingHandlerCallbackHead = r1 // Catch:{ all -> 0x0015 }\n monitor-exit(r2) // Catch:{ all -> 0x0015 }\n L_0x000a:\n if (r0 == 0) goto L_0x0012\n r0.execute()\n io.netty.channel.DefaultChannelPipeline$PendingHandlerCallback r0 = r0.next\n goto L_0x000a\n L_0x0012:\n return\n L_0x0013:\n monitor-exit(r2) // Catch:{ all -> 0x0015 }\n throw r0\n L_0x0015:\n r0 = move-exception\n goto L_0x0013\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p043io.netty.channel.DefaultChannelPipeline.callHandlerAddedForAllHandlers():void\");\n }",
"public MultiLogger(Logger... loggers) {\r\n if (loggers == null) {\r\n this.loggers = new ArrayList<Logger>(0);\r\n this.defLoggers = new ArrayList<DefaultLogger>(0);\r\n \r\n } else {\r\n this.loggers = new ArrayList<Logger>();\r\n this.defLoggers = new ArrayList<DefaultLogger>();\r\n for (int i = 0; i < loggers.length; i++) {\r\n if (loggers[i] instanceof DefaultLogger) {\r\n this.defLoggers.add((DefaultLogger) loggers[i]);\r\n \r\n } else {\r\n this.loggers.add(loggers[i]);\r\n }\r\n }\r\n }\r\n }",
"private void initLoggers()\n {\n Logger.getSharedInstance();\n\n for (Logger logger : Logger.getAllLoggers())\n {\n String key = \"Loggers/\" + logger.getNamespace();\n Level desired;\n\n if (!SmartDashboard.containsKey(key))\n {\n // First time this logger has been sent to SmartDashboard\n SmartDashboard.putString(key, logger.getLogLevel().name());\n desired = Level.DEBUG;\n }\n else\n {\n String choice = SmartDashboard.getString(key, \"DEBUG\");\n Level parsed = Level.valueOf(choice);\n if (parsed == null)\n {\n m_logger.error(\"The choice '\" + choice + \"' for logger \" + logger.getNamespace() + \" isn't a valid value.\");\n desired = Level.DEBUG;\n }\n else\n {\n desired = parsed;\n }\n }\n logger.setLogLevel(desired);\n }\n }",
"private void AddHandlersProcessing()\n {\n \n for(MessageHandler handler : actorData.MessageHandlers())\n {\n Location handlerProc_h = new Location(String.format(\"handlerProc_%s\", actorData.MessageHandlerName(handler)));\n handlerProc_h.AddFlow(new Flow(actorData.GetUrgentFlow()));\n handlerProc_h.AddInvarient(actorData.GetUrgentInvarient());\n comp.AddTransition(new HybridTransitionBuilder().\n SetOrigin(idleLoc).\n SetDestination(handlerProc_h).\n SetSynclabel(actorData.ExecuteLabelFor(handler)).\n // AddAssignment(actorData.SetBusyAssignment()).\n Build());\n \n CreateHandler(handler, comp, handlerProc_h);\n }\n }",
"public static void initialize(){\n Logger logger = Logger.getLogger(\"\");\n\n //from: http://stackoverflow.com/questions/6029454/disabling-awt-swing-debug-fine-log-messages\n Logger.getLogger(\"java.awt\").setLevel(Level.OFF);\n Logger.getLogger(\"sun.awt\").setLevel(Level.OFF);\n Logger.getLogger(\"sun.lwawt\").setLevel(Level.OFF);\n Logger.getLogger(\"javax.swing\").setLevel(Level.OFF);\n\n if (uiLoggerFormatter==null){\n uiLoggerFormatter = new SimpleFormatter();\n }\n\n if (consoleLoggerFormatter==null){\n consoleLoggerFormatter = new SimpleFormatter();\n }\n Handler[] handlers = logger.getHandlers();\n // suppress the logging output to the console\n if (!enableConsoleLogger){\n if (handlers[0] instanceof ConsoleHandler) {\n logger.removeHandler(handlers[0]);\n }\n }\n else{\n if (handlers[0] instanceof ConsoleHandler) {\n handlers[0].setFormatter(consoleLoggerFormatter);\n }\n }\n\n setLevel(lvl);\n\n if(fileHandler!=null){\n if (fileLoggerFormatter==null){\n fileLoggerFormatter = new SimpleFormatter();\n }\n fileHandler.setFormatter(fileLoggerFormatter);\n logger.addHandler(fileHandler);\n }\n\n if(enableUILogger){\n txtAreaHandler = new EZUIHandler(uiLoggerSizeLimit);\n txtAreaHandler.setFormatter(uiLoggerFormatter);\n logger.addHandler(txtAreaHandler);\n }\n \n initialized = true;\n }",
"public LogStepMonitorHandler ()\r\n {\r\n setFilter(new LogLevelsFilter(Level.INFO));\r\n }",
"protected GwtLogHandler getLogHandler() {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic void attachHandlers() {\n\r\n\t}",
"private void onUserJoined(long uid, String recordingDir) {\r\n\t\tfor (RecordingEventHandler oberserver : recordingEventHandlers) {\r\n\t\t\toberserver.onUserJoined(uid, recordingDir);\r\n\t\t}\r\n\t}",
"Map<String, Logger> loggers();",
"public void logDebug()\n\t{\n\t\tLogHandler handlerList[];\n\t\tLogHandler handler = null;\n\n\t\tSystem.out.println(\"Logger = \"+logger);\n\t\tSystem.out.println(\"Logger log level is: \"+logger.getLogLevel());\n\t\tSystem.out.println(\"Logger log filter is: \"+logger.getFilter());\n\t\thandlerList = logger.getHandlers();\n\t\tfor(int i = 0; i < handlerList.length; i++)\n\t\t{\n\t\t\thandler = handlerList[i];\n\t\t\tSystem.out.println(\"Logger handler \"+i+\" is:\"+handler+\" and called \"+handler.getName());\n\t\t\tSystem.out.println(\"Logger handler \"+i+\" has filter:\"+handler.getFilter());\n\t\t\tSystem.out.println(\"Logger handler \"+i+\" has log level:\"+handler.getLogLevel());\n\t\t}\n\t}",
"private static void setupLogger() {\n\t\tLogManager.getLogManager().reset();\n\t\t// set the level of logging.\n\t\tlogger.setLevel(Level.ALL);\n\t\t// Create a new Handler for console.\n\t\tConsoleHandler consHandler = new ConsoleHandler();\n\t\tconsHandler.setLevel(Level.SEVERE);\n\t\tlogger.addHandler(consHandler);\n\n\t\ttry {\n\t\t\t// Create a new Handler for file.\n\t\t\tFileHandler fHandler = new FileHandler(\"HQlogger.log\");\n\t\t\tfHandler.setFormatter(new SimpleFormatter());\n\t\t\t// set level of logging\n\t\t\tfHandler.setLevel(Level.FINEST);\n\t\t\tlogger.addHandler(fHandler);\n\t\t}catch(IOException e) {\n\t\t\tlogger.log(Level.SEVERE, \"File logger not working! \", e);\n\t\t}\n\t}",
"protected static void addPipelineToAll(HALPipeline pipeline) {\n for (String cameraId : trackerAPIMap.keySet()) addPipeline(cameraId, pipeline);\n }",
"protected void addHandlersBeforeSockJSHandler(Router router) {\n }",
"public void setupLoggingEndpoint() {\n HttpHandler handler = (httpExchange) -> {\n httpExchange.getResponseHeaders().add(\"Content-Type\", \"text/html; charset=UTF-8\");\n httpExchange.sendResponseHeaders(200, serverLogsArray.toJSONString().length());\n OutputStream out = httpExchange.getResponseBody();\n out.write(serverLogsArray.toJSONString().getBytes());\n out.close();\n };\n this.endpointMap.put(this.loggingApiEndpoint, this.server.createContext(this.loggingApiEndpoint));\n this.setHandler(this.getLoggingApiEndpoint(), handler);\n System.out.println(\"Set handler for logging\");\n this.endpointVisitFrequency.put(this.getLoggingApiEndpoint(), 0);\n }",
"private void initLogger() {\n\t\ttry {\n\t\t\tjava.util.logging.Logger rootLogger = java.util.logging.Logger.getLogger(\"\");\n\t\t\trootLogger.setUseParentHandlers(false);\n\t\t\tHandler csvFileHandler = new FileHandler(\"logger/log.csv\", 100000, 1, true);\n\t\t\tlogformater = new LogFormatter();\n\t\t\trootLogger.addHandler(csvFileHandler);\n\t\t\tcsvFileHandler.setFormatter(logformater);\n\t\t\tlogger.setLevel(Level.ALL);\n\t\t} catch (IOException ie) {\n\t\t\tSystem.out.println(\"Logger initialization failed\");\n\t\t\tie.printStackTrace();\n\t\t}\n\t}",
"private Logger configureLogging() {\r\n\t Logger rootLogger = Logger.getLogger(\"\");\r\n\t rootLogger.setLevel(Level.FINEST);\r\n\r\n\t // By default there is one handler: the console\r\n\t Handler[] defaultHandlers = Logger.getLogger(\"\").getHandlers();\r\n\t defaultHandlers[0].setLevel(Level.CONFIG);\r\n\r\n\t // Add our logger\r\n\t Logger ourLogger = Logger.getLogger(serviceLocator.getAPP_NAME());\r\n\t ourLogger.setLevel(Level.FINEST);\r\n\t \r\n\t // Add a file handler, putting the rotating files in the tmp directory \r\n\t // \"%u\" a unique number to resolve conflicts, \"%g\" the generation number to distinguish rotated logs \r\n\t try {\r\n\t Handler logHandler = new FileHandler(\"/%h\"+serviceLocator.getAPP_NAME() + \"_%u\" + \"_%g\" + \".log\",\r\n\t 1000000, 3);\r\n\t logHandler.setLevel(Level.FINEST);\r\n\t ourLogger.addHandler(logHandler);\r\n\t logHandler.setFormatter(new Formatter() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic String format(LogRecord record) {\r\n\t\t\t\t\t\tString result=\"\";\r\n\t\t\t\t\t\tif(record.getLevel().intValue() >= Level.WARNING.intValue()){\r\n\t\t\t\t\t\t\tresult += \"ATTENTION!: \";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd-MMM-yyyy HH:mm:ss\");\r\n\t\t\t\t\t\tDate d = new Date(record.getMillis());\r\n\t\t\t\t\t\tresult += df.format(d)+\" \";\r\n\t\t\t\t\t\tresult += \"[\"+record.getLevel()+\"] \";\r\n\t\t\t\t\t\tresult += this.formatMessage(record);\r\n\t\t\t\t\t\tresult += \"\\r\\n\";\r\n\t\t\t\t\t\treturn result;\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t } catch (Exception e) { // If we are unable to create log files\r\n\t throw new RuntimeException(\"Unable to initialize log files: \"\r\n\t + e.toString());\r\n\t }\r\n\r\n\t return ourLogger;\r\n\t }",
"public void configLogger() {\n Logger.addLogAdapter(new AndroidLogAdapter());\n }",
"public void setAlgorithmLogger(LoggingHandler logger) {\n\t\talgorithm.setLogger(logger);\n\t}",
"@Override\n public void addHandlerListener(IHandlerListener handlerListener) {\n\n }",
"void setChildren(MergeHandler[] children);",
"protected synchronized void initializeLogger(Logger logger) {\n\n if( config==null) {\n _unInitializedLoggers.add( logger );\n } else {\n internalInitializeLogger( logger ); \n }\n }",
"public void logObject(Object obj) {\n\t\tfor(LoggerInterface logger: loggers) {\n\t\t\tlogger.logObject(obj);\n\t\t}\t\t\t\n\t}",
"private native void initialiseLoggerReference(Logger logger);",
"private native void initialiseLoggerReference(Logger logger);",
"public void bind(ItemHandler handler) {\n if (handler.getOption().equals(Option.ALL)) {\n for (Map.Entry<Option, List<ItemHandler>> entry : handlerLists.entrySet()) {\n entry.getValue().add(handler);\n }\n } else {\n List<ItemHandler> list = handlerLists.get(handler.getOption());\n list.add(handler);\n }\n }",
"private void addHandlers()\n {\n handlers.add(new FileHTTPRequestHandler());\n }",
"@Override\n\tpublic void addHandlerListener(IHandlerListener handlerListener) {\n\n\t}",
"public void addNotificationHandler(String serviceName, NotificationHandler handler);",
"public interface JLogger extends Logger {\n boolean isLoggable(@NotNull LogLevel level);\n\n boolean isLoggable(@NotNull LogLevel level, @NotNull Marker marker);\n\n boolean isLoggable(@NotNull LogLevel level, @NotNull Throwable throwable);\n\n /**\n * If isLoggable, log at the {@code msg} at {@code level}\n *\n * @param level log level to use\n * @param msg log msg which is unaltered\n */\n void log(@NotNull LogLevel level, @NotNull String msg);\n\n /**\n * If isLoggable, log at the {@code msg} at {@code level} using the {@code marker}\n *\n * @param level log level to use\n * @param marker marker to include\n * @param msg log msg which is unaltered\n */\n void log(@NotNull LogLevel level, @NotNull Marker marker, @NotNull String msg);\n\n /**\n * If isLoggable, log at the {@code msg} at {@code level} with the given {@code throwable}\n *\n * @param level log level to use\n * @param throwable throwable to include\n * @param msg log msg which is unaltered\n */\n void log(@NotNull LogLevel level, @NotNull Throwable throwable, @NotNull String msg);\n\n /**\n * If isLoggable, log at the {@code msg} at {@code level} using the {@code marker} and\n * {@code throwable}\n *\n * @param level log level to use\n * @param marker marker to include\n * @param throwable throwable to include\n * @param msg log msg which is unaltered\n */\n void log(@NotNull LogLevel level,\n @NotNull Marker marker,\n @NotNull Throwable throwable,\n @NotNull String msg);\n\n /**\n * If isLoggable, log at the {@code msg} at {@code level} using the {@code marker}\n *\n * @param level log level to use\n * @param marker marker to include\n * @param format a format string in the form required by {@link Formatter}\n * @param formatArgs arguments passed to {@link Formatter#format(String, Object...)}\n */\n void log(@NotNull LogLevel level,\n @NotNull Marker marker,\n @NotNull String format,\n @NotNull Object... formatArgs);\n\n /**\n * If isLoggable, log at the {@code msg} at {@code level} using the {@code throwable}\n *\n * @param level log level to use\n * @param throwable throwable to include\n * @param format a format string in the form required by {@link Formatter}\n * @param formatArgs arguments passed to {@link Formatter#format(String, Object...)}\n */\n void log(@NotNull LogLevel level,\n @NotNull Throwable throwable,\n @NotNull String format,\n @NotNull Object... formatArgs);\n\n /**\n * If isLoggable, log at the {@code msg} at {@code level} using the {@code marker} and\n * {@code throwable}\n *\n * @param level log level to use\n * @param marker marker to include\n * @param throwable throwable to include\n * @param format a format string in the form required by {@link Formatter}\n * @param formatArgs arguments passed to {@link Formatter#format(String, Object...)}\n */\n void log(@NotNull LogLevel level,\n @NotNull Marker marker,\n @NotNull Throwable throwable,\n @NotNull String format,\n @NotNull Object... formatArgs);\n\n void log(@NotNull LogLevel level, @NotNull String format, @NotNull Object arg1);\n\n void log(@NotNull LogLevel level,\n @NotNull String format,\n @NotNull Object arg1,\n @NotNull Object arg2);\n\n void log(@NotNull LogLevel level,\n @NotNull String format,\n @NotNull Object arg1,\n @NotNull Object arg2,\n @NotNull Object arg3);\n\n void log(@NotNull LogLevel level,\n @NotNull String format,\n @NotNull Object arg1,\n @NotNull Object arg2,\n @NotNull Object arg3,\n @NotNull Object arg4);\n\n void log(@NotNull LogLevel level,\n @NotNull String format,\n @NotNull Object arg1,\n @NotNull Object arg2,\n @NotNull Object arg3,\n @NotNull Object arg4,\n @NotNull Object... remaining);\n\n /**\n * Log the result of the supplier, ie supplier.get().toString()\n * @param level level at which to log\n * @param supplier supplies the object whose toString() method will be invoked and logged\n */\n void log(@NotNull LogLevel level, @NotNull Supplier<?> supplier);\n\n /**\n * Log the result of the supplier and use the Marker to see if it is loggable\n *\n * @param level level at which to log\n * @param marker used to test if loggable\n * @param supplier supplies the object whose toString() method will be invoked and logged\n */\n void log(@NotNull LogLevel level, @NotNull Marker marker, @NotNull Supplier<?> supplier);\n\n /**\n * Log the result of the supplier and use the Throwable to see if it is loggable\n *\n * @param level level at which to log\n * @param throwable used to test if loggable\n * @param supplier supplies the object whose toString() method will be invoked and logged\n */\n void log(@NotNull LogLevel level,\n @NotNull Throwable throwable,\n @NotNull Supplier<?> supplier);\n\n /**\n * Log the result of the supplier and use the Marker and Throwable to see if it is loggable\n *\n * @param level level at which to log\n * @param marker used to test if loggable\n * @param throwable used to test if loggable\n * @param supplier supplies the object whose toString() method will be invoked and logged\n */\n void log(@NotNull LogLevel level,\n @NotNull Marker marker,\n @NotNull Throwable throwable,\n @NotNull Supplier<?> supplier);\n\n /**\n * Used to log an exception being caught where no message is needed. Logs:\n * \"Caught: [throwable.getClass().toString()]\"\n *\n * @param level log level to use\n * @param throwable the throwable that was caught\n */\n void caught(@NotNull LogLevel level, @NotNull Throwable throwable);\n\n /**\n * Log a throwable being thrown at the log site. Logs:\n * \"Throwing: [throwable.getClass().toString()]\n * <p><p>\n * <p>\n * {@code\n * throw LOG.throwing(LogLevel.ERROR, new MyException(\"Important Info\"));\n * }\n *\n * @param level level at which to log\n * @param throwable the Throwable to log\n *\n * @return returns the throwable for convenience\n */\n @NotNull\n <T extends Throwable> T throwing(@NotNull LogLevel level, @NotNull T throwable);\n\n}",
"public LoggerProxy(org.jboss.logging.Logger logger)\n/* */ {\n/* 23 */ this.logger = logger;\n/* */ }",
"@PostMapping(path = \"/audit-log-destinations/slf4j\")\n public VoidResponse addSLF4JAuditLogDestination(@PathVariable String userId,\n @PathVariable String serverName,\n @RequestBody List<String> supportedSeverities)\n {\n return adminAPI.addSLF4JAuditLogDestination(userId, serverName, supportedSeverities);\n }",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic static List<LoggerProxy> getLoggers(boolean incImplicit) {\r\n\t\tEnumeration<Logger> loggersEnum = (Enumeration<Logger>)LogManager.getCurrentLoggers();\r\n\t\t\r\n\t\t// Convert enum to a list\r\n\t\tList<Logger> loggers = incImplicit ? Collections.list(loggersEnum) : getExplicitLoggersFromEnum(loggersEnum);\r\n\t\t\r\n\t\t// Sort list by logger name\r\n\t\tCollections.sort(loggers, new Comparator<Logger>() {\r\n\t\t\tpublic int compare(Logger log1, Logger log2) {\r\n\t\t\t\treturn log1.getName().compareTo(log2.getName());\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t// Convert to proxy objects\r\n\t\tList<LoggerProxy> proxies = new ArrayList<LoggerProxy>();\r\n\t\tfor (Logger logger : loggers)\r\n\t\t\tproxies.add(new LoggerProxy(logger));\r\n\t\t\r\n\t\treturn proxies;\r\n\t}",
"void removeLogger(BotLogger logger);",
"public void log(String message) {\n\t\tfor(LoggerInterface logger: loggers) {\n\t\t\tlogger.log(message);\n\t\t}\n\t}",
"private static void closeNestedAppenders(final Logger logger) {\r\n Enumeration enumeration = logger.getAllAppenders();\r\n if (enumeration != null) {\r\n while (enumeration.hasMoreElements()) {\r\n Appender a = (Appender) enumeration.nextElement();\r\n\r\n// bug here :\r\n// if (a instanceof AppenderAttachable) {\r\n\r\n // TODO : remove log\r\n if (LOGGING_DIAGNOSTICS && SystemLogUtil.isWarnEnabled()) {\r\n SystemLogUtil.warn(\"closeNestedAppenders : closing : \" + a);\r\n }\r\n a.close();\r\n\r\n// }\r\n }\r\n }\r\n }",
"protected void changeLogger(org.jboss.logging.Logger theLogger)\n/* */ {\n/* 187 */ this.logger = theLogger;\n/* */ }",
"public static void setSingleLineLoggingFormat() {\n Logger rootLogger = Logger.getLogger(\"\");\n for (Handler handler : rootLogger.getHandlers()) {\n handler.setFormatter(new SingleLineFormater());\n }\n }",
"@Override\n public void registerLogitowEvents() {\n //Registering the mod side bridge event.\n MinecraftForge.EVENT_BUS.register(LogitowBridgeClientEventHandler.class);\n MinecraftForge.EVENT_BUS.register(LogitowEventForwarder.class);\n MinecraftForge.EVENT_BUS.register(ClientProxy.class);\n }",
"@Override\n public void loadRequestHandlers(List<String> list) {\n\n this.requestHandlers.add(\n new SoletDispatcher(\n this.workingDir,\n new ApplicationLoadingServiceImpl(\n new EmbeddedApplicationScanningService(configService, workingDir),\n this.configService,\n this.workingDir + configService.getConfigParam(ConfigConstants.ASSETS_DIR_NAME, String.class)\n ),\n this.configService\n ));\n\n this.requestHandlers.add(new ResourceHandler(workingDir, s -> Collections.singletonList(\"\"), this.configService));\n }",
"private void closeLogHandler() {\n\t\tif (logHandler != null) {\n\t\t\tlogger.removeHandler(logHandler);\n\t\t\tlogHandler.close();\n\t\t\tlogHandler = null;\n\t\t}\n\t}",
"private static void createLogger() {\n logger = myLogger.createHtmlLogger(\"JRECEIPTS\", Options.LOG_PATH + \"Receipts\", 262144, true, 1);\n// boolean append = true;\n// int limit = 1000000; // 1 Mb\n// int numLogFiles = 5;\n// FileHandler fh = new FileHandler(Options.LOG_PATH + \"Receipts_%g.html\", limit, numLogFiles, true);\n// fh.setFormatter(new SimpleFormatter());\n// // Add to the desired logger\n// logger = Logger.getLogger(\"Receipts\");\n// logger.addHandler(fh);\n }",
"public static KnowledgeDisposal registerLoggersForDisposal(KnowledgeComponentImplementationModel model, ClassLoader loader, KieRuntimeEventManager runtimeEventManager) {\n final List<KieRuntimeLogger> loggers = registerLoggers(model, loader, runtimeEventManager);\n return Disposals.newDisposal(loggers);\n }",
"protected static final void logWelcome(\n\t\t\tfinal Logger logger,\n\t\t\tfinal String... msgs\n\t) {\n\t\tif ((logger != null) && (msgs != null)) {\n\t\t\tfor (String msg : msgs) {\n\t\t\t\tlogger.log(Level.INFO, msg);\n\t\t\t}\n\t\t}\n\t}",
"public void postInitAfterConfiguration() {\n\t\t// each configuration are only supporting one log handler\n\t\tcrawlerRecordHandler = new CrawlerRecord(this);\n\t\t// TODO: other configurations needs to be added after all configurations are set\n\t}",
"public static void registerDefaultHandlers() {\n\t\tregisterDynamicLightHandler(EntityType.BLAZE, DynamicLightHandler.makeHandler(blaze -> 10, blaze -> true));\n\t\tregisterDynamicLightHandler(EntityType.CREEPER, DynamicLightHandler.makeCreeperEntityHandler(null));\n\t\tregisterDynamicLightHandler(EntityType.ENDERMAN, entity -> {\n\t\t\tint luminance = 0;\n\t\t\tif (entity.getCarriedBlock() != null)\n\t\t\t\tluminance = entity.getCarriedBlock().getLuminance();\n\t\t\treturn luminance;\n\t\t});\n\t\tregisterDynamicLightHandler(EntityType.ITEM,\n\t\t\t\tentity -> LambDynLights.getLuminanceFromItemStack(entity.getStack(), entity.isSubmergedInWater()));\n\t\tregisterDynamicLightHandler(EntityType.ITEM_FRAME, entity -> {\n\t\t\tvar world = entity.getWorld();\n\t\t\treturn LambDynLights.getLuminanceFromItemStack(entity.getHeldItemStack(), !world.getFluidState(entity.getBlockPos()).isEmpty());\n\t\t});\n\t\tregisterDynamicLightHandler(EntityType.GLOW_ITEM_FRAME, entity -> {\n\t\t\tvar world = entity.getWorld();\n\t\t\treturn Math.max(14, LambDynLights.getLuminanceFromItemStack(entity.getHeldItemStack(),\n\t\t\t\t\t!world.getFluidState(entity.getBlockPos()).isEmpty()));\n\t\t});\n\t\tregisterDynamicLightHandler(EntityType.MAGMA_CUBE, entity -> (entity.stretch > 0.6) ? 11 : 8);\n\t\tregisterDynamicLightHandler(EntityType.SPECTRAL_ARROW, entity -> 8);\n\t\tregisterDynamicLightHandler(EntityType.GLOW_SQUID,\n\t\t\t\tentity -> (int) MathHelper.clampedLerp(0.f, 12.f, 1.f - entity.getDarkTicksRemaining() / 10.f)\n\t\t);\n\t}",
"@ServiceMethod(returns = ReturnType.SINGLE)\n LoggersCreateOrUpdateResponse createOrUpdateWithResponse(\n String resourceGroupName,\n String serviceName,\n String loggerId,\n LoggerContractInner parameters,\n String ifMatch,\n Context context);",
"protected void registerHandlers(Map<String, Object> urlMap)\r\n/* 39: */ throws BeansException\r\n/* 40: */ {\r\n/* 41:114 */ if (urlMap.isEmpty()) {\r\n/* 42:115 */ this.logger.warn(\"Neither 'urlMap' nor 'mappings' set on SimpleUrlHandlerMapping\");\r\n/* 43: */ } else {\r\n/* 44:118 */ for (Map.Entry<String, Object> entry : urlMap.entrySet())\r\n/* 45: */ {\r\n/* 46:119 */ String url = (String)entry.getKey();\r\n/* 47:120 */ Object handler = entry.getValue();\r\n/* 48:122 */ if (!url.startsWith(\"/\")) {\r\n/* 49:123 */ url = \"/\" + url;\r\n/* 50: */ }\r\n/* 51:126 */ if ((handler instanceof String)) {\r\n/* 52:127 */ handler = ((String)handler).trim();\r\n/* 53: */ }\r\n/* 54:129 */ registerHandler(url, handler);\r\n/* 55: */ }\r\n/* 56: */ }\r\n/* 57: */ }",
"public Slf4jSessionLogger() {\n super();\n for (String category : SessionLog.loggerCatagories) {\n addLogger(category, ECLIPSELINK_NAMESPACE + \".\" + category);\n }\n addLogger(DEFAULT_CATEGORY, DEFAULT_ECLIPSELINK_NAMESPACE);\n }",
"protected List<S> toActionClassHook(List<T> recordInfos) {\n\t\treturn null;\r\n\t}",
"public void addMessageHandler(MessageHandler handler) {\r\n\t\tif (handler == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tfor (MessageHandler h : handlers) {\r\n\t\t\tif (h == handler) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\thandlers.add(handler);\r\n\t}",
"private static void defineLogger() {\n HTMLLayout layout = new HTMLLayout();\n DailyRollingFileAppender appender = null;\n try {\n appender = new DailyRollingFileAppender(layout, \"/Server_Log/log\", \"yyyy-MM-dd\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n logger.addAppender(appender);\n logger.setLevel(Level.DEBUG);\n }",
"public static Logger getLogger(Class<?> cl) {\n\n Logger logger = createLogger(cl.getName());\n\n /* Check whether the logger already has existing handlers. */\n boolean hasConsoleHandler = false;\n boolean hasFileHandler = false;\n boolean hasConfiguredHandler = false;\n\n /*\n * [#18277] Add null check of logger.getHandlers() because the Resin\n * app server's implementation of logging can return null instead of an\n * empty array.\n */\n Handler[] handlers = logger.getHandlers();\n if (handlers != null) {\n for (Handler h : handlers) {\n\n /*\n * Intentionally check for java.util.logging.ConsoleHandler\n * rather than ConsoleRedirectHandler, because the loggers that\n * do not have a custom prefix use the ConsoleHandler\n * directly. Having ConsoleRedirectHandler extend\n * ConsoleHandler lets us have a model where the user only have\n * to set com.sleepycat.je.util.ConsoleHandler in their logging\n * properties file.\n */\n if (h instanceof java.util.logging.ConsoleHandler) {\n hasConsoleHandler = true;\n }\n \n if (h instanceof FileRedirectHandler) {\n hasFileHandler = true;\n }\n\n if (h instanceof ConfiguredRedirectHandler) {\n hasConfiguredHandler = true;\n }\n }\n }\n\n if (!hasConsoleHandler) {\n logger.addHandler(new ConsoleRedirectHandler());\n }\n\n if (!hasFileHandler) {\n logger.addHandler(new FileRedirectHandler());\n }\n\n if (!hasConfiguredHandler) {\n logger.addHandler(new ConfiguredRedirectHandler());\n }\n\n return logger;\n }",
"public static Logger getLogger() {\n if (logger == null) {\n logger = Logger.getLogger(APILOGS);\n\n try {\n\n // This block configure the logger with handler and formatter\n // The boolean value is to append to an existing file if exists\n\n getFileHandler();\n\n logger.addHandler(fh);\n SimpleFormatter formatter = new SimpleFormatter();\n fh.setFormatter(formatter);\n\n // this removes the console log messages\n // logger.setUseParentHandlers(false);\n\n } catch (SecurityException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return logger;\n }",
"private void initCemsLogger() {\n if (logger == null) {\n final SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\n final Formatter formatter = new Formatter() {\n @Override\n public String format(LogRecord record) {\n final StringBuilder sb = new StringBuilder();\n sb.append(dateFormat.format(new Date(record.getMillis())));\n sb.append(\" - \");\n sb.append(record.getLevel().getName());\n sb.append(\": \");\n sb.append(record.getMessage());\n sb.append(\"\\n\");\n @SuppressWarnings(\"ThrowableResultOfMethodCallIgnored\")\n final Throwable thrown = record.getThrown();\n if (thrown != null) {\n sb.append(thrown.toString());\n sb.append(\"\\n\");\n }\n return sb.toString();\n }\n };\n\n final ConsoleHandler handler = new ConsoleHandler();\n handler.setFormatter(formatter);\n handler.setLevel(Level.ALL);\n\n logger = Logger.getLogger(\"ga.cems\");\n final Handler[] handlers = logger.getHandlers();\n for (Handler h : handlers) {\n logger.removeHandler(h);\n }\n\n logger.setUseParentHandlers(false);\n logger.addHandler(handler);\n }\n// logger.setLevel(Level.INFO);\n logger.setLevel(logLevel);\n }",
"private static List<Logger> getExplicitLoggersFromEnum(Enumeration<Logger> loggersEnum) {\r\n\t\tList<Logger> loggers = new ArrayList<Logger>();\r\n\t\t\r\n\t\twhile (loggersEnum.hasMoreElements()) {\r\n\t\t\tLogger logger = loggersEnum.nextElement();\r\n\t\t\tif (logger.getLevel() != null || logger.getAllAppenders().hasMoreElements())\r\n\t\t\t\tloggers.add(logger);\r\n\t\t}\r\n\t\t\r\n\t\treturn loggers;\r\n\t}",
"void initializeLogging();",
"protected abstract ILogger getLogger();",
"public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {\n }",
"public static void setUp() {\n Handler handler = new LoggerHandler();\n handler.setFormatter(new SimpleFormatter());\n getInstance().addHandler(handler);\n }",
"private void addLogger(String loggerCategory, String loggerNameSpace) {\n categoryLoggers.put(loggerCategory,\n LoggerFactory.getLogger(loggerNameSpace));\n }",
"private native void finaliseLoggerReference();",
"private native void finaliseLoggerReference();",
"static public void setup() throws IOException {\n Logger logger = Logger.getLogger(\"\");\n\n logger.setLevel(Level.INFO);\n Calendar cal = Calendar.getInstance();\n //SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH-mm-ss\");\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n String dateStr = sdf.format(cal.getTime());\n fileTxt = new FileHandler(\"log_\" + dateStr + \".txt\");\n fileHTML = new FileHandler(\"log_\" + dateStr + \".html\");\n\n // Create txt Formatter\n formatterTxt = new SimpleFormatter();\n fileTxt.setFormatter(formatterTxt);\n logger.addHandler(fileTxt);\n\n // Create HTML Formatter\n formatterHTML = new LogHTMLFormatter();\n fileHTML.setFormatter(formatterHTML);\n logger.addHandler(fileHTML);\n }",
"@ServiceMethod(returns = ReturnType.SINGLE)\n LoggersUpdateResponse updateWithResponse(\n String resourceGroupName,\n String serviceName,\n String loggerId,\n String ifMatch,\n LoggerUpdateContract parameters,\n Context context);",
"public Deployer register(Handler[] handlers) {\n\t\treturn null;\n\t}",
"Map<String, Handler> handlers();",
"public void setHandlers(Map<HandlerRegistryInfo, PhaseHandler> handlers) {\r\n this.delegate.setHandlers(handlers);\r\n }",
"void addDetailsHanders(DetailsPmHandler... detailsHandlers);",
"@Override\r\n\tpublic void configHandler(Handlers me) {\n\r\n\t}",
"public void updateRegisteredHandlers() throws IOException {\n final Multimap<String, String> users = getUsers();\n for (UsersUpdateHandler handler : mHandlers) {\n handler.update(users);\n }\n }",
"public void logWarnings(boolean logWarnings)\r\n {\r\n if (logWarnings != warningLevelHandler.getBoolean())\r\n {\r\n warningLevelHandler.setBoolean(logWarnings);\r\n fireConfigUpdated();\r\n }\r\n }",
"public void printHandlers() {\n\t\tServiceReference[] refs;\n\t\ttry {\n\t\t\tout.println(\"iPOJO Handlers\");\n\t\t\tout.println(\"-------------------\");\n\t\t\trefs = bundleContext.getServiceReferences(HandlerFactory.class.getName(), null);\n\n\t\t\tfor (int i = 0; i < refs.length; i++) {\n\t\t\t\tHandlerFactory handler = (HandlerFactory) bundleContext.getService(refs[i]);\n\t\t\t\tString name = handler.getHandlerName();\n\t\t\t\tif (\"composite\".equals(handler.getType()))\n\t\t\t\t\tname = name + \" [composite]\";\n\n\t\t\t\tif (handler.getMissingHandlers().size() == 0) {\n\t\t\t\t\tout.println(\"Handler \" + name + \" (VALID)\");\n\t\t\t\t} else {\n\t\t\t\t\tout.println(\"Handler \" + name + \" (INVALID : \" + handler.getMissingHandlers() + \")\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (InvalidSyntaxException e) {\n\n\t\t}\n\t}",
"@Override\n\t\tpublic Logger getJavaLogger(String name) {\n\t\t\treturn Logger.getLogger(\"com.ibm.connectors.amqp\");\n\t\t}",
"public void addJarsToThisLocator(List<String> jarFullPaths, String[] groups) throws IOException {\n addJarsToThisLocator(getDeployedBy(), Instant.now().toString(), jarFullPaths, groups);\n }",
"@Override\n\tpublic void releaseLogger() {\n\t\t\n\t}",
"private void doLogAction(List<HipaaLogMessage> logMsgList) {\n logMsgList.forEach(logMsg -> {\n try {\n logger.log(logMsg);\n } catch (HipaaException e) {\n log.warn(\"Exception: [{}]\", e.getMessage());\n }\n });\n }",
"public boolean addWatchHandler (ConfigurationPropertyChangeHandler handler, String... name);",
"@SuppressWarnings({ \"unchecked\" })\n public Void run() {\n if (Jvm.isModular()) {\n return null;\n }\n /* This mysterious-looking hack is designed to trick JDK logging into not leaking classloaders and\n so forth when adding levels, by simply shutting down the craptastic level name \"registry\" that it keeps.\n */\n final Class<java.util.logging.Level> lc = java.util.logging.Level.class;\n try {\n synchronized (lc) {\n final Field knownField = lc.getDeclaredField(\"known\");\n knownField.setAccessible(true);\n final List<java.util.logging.Level> old = (List<java.util.logging.Level>) knownField.get(null);\n if (! (old instanceof ReadOnlyArrayList)) {\n knownField.set(null, new ReadOnlyArrayList<java.util.logging.Level>(Arrays.asList(\n Level.TRACE,\n Level.DEBUG,\n Level.INFO,\n Level.WARN,\n Level.ERROR,\n Level.FATAL,\n java.util.logging.Level.ALL,\n java.util.logging.Level.FINEST,\n java.util.logging.Level.FINER,\n java.util.logging.Level.FINE,\n java.util.logging.Level.INFO,\n java.util.logging.Level.CONFIG,\n java.util.logging.Level.WARNING,\n java.util.logging.Level.SEVERE,\n java.util.logging.Level.OFF\n )));\n }\n }\n } catch (Throwable e) {\n // ignore; just don't install\n }\n\n // OpenJDK uses a KnownLevel inner class with two static maps\n try {\n final Class<?> knownLevelClass = Class.forName(\"java.util.logging.Level$KnownLevel\");\n synchronized (knownLevelClass) {\n final Constructor<?> constructor = knownLevelClass.getDeclaredConstructor(java.util.logging.Level.class);\n constructor.setAccessible(true);\n boolean doBuild = false;\n boolean setNameToLevel = false;\n boolean setIntToLevel = false;\n // namesToLevels\n final Field nameToLevels = knownLevelClass.getDeclaredField(\"nameToLevels\");\n nameToLevels.setAccessible(true);\n // Current\n final Map oldNameToLevels = (Map) nameToLevels.get(null);\n if (! (oldNameToLevels instanceof ReadOnlyHashMap)) {\n doBuild = true;\n setNameToLevel = true;\n }\n\n final Field intToLevels = knownLevelClass.getDeclaredField(\"intToLevels\");\n intToLevels.setAccessible(true);\n final Map oldIntToLevels = (Map) intToLevels.get(null);\n if (! (oldIntToLevels instanceof ReadOnlyHashMap)) {\n doBuild = true;\n setIntToLevel = true;\n }\n\n if (doBuild) {\n final KnownLevelBuilder builder = new KnownLevelBuilder(constructor)\n .add(Level.TRACE)\n .add(Level.DEBUG)\n .add(Level.INFO)\n .add(Level.WARN)\n .add(Level.ERROR)\n .add(Level.FATAL)\n .add(java.util.logging.Level.ALL)\n .add(java.util.logging.Level.FINEST)\n .add(java.util.logging.Level.FINER)\n .add(java.util.logging.Level.FINE)\n .add(java.util.logging.Level.INFO)\n .add(java.util.logging.Level.CONFIG)\n .add(java.util.logging.Level.WARNING)\n .add(java.util.logging.Level.SEVERE)\n .add(java.util.logging.Level.OFF);\n\n if (setNameToLevel) {\n nameToLevels.set(null, builder.toNameMap());\n }\n if (setIntToLevel) {\n intToLevels.set(null, builder.toIntMap());\n }\n }\n }\n } catch (Throwable e) {\n // ignore\n }\n\n /* Next hack: the default Sun JMX implementation has a horribly inefficient log implementation which\n kills performance if a custom logmanager is used. We'll just blot that out.\n */\n try {\n final Class<?> traceManagerClass = Class.forName(\"com.sun.jmx.trace.Trace\");\n final Field outField = traceManagerClass.getDeclaredField(\"out\");\n outField.setAccessible(true);\n outField.set(null, null);\n } catch (Throwable e) {\n // ignore; just skip it\n }\n /* Next hack: Replace the crappy MXBean on the system logmanager, if it's there.\n */\n final Class<java.util.logging.LogManager> lmc = java.util.logging.LogManager.class;\n try {\n synchronized (lmc) {\n final Field loggingMXBean = lmc.getDeclaredField(\"loggingMXBean\");\n loggingMXBean.setAccessible(true);\n loggingMXBean.set(null, LogContext.getSystemLogContext().getLoggingMXBean());\n }\n } catch (Throwable e) {\n // ignore; just skip it\n }\n return null;\n }",
"@Override\n\tpublic List<BlackList> getAllHandler() {\n\t\treturn blackListDao.getAllHandler();\n\t}"
] | [
"0.63067573",
"0.61006516",
"0.5872119",
"0.54332393",
"0.54092395",
"0.5378317",
"0.5329671",
"0.52954197",
"0.51399577",
"0.5095777",
"0.50827813",
"0.5065305",
"0.50555366",
"0.5044166",
"0.5035981",
"0.4992657",
"0.49694297",
"0.4944342",
"0.49108213",
"0.48872668",
"0.48760048",
"0.4856063",
"0.48511466",
"0.47873056",
"0.4787115",
"0.4691818",
"0.46884364",
"0.4683709",
"0.4678077",
"0.4675283",
"0.46563515",
"0.46531168",
"0.46446943",
"0.46380928",
"0.46152225",
"0.46050102",
"0.45928717",
"0.45888418",
"0.45734876",
"0.45709372",
"0.45642874",
"0.45582494",
"0.45388186",
"0.45277655",
"0.45277655",
"0.4522342",
"0.45162517",
"0.4507425",
"0.45056272",
"0.45053238",
"0.44949248",
"0.44766563",
"0.4428734",
"0.4406903",
"0.4406315",
"0.44035515",
"0.4403005",
"0.43972123",
"0.4395767",
"0.43891695",
"0.4376678",
"0.43691543",
"0.4340917",
"0.433338",
"0.4329249",
"0.43219492",
"0.43140352",
"0.4312819",
"0.4307157",
"0.43071505",
"0.43054873",
"0.43022445",
"0.43002543",
"0.42971244",
"0.42947975",
"0.4293169",
"0.4288268",
"0.42851585",
"0.4283346",
"0.4282728",
"0.4279661",
"0.42771423",
"0.42771423",
"0.42768663",
"0.42768037",
"0.4272829",
"0.42718005",
"0.42709288",
"0.4270068",
"0.42657685",
"0.42624682",
"0.42551613",
"0.42492273",
"0.42429963",
"0.42423868",
"0.42413434",
"0.42345062",
"0.42343917",
"0.42262727",
"0.42225942"
] | 0.77041364 | 0 |
Checks if a brigde is already configured using Class.equals(). This implies that several brigdes may be present, but only one per classloader. | protected static boolean isJULtoSLF4JAlreadyConfigured(Class<?> bridgeHandlerClass) {
return getSLF4JBridgeHandler(bridgeHandlerClass) != null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected boolean isMoreDerivedThan( Bootstrapper other )\n {\n return other.getClass().isAssignableFrom( getClass() );\n }",
"boolean is(Class<? extends DownloaderConfiguration> type);",
"protected boolean isInDerivedClass() {\n\t\treturn (getClass() != Main.class);\n\t}",
"boolean hasClassname();",
"private Boolean areCompatible(Class a, Class b) {\n return (a.isAssignableFrom(b) || b.isAssignableFrom(a));\n }",
"private static boolean classExists(String className) {\n\t\tClass<?> theLogicClass = null;\n\t\ttry {\n\t\t\ttheLogicClass = ClassLoaderManager.getInstance().getLogicClassFromName(className);\n\t\t}\n\t\tcatch (Exception ex) {\n\t\t\t// Do nothing\n\t\t\tif (log.isDebugEnabled()) {\n\t\t\t\tlog.debug(\"SystemBusinessLogicFinder.classExists : candidate logic class \" + \n\t\t\t\t\t\tclassName + \" was not found - ignoring\");\n\t\t\t\tif (ex.getCause() == null || ! (ex.getCause() instanceof ClassNotFoundException)) {\n\t\t\t\t\tlog.debug(\"Error while loading logic class \" + className, ex);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn theLogicClass != null;\n\t}",
"private boolean isBaseClassValid() {\n\n\t\tboolean valid = false;\n\n\t\tif (this.getBaseClass() == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\tString[] types = BaseClasses.getAllAvailableTypes();\n\n\t\tfor (int i = 0; i < types.length; i++) {\n\t\t\tvalid = valid || types[i].compareToIgnoreCase(this.getBaseClass()) == 0;\n\t\t}\n\n\t\treturn valid;\n\t}",
"private static boolean hasClass(String className) {\n try {\n Class.forName(className);\n return true;\n } catch (ClassNotFoundException ex) {\n return false;\n }\n }",
"public boolean isSatisfiedBy(Object obj) {\n for (Class<?> klass : _klasses) {\n if (obj != null && klass.isAssignableFrom(obj.getClass())) {\n return true;\n }\n }\n return false;\n }",
"boolean hasInstance();",
"boolean hasBackpack();",
"public boolean hasVisibilityOf(ClassLoader classLoader) {\n for (GraphClassLoader graphClassLoader : this.classLoaders) {\n if (classLoader == graphClassLoader) {\n return true;\n }\n }\n return false;\n }",
"boolean hasEnclosingInstance(ClassType encl);",
"private boolean isClassConfiguration(IConfigurationAnnotation configurationAnnotation) {\n if(null == configurationAnnotation) {\n return false;\n }\n \n boolean before= (null != configurationAnnotation)\n ? configurationAnnotation.getBeforeTestClass()\n : false;\n\n boolean after= (null != configurationAnnotation)\n ? configurationAnnotation.getAfterTestClass()\n : false;\n\n return (before || after);\n }",
"private boolean isInstanceOfNoAnnotationURLClassLoader(ClassLoader loader)\r\n {\r\n Class parent = loader.getClass();\r\n while (parent != null)\r\n {\r\n if (\"NoAnnotationURLClassLoader\".equals(parent.getSimpleName()))\r\n {\r\n return true;\r\n }\r\n parent = parent.getSuperclass();\r\n }\r\n return false;\r\n }",
"private boolean checkUnreachedClassesForContainersAndSubclasses() {\n Iterator<EClass> iterator = unreachedClasses.iterator();\n while (iterator.hasNext()) {\n EClass eClass = iterator.next();\n\n if (grabIncomingContainments && addIfContainer(eClass) || grabSubClasses && addIfContainedSubClass(eClass)) {\n iterator.remove();\n return true;\n }\n }\n return false;\n }",
"boolean existsInjector(String classCanonicalName) {\n if (getInjector(classCanonicalName) == null) {\n return false;\n }\n return true;\n }",
"private boolean m6892b() {\n String str = \"unable to add feature mapper for \";\n boolean z = false;\n for (String str2 : this.f5176c) {\n try {\n Class cls = Class.forName(str2);\n if (C1271j.class.isAssignableFrom(cls)) {\n mo5696a((C1271j) cls.newInstance());\n this.f5176c.remove(str2);\n z = true;\n }\n } catch (ClassNotFoundException unused) {\n } catch (IllegalAccessException unused2) {\n StringBuilder sb = new StringBuilder();\n sb.append(str);\n sb.append(str2);\n sb.toString();\n } catch (InstantiationException unused3) {\n StringBuilder sb2 = new StringBuilder();\n sb2.append(str);\n sb2.append(str2);\n sb2.toString();\n }\n }\n return z;\n }",
"private boolean canLoadClass(ClassLoader loader, String className) {\n try {\n loader.loadClass(className);\n return true;\n } catch (Exception e) {\n return false;\n }\n }",
"public boolean isClass () throws java.io.IOException, com.linar.jintegra.AutomationException;",
"public static boolean isThisClassRegistered(String classname){\n dbgLog.fine(\"********** within isThisClassRegistered **********\");\n dbgLog.fine(\"classname to be checked=\"+classname);\n Object singleton = map.get(classname);\n if (singleton != null){\n return true;\n } else {\n return false;\n }\n }",
"boolean isDelegatedToBootClassLoader(String packageName);",
"private boolean checkBrokers ()\n {\n if (game.getAgentMap().size() < 1) {\n log.info(String.format(\"Game: %s (round %s) reports no brokers \"\n + \"registered\",\n game.getGameId(), game.getRound().getRoundId()));\n return false;\n }\n\n for (Agent agent: game.getAgentMap().values()) {\n Broker broker = agent.getBroker();\n // Check if any broker is disabled in the interface\n if (!MemStore.getBrokerState(broker.getBrokerId())) {\n log.info(String.format(\"Not starting game %s : broker %s is disabled\",\n game.getGameId(), broker.getBrokerId()));\n return false;\n }\n\n // Check if any broker is already running the maxAgent nof agents\n if (!broker.hasAgentsAvailable(game.getRound())) {\n log.info(String.format(\"Not starting game %s : broker %s doesn't have \"\n + \"enough available agents\",\n game.getGameId(), broker.getBrokerId()));\n return false;\n }\n\n brokers += broker.getBrokerName() + \"/\" + agent.getBrokerQueue() + \",\";\n }\n brokers = brokers.substring(0, brokers.length() - 1);\n return true;\n }",
"boolean hasEnclosingInstanceImpl(ClassType encl);",
"public boolean existsClass(String name)\r\n\t{\r\n\t\treturn obtainOntClass(name) != null;\r\n\t}",
"boolean isClassMapping() {\n return !path.isEmpty() && !targetClass.isEmpty()\n && condAttr.isEmpty() && condAttrValue.isEmpty() && source.isEmpty()\n && sourceName.isEmpty() && targetProperty.isEmpty() && targetType.isEmpty();\n }",
"default boolean canLoadClassPath(String classPath) { return true; }",
"public static boolean hasInstance()\n\t{\n \tif(wdba == null)\n \t\treturn false;\n \telse\n \t\treturn true;\n\t}",
"public boolean canHandle(Class guiClass) {\n/* 216 */ return guiMap.containsKey(guiClass);\n/* */ }",
"boolean hasBiddingStrategy();",
"boolean hasComponent(Class<? extends Component> componentClass);",
"public boolean isDefault()\r\n\t{\treturn this.plugin.getClassManager().getDefaultClass().equals(this);\t}",
"@Override\n public boolean isEqualOrDescendantOf(AbstractClassLoaderValue<?, V> clv) {\n return equals(Objects.requireNonNull(clv));\n }",
"@Override\n public boolean isEnabled() {\n if (!isInitCalled) {\n synchronized (this) {\n if (!isInitCalled) {\n isXgboostPresent = initXgboost();\n isInitCalled = true;\n }\n }\n }\n return isXgboostPresent;\n }",
"boolean hasConfiguration();",
"boolean hasAutomlClassificationConfig();",
"private boolean filterClass(Class<?> clz) {\n String name = clz.getSimpleName();\n return !clz.isMemberClass() && (scans.size() == 0 || scans.contains(name)) && !skips.contains(name);\n }",
"public boolean vehicleClassIdExists()\n\t{\n\t\treturn (vehicleClassId != null);\n\t}",
"private static boolean validateClass(Class cls)\n {\n return PSGroupProviderInstance.class.isAssignableFrom(cls);\n }",
"private boolean checkIfClasspathEntryHasLibraries(ArrayList<String> classPathEntries, ArrayList<String> nodes)\n\t{\n\t\tboolean isfound = false;\n\n\t\tif (nodes.containsAll(classPathEntries))\n\t\t{\n\n\t\t\tisfound = true;\n\t\t}\n\n\t\treturn isfound;\n\n\t}",
"private boolean isAgentClass(Class<?> clazz) {\n if (clazz != null) {\n Method agentmain = getAgentMethod(clazz, \"agentmain\");\n Method premain = getAgentMethod(clazz, \"premain\");\n\n if (agentmain == null && premain == null) {\n return false;\n }\n\n Method agentMethod = agentmain != null ? agentmain : premain;\n\n int modifiers = agentMethod.getModifiers();\n return Modifier.isStatic(modifiers) && agentMethod.getReturnType().equals(Void.TYPE);\n }\n\n return false;\n }",
"private boolean areBridged(Host source, Host destination) throws ConfigException {\n\n //If the locations is not the same we don't even check vlan or subnets\n if (Collections.disjoint(source.locations(), destination.locations())) {\n return false;\n }\n\n if (!source.vlan().equals(VlanId.NONE) && !destination.vlan().equals(VlanId.NONE)\n && !source.vlan().equals(destination.vlan())) {\n return false;\n }\n\n InterfaceConfig interfaceCfgH1 = networkConfigNib.getConfig(source.location(), InterfaceConfig.class);\n InterfaceConfig interfaceCfgH2 = networkConfigNib.getConfig(destination.location(), InterfaceConfig.class);\n if (interfaceCfgH1 != null && interfaceCfgH2 != null) {\n\n //following can be optimized but for clarity is left as is\n Interface intfH1 = interfaceCfgH1.getInterfaces().stream().findFirst().get();\n Interface intfH2 = interfaceCfgH2.getInterfaces().stream().findFirst().get();\n\n if (source.vlan().equals(VlanId.NONE) && !destination.vlan().equals(VlanId.NONE)) {\n return intfH1.vlanUntagged().equals(destination.vlan()) ||\n intfH1.vlanNative().equals(destination.vlan());\n }\n\n if (!source.vlan().equals(VlanId.NONE) && destination.vlan().equals(VlanId.NONE)) {\n return intfH2.vlanUntagged().equals(source.vlan()) ||\n intfH2.vlanNative().equals(source.vlan());\n }\n\n if (!intfH1.vlanNative().equals(intfH2.vlanNative())) {\n return false;\n }\n\n if (!intfH1.vlanUntagged().equals(intfH2.vlanUntagged())) {\n return false;\n }\n\n List<InterfaceIpAddress> intersection = new ArrayList<>(intfH1.ipAddressesList());\n intersection.retainAll(intfH2.ipAddressesList());\n if (intersection.size() == 0) {\n return false;\n }\n }\n return true;\n }",
"default boolean isClass() {\n return false;\n }",
"private static boolean validateClass(String className)\n {\n Class cls = null;\n try\n {\n cls = Class.forName(className);\n }\n catch (ClassNotFoundException e)\n {\n }\n\n return cls == null ? false : validateClass(cls);\n }",
"public boolean doesImplementActivatorBundle(String clname)\n {\n CtClass clas;\n try\n {\n final Class bundleActivatorClass = Class.forName(\"org.osgi.framework.BundleActivator\");\n clas = cpool.get(clname);\n\t CtClass[] interfaces = clas.getInterfaces();\n\t for (int i = 0; i < interfaces.length; i++) {\n\t // deals with classes which inherit from BundleActivator\n\t if (bundleActivatorClass.isAssignableFrom(Class.forName(interfaces[i].getName())))\n\t return true;;\n\t }\n } catch (Exception e)\n {\n return false;\n }\n \n return false;\n \n }",
"boolean hasBase();",
"public boolean hasComponent(Class<? extends Component> componentType);",
"public boolean hasClass(final String elementLocator, final String clazz);",
"private boolean findClassInComponents(String name) {\n // we need to search the components of the path to see if we can find the\n // class we want.\n final String classname = name.replace('.', '/') + \".class\";\n final String[] list = classpath.list();\n boolean found = false;\n int i = 0;\n while (i < list.length && found == false) {\n final File pathComponent = (File)project.resolveFile(list[i]);\n found = this.contains(pathComponent, classname);\n i++;\n }\n return found;\n }",
"@Override\n\tpublic boolean supports(Class<?> clazz) {\n\t\treturn Voyage.class.equals(clazz);\n\t}",
"public static boolean hasInstance() {\n return instance != null;\n }",
"@Override\n\tpublic boolean supports(Class<?> clazz) {\n\t\treturn _ImageCarrier.class.isAssignableFrom(clazz);\n\t}",
"@Override\n\tpublic boolean istBerechtigt() {\n\t\treturn true;\n\t}",
"public boolean hasConfig() {\n return configBuilder_ != null || config_ != null;\n }",
"protected boolean isOutOfMigrationClass(Class<?> clazz) {\n for (String pkg : outOfMigrationPackageSet) {\n if (clazz.getPackage().getName().startsWith(pkg)) {\n return true;\n }\n }\n return outOfMigrationClassSet.contains(clazz);\n }",
"private static <T extends HmBo> boolean checkBONameExists(Class<T> boClass, String name, Object value) {\r\n List<?> boIds = QueryUtil.executeQuery(boClass, null,\r\n new FilterParams(name, value),\r\n AhRestoreNewMapTools.getonlyDomain().getId());\r\n\t return !boIds.isEmpty();\r\n\t}",
"public boolean isInstanceOf(Class c);",
"protected boolean hasInheritance(Class<?> supCls) {\n return AnnotationUtil.typeHas(supCls, Inheritance.class)\n || AnnotationUtil.has(supCls, DiscriminatorValue.class);\n }",
"boolean isForceClassLoaderReset();",
"public static synchronized boolean containsKey(Class<?> key) {\n\t\treturn ClassRegistry.dictionary.containsKey(key);\n\t}",
"@java.lang.Override\n public boolean hasBuilderConfig() {\n return builderConfig_ != null;\n }",
"private boolean doesTheClassWrapTheModule(RubyClass theClass, RubyModule theModule) {\n return theClass.isIncluded() &&\n theClass.getNonIncludedClass() == theModule.getNonIncludedClass();\n }",
"@Override\n public boolean isConfigured()\n {\n return (config != null) && config.isValid() &&!config.isDisabled();\n }",
"protected void checkSubclass() {\n }",
"protected void checkSubclass() {\n }",
"protected void checkSubclass() {\n }",
"public boolean isInCache(Class clazz) {\n if (mappingCache == null) {\n return false;\n }\n return mappingCache.indexOf(clazz) != -1;\n }",
"public boolean isClass() {\n return operation == null;\n }",
"private boolean checkBasePackages(String className){\n\n if (basePackage == null){\n return false;\n }\n else {\n return className.startsWith(basePackage);\n }\n // This block is function support major framework identity.\n // Not support UI now.\n // if(className.startsWith(\"sun\")){\n // return true;\n // }\n // else if (className.startsWith(\"java\"))\n // {\n // return true;\n // }\n // else{\n // return false;\n // }\n }",
"@Override\n public boolean hasConfig() {\n return config_ != null;\n }",
"public static boolean isBootImageClass(String className) {\n BootImagePackage pkg = BOOT_IMAGE_CODE_BASE_PACKAGES.get(getPackageName(className));\n if (pkg != null) {\n // check for explicit class\n return pkg.isBootImageClass(className);\n }\n return false;\n }",
"private void checkBeanClass(Object bean) throws JellyTagException\n {\n if (getBaseClass() != null\n && !getBaseClass().isAssignableFrom(bean.getClass()))\n {\n throw new JellyTagException(\"Bean is not of expected base class: \"\n + getBaseClass().getName());\n }\n }",
"protected void checkSubclass() {\n }",
"boolean isHandled(Class<?> type);",
"public boolean checkSuperClass(OWLClass class1, OWLClass class2) {\n \n Set<OWLClass> supers = new HashSet<OWLClass>();\n \n for (Set<OWLClass> set : loader.getSuperClasses(class1)) {\n supers.addAll(set);\n }\n \n for (OWLClass cls : supers) {\n if (cls.getIRI().equals(class2.getIRI())) {\n return true;\n }\n }\n return false;\n }",
"public boolean hasConfiguration(String name) {\n\t\treturn getArtefact(name) != null;\n\t}",
"public boolean haveBackpack()\n {\n return haveBackpack;\n }",
"public static boolean isVisible(Class<?> clazz, ClassLoader classLoader) {\n if (classLoader == null) {\n return true;\n }\n try {\n Class<?> actualClass = classLoader.loadClass(clazz.getName());\n return (clazz == actualClass);\n // Else: different interface class found...\n } catch (ClassNotFoundException ex) {\n // No interface class found...\n return false;\n }\n }",
"public final boolean accepts(Class<?> inputClass) {\n boolean accepts = false;\n if (inputClass != null) {\n accepts = inputClasses.stream()\n .anyMatch((c) -> c.isAssignableFrom(inputClass));\n }\n return accepts;\n }",
"@java.lang.Override\n public boolean hasConfig() {\n return config_ != null;\n }",
"public static boolean doesClassExist(String nameWithPackage, Object instanceToGetClassloaderFrom) {\n boolean exists = false;\n\n try {\n Class.forName(nameWithPackage, false, instanceToGetClassloaderFrom.getClass().getClassLoader());\n exists = true;\n } catch (ClassNotFoundException e) {\n exists = false;\n }\n\n return exists;\n }",
"@JsonIgnore\n public boolean isLoadBalancersSet() { return isSet.contains(\"loadBalancers\"); }",
"@SuppressWarnings(\"rawtypes\") \n public boolean isClassReloadable(Class clazz) {\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (this == object) {\n return true;\n }\n if (!(object instanceof PoolOfExistingAcceptedDrivers)) {\n return false;\n }\n PoolOfExistingAcceptedDrivers that = (PoolOfExistingAcceptedDrivers) object;\n return validator.equals(that.validator)\n && poolOfExistingAcceptedDrivers.equals(that.poolOfExistingAcceptedDrivers);\n }",
"private static boolean isDescendantOf(final ClassLoader cl0, final ClassLoader cl1) {\n for (ClassLoader cl = cl0; cl != null; cl = cl.getParent()) {\n if (cl == cl1) {\n return true;\n }\n }\n return false;\n }",
"@Override\n\tpublic boolean supports(Class<?> clazz) {\n\t\treturn Books.class.equals(clazz);\n\t}",
"boolean hasConfigConnectorConfig();",
"@Override\n\tpublic boolean concernsSystem(Class class1) {\n\t\treturn false;\n\t}",
"boolean hasCarrierConstant();",
"public boolean isConnectorRuntimeInitialized() {\n List<ServiceHandle<ConnectorRuntime>> serviceHandles =\n connectorRuntimeHabitat.getAllServiceHandles(ConnectorRuntime.class);\n for(ServiceHandle<ConnectorRuntime> inhabitant : serviceHandles){\n // there will be only one implementation of connector-runtime\n return inhabitant.isActive();\n }\n return true; // to be safe\n }",
"boolean hasGkeBackupAgentConfig();",
"boolean consistencyCheck(){\n\n String jbbInstdir = (String)typeToDir.get(\"jbbinst\");\n String simInstdir = (String)typeToDir.get(\"siminst\");\n String jbbColldir = (String)typeToDir.get(\"jbbcoll\");\n String simColldir = (String)typeToDir.get(\"simcoll\");\n if(simInstdir != null){\n simInstdir += \"/p01\";\n }\n if(simColldir != null){\n simColldir += \"/p01\";\n }\n return readAndCompare(jbbInstdir,simInstdir,jbbColldir,simColldir);\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof GthTipoCuentaBancaria)) {\r\n return false;\r\n }\r\n GthTipoCuentaBancaria other = (GthTipoCuentaBancaria) object;\r\n if ((this.ideGttcb == null && other.ideGttcb != null) || (this.ideGttcb != null && !this.ideGttcb.equals(other.ideGttcb))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"boolean hasBbgGlobalId();",
"public boolean hasGadget() {\n return (this.curItem instanceof Gadget);\n }",
"protected boolean checkSelfInclusion(Vector mbrs) {\n Object mbr;\n if(mbrs == null)\n return false;\n for(int i=0; i < mbrs.size(); i++) {\n mbr=mbrs.elementAt(i);\n if(mbr != null && local_addr.equals(mbr))\n return true;\n }\n return false;\n }",
"private void checkProxyClasses() throws SQLException {\r\n try {\r\n boolean classInitialize = false;\r\n ClassLoader classLoader = getClass().getClassLoader();\r\n Class.forName(\"cn.beecp.pool.Borrower\", classInitialize, classLoader);\r\n Class.forName(\"cn.beecp.pool.PooledConnection\", classInitialize, classLoader);\r\n Class.forName(\"cn.beecp.pool.ProxyConnection\", classInitialize, classLoader);\r\n Class.forName(\"cn.beecp.pool.ProxyStatement\", classInitialize, classLoader);\r\n Class.forName(\"cn.beecp.pool.ProxyPsStatement\", classInitialize, classLoader);\r\n Class.forName(\"cn.beecp.pool.ProxyCsStatement\", classInitialize, classLoader);\r\n Class.forName(\"cn.beecp.pool.ProxyDatabaseMetaData\", classInitialize, classLoader);\r\n Class.forName(\"cn.beecp.pool.ProxyResultSet\", classInitialize, classLoader);\r\n } catch (ClassNotFoundException e) {\r\n throw new SQLException(\"Jdbc proxy classes missed\", e);\r\n }\r\n }",
"boolean isCompatible(Class<?> loggerClass);",
"public boolean hasSuperClasses(Class<?> aClass) {\n\t\treturn this.getSuperClasses(aClass) != null && this.getSuperClasses(aClass).size() > 0;\n\t}",
"protected static boolean checkTypeReferences() {\n Map<Class<?>, LinkedList<Class<?>>> missingTypes = new HashMap<>();\n for (Map.Entry<String, ClassProperties> entry : classToClassProperties.entrySet()) {\n String className = entry.getKey();\n Class<?> c = lookupClass(className);\n Short n = entry.getValue().typeNum;\n if (marshalledTypeNum(n)) {\n Class<?> superclass = getValidSuperclass(c);\n if (superclass != null)\n checkClassPresent(c, superclass, missingTypes);\n LinkedList<Field> fields = getValidClassFields(c);\n for (Field f : fields) {\n Class<?> fieldType = getFieldType(f);\n checkClassPresent(c, fieldType, missingTypes);\n }\n }\n }\n if (missingTypes.size() > 0) {\n for (Map.Entry<Class<?>, LinkedList<Class<?>>> entry : missingTypes.entrySet()) {\n Class<?> c = entry.getKey();\n LinkedList<Class<?>> refs = entry.getValue();\n String s = \"\";\n for (Class<?> ref : refs) {\n if (s != \"\")\n s += \", \";\n s += \"'\" + getSimpleClassName(ref) + \"'\";\n }\n Log.error(\"Missing type '\" + getSimpleClassName(c) + \"' is referred to by type(s) \" + s);\n }\n Log.error(\"Aborting code generation due to missing types\");\n return false;\n }\n else\n return true;\n }"
] | [
"0.5990407",
"0.59270465",
"0.58717746",
"0.5803942",
"0.54901814",
"0.5460897",
"0.5421399",
"0.5419122",
"0.5418161",
"0.5392024",
"0.5384027",
"0.5368105",
"0.53522617",
"0.534734",
"0.53350896",
"0.5318939",
"0.5312599",
"0.530515",
"0.52903163",
"0.5269763",
"0.526066",
"0.5216161",
"0.5204152",
"0.5194603",
"0.51902944",
"0.51868147",
"0.5183765",
"0.5181642",
"0.51802087",
"0.5178577",
"0.51715225",
"0.515503",
"0.51319265",
"0.51196295",
"0.50536066",
"0.50344986",
"0.5031745",
"0.50149375",
"0.5012914",
"0.50124305",
"0.50073725",
"0.50060445",
"0.4993921",
"0.49938414",
"0.49878561",
"0.49745518",
"0.49483883",
"0.49459854",
"0.49437392",
"0.4924552",
"0.49172723",
"0.49170938",
"0.4915412",
"0.49144334",
"0.49125367",
"0.49046987",
"0.4899454",
"0.48936838",
"0.48895386",
"0.48880273",
"0.48778033",
"0.48731107",
"0.48713785",
"0.48691082",
"0.48691082",
"0.48691082",
"0.48497146",
"0.4848278",
"0.48465684",
"0.48448947",
"0.48445287",
"0.4843322",
"0.48317453",
"0.48246983",
"0.48188314",
"0.4812608",
"0.48073786",
"0.48042566",
"0.48033208",
"0.48032975",
"0.480311",
"0.48026523",
"0.48022747",
"0.48000675",
"0.47986034",
"0.47981808",
"0.47824246",
"0.4781788",
"0.4780772",
"0.47623467",
"0.47620568",
"0.47566357",
"0.47538522",
"0.47513008",
"0.47488296",
"0.47451815",
"0.4744737",
"0.4742122",
"0.4737271",
"0.4736255"
] | 0.50867516 | 34 |
This method allows to remove java.util.logging.ConsoleHandler from JUL rootLogger. We need to do this programmaticaly since we don't have access to logging.properties in JVM installation. | protected static void removeJULConsoleHandler(ServletContext servletContext) {
Logger rootLogger = LogManager.getLogManager().getLogger("");
Handler[] handlers = rootLogger.getHandlers();
if (handlers != null) {
for (Handler handler : handlers) {
if (handler instanceof ConsoleHandler) {
servletContext.log("Removing java.util.logging.ConsoleHandler to avoid System.err output");
rootLogger.removeHandler(handler);
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void desactivateConsoleMode() {\n logger.removeHandler(mConsoleHandler);\n }",
"public void removeAllLogHandlers() {\n if ( _logger == null ) {\n return ;\n }\n Log.log(this, \"removeAllLogHandlers\");\n synchronized ( _logger ) {\n Handler[] handlers = _logger.getHandlers();\n for ( int i = 0; i < handlers.length; i++ ) {\n _logger.removeHandler( handlers[ i ] );\n }\n }\n }",
"private void initJulLogger() {\n SLF4JBridgeHandler.removeHandlersForRootLogger();\n SLF4JBridgeHandler.install();\n }",
"private void unRegisterLoggingMBean() throws Exception {\n MBeanServer server = ManagementFactory.getPlatformMBeanServer();\n ObjectName loggerObjectName = new ObjectName(\"com.yammer:type=Logging\");\n if (server.isRegistered(loggerObjectName)) {\n server.unregisterMBean(loggerObjectName);\n }\n }",
"public void shutdown() {\n\t\tinternalShutdown();\n\t\tC4JPluginLogging.getDefault().removeLogManager(this); \n\t}",
"void removeLogger(BotLogger logger);",
"private static void shutdownLogging() {\n if (log4j2ShutdownMethod != null) {\n try {\n // use reflection to call org.apache.logging.log4j.LogManager.shutdown()\n log4j2ShutdownMethod.invoke(null);\n } catch (IllegalAccessException | InvocationTargetException e) {\n log.error(\"Unable to call org.apache.logging.log4j.LogManager.shutdown using reflection.\", e);\n }\n }\n }",
"public void desactivateFileMode() {\n logger.removeHandler(mFileHandler);\n }",
"public void turnOffSystemOutput() {\n if (originalSystemOut != null) {\n System.setOut(originalSystemOut);\n originalSystemOut = null;\n\n // WARNING: It is not possible to reconfigure the logger here! This\n // method is called in the UI thread, so reconfiguring the logger\n // here would mean that the UI thread waits for the logger, which\n // could cause a deadlock.\n }\n }",
"protected void unsetLogManager(ILogManager logManager) {\n \t}",
"public static void turnOffSysoutLog() {\n\t\tSystem.setOut(new PrintStream(new OutputStream() {\n\t\t\t@Override\n\t\t\tpublic void write(int arg0) throws IOException {\n\t\t\t}\n\t\t}));\n\t}",
"@Override\n\tpublic void removeConsoleOutputListener(IEventHandler listener) {\n\t\t\n\t}",
"public static void unsetWeblogicProtocolHandler()\n {\n if ( \"weblogic.utils\".equals(System.getProperty(\"java.protocol.handler.pkgs\") ) )\n {\n System.clearProperty( \"java.protocol.handler.pkgs\" );\n }\n }",
"private void closeLogHandler() {\n\t\tif (logHandler != null) {\n\t\t\tlogger.removeHandler(logHandler);\n\t\t\tlogHandler.close();\n\t\t\tlogHandler = null;\n\t\t}\n\t}",
"private void removeRIDEConsoleInputListener() {\r\n\t\tif (fRIDEListener != null)\r\n\t\t\tfConsoleRIDE.getDocument()\r\n\t\t\t\t.removeDocumentListener(fRIDEListener);\r\n\t}",
"public static void initialize(){\n Logger logger = Logger.getLogger(\"\");\n\n //from: http://stackoverflow.com/questions/6029454/disabling-awt-swing-debug-fine-log-messages\n Logger.getLogger(\"java.awt\").setLevel(Level.OFF);\n Logger.getLogger(\"sun.awt\").setLevel(Level.OFF);\n Logger.getLogger(\"sun.lwawt\").setLevel(Level.OFF);\n Logger.getLogger(\"javax.swing\").setLevel(Level.OFF);\n\n if (uiLoggerFormatter==null){\n uiLoggerFormatter = new SimpleFormatter();\n }\n\n if (consoleLoggerFormatter==null){\n consoleLoggerFormatter = new SimpleFormatter();\n }\n Handler[] handlers = logger.getHandlers();\n // suppress the logging output to the console\n if (!enableConsoleLogger){\n if (handlers[0] instanceof ConsoleHandler) {\n logger.removeHandler(handlers[0]);\n }\n }\n else{\n if (handlers[0] instanceof ConsoleHandler) {\n handlers[0].setFormatter(consoleLoggerFormatter);\n }\n }\n\n setLevel(lvl);\n\n if(fileHandler!=null){\n if (fileLoggerFormatter==null){\n fileLoggerFormatter = new SimpleFormatter();\n }\n fileHandler.setFormatter(fileLoggerFormatter);\n logger.addHandler(fileHandler);\n }\n\n if(enableUILogger){\n txtAreaHandler = new EZUIHandler(uiLoggerSizeLimit);\n txtAreaHandler.setFormatter(uiLoggerFormatter);\n logger.addHandler(txtAreaHandler);\n }\n \n initialized = true;\n }",
"public static void turnOffLogBackLogger() {\n\t\tLogger orgHibernateLogger = (Logger) LoggerFactory.getLogger(\"ROOT\");\n\t\tch.qos.logback.classic.Level oldLogLevel = orgHibernateLogger\n\t\t\t\t.getLevel();\n\t\torgHibernateLogger.setLevel(Level.OFF);\n\t}",
"public static synchronized void stopConsoleListener(){\r\n\t\tif( globalConsoleListener != null){\r\n\t\t\tglobalConsoleListener.stopListener();\r\n\t\t}\r\n\t}",
"public static void setupLoggers() {\n SLF4JBridgeHandler.removeHandlersForRootLogger();\n\n // add SLF4JBridgeHandler to j.u.l's root logger\n SLF4JBridgeHandler.install();\n }",
"public Object run() {\n for (Handler h : logger.getHandlers()) {\n logger.removeHandler(h);\n }\n\n logger.setUseParentHandlers(false);\n for (Handler handler : handlers) {\n logger.addHandler(handler); \n }\n\n Level logLevel = getConfiguredLogLevel(logger.getName());\n if( logLevel != null ) {\n logger.setLevel( logLevel );\n }\n postInitializeLogger( logger );\n return null;\n }",
"public LogHandler createDefaultLogHandler() {\r\n return new JavaLoggingHandler();\r\n }",
"static void remove(final LogContext logContext) {\n final Logger logger = logContext.getLoggerIfExists(NAME);\n if (logger != null) {\n detach(logger);\n }\n }",
"public void clearLog() {\n try {\n Runtime.getRuntime().exec(new String[] { \"logcat\", \"-c\" });\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"void internalShutdown() {\n\t\tsynchronized(this.hookedPlugins) {\n\t\t\tIterator<String> it = this.hookedPlugins.keySet().iterator();\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tString id = it.next(); \n\t\t\t\tPluginLogListener listener = this.hookedPlugins.get(id);\n\t\t\t\tlistener.dispose(); \n\t\t\t}\n\t\t\tthis.hookedPlugins.clear(); \n\t\t}\t\n\t\tthis.hierarchy.shutdown();\n\t}",
"public static void clearConsole() {\n\t}",
"void removeFramework(FrameworkContext fw) {\n bundleHandler.removeFramework(fw);\n synchronized (wrapMap) {\n for (Iterator<Map.Entry<String, URLStreamHandlerWrapper>> i = wrapMap.entrySet().iterator(); i.hasNext(); ) {\n Map.Entry<String, URLStreamHandlerWrapper> e = i.next();\n if ((e.getValue()).removeFramework(fw)) {\n i.remove();\n }\n }\n framework.remove(fw);\n if (debug == fw.debug) {\n if (framework.isEmpty()) {\n debug = null;\n } else {\n debug = framework.get(0).debug;\n }\n }\n }\n }",
"@After\n\tpublic void reset() {\n\t\tWhitebox.setInternalState(TinylogLogger.class, ProviderRegistry.getLoggingProvider());\n\t}",
"protected GwtLogHandler getLogHandler() {\n\t\treturn null;\n\t}",
"public void disableLogging();",
"private void removeOldMouseGrabber() {\n Object oldLogger = ReflectionUtil.changeIllegalAccessLogger(null);\n AppContext context = AppContext.getAppContext();\n try {\n Field field = BasicPopupMenuUI.class.getDeclaredField(\"MOUSE_GRABBER_KEY\");\n field.setAccessible(true);\n Object value = field.get(null);\n Object mouseGrabber = context.get(value);\n if (mouseGrabber != null) {\n Method method = mouseGrabber.getClass().getDeclaredMethod(\"uninstall\");\n method.setAccessible(true);\n method.invoke(mouseGrabber);\n }\n context.put(value, null);\n } catch (NoSuchFieldException | IllegalAccessException | NoSuchMethodException | InvocationTargetException e) {\n e.printStackTrace();\n } finally {\n ReflectionUtil.changeIllegalAccessLogger(oldLogger);\n }\n }",
"public void uninstall()\r\n \t{\r\n \t\tif (realListeners == null) return;\r\n\r\n\t\t// Remove this class as the default listener\r\n\r\n\t\tscrollPane.removeMouseWheelListener( this );\r\n\r\n\t\t// Install the default listeners\r\n\r\n\t\tfor (MouseWheelListener mwl : realListeners)\r\n\t\t{\r\n\t\t\tscrollPane.addMouseWheelListener( mwl );\r\n\t\t}\r\n\r\n\t\trealListeners = null;\r\n \t}",
"public static Optional<ConsoleHandler> getConsoleHandler() {\n ImmutableList<Handler> handlers = ImmutableList.copyOf(Logger.getLogger(\"\").getHandlers());\n for (Handler handler : handlers) {\n if (handler instanceof ConsoleHandler) {\n return Optional.of((ConsoleHandler) handler);\n }\n }\n return Optional.absent();\n }",
"private void postInitializeLogger( final Logger logger ) {\n final Handler customHandler = getCustomHandler( );\n final Filter customFilter = getCustomFilter( );\n if( ( customHandler == null)\n &&( customFilter == null ) ) {\n return;\n }\n java.security.AccessController.doPrivileged(\n new java.security.PrivilegedAction<Object>() {\n public Object run() {\n if( customHandler != null ) {\n logger.addHandler( customHandler );\n }\n if( customFilter != null ) {\n logger.setFilter( customFilter );\n }\n return null;\n }\n }\n );\n }",
"public void shutDown()\n {\n // Runtime.getRuntime().removeShutdownHook(shutdownListener);\n //shutdownListener.run();\n }",
"protected ConsoleHandler() {\n super();\n setConsole(System.err);\n setFormatter(LOG_FORMATTER);\n setLevel(DEFAULT_LEVEL);\n }",
"protected synchronized void clearScriptHandler() {\r\n currentScriptHandler = null;\r\n handlerLock.unlock();\r\n }",
"private void internalInitializeLogger( final Logger logger ) {\n \n java.security.AccessController.doPrivileged(\n new java.security.PrivilegedAction<Object>() {\n public Object run() {\n // Explicitly remove all handlers.\n for (Handler h : logger.getHandlers()) {\n logger.removeHandler(h);\n }\n\n logger.setUseParentHandlers(false);\n for (Handler handler : handlers) {\n logger.addHandler(handler); \n }\n\n Level logLevel = getConfiguredLogLevel(logger.getName());\n if( logLevel != null ) {\n logger.setLevel( logLevel );\n }\n postInitializeLogger( logger );\n return null;\n }\n }\n );\n }",
"public void removeAllAppenders() {\n synchronized (myAppenders) {\n myAppenders.removeAllAppenders();\n }\n }",
"public void removeNotificationHandler(String serviceName, NotificationHandler handler) ;",
"public void remove() {\n if (SystemTray.isSupported()) {\n try {\n tray.remove(Tray.sysTray);\n } catch (final Exception e) {\n }\n }\n }",
"private void uninstall()\r\n {\r\n // do not listen to any other key strokes\r\n editor.getViewer().removeVerifyKeyListener(this);\r\n\r\n editor.getViewer().getTextWidget().removeFocusListener(this);\r\n\r\n editor.setStatusMessage(\"\");\r\n }",
"public void removeHandler(String tag) {\n handlers.remove(tag);\n }",
"public void destroy() {\n log = null;\n }",
"public Builder clearConsole() {\n if (consoleBuilder_ == null) {\n console_ = com.lxd.protobuf.msg.result.console.Console.Console_.getDefaultInstance();\n onChanged();\n } else {\n consoleBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x00000002);\n return this;\n }",
"public final static void clearConsole()\n\t{\n\t try {\n\t \t\n\t final String os = System.getProperty(\"os.name\");\n\n\t if (os.contains(\"Windows\")) {\n\t \tnew ProcessBuilder(\"cmd\", \"/c\", \"cls\").inheritIO().start().waitFor();\n\t } else {\n\t Runtime.getRuntime().exec(\"clear\");\n\t }\n\t } catch (final Exception e) {\n\t \tSystem.err.println(\"Utils: clearConsole: ERROR\");\n\t e.printStackTrace();\n\t }\n\t}",
"protected static void configureJULtoSLF4J(ServletContext servletContext) {\n try {\n // Try to locate class and method using current classloader\n Class<?> clazz = Class.forName(\"org.slf4j.bridge.SLF4JBridgeHandler\", true,\n JULConfigurer.class.getClassLoader());\n Method installMethod = clazz.getDeclaredMethod(\"install\", (Class[]) null);\n\n // Check if JUL to SLF4J is already configured in current classloader\n if (isJULtoSLF4JAlreadyConfigured(clazz)) {\n return;\n }\n\n // Method is found, check if we must clean previous JUL handlers.\n Boolean removeConsoleHandler = Boolean.valueOf(servletContext.getInitParameter(REMOVE_JUL_CONSOLEHANDLER_PARAM));\n if (removeConsoleHandler == Boolean.TRUE) {\n removeJULConsoleHandler(servletContext);\n }\n\n installMethod.invoke(null, (Object[]) null);\n\n addSLF4JHandlerToLoggers(servletContext, clazz);\n servletContext.log(\"jul-to-slf4j successfully initialized\");\n } catch (ClassNotFoundException e) {\n servletContext.log(\"jul-to-slf4j is disabled : org.slf4j.bridge.SLF4JBridgeHandler not found in classpath\");\n } catch (NoSuchMethodException e) {\n servletContext.log(\"jul-to-slf4j is disabled : org.slf4j.bridge.SLF4JBridgeHandler.install() method not found. \"\n + \"Check your jul-to-slf4j version\");\n } catch (SecurityException e) {\n throw new RuntimeException(\"Unexpected error while trying to configure jul-to-slf4j\", e);\n } catch (IllegalArgumentException e) {\n throw new RuntimeException(\"Unexpected error while trying to configure jul-to-slf4j\", e);\n } catch (IllegalAccessException e) {\n throw new RuntimeException(\"Unexpected error while trying to configure jul-to-slf4j\", e);\n } catch (InvocationTargetException e) {\n throw new RuntimeException(\"Unexpected error while trying to configure jul-to-slf4j\", e);\n }\n }",
"@Override\n\tpublic void update() {\n\t\tFile logFile = new File(AppStorage.getInstance().getLogFileLocation());\n\t\tlogFile.getParentFile().mkdirs();\n\n\t\ttry {\n\t\t\tFileHandler fileHandler = new FileHandler(AppStorage.getInstance().getLogFileLocation(), true);\n\t\t\tSimpleFormatter formatter = new SimpleFormatter();\n\t\t\tfileHandler.setFormatter(formatter);\n\n\t\t\twhile (logger.getHandlers().length > 0) {\n\t\t\t\tFileHandler prevFileHandler = (FileHandler)logger.getHandlers()[0];\n\t\t\t\tlogger.removeHandler(prevFileHandler);\n\t\t\t\tprevFileHandler.close();\n\t\t\t}\n\n\t\t\tlogger.addHandler(fileHandler);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void shutdown ()\n\t{\n\t\tif (m_interpreter != null)\n\t\t{\n\t\t\tm_console.dispose ();\n\t\t\tm_interpreter.cleanup ();\n\t\t}\n\t}",
"private native void finaliseLoggerReference();",
"private native void finaliseLoggerReference();",
"public void removeJfiPayLog(final Long logId);",
"void clearHandlers();",
"@Override\n\tpublic void ClearHandler() {\n\t\teventHandlers.clear();\n\t\t\n\t}",
"public final static void clearConsole()\n {\n try {\n Runtime.getRuntime().exec(\"clear\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private static boolean hasConsoleHandler(Logger logger) {\n\n /*\n * [#18277] Add null check of logger.getHandlers() because the Resin\n * app server's implementation of logging can return null instead of an\n * empty array.\n */\n Handler[] handlers = logger.getHandlers();\n if (handlers == null) {\n return false;\n }\n\n for (Handler h : handlers) {\n if (h instanceof java.util.logging.ConsoleHandler) {\n return true;\n }\n }\n\n return false;\n }",
"protected void uninstallListeners() {\n }",
"protected void uninstallListeners() {\n }",
"public void shutdownSilently() {\n shutdownSilently(true);\n }",
"public static void unsetExecutionContext() {\r\n\t\tServletLoggingOutput.servlets.set(null);\r\n\t}",
"void unsetSystem();",
"@ZAttr(id=684)\n public void unsetAdminConsoleLogoutURL() throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraAdminConsoleLogoutURL, \"\");\n getProvisioning().modifyAttrs(this, attrs);\n }",
"private JavaUtilLogHandlers() { }",
"protected void uninstallListeners() {\n\t}",
"private static native void hook_del(long handle) throws UnicornException;",
"protected void uninstallListeners() {\n frame.removePropertyChangeListener(propertyChangeListener);\n }",
"public void disableCurlLogging() {\n curlConfiguration = null;\n }",
"@Override\n public void removeHandlerListener(IHandlerListener handlerListener) {\n\n }",
"public String reset() {\n //Enumeration e = LogManager.getLogManager().getLoggerNames();\n /*\n for (int i= 0; i < arr.length; i++) {\n arr[i].setDefaultLogLevel();\n }\n */\n numResets++;\n return \"NOT IMPLEMENTED: Logging level is reset to default values\";\n }",
"private void addShutdownHook() {\n if (!Boolean.getBoolean(\n org.apache.geode.distributed.internal.InternalDistributedSystem.DISABLE_SHUTDOWN_HOOK_PROPERTY)) {\n Runtime.getRuntime().addShutdownHook(shutdownHook);\n }\n }",
"@Override\n\tpublic void releaseLogger() {\n\t\t\n\t}",
"@Override\n\tpublic void removeSinkLogEventListener(SinkLogEventListener listener) {\n\t\tsynchronized (logListeners) {\n\t\t\tlogListeners.remove(listener);\n\t\t}\n\t}",
"@Override\r\n\tpublic void clearStepHandlers() {\n\t\t\r\n\t}",
"private final static void clearConsole()\t{\n\t\tSystem.out.print(\"\\033[H\\033[2J\"); \n\t\tSystem.out.flush();\n\t}",
"public void activateConsoleMode() {\n logger.addHandler(mConsoleHandler);\n }",
"@Bean(name=\"jaasLogoutHandler-ui-krb\")\n public LogoutHandler jassLogoutHandler() {\n return new SessionDestroyEventLogoutHandler(authenticationProvider);\n }",
"public final static void clearConsole()\r\n\t{\n\t\ttry {\r\n\t\t\t\r\n\t\t\tif (System.getProperty(\"os.name\").contains(\"Windows\")) // 윈도우계열 플랫폼\r\n\t\t\t\tnew ProcessBuilder(\"cmd\", \"/c\", \"cls\").inheritIO().start().waitFor();\r\n\t\t\telse // 유닉스(맥)ㅡ 리눅스(유닉스-free)\r\n\t\t\t\tRuntime.getRuntime().exec(\"clear\");\r\n\t\t} catch (IOException | InterruptedException ex) {}\r\n\t}",
"@GuardedBy(\"getLockObject()\")\n private void discardDeviceWideLogsLocked() {\n mSecurityLogMonitor.discardLogs();\n if (mNetworkLogger != null) {\n mNetworkLogger.discardLogs();\n }\n // TODO: We should discard pre-boot security logs here too, as otherwise those\n // logs (which might contain data from the user just removed) will be\n // available after next boot.\n }",
"public void removeServer(AbstractServer server) {\n server.getHandler().getHandledTypes()\n .forEach(x -> {\n handlerMap.remove(x, server);\n log.trace(\"Un-Registered {} to handle messages of type {}\", server, x);\n });\n }",
"@After\n public void dropShellPermissions() {\n InstallUtils.dropShellPermissionIdentity();\n }",
"@Override\r\n\tpublic void clearEventHandlers() {\n\t\t\r\n\t}",
"public static LoggerProxy getRootLogger() {\r\n\t\treturn new LoggerProxy(LogManager.getRootLogger());\r\n\t}",
"protected EnumTypeAdapterFactory suppressUnregisteredLogging(){\n\t\tlogUnregistered = false;\n\t\treturn this;\n\t}",
"public ConsoleHandler createConsoleHandler () {\r\n\t\t\t\r\n\t\tConsoleHandler consoleHandler = null;\r\n\t\t\t\r\n\t\ttry {\r\n\t\t \t\r\n\t\t\tconsoleHandler = new ConsoleHandler();\r\n\t\t\t\t\r\n\t\t} catch (SecurityException e) {\r\n\t\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t \r\n\t\t return consoleHandler;\r\n\t}",
"static public void unregisterAllRoot()\n {\n java.lang.SecurityManager sm = System.getSecurityManager();\n if( sm != null )\n {\n sm.checkPermission( new RuntimePermission( \"modifyRepository\" ) );\n }\n\n rootMap.clear();\n }",
"void unsubscribe(LogListener listener);",
"@SuppressWarnings(\"unused\")\n public void removeAllListeners() {\n eventHandlerList.clear();\n }",
"@After\n public void tearDown() {\n Configurator.setLevel(Main.class.getPackage().getName(), Level.INFO);\n }",
"private static void setupLogger() {\n\t\tLogManager.getLogManager().reset();\n\t\t// set the level of logging.\n\t\tlogger.setLevel(Level.ALL);\n\t\t// Create a new Handler for console.\n\t\tConsoleHandler consHandler = new ConsoleHandler();\n\t\tconsHandler.setLevel(Level.SEVERE);\n\t\tlogger.addHandler(consHandler);\n\n\t\ttry {\n\t\t\t// Create a new Handler for file.\n\t\t\tFileHandler fHandler = new FileHandler(\"HQlogger.log\");\n\t\t\tfHandler.setFormatter(new SimpleFormatter());\n\t\t\t// set level of logging\n\t\t\tfHandler.setLevel(Level.FINEST);\n\t\t\tlogger.addHandler(fHandler);\n\t\t}catch(IOException e) {\n\t\t\tlogger.log(Level.SEVERE, \"File logger not working! \", e);\n\t\t}\n\t}",
"public static final void onExit() {\r\n isShutdown = true;\r\n if (instance != null) {\r\n if (instance.logBase.isInfoEnabled()) {\r\n instance.logBase.info(\"LogUtil.onExit : free singleton : \" + SingletonSupport.getSingletonLogName(instance));\r\n }\r\n\r\n // After the Log4J shutdown, Loggers are no more usable :\r\n\r\n // Release Log4J resources :\r\n Log4JCleaner.shutdown();\r\n\r\n // Classloader unload problem with commons-logging :\r\n LogFactory.release(Thread.currentThread().getContextClassLoader());\r\n // force GC :\r\n instance.log = null;\r\n instance.logBase = null;\r\n instance.logDev = null;\r\n instance.logs.clear();\r\n\r\n // free singleton :\r\n instance = null;\r\n }\r\n\r\n // clean up custom logger instances associated with eclipseLink :\r\n CommonsLoggingSessionLog.onExit();\r\n }",
"public synchronized void removePermanentHandler(Listener listener) {\n permanentEventMethodCache.remove(listener);\n }",
"public static void releaseAllHandlers(){\n throw new RuntimeException(\"Not implemented yet\");\n }",
"protected void uninstallDefaults() {\n\t\tLookAndFeel.uninstallBorder(this.controlPanel);\n\t}",
"public void removeJbdSendRecordHist(final String id);",
"private static void clearExecutionHandlerPointers(ExecutionHandler<?> execHandler){\r\n\t\t\r\n\t\t//now iterate the executables on the given ExecutionHandler Thread again, now not on the UI thread and delete them from global lists\r\n\t\tfor( Executable<?> exec : execHandler.executablesInProcess){\r\n\t\t\tallExecutablesInProcess.remove(exec); \r\n\t\t}\r\n\t\t\r\n\t\t//empty the local lists to release the objects\r\n\t\texecHandler.executablesInProcess.clear();\r\n\t\t\r\n\t\t//and remove the ExecutionHandler from the global list\r\n\t\tallThreads.remove(execHandler);\r\n\t}",
"@ZAttr(id=772)\n public void unsetAdminConsoleLoginMessage() throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraAdminConsoleLoginMessage, \"\");\n getProvisioning().modifyAttrs(this, attrs);\n }",
"@Override\r\n\tpublic void removeHandlerListener(IHandlerListener handlerListener) {\n\r\n\t}",
"public void resetHandlers() {\r\n atRoot = true;\r\n path = \"/\";\r\n pathStack.clear();\r\n handlerStack.clear();\r\n handlers.clear();\r\n defaultHandler = null;\r\n }",
"public void removeAllAmplitudeListeners()\r\n {\r\n amplitudeListeners.clear();\r\n }",
"public void removeLevel()\r\n {\r\n if( tables.size()>1 )\r\n {\r\n tables.removeFirst();\r\n }\r\n if( counts.size()>1 )\r\n {\r\n counts.removeFirst();\r\n }\r\n }",
"private void stopLoggerService() {\n Intent intent = new Intent(this, GestureLoggerService.class);\n intent.putExtra(GestureLoggerService.EXTRA_START_SERVICE, false);\n\n startService(intent);\n }"
] | [
"0.7155486",
"0.647597",
"0.60520774",
"0.58325917",
"0.581837",
"0.5741941",
"0.5714742",
"0.56232697",
"0.5614143",
"0.56012267",
"0.5531095",
"0.5478786",
"0.54620373",
"0.5409786",
"0.5395852",
"0.5325237",
"0.5313325",
"0.5305902",
"0.5202614",
"0.5188412",
"0.51327556",
"0.51042587",
"0.5079729",
"0.5075839",
"0.5019531",
"0.50042707",
"0.499532",
"0.49937204",
"0.49899074",
"0.4984526",
"0.49608114",
"0.49358985",
"0.4932778",
"0.4806507",
"0.47913718",
"0.47911704",
"0.4776475",
"0.47658917",
"0.4760477",
"0.4759152",
"0.47237217",
"0.47198924",
"0.47131974",
"0.47012025",
"0.4693767",
"0.4691885",
"0.46904632",
"0.46762952",
"0.46678463",
"0.46678463",
"0.46646926",
"0.46478343",
"0.4646392",
"0.46213812",
"0.46200833",
"0.46182048",
"0.46182048",
"0.461588",
"0.46040404",
"0.46026596",
"0.45878524",
"0.45870492",
"0.4571316",
"0.45671025",
"0.45663378",
"0.45635378",
"0.4563199",
"0.4554845",
"0.4547962",
"0.45456225",
"0.45452994",
"0.45292407",
"0.45279032",
"0.4526611",
"0.4524091",
"0.45185533",
"0.45001394",
"0.44961774",
"0.4485374",
"0.44759756",
"0.44705635",
"0.4468206",
"0.44627514",
"0.44608867",
"0.44482958",
"0.44479272",
"0.4440806",
"0.4436458",
"0.4435041",
"0.4420371",
"0.44130188",
"0.44026136",
"0.4397628",
"0.4396808",
"0.4394708",
"0.43835807",
"0.4379531",
"0.43779743",
"0.43721226",
"0.4371087"
] | 0.7959721 | 0 |
Return a table which represents a ResultSet, to be printed by a logger, based on the content of the provided resultSetCollector. This method will be actually called by a SpyLogDelegator when the next() method of the spied ResultSet return false meaning that its end is reached. It will be also called if the ResultSet is closed. | public String getResultSetToPrint(ResultSetCollector resultSetCollector) {
this.table.append(System.getProperty("line.separator"));
if(resultSetCollector != null && resultSetCollector.getRows() != null){
this.table.append("rows : "+resultSetCollector.getRows().size());
}
this.table.append(System.getProperty("line.separator"));
int columnCount = resultSetCollector.getColumnCount();
int maxLength[] = new int[columnCount];
//칼럼의 최대 길기 구하기
//칼럼 헤더와 값을 모두 열어서 길이를 확인한다.
//한글인 경우 2자리로 계산한다.
List<List<Object>> rows = resultSetCollector.getRows();
if(rows != null){
adjustStr(rows);
for (int column = 1; column <= columnCount; column++) {
int maxCharCnt = countLength(resultSetCollector.getColumnName(column));
for(int i = 0; i < rows.size() && i < MAX_ROWS_PRINTABLE;i++){
List<Object> row = rows.get(i);
int length = countLength(row.get(column -1).toString());
// System.out.println(" row.get(" +(column -1)+").toString() :" +row.get(column -1).toString() +" / length : "+length);
maxCharCnt = Math.max(maxCharCnt, length);
}
maxLength[column - 1] = maxCharCnt;
}
if (resultSetCollector.getRows() != null) {
for (List<Object> printRow : resultSetCollector.getRows()) {
int colIndex = 0;
for (Object v : printRow) {
if (v != null) {
int length = v.toString().length();
if (length > maxLength[colIndex]) {
maxLength[colIndex] = length;
}
}
colIndex++;
}
}
}
for (int column = 1; column <= columnCount; column++) {
maxLength[column - 1] = maxLength[column - 1] + 1;
}
//첫줄 출력 : +----------+-----------+
this.table.append("+");
for (int column = 1; column <= columnCount; column++) {
this.table.append(padRight("-", maxLength[column - 1]).replaceAll(" ", "-") + "+");
}
this.table.append(System.getProperty("line.separator"));
this.table.append("|");//column 헤더 출력 : |column1 |column2 |
for (int column = 1; column <= columnCount; column++) {
this.table.append(padRight(resultSetCollector.getColumnName(column), maxLength[column - 1]) + "|");
}
this.table.append(System.getProperty("line.separator"));
this.table.append("+");//column 헤더 아랫줄 출력 : +----------+-----------+
for (int column = 1; column <= columnCount; column++) {
this.table.append(padRight("-", maxLength[column - 1]).replaceAll(" ", "-") + "+");
}
this.table.append(System.getProperty("line.separator"));
if (resultSetCollector.getRows() != null) {//row 별 데이터 출력
int cnt = 0;
for (List<Object> printRow : resultSetCollector.getRows()) {
int colIndex = 0;
this.table.append("|");
for (Object v : printRow) {
this.table.append(padRight(v == null ? "(null)" : v.toString(), maxLength[colIndex]) + "|");
colIndex++;
}
this.table.append(System.getProperty("line.separator"));
if(++cnt >= MAX_ROWS_PRINTABLE) //최대 출력치를 벗어나면 더 이상 출력하지 않는다.
break;
}
}
this.table.append("+");
for (int column = 1; column <= columnCount; column++) {
this.table.append(padRight("-", maxLength[column - 1]).replaceAll(" ", "-") + "+");
}
}
this.table.append(System.getProperty("line.separator"));
resultSetCollector.reset();
return this.table.toString() ;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void resultSetCollected(ResultSetCollector resultSetCollector);",
"private ResultsTable getResultsTable(boolean enReset) {\n ResultsTable rt = ResultsTable.getResultsTable();\n\n if(rt == null || rt.getCounter() == 0) {\n rt = new ResultsTable();\n }\n\n if(enReset) {\n rt.reset();\n }\n\n rt.show(\"Results\");\n\n return rt;\n }",
"public void PrintResult() {\n try {\n res.beforeFirst();\n int columnsNumber = res.getMetaData().getColumnCount();\n while (res.next()) {\n for (int i = 1; i <= columnsNumber; i++) {\n if (i > 1) System.out.print(\", \");\n Object columnValue = res.getObject(i);\n System.out.print(res.getMetaData().getColumnName(i) + \" \" + columnValue);\n }\n System.out.println();\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"public ResultSetTableModelDirect(final ResultSet resultSet)\n {\n if (this.resultSet != null)\n {\n try\n {\n this.resultSet.close();\n } catch (SQLException ex)\n {\n edu.ku.brc.af.core.UsageTracker.incrSQLUsageCount();\n edu.ku.brc.exceptions.ExceptionTracker.getInstance().capture(ResultSetTableModelDirect.class, ex);\n log.error(ex);\n }\n }\n\n this.resultSet = resultSet;\n try\n {\n if (this.resultSet != null)\n {\n metaData = this.resultSet.getMetaData();\n for (int i=1;i<=metaData.getColumnCount();i++)\n {\n classNames.addElement(Class.forName(metaData.getColumnClassName(i)));\n }\n\n if (!this.resultSet.first())\n {\n return;\n }\n\n if (this.resultSet.last())\n {\n numRows = this.resultSet.getRow();\n }\n this.resultSet.first();\n currentRow = 1;\n }\n } catch (SQLException ex)\n {\n edu.ku.brc.af.core.UsageTracker.incrSQLUsageCount();\n edu.ku.brc.exceptions.ExceptionTracker.getInstance().capture(ResultSetTableModelDirect.class, ex);\n log.error(\"In constructor of ResultSetTableModel\", ex);\n }\n catch (Exception ex)\n {\n edu.ku.brc.af.core.UsageTracker.incrHandledUsageCount();\n edu.ku.brc.exceptions.ExceptionTracker.getInstance().capture(ResultSetTableModelDirect.class, ex);\n log.error(\"In constructor of ResultSetTableModel\", ex);\n }\n }",
"public void printResults(ResultSet resultSet) throws SQLException {\n\t\tResultSetMetaData rsmd = resultSet.getMetaData();\n\t\tint columnsNumber = rsmd.getColumnCount();\n\t\tint count = 1;\n\t\twhile (resultSet.next()) {\n\t\t\tSystem.out.println(\"Record: \" + count);\n\t\t for (int i = 1; i <= columnsNumber; i++) {\n\t\t String columnValue = resultSet.getString(i);\n\t\t System.out.print(rsmd.getColumnName(i) + \": \" + columnValue + \", \");\n\t\t }\n\t\t System.out.println(\"\");\n\t\t count++;\n\t\t}\n\t}",
"private void writeResultSet(ResultSet resultSet) throws SQLException {\n while (resultSet.next()) {\n // it is possible to get the columns via name\n // also possible to get the columns via the column number\n // which starts at 1\n // e.g., resultSet.getSTring(2);\n String id = resultSet.getString(\"id\");\n String name = resultSet.getString(\"name\");\n String email = resultSet.getString(\"email\");\n String password = resultSet.getString(\"password\");\n String enc_type = resultSet.getString(\"enc_type\");\n System.out.println(\"ID: \" + id);\n System.out.println(\"Name: \" + name);\n System.out.println(\"Email: \" + email);\n System.out.println(\"Password: \" + password);\n System.out.println(\"ENC Type: \" + enc_type);\n }\n }",
"public static void recordIdealResultSet(String logLevel, IdealResultSet idealResultSet)\n {\n Recorder.SQLRecord(idealResultSet, getRecordMetadata(), logLevel);\n }",
"public void setResultSetTranslator(ResultSetTranslator outputTranslator) {\n resultSetTranslator = outputTranslator;\n }",
"public boolean isResultSetCollectionEnabled();",
"private String getStringFromResultSet(ResultSet rs) throws SQLException, UnsupportedEncodingException {\n ResultSetMetaData meta = rs.getMetaData();\n\n StringBuilder sb = new StringBuilder();\n\n int numColumns = meta.getColumnCount();\n for (int i = 1; i <= numColumns; i++) {\n sb.append(meta.getColumnLabel(i));\n if (i == numColumns) {\n sb.append('\\n');\n } else {\n sb.append('\\t');\n }\n }\n\n\n JMeterVariables jmvars = getThreadContext().getVariables();\n String varnames[] = getVariableNames().split(COMMA);\n String resultVariable = getResultVariable().trim();\n List<Map<String, Object>> results = null;\n if (resultVariable.length() > 0) {\n results = new ArrayList<Map<String, Object>>();\n jmvars.putObject(resultVariable, results);\n }\n int j = 0;\n while (rs.next()) {\n Map<String, Object> row = null;\n j++;\n for (int i = 1; i <= numColumns; i++) {\n Object o = rs.getObject(i);\n if (results != null) {\n if (row == null) {\n row = new HashMap<String, Object>(numColumns);\n results.add(row);\n }\n row.put(meta.getColumnLabel(i), o);\n }\n if (o instanceof byte[]) {\n o = new String((byte[]) o, ENCODING);\n }\n sb.append(o);\n if (i == numColumns) {\n sb.append('\\n');\n } else {\n sb.append('\\t');\n }\n if (i <= varnames.length) { // i starts at 1\n String name = varnames[i - 1].trim();\n if (name.length() > 0) { // Save the value in the variable if present\n jmvars.put(name + UNDERSCORE + j, o == null ? null : o.toString());\n }\n }\n }\n if (NumberUtils.isNumber(getResultSetReadDelay())) {\n try {\n Thread.sleep(Long.valueOf(getResultSetReadDelay()));\n } catch (InterruptedException e) {\n log.warn(\"Result set read delay caused InterruptedException.\", e);\n }\n }\n }\n // Remove any additional values from previous sample\n for (int i = 0; i < varnames.length; i++) {\n String name = varnames[i].trim();\n if (name.length() > 0 && jmvars != null) {\n final String varCount = name + \"_#\"; // $NON-NLS-1$\n // Get the previous count\n String prevCount = jmvars.get(varCount);\n if (prevCount != null) {\n int prev = Integer.parseInt(prevCount);\n for (int n = j + 1; n <= prev; n++) {\n jmvars.remove(name + UNDERSCORE + n);\n }\n }\n jmvars.put(varCount, Integer.toString(j)); // save the current count\n }\n }\n\n return sb.toString();\n }",
"public ResultSet getResults() {\r\n return resultSet;\r\n }",
"private synchronized ResultSet wrapResultSetIfEnabled(final ResultSet rs, final SessionImplementor session) {\n \t\tif ( session.getFactory().getSettings().isWrapResultSetsEnabled() ) {\n \t\t\ttry {\n \t\t\t\tLOG.debugf( \"Wrapping result set [%s]\", rs );\n \t\t\t\treturn session.getFactory()\n \t\t\t\t\t\t.getJdbcServices()\n \t\t\t\t\t\t.getResultSetWrapper().wrap( rs, retreiveColumnNameToIndexCache( rs ) );\n \t\t\t}\n \t\t\tcatch(SQLException e) {\n \t\t\t\tLOG.unableToWrapResultSet( e );\n \t\t\t\treturn rs;\n \t\t\t}\n \t\t}\n \t\telse {\n \t\t\treturn rs;\n \t\t}\n \t}",
"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}",
"@Override\n protected void initResultTable() {\n }",
"public WebElement getResultTable() {\n System.out.println(\"[step] getResultTable\");\n return page.findElement(resultTable);\n }",
"public static String resultSetToString(final ResultSet aResultSet) {\r\n return resultSetToString(aResultSet, \", \", StringUtility.NEW_LINE);\r\n }",
"private void writeMetaData(ResultSet resultSet) throws SQLException {\n\t System.out.println(\"The columns in the table are: \");\r\n\t System.out.println(\"Table: \" + resultSet.getMetaData().getTableName(1));\r\n\t for (int i = 1; i<= resultSet.getMetaData().getColumnCount(); i++){\r\n\t System.out.println(\"Column \" +i + \" \"+ resultSet.getMetaData().getColumnName(i));\r\n\t }\r\n\t }",
"public static void printResultSet( ResultSet rs ) throws SQLException {\n ResultSetMetaData rsmd = rs.getMetaData();\n int columnCount;\n int labelLength;\n int k;\n int i;\n String line = \"\";\n String label = null;\n \n columnCount = rsmd.getColumnCount();\n for (k=1; k<=columnCount; k++) {\n label = rsmd.getColumnLabel( k );\n System.out.print( label + '\\t' );\n \n // construct line with exact same length as the label\n labelLength = label.length();\n label = \"\";\n for (i=0; i<labelLength; i++)\n label += '=';\n line += label + '\\t';\n }\n \n System.out.println();\n System.out.println(line);\n \n while ( rs.next() ) {\n for (k=1; k<=columnCount; k++) {\n System.out.print( rs.getString( k ) + '\\t' );\n }\n \n System.out.println();\n }\n \n System.out.println();\n }",
"private void writeTableContents(BufferedWriter writer, ISuite suite,\r\n\t\t\tResultTable table) throws IOException {\r\n\r\n\t\tMap<String, ResultVo> dataMap = table.getResultData();\r\n\t\tString closer = \"</tbody></table></div>\";\r\n\t\tdataMap.forEach((key, value) -> {\r\n\t\t\tString datagenerator = \"\";\r\n\t\t\tString message = value.getExpectionMessage() != null ? value\r\n\t\t\t\t\t.getExpectionMessage() : \"\";\r\n\t\t\tSystem.out.println(message);\r\n\t\t\tdatagenerator = \"<tr><td>\" + value.getTestCaeId() + \"</td><td>\"\r\n\t\t\t\t\t+ value.getMethodName() + \"</td><td>\" + value.getPrioirty()\r\n\t\t\t\t\t+ \"</td><td>\" + value.getTotalTime() + \"</td>\";\r\n\r\n\t\t\tswitch (value.getResult().toString()) {\r\n\t\t\tcase \"pass\":\r\n\t\t\t\tdatagenerator += \"<td style='color:#4CAF50;font-weight:bold;'>\"\r\n\t\t\t\t\t\t+ value.getResult() + \"</td>\";\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"fail\":\r\n\t\t\t\tdatagenerator += \"<td style='color:#EF5350;font-weight:bold;'>\"\r\n\t\t\t\t\t\t+ \"<i class='material-icons' style='font-size: 16px;'></i><span>\"\r\n\t\t\t\t\t\t+ value.getResult() + \"</span></td>\";\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase \"skip\":\r\n\t\t\t\tdatagenerator += \"<td style='color:#4FC3F7;font-weight:bold;'>\"\r\n\t\t\t\t\t\t+ value.getResult() + \"</td>\";\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\twriter.write(datagenerator);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t});\r\n\t\twriter.write(closer);\r\n\t}",
"public interface ResultSetGetter {\n\n /**\n * Perform the right getter on a ResultSet and returns the value as an\n * Object. A mapper class is needed to achieve this pattern. See\n * ResultSetterFactory.\n *\n * @see ResultSetterFactory\n * @param rs The sql ResultSet that currently points to the cell of the the\n * record that you want to retrieve.\n * @param columnName The name of the columns in the sql database of which\n * you want to retrieve the value.\n * @return The value of the of the cell where the given ResultSet points to.\n * @throws SQLException Something with getting the data from the ResultSet\n * went wrong.\n */\n public Object getResult(ResultSet rs, String columnName) throws SQLException;\n\n}",
"public static String resultSetToString(final ResultSet aResultSet,\r\n final String aColumnSeparator,\r\n final String aRowSeparator) {\r\n try {\r\n DBRowList list = new DBRowList(aResultSet);\r\n return list.toString(aColumnSeparator, aRowSeparator );\r\n }\r\n catch (SQLException ex) {\r\n return null;\r\n }\r\n }",
"public static void printToScreen(ResultSetMetaData metaData, ResultSet results) throws SQLException {\n results.last();\n int numberOfRows = results.getRow();\n int numberOfColumns = metaData.getColumnCount();\n\n //store column names\n String[] columnNames = new String[numberOfColumns];\n for (int i = 1; i <= numberOfColumns; i++) {\n String columnName = metaData.getColumnName(i);\n columnNames[i - 1] = columnName;\n }\n\n //print results\n results.first();\n for (int i = 0; i < numberOfRows; i++) {\n\n String columnName = \"\";\n for (int c = 0; c < numberOfColumns; c++) {\n columnName = columnNames[c];\n String value;\n if (columnName.equals(\"population\")) {\n value = String.valueOf(results.getInt(columnName));\n } else {\n value = results.getString(columnName);\n }\n System.out.print(columnName + \"= \" + value + \" \");\n }\n System.out.println();\n results.next();\n }\n }",
"SQLServerResultSetMetaData(SQLServerConnection con, SQLServerResultSet rs) \n {\n traceID = \" SQLServerResultSetMetaData:\" + nextInstanceID();\n this.con = con;\n this.rs =rs;\n assert rs !=null;\n if(logger.isLoggable(java.util.logging.Level.FINE))\n {\n logger.fine(toString() + \" created by (\" + rs.toString() + \")\");\n }\n }",
"public ResultSet getResultSet() throws Exception {\n\t\tif(LOGGER.isDebugEnabled())\n\t\t\tthrow new UnsupportedOperationException();\n\t\treturn null;\n\t}",
"public static void recordQueryAndIdealResultSet(String logLevel, Result result, IdealResultSet idealResultSet)\n {\n Recorder.SQLRecord(result, idealResultSet, getRecordMetadata(), logLevel);\n }",
"@Test\n public void testNextWithoutHasNext() throws SQLException, InputIterationException {\n // Setup\n ResultSet resultSet = twoLinesResultSetFixture.getTestData();\n ResultSetIterator resultSetIterator = new ResultSetIterator(resultSet);\n\n // Check result\n List<ImmutableList<String>> expectedRecords = twoLinesResultSetFixture.getExpectedRecords();\n for (int i = 0; i < twoLinesResultSetFixture.numberOfRows(); i++) {\n assertEquals(expectedRecords.get(i), resultSetIterator.next());\n }\n // Next should have been called (although hasNext has not been called on sqlIterator).\n verify(resultSet, times(2)).next();\n }",
"protected ResultSet getResultSet ()\n throws SQLException\n {\n if ( this.refId == Id.UNDEFINED )\n return this.dbHelper.queryData(this.type, this.id, this.getDbColumns());\n else\n return this.dbHelper.queryDataOfRefTarget\n (this.fromDocType, this.type, this.refId, this.getDbColumns());\n }",
"private void printResultSet(ResultSet rs) {\n\t\twhile(rs.hasNext()) {\t\n\t\t\tQuerySolution qs = rs.next();\n\t\t\tSystem.out.println(qs.toString());\n\t\t}\n\t\tSystem.out.println(\"------\");\n\t}",
"public interface LocalResultSet {\n\n public boolean next();\n public int getInt(String fldname);\n public String getString(String fldname);\n public LocalMetaData getMetaData();\n public void close();\n}",
"@Override\r\n public int writeAll(@NonNull final ResultSet rs, boolean includeColumnNames) throws SQLException, IOException {\r\n\r\n writeHeader();\r\n boolean alarm = false;\r\n int rows = 0;\r\n try {\r\n ResultSetMetaData metadata = rs.getMetaData();\r\n\r\n int columnCount = metadata.getColumnCount();\r\n\r\n writeNext(new String[]{\"Starting MonTbsAuto on instance \" + instance + \" at \" + GeneralUtil.getCurrentDate(DateFormats.DASH_TIMEDATE)});\r\n thresholdUsed();\r\n writeNext(\"\\nRetrieving tablespaces info..\\n\");\r\n while (rs.next()) {\r\n String[] nextLine = new String[columnCount];\r\n\r\n for (int i = 0; i < columnCount; i++) {\r\n nextLine[i] = DatabaseUtil.getColumnValue(rs, metadata.getColumnType(i + 1), i + 1).trim();\r\n }\r\n boolean result = elaborate(nextLine);\r\n if (result && !alarm) {\r\n alarm = true;\r\n }\r\n }\r\n } catch (SQLException ex) {\r\n writeFooter(false);\r\n throw new SQLException(ex.getMessage(), ex);\r\n } catch (IOException ex) {\r\n writeFooter(false);\r\n throw new IOException(ex.getMessage(), ex);\r\n }\r\n if (!alarm) {\r\n writeNext(new String[]{\"No alarms were detected.\\n\"});\r\n }\r\n writeFooter(true);\r\n return rows;\r\n }",
"public static Map getTestResults(HTMLizer h, Statement s) throws SQLException {\n String sql = getResultSql();\n return getResults (h, s, sql);\n }",
"public ResultSet[] getResultSets(IReportDocument document)\n\t\t\tthrows RemoteException\n\t{\n\t\tassert document != null;\n\n\t\tResultSet[] resultSetArray = null;\n\n\t\tIDataExtractionTask dataTask = engine.createDataExtractionTask(document);\n\n\t\ttry\n\t\t{\n\t\t\tList resultSets = dataTask.getResultSetList();\n\t\t\tresultSetArray = new ResultSet[resultSets.size()];\n\n\t\t\tif (resultSets.size() > 0)\n\t\t\t{\n\t\t\t\tfor (int k = 0; k < resultSets.size(); k++)\n\t\t\t\t{\n\t\t\t\t\tresultSetArray[k] = new ResultSet();\n\t\t\t\t\tIResultSetItem resultSetItem = (IResultSetItem) resultSets.get(k);\n\t\t\t\t\tassert resultSetItem != null;\n\n\t\t\t\t\tresultSetArray[k].setQueryName(resultSetItem.getResultSetName());\n\n\t\t\t\t\tIResultMetaData metaData = resultSetItem.getResultMetaData();\n\t\t\t\t\tassert metaData != null;\n\n\t\t\t\t\tList<Column> columnArray = new ArrayList<Column>();\n\t\t\t\t\tfor (int i = 0; i < metaData.getColumnCount(); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (!metaData.getAllowExport(i))\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\tColumn column = new Column();\n\n\t\t\t\t\t\tString name = metaData.getColumnName(i);\n\t\t\t\t\t\tcolumn.setName(name);\n\n\t\t\t\t\t\tString label = metaData.getColumnLabel(i);\n\t\t\t\t\t\tif (label == null || label.length() <= 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tlabel = name;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcolumn.setLabel(label);\n\n\t\t\t\t\t\tcolumn.setVisibility(Boolean.valueOf(true));\n\n\t\t\t\t\t\tcolumnArray.add(column);\n\t\t\t\t\t}\n\t\t\t\t\tresultSetArray[k].setColumn(columnArray.toArray(new Column[0]));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\t// TODO: remove RemoteException in the method signature and\n\t\t\t// throw ReportServiceException directly\n\t\t\tthrowDummyException(e);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tdataTask.close();\n\t\t}\n\n\t\treturn resultSetArray;\n\t}",
"@Override\n\tpublic ResultSet getResultSet() throws SQLException {\n\t\treturn new CassandraResultSet(driverContext, resultSet);\n\t}",
"@Override\n public ResultSet getResultSet() throws SQLException {\n\n ResultSet r;\n\n r = result; // save the existing result set\n result = null; // null out the existing result set\n return r; // return the previously extant result set\n }",
"public EnhancedResultSet dumpTable( String tableName ) {\n \t return query( \"SELECT * FROM \" + tableName + \";\" );\n \t}",
"public static String[][] toTable(ResultSet rs){\n\n\t\tArrayList<String[]> rowdata = new ArrayList<String[]>();\n\n\t\ttry {\n\n\t\t\tResultSetMetaData meta = rs.getMetaData();\n\t\t\tint columns = meta.getColumnCount();\n\n\n\t\t\twhile(rs.next()){\n\n\t\t\t\tString[] data = new String[columns];\n\n\t\t\t\tfor(int i = 0; i < columns; i++){\n\t\t\t\t\tdata[i] = rs.getString(i+1);\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\trowdata.add(data);\n\t\t\t}\n\n\n\t\t\tString[][] table = new String[rowdata.size()][columns];\n\n\t\t\tfor(int i = 0; i < rowdata.size(); i++){\n\t\t\t\ttable[i] = rowdata.get(i);\n\t\t\t}\n\n\t\t\treturn table;\n\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\n\t\treturn null;\n\t}",
"private static String[] readAndClose(final ILogger aLogger,\r\n final ResultSet aResultSet) {\r\n if (aResultSet==null) return null;\r\n\r\n String[] r;\r\n if (!moveNext(aLogger, aResultSet)) {\r\n r= new String[] {};\r\n } else {\r\n r=getRowAsArray(aLogger, aResultSet);\r\n }\r\n\r\n close(aLogger, aResultSet);\r\n return r;\r\n }",
"@Test(timeout = 4000)\n public void test091() throws Throwable {\n Proxy proxy0 = (Proxy)DBUtil.createLoggingResultSet((ResultSet) null, (Statement) null);\n assertNotNull(proxy0);\n }",
"protected abstract void streamData(ResultSet paramResultSet)\r\n/* 51: */ throws SQLException, IOException, DataAccessException;",
"public ResultSet getResultSet() throws SQLException {\n return null;\r\n }",
"public void setResultSet(ResultSet rS) {\n removeAllElements();\n if (rS==null)\n return;\n try {\n ResultSetMetaData resultSetMetaData = rS.getMetaData();\n while (rS.next())\n if (resultSetMetaData.getColumnCount()==1)\n addElement(new String(rS.getString(1)));\n else\n {\n String r = \"\";\n for (int column=1; column<=resultSetMetaData.getColumnCount(); column++)\n {\n if (r.length()>0)\n r = r + \" | \";\n r = r + rS.getString(column);\n }\n addElement(r);\n }\n propertyChangeSupport.firePropertyChange(\"Status\", \"\", getStatus());\n } catch (SQLException e) {\n propertyChangeSupport.firePropertyChange(\"Status\", \"\", getStatus());\n }\n }",
"default Iterator<T> iterator(ResultSet rs) {\r\n\t\treturn new ResultSetIterator<>(rs, this);\r\n\t}",
"private void setResultSet(final ResultSet value) {\n\n resultSet = value;\n }",
"public ResultSetRow next() throws SQLException {\n/* 338 */ if (this.fetchedRows == null && this.currentPositionInEntireResult != -1) {\n/* 339 */ throw SQLError.createSQLException(Messages.getString(\"ResultSet.Operation_not_allowed_after_ResultSet_closed_144\"), \"S1000\", this.mysql.getExceptionInterceptor());\n/* */ }\n/* */ \n/* */ \n/* 343 */ if (!hasNext()) {\n/* 344 */ return null;\n/* */ }\n/* */ \n/* 347 */ this.currentPositionInEntireResult++;\n/* 348 */ this.currentPositionInFetchedRows++;\n/* */ \n/* */ \n/* 351 */ if (this.fetchedRows != null && this.fetchedRows.size() == 0) {\n/* 352 */ return null;\n/* */ }\n/* */ \n/* 355 */ if (this.fetchedRows == null || this.currentPositionInFetchedRows > this.fetchedRows.size() - 1) {\n/* 356 */ fetchMoreRows();\n/* 357 */ this.currentPositionInFetchedRows = 0;\n/* */ } \n/* */ \n/* 360 */ ResultSetRow row = this.fetchedRows.get(this.currentPositionInFetchedRows);\n/* */ \n/* 362 */ row.setMetadata(this.metadata);\n/* */ \n/* 364 */ return row;\n/* */ }",
"public static void printMemberTable() throws MemberException {\n\n Connection conn = null;\n PreparedStatement stmt = null;\n ResultSet rs = null;\n try {\n conn = DBConfiguration.getConnection();\n stmt = conn.prepareStatement(\n Configuration.SQL_01,\n ResultSet.TYPE_FORWARD_ONLY,\n ResultSet.CONCUR_READ_ONLY);\n rs = stmt.executeQuery();\n while ( rs.next() ) {\n printRow(System.out,rs);\n }\n }\n catch(SQLException x) {\n String msg = \"SQLException: \" + x.getMessage();\n throw new MemberException( msg );\n }\n finally {\n DBConfiguration.closeSQLResultSet( rs );\n DBConfiguration.closeSQLStatement( stmt );\n DBConfiguration.closeSQLConnection( conn );\n }\n conn = null;\n stmt = null;\n rs = null;\n\n return;\n }",
"@Override\n public ResultSet getResultSet() throws SQLException {\n if (isClosed()) {\n throw new SQLException(\"Statement was closed\");\n }\n if (stmt_ref == null) {\n throw new SQLException(\"Prepare something first\");\n }\n\n if (!returnsResultSet) {\n return null;\n }\n\n // getResultSet can only be called once per result\n ResultSet to_return = select_result;\n this.select_result = null;\n return to_return;\n }",
"public ResultSetFuntions2() {\n initComponents();\n try{\n System.out.println(\"Connecting to database\");\n conn=DriverManager.getConnection(DB_URL,USER,PASSWORD);\n \n //Execute a query(statement object carries the sql query and the database engine queries/processes it and sends the response as a resultset object)\n System.out.println(\"Creating statement\");\n st=conn.createStatement();\n m=(DefaultTableModel)jTable1.getModel();\n }\n catch(Exception e)\n {\n System.out.println(e);\n }\n \n }",
"public void processResult(String sql, Consumer<ResultSet> resultSetConsumer) throws SQLException {\n processResult(sql, resultSetConsumer, (x) -> true, AppConstants.DEFAULT_FETCH_SIZE, ResultSet.FETCH_FORWARD);\n }",
"public static void dump(ResultSet rs) throws SQLException {\n ResultSetMetaData meta = rs.getMetaData();\n int colmax = meta.getColumnCount();\n int i;\n Object o = null;\n\n // the result set is a cursor into the data. You can only\n // point to one row at a time\n // assume we are pointing to BEFORE the first row\n // rs.next() points to next row and returns true\n // or false if there is no next row, which breaks the loop\n for (; rs.next(); ) {\n for (i = 0; i < colmax; ++i) {\n o = rs.getObject(i + 1); // Is SQL the first column is indexed\n\n // with 1 not 0\n System.out.print(o.toString() + \" \");\n }\n\n System.out.println(\" \");\n }\n }",
"public static int getQueryResultHTML(String sql, StringBuilder res) throws SQLException{\r\n\t\tString result = \"\";\r\n\t\t\r\n\t\tSystem.err.println(\"DEBUG CHECK : \"+ sql);\r\n\t\tResultSet rs = stmt.executeQuery(sql);\r\n\t\tResultSetMetaData rsmd = rs.getMetaData();\r\n\t\tint numCols = rsmd.getColumnCount();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tint row = 0;\r\n \t\twhile (rs.next()) {\r\n \t\t\tif(row++ == 0){\r\n \t\t\t\tresult += \"<table class=\\\"bordered\\\" style=\\\"word-break:break-all; word-wrap:break-all;\\\" border=\\\"1\\\">\\n\";\r\n \t\t\t\tresult += \"<tr>\\n\";\r\n \t\t\t\tfor (int i = 1; i <= numCols; ++i){\r\n \t\t\t\t\tresult += \"<th>\";\r\n \t\t\t\t\tresult += rsmd.getColumnName(i);\r\n \t\t\t\t\tresult += \"</th>\\n\";\r\n \t\t\t\t}\r\n \t\t\t\tresult += \"</tr>\\n\";\r\n \t\t\t}\r\n \t\t\tresult += \"<tr>\";\r\n \t\t\tfor (int i = 1; i <= numCols; ++i){\r\n \t\t\t\tresult += \"<td>\";\r\n \t\t\t\tresult += rs.getString(i);\r\n \t\t\t\tresult += \"</td>\\n\";\r\n \t\t\t}\r\n \t\t\tresult += \"</tr>\\n\";\r\n \t\t}\r\n\t\tif (row == 0) System.out.println(\"Empty set.\");\r\n\t\telse result += \"</table>\\n\";\r\n\t\tres.append(result);\r\n\t\treturn row;\r\n\t}",
"private QueryResult mapResultSet(ResultSet rs) throws SQLException {\n QueryResult results = new QueryResult();\n\n ResultSetMetaData metadata = rs.getMetaData();\n\n int columnCount = metadata.getColumnCount();\n for (int i = 0; i < columnCount; i++) {\n results.addColumnName(metadata.getColumnLabel(i + 1), i);\n }\n\n List<QueryResultRow> rows = new ArrayList<QueryResultRow>();\n while (rs.next()) {\n Object[] columnValues = new Object[columnCount];\n for (int i = 1; i <= columnCount; i++) {\n columnValues[i - 1] = rs.getObject(i);\n\n }\n rows.add(new QueryResultRow(columnValues));\n }\n results.setRows(rows.toArray(new QueryResultRow[] {}));\n return results;\n }",
"@Override\n public String toString(){\n\n ArrayList<String> headers = new ArrayList<>();\n ArrayList<String[]> records = new ArrayList<>();\n\n for(Col col : columns){\n headers.add(col.getName());\n }\n\n if(getRecordSize() < 1){\n return headers.toString();\n }\n\n for(int i = 0; i < getRecordSize(); i++){\n\n ArrayList<Rec> recs = getRecordsByRowIndex(i);\n String[] r = new String[recs.size()];\n\n for(int j = 0; j < recs.size(); j++){\n r[j] = recs.get(j).getLastEntry().getData();\n }\n\n records.add(r);\n\n }\n\n return displayTable(headers, records);\n\n }",
"@Test\n public void metaDataExample1() throws SQLException {\n Connection connection = DriverManager.getConnection(dbUrl, dbUsername, dbPassword);\n // 2. Create statement\n Statement statement = connection.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n // Run sql query and get the result in resultSet object\n String sqlQuery= \"Select * From departments\";\n //String sqlQuery= \"Select first_name, last_name, salary From employees\";\n ResultSet resultSet = statement.executeQuery(sqlQuery);\n\n // we use resultSet metadata to get information about the tables\n // get the resultSet object metadata\n ResultSetMetaData rsMetadata = resultSet.getMetaData();\n\n // List for keeping all rows as a map\n List<Map<String, Object>> queryData = new ArrayList<>();\n\n // while(resultSet.next()) helps to iterate through columns\n while (resultSet.next()) {\n // key(columns) will be string but value can be any type of data. That's why we choose <String, Object>\n Map<String, Object> row = new HashMap<>(); // creating empty Map\n // number of columns\n int colCount = rsMetadata.getColumnCount();\n // for loop helps to iterate through columns\n for (int i = 1; i <= colCount; i++) {\n row.put(rsMetadata.getColumnName(i), resultSet.getObject(i));\n }\n\n queryData.add(row); // adding a Map to the List of Maps\n }\n\n // Printing the rows\n for (Map<String, Object> row: queryData) {\n System.out.println(row.toString());\n\n }\n\n\n\n\n // close all connections\n resultSet.close();\n statement.close();\n connection.close();\n }",
"@Override\n public Iterator<Iterable<T>> iterator() {\n return new TableIterator();\n }",
"public ResultSet getTeams() throws SQLException {\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString teamRecords_sql = \"SELECT * FROM \" + team_table;\n\t\tconnection = connector.getConnection();\n\t\tstatement = connection.prepareStatement(teamRecords_sql);\n\t\trs = statement.executeQuery();\n\t\treturn rs;\n\t}",
"public ResultSet getRecords() throws SQLException{\n Statement stmt = getConnection().createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,\n ResultSet.CONCUR_UPDATABLE);\n String sqlGet = \"SELECT * FROM myStudents\";\n stmt.executeQuery(sqlGet);\n ResultSet rs = stmt.getResultSet();\n return rs;\n }",
"private void exportTableFromResultSet(String tableName, ResultSet rs, int rowNum) {\n\t\tMap<String, String> columnMetadataMap = sqlMetaExporter.getMetadataMap().get(tableName);\n\t\tList<Map<String, Object>> listData = new ArrayList<Map<String, Object>>();\n\t\tint counter = 0;\n\t\ttry {\n\t\t\twhile (rs.next()) {\n\t\t\t\tcounter++;\n\t\t\t\tMap<String, Object> map = new HashMap<String, Object>();\n\n\t\t\t\tfor (Map.Entry<String, String> columnMap : columnMetadataMap\n\t\t\t\t\t\t.entrySet()) {\n\t\t\t\t\tString columnLabel = columnMap.getKey();\n\t\t\t\t\tObject object = rs.getObject(columnLabel);\n\t\t\t\t\t//convert orcale timestamp to java date.\n\t\t\t\t\tif (object instanceof oracle.sql.TIMESTAMP) {\n\t\t\t\t\t\toracle.sql.TIMESTAMP timeStamp = (oracle.sql.TIMESTAMP) object;\n\t\t\t\t\t\tTimestamp tt = timeStamp.timestampValue();\n\t\t\t\t\t\tDate date = new Date(tt.getTime());\n\t\t\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\t\t\tString timestamp = sdf.format(date);\n\t\t\t\t\t\tmap.put(columnLabel, timestamp);\n\t\t\t\t\t} else \n\t\t\t\t\t\tmap.put(columnLabel, object);\n\t\t\t\t}\n\t\t\t\tlistData.add(map);\n\t\t\t\tif (counter % rowNum == 0) {\n\t\t\t\t\tmigrateDataByBatch(tableName, listData);\n\t\t\t\t\tlistData.clear();\n\t\t\t\t} else continue;\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tlogger.error(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tmigrateDataByBatch(tableName, listData);\n\t\t\tlistData.clear();\n\t\t}\n\t}",
"@SuppressWarnings(\"unchecked\")\n private ColumnStatsCollector<DataValueDescriptor>[] getCollectors() {\n DataValueDescriptor[] dvds = template.getRowArray();\n ColumnStatsCollector<DataValueDescriptor> [] collectors = new ColumnStatsCollector[dvds.length];\n populateCollectors(dvds, collectors);\n return collectors;\n }",
"public CursorObtieneResultados(ResultSet rst) {\n this.rst = rst;\n }",
"public ResultSet[] getResultSets() {\n\n migratePathTestResults();\n return resultSets != null ? resultSets.clone() : null;\n }",
"private static ListOfString readListAndClose(final ILogger aLogger,\r\n final ResultSet aResultSet) {\r\n if (aResultSet==null) return null;\r\n ListOfString r;\r\n if (!moveNext(aLogger, aResultSet)) {\r\n r= new ListOfString();\r\n } else {\r\n r= getRowAsList(aLogger, aResultSet);\r\n }\r\n close(aLogger, aResultSet);\r\n return r;\r\n }",
"public interface TableQueryResult extends Catalog, TableModel {\n\n /**\n * Returns the Vector of Vectors that contains the table's data values.\n * The vectors contained in the outer vector are each a single row of values.\n */\n Vector<Vector<Object>> getDataVector();\n\n /** Return a description of the ith table column field */\n FieldDesc getColumnDesc(int i);\n\n /** Return the table column index for the given column name */\n int getColumnIndex(String name);\n\n /** Return a vector of column headings for this table. */\n List<String> getColumnIdentifiers();\n\n /** Return true if the table has coordinate columns, such as (ra, dec) */\n boolean hasCoordinates();\n\n /**\n * Return a Coordinates object based on the appropriate columns in the given row,\n * or null if there are no coordinates available for the row.\n */\n Coordinates getCoordinates(int rowIndex);\n\n /**\n * Return an object describing the columns that can be used to search\n * this catalog.\n */\n RowCoordinates getRowCoordinates();\n\n /**\n * Return the center coordinates for this table from the query arguments,\n * if known, otherwise return the coordinates of the first row, or null\n * if there are no world coordinates available.\n */\n WorldCoordinates getWCSCenter();\n\n /**\n * Return the object representing the arguments to the query that resulted in this table,\n * if known, otherwise null.\n */\n QueryArgs getQueryArgs();\n\n /**\n * Set the object representing the arguments to the query that resulted in this table.\n */\n void setQueryArgs(QueryArgs queryArgs);\n\n /** Return true if the result was truncated and more data would have been available */\n boolean isMore();\n\n /**\n * Return the catalog used to create this table,\n * or a dummy, generated catalog object, if not known.\n */\n Catalog getCatalog();\n\n /**\n * Return a possible SiderealTarget for the row i\n */\n Option<SiderealTarget> getSiderealTarget(int i);\n\n}",
"public static ListOfString getRowAsList(final ILogger aLogger,\r\n final ResultSet aResultSet) {\r\n return getRowAsList(aLogger, aResultSet, StringUtility.EMPTY);\r\n }",
"@Override\n\tpublic Row next(){\n\t\treturn res;\n\t}",
"public static ListOfString getRowAsList(final ILogger aLogger,\r\n final ResultSet aResultSet,\r\n final int aColumnCount,\r\n final String aDefault) {\r\n if (aResultSet==null) return null;\r\n ListOfString r= new ListOfString();\r\n String v;\r\n try {\r\n for (int i=0; i < aColumnCount; i++) {\r\n v= aResultSet.getString(i+1);\r\n if (v==null) v= aDefault;\r\n r.add(v);\r\n }\r\n return r;\r\n }\r\n catch (SQLException ex) {\r\n error(aLogger, \"getRowAsList\", \"Reading column from result set failed.\", ex);\r\n return null;\r\n }\r\n }",
"private void initDefaultResultCollector() {\n Summariser summer=null;\n String summariserName = JMeterUtils.getPropDefault(\"summariser.name\", \"summary\");\n if (summariserName.length() > 0) {\n summer = new Summariser(summariserName);\n }\n // Store execution results into a .jtl file\n //String logFile = \"example.jtl\";\n resultCollector = new AutoMeterResultCollector(summer);\n resultCollector.setName(DEFAULT_RESULT_COLLECTOR_NAME);\n resultCollector.setProperty(TestElement.TEST_CLASS, AutoMeterResultCollector.class.getName());\n resultCollector.setProperty(TestElement.GUI_CLASS, SummaryReport.class.getName());\n resultCollector.setCalculator(calculator);\n calculator.setResultViewer(resultViewer);\n //resultCollector.setFilename(logFile);\n }",
"public abstract ResultSet readTable(String tableName, String [] columns)\n throws SQLException;",
"protected final ResultSet getResultSet(\n \t final PreparedStatement st,\n-\t final boolean autodiscovertypes,\n-\t final boolean callable,\n \t final RowSelection selection,\n+\t final LimitHandler limitHandler,\n+\t final boolean autodiscovertypes,\n \t final SessionImplementor session)\n \tthrows SQLException, HibernateException {\n \n-\t\tResultSet rs = null;\n \t\ttry {\n-\t\t\tDialect dialect = getFactory().getDialect();\n-\t\t\trs = st.executeQuery();\n+\t\t\tResultSet rs = st.executeQuery();\n \t\t\trs = wrapResultSetIfEnabled( rs , session );\n \n-\t\t\tif ( !dialect.supportsLimitOffset() || !useLimit( selection, dialect ) ) {\n+\t\t\tif ( !limitHandler.supportsLimitOffset() || !LimitHelper.useLimit( limitHandler, selection ) ) {\n \t\t\t\tadvance( rs, selection );\n \t\t\t}\n \n \t\t\tif ( autodiscovertypes ) {\n \t\t\t\tautoDiscoverTypes( rs );\n \t\t\t}\n \t\t\treturn rs;\n \t\t}\n \t\tcatch ( SQLException sqle ) {\n \t\t\tst.close();\n \t\t\tthrow sqle;\n \t\t}\n \t}",
"public List<Map<String, Object>> transformResultSetToList(final ResultSet resultSet) throws SQLException {\n ResultSetMetaData resultSetMetaData = resultSet.getMetaData();\n int columns = resultSetMetaData.getColumnCount();\n List<Map<String, Object>> result = new ArrayList<>();\n while (resultSet.next()) {\n Map<String, Object> row = new HashMap<>();\n for (int i = 1; i <= columns; i++) {\n row.put(resultSetMetaData.getColumnLabel(i).toLowerCase(), resultSet.getObject(i));\n }\n result.add(row);\n }\n return result;\n }",
"@Test\n public void testGetResultSet() throws MainException {\n System.out.println(\"getResultSet\");\n String queryText = \"select * from infermieri\";\n LinkingDb instance = new LinkingDb(new ConfigurazioneTO(\"jdbc:hsqldb:file:database/\",\n \"ADISysData\", \"asl\", \"\"));\n instance.connect();\n ResultSet result = instance.getResultSet(queryText);\n assertNotNull(result);\n // TODO review the generated test code and remove the default call to fail.\n }",
"public <T> List<T> map(final ResultSet resultSet, final Class<T> destinationClass) {\n final List<T> list = new ArrayList<>();\n this.hasClassLevelWarningSuppression = destinationClass.isAnnotationPresent(SuppressWarnings.class);\n\n try {\n if (resultSet == null || !resultSet.isBeforeFirst()) {\n logger.warn(\"An empty ResultSet has been passed in! Empty list will be returned.\");\n return new ArrayList<>();\n }\n\n logger.info(\"Commencing mapping ResultSet to {}\", destinationClass);\n final Map<String, Field> fields = getFields(destinationClass);\n\n while (resultSet.next()) {\n logger.trace(\"Adding new {} to the list\", destinationClass);\n list.add(createObject(resultSet, destinationClass, fields));\n }\n } catch (SQLException | NoSuchMethodException | IllegalAccessException | InvocationTargetException | InstantiationException ex) {\n logger.error(\"Something has gone wrong while mapping! Exception: \" + ex.getMessage());\n throw new MappingFailedException(ex.getMessage());\n }\n\n logger.info(\"ResultSet has been successfully mapped to {}\", destinationClass);\n return list;\n }",
"@Test\n public void testNext() throws SQLException, InputIterationException {\n // Setup\n ResultSet resultSet = twoLinesResultSetFixture.getTestData();\n ResultSetIterator resultSetIterator = new ResultSetIterator(resultSet);\n\n // Check result\n List<Boolean> expectedNextValues = twoLinesResultSetFixture.getExpectedNextValues();\n List<ImmutableList<String>> expectedRecords = twoLinesResultSetFixture.getExpectedRecords();\n for (int i = 0; i < twoLinesResultSetFixture.numberOfRows(); i++) {\n assertEquals(expectedNextValues.get(i), resultSetIterator.hasNext());\n assertEquals(expectedRecords.get(i), resultSetIterator.next());\n }\n assertEquals(expectedNextValues.get(twoLinesResultSetFixture.numberOfRows()),\n resultSetIterator.hasNext());\n // Next should have been called.\n verify(resultSet, times(3)).next();\n\n }",
"public static DefaultTableModel buildTableModel(ResultSet rs)\n throws SQLException {\n\n ResultSetMetaData metaData = rs.getMetaData();\n\n // names of columns\n Vector<String> columnNames = new Vector<String>();\n int columnCount = metaData.getColumnCount();\n for (int column = 1; column <= columnCount; column++) {\n columnNames.add(metaData.getColumnName(column));\n }\n\n // data of the table\n Vector<Vector<Object>> data = new Vector<Vector<Object>>();\n while (rs.next()) {\n Vector<Object> vector = new Vector<Object>();\n for (int columnIndex = 1; columnIndex <= columnCount; columnIndex++) {\n vector.add(rs.getObject(columnIndex));\n }\n data.add(vector);\n }\n\n return new DefaultTableModel(data, columnNames);\n\n}",
"private static String print(final ResultSet res) throws Exception {\n final StringBuilder sb = new StringBuilder();\n final ResultSetMetaData md = res.getMetaData();\n for(int i = 0; i < md.getColumnCount(); ++i) {\n sb.append(' ');\n sb.append(md.getColumnName(i + 1));\n sb.append(\" |\");\n }\n sb.append('\\n');\n while(res.next()) {\n for(int i = 0; i < md.getColumnCount(); ++i) {\n sb.append(' ');\n sb.append(res.getString(i + 1));\n sb.append(\" |\");\n }\n sb.append('\\n');\n }\n return sb.toString();\n }",
"public void processResult(String sql, Consumer<ResultSet> resultSetConsumer, final int maxCount) throws SQLException {\n processResult(sql, resultSetConsumer, (x) -> x < maxCount, AppConstants.DEFAULT_FETCH_SIZE, ResultSet.FETCH_FORWARD);\n }",
"public static ListOfString getRowAsList(final ILogger aLogger,\r\n final ResultSet aResultSet,\r\n final String aDefault) {\r\n int n=columnCount(aResultSet);\r\n if (n==0) return null;\r\n return getRowAsList(aLogger, aResultSet, n, aDefault);\r\n }",
"public static void write(OutputStream output, ResultSet resultSet, Lang lang) {\n Objects.requireNonNull(lang);\n ResultsWriter.create()\n .lang(lang)\n .write(output, resultSet);\n }",
"public static ResultSet readTableWithReturnValue(String spOrQueryName) {\r\n\t\ttry {\r\n\t\t\topenCon();\r\n\t\t\ts = conn.createStatement();\r\n\t\t\t_rs = s.executeQuery(spOrQueryName);\r\n\t\t\tcloseCon();\r\n\r\n\t\t} catch (Exception e) {\r\n//\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn _rs;\r\n\t}",
"private ArrayList<String> writeResultSet(ResultSet resultSet) throws SQLException {\n\t ArrayList<String> inter_result = new ArrayList<String>();\r\n\t\t while (resultSet.next()) {\r\n\t // it is possible to get the columns via name\r\n\t // also possible to get the columns via the column number\r\n\t // which starts at 1\r\n\t // e.g., resultSet.getSTring(2);\r\n\t String hotel_name = resultSet.getString(\"name\");\r\n\t inter_result.add(hotel_name);\r\n\t //String hotel_area = resultSet.getString(\"area\");\r\n\t System.out.println(\"Name: \" + hotel_name);\r\n\t //System.out.println(\"Area: \" + hotel_area);\r\n\r\n\t }\r\n\t return inter_result; \r\n\t }",
"public String getExpenseTable(String searchCriteria) {\n List<Expense> expenseList = new ArrayList<Expense>();\n List<Expense> tempExpenseList;\n HashSet<Integer> uniqueIdList = new HashSet<Integer>();\n ExpenseDAO expenseDAO = new ExpenseDAO();\n TagLogic tagLogic = new TagLogic();\n DateFormat dateFormat = new SimpleDateFormat(\"MM/dd/yyyy\");\n DataTableGenerator dataTableGenerator = new DataTableGenerator();\n String table;\n\n if (searchCriteria.equals(\"\")) {\n tempExpenseList = expenseDAO.getAll();\n\n for (Expense expense : tempExpenseList) {\n uniqueIdList.add(expense.getId());\n }\n\n for (Integer expenseId : uniqueIdList) {\n Expense expense = expenseDAO.getById(expenseId);\n expenseList.add(expense);\n }\n\n } else {\n expenseList = new ArrayList<Expense>();\n if (expenseDAO.getById(searchCriteria) != null) {\n expenseList.add(expenseDAO.getById(searchCriteria));\n }\n }\n\n table = dataTableGenerator.getStartTable();\n String dataArray[] = new String[4];\n dataArray[0] = \"Transaction ID\";\n dataArray[1] = \"Date\";\n dataArray[2] = \"Tags\";\n dataArray[3] = \"Amount\";\n table = table + dataTableGenerator.getTableHeader(dataArray);\n table = table + dataTableGenerator.getStartTableBody();\n\n for (Expense expense : expenseList) {\n dataArray[0] = String.valueOf(expense.getId());\n dataArray[1] = dateFormat.format(expense.getDate());\n dataArray[2] = tagLogic.getTagValue(expense.getTags());\n dataArray[3] = expense.getAmount().toString();\n table = table + dataTableGenerator.getTableBodyRow(dataArray, \"edit/\" + expense.getId(), \"delete/\" + expense.getId());\n }\n\n table = table + dataTableGenerator.getEndTableBody();\n table = table + dataTableGenerator.getEndTable();\n return table;\n }",
"public interface ResultSetHandler<T> {\n\n /**\n * 结果集转换,将查询的结果封装成不同的对象类型\n * @param rs\n * @return\n * @throws SQLException\n */\n T handle(ResultSet rs) throws SQLException, InstantiationException, IllegalAccessException;\n}",
"public static DBRowList readRowList(final ILogger aLogger,\r\n final ResultSet aResultSet) {\r\n try {\r\n return new DBRowList(aResultSet);\r\n } catch (SQLException ex) {\r\n error(aLogger, \"readRowList\", \"Failed to create DBRowList.\", ex);\r\n return null;\r\n }\r\n }",
"public ResultSet getDataTestUser() throws SQLException{ \r\n String query= (\"select * from \"+Database.Table.TABLE_PRETEST_RESULT);\r\n ResultSet rs = q.querySelect(query);\r\n return rs;\r\n }",
"public XPLAINResultSetTimingsDescriptor() {}",
"public ResultSet getFactory(){\n ResultSet rs = null;\r\n try {\r\n rs = conn.getResultSetF();\r\n ResultSetMetaData rsmetadata = rs.getMetaData();\r\n int column = rsmetadata.getColumnCount();\r\n // String[] factoryString = null;\r\n\r\n for(int i=1; i<=column; i++){\r\n data_raws.add(rsmetadata.getColumnName(i));\r\n }\r\n //dtm.setColumnIdentifiers(columns_name);\r\n\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ApplicationData.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n return rs;\r\n }",
"private void printTable(String table, String cols, String where,\n int expected) throws SQLException {\n\n int rows = 0;\n ResultSet rs = stmt.executeQuery(\"SELECT \" + cols + \" FROM \" + table + \" \" + where);\n ResultSetMetaData rsmd = rs.getMetaData();\n String result = \"Table \" + table + \", expecting \" + expected\n + \" rows total:\\n\";\n\n while (rs.next()) {\n for (int i = 0; i < rsmd.getColumnCount(); i++) {\n result += rsmd.getColumnLabel(i + 1) + \":\"\n + rs.getString(i + 1) + \":\";\n }\n\n result += \"\\n\";\n\n rows++;\n }\n\n rs.close();\n System.out.println(result);\n assertEquals(expected, rows);\n }",
"@Override\r\n\t\t\tpublic PrintWriter getLogWriter() throws SQLException {\n\t\t\t\treturn null;\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic PrintWriter getLogWriter() throws SQLException {\n\t\t\t\treturn null;\r\n\t\t\t}",
"public Object[][] exportResults(){\n \tObject[][] results = new Object[calculators.length][];\n \tfor(int i=0; i<calculators.length; i++){\n \t\tICalculator[] row = calculators[i];\n \t\tresults[i] = new Object[row.length];\n \t\tfor(int j=0; j<row.length; j++){\n \t\t\tresults[i][j] = row[j].getResult();\n \t\t}\n \t}\n \treturn results;\n }",
"public interface ProxyResultSet {\n\n /**\n * Check if the object is closed.\n */\n void checkClosed();\n\n /**\n * Is the statement closed?\n *\n * @return boolean\n */\n boolean isClosed();\n}",
"public ResultSet execute(FarragoSessionRuntimeContext runtimeContext)\n {\n try {\n runtimeContext.setStatementClassLoader(stmtClassLoader);\n\n if (xmiFennelPlan != null) {\n runtimeContext.loadFennelPlan(xmiFennelPlan);\n }\n\n // NOTE jvs 1-May-2004: This sequence is subtle. We can't open all\n // Fennel tuple streams yet, since some may take Java streams as\n // input, and the Java streams are created by stmtMethod.invoke\n // below (which calls the generated execute stmtMethod to obtain an\n // iterator). This means that the generated execute must NOT try to\n // prefetch any data, since the Fennel streams aren't open yet. In\n // particular, Java iterator implementations must not do prefetch in\n // the constructor (always wait for hasNext/next).\n TupleIter iter =\n (TupleIter) stmtMethod.invoke(\n null,\n new Object[] { runtimeContext });\n\n FarragoTupleIterResultSet resultSet =\n new FarragoTupleIterResultSet(\n iter,\n rowClass,\n rowType,\n fieldOrigins,\n runtimeContext,\n null);\n\n // instantiate and initialize all generated FarragoTransforms.\n for (FarragoTransformDef tdef : transformDefs) {\n tdef.init(runtimeContext);\n }\n\n if (xmiFennelPlan != null) {\n // Finally, it's safe to open all streams.\n runtimeContext.openStreams();\n }\n\n runtimeContext = null;\n resultSet.setOpened();\n\n return resultSet;\n } catch (IllegalAccessException e) {\n throw Util.newInternal(e);\n } catch (InvocationTargetException e) {\n throw Util.newInternal(e);\n } finally {\n if (runtimeContext != null) {\n runtimeContext.closeAllocation();\n }\n }\n }",
"public String[][] convertResultSetToArray(ResultSet objResultSet)\n\t\t\tthrows AFTException {\n\n\t\tString[][] allValues = new String[maxRows][maxColumns];\n\t\tint rowNum = 0;\n\n\t\ttry {\n\n\t\t\tResultSetMetaData rsmd = objResultSet.getMetaData();\n\n\t\t\tint colCount = rsmd.getColumnCount();\n\n\t\t\t// Lets get the column names in first row\n\t\t\tfor (int i = 0; i < colCount; i++) {\n\t\t\t\tallValues[rowNum][i] = rsmd.getColumnName(i + 1);\n\t\t\t}\n\n\t\t\trowNum++;\n\n\t\t\t// If cursor is not at first row\n\t\t\tif (!objResultSet.isFirst()) {\n\t\t\t\twhile (objResultSet.next()) {\n\n\t\t\t\t\t// cannot store more than maxRows rows\n\t\t\t\t\tif (rowNum >= maxRows) {\n\t\t\t\t\t\tLOGGER.warn(\"Only the first \" + maxRows\n\t\t\t\t\t\t\t\t+ \" rows data can be stored.\");\n\t\t\t\t\t\treturn allValues;\n\t\t\t\t\t}\n\n\t\t\t\t\tfor (int col = 0; col < colCount; col++) {\n\t\t\t\t\t\t// cannot store more than maxColumns columns\n\t\t\t\t\t\tif (col >= maxColumns) {\n\t\t\t\t\t\t\tLOGGER.warn(\"Only the first \" + maxColumns\n\t\t\t\t\t\t\t\t\t+ \" columns data can be stored.\");\n\t\t\t\t\t\t\treturn allValues;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tallValues[rowNum][col] = objResultSet\n\t\t\t\t\t\t\t\t.getString(col + 1);\n\t\t\t\t\t}\n\n\t\t\t\t\trowNum++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.error(e.toString());\n\t\t\tthrow new AFTException(e);\n\t\t}\n\n\t\tresultsetRowCount = rowNum - 1;\n\n\t\treturn allValues;\n\t}",
"private List<Map<String, Object>> prepareQueryResult(final ResultSet resultSet) throws SQLException {\n\n List<Map<String, Object>> result = new ArrayList<>();\n\n ResultSetMetaData metaData = resultSet.getMetaData();\n int count = metaData.getColumnCount();\n List<String> cols = new ArrayList<>(count);\n for (int i = 1; i <= count; i++) {\n cols.add(metaData.getColumnName(i));\n }\n\n boolean hasNext = resultSet.next();\n\n while (hasNext) {\n\n Map<String, Object> map = new LinkedHashMap<>();\n for (String col : cols) {\n Object value = resultSet.getObject(col);\n map.put(col, value);\n\n logger.debug(\"col:\" + col + \" value:\" + value);\n }\n result.add(map);\n\n hasNext = resultSet.next();\n }\n\n return result;\n\n }",
"public ResultSetMetaData getMetaData() throws SQLException {\n\n try {\n int id = getNextId(TraceObject.RESULT_SET_META_DATA);\n if (isDebugEnabled()) {\n debugCodeAssign(\"ResultSetMetaData\", TraceObject.RESULT_SET_META_DATA, id, \"getMetaData()\");\n }\n checkClosed();\n String catalog = conn.getCatalog();\n JdbcResultSetMetaData meta = new JdbcResultSetMetaData(this, null, result, catalog, conn.getSession().getTrace(), id);\n return meta;\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public static boolean close(final ILogger aLogger, final ResultSet aResultSet){\r\n if (aResultSet==null) return true;\r\n try {\r\n aResultSet.close();\r\n return true;\r\n }\r\n catch (SQLException ex) {\r\n error(aLogger, \"close\", \"ResultSet Failed.\", ex);\r\n return false;\r\n }\r\n }",
"public static void recordQueryResultSet(String logLevel, Result result)\n {\n Recorder.SQLRecord(result, getRecordMetadata(), logLevel);\n }",
"@Override\n public com.gensym.util.Sequence getTableRows() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.TABLE_ROWS_);\n return (com.gensym.util.Sequence)retnValue;\n }",
"private JTable createTable(ResultSet rs, int numberOfColumns) {\n\t\tif(rs == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tJPanel porto = new JPanel();\n\t\tsetLayout(new FlowLayout());\n\t\tporto.add(new JLabel(\"Information of stock\"));\n\t\tString[] columnNames = {\"portofolio\", \"value\"};\n\t\tDefaultTableModel model = null;\n\t\tJTable table = null;\n\t\tint rowcount = 0;\n\n\t\ttry {\n\t\t\tif (rs.last()) {\n\t\t\t\trowcount = rs.getRow();\n\t\t\t\t// not rs.first() because the rs.next() below will move on, \n\t\t\t\t//missing the first element\n\t\t\t\trs.beforeFirst(); \n\t\t\t}\n\t\t\n\t\t\tJScrollPane scrollPane = new JScrollPane(table);\n\t\t\tporto.add(scrollPane);\n\t\t\tObject[][] data = new Object[rowcount][numberOfColumns];\n\t\t\tint j = 0;\n\t\t\twhile (rs.next()) { //read data\n\t\t\t\tObject[] rowData = new Object[numberOfColumns];\n\t\t\t\tSystem.out.println(rowData.length);\n\t\t\t\tfor(int i = 0; i < rowData.length; i++) {\n\t\t\t\t\trowData[i] = rs.getObject(i+1);\n\t\t\t\t}\n\t\t\t\tdata[j] = rowData;\n\t\t\t\tj++;\n\t\t\t}\n\t\t\ttable = new JTable(data, columnNames);\n\t\t\ttable.setFillsViewportHeight(true);\n\t\t\treturn table;\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn table;\n\t}",
"public static List<CountryReportRow> GenerateCountryReportRowsFromResultSet(ResultSet rs) throws SQLException {\n List<CountryReportRow> objectList = new ArrayList<CountryReportRow>();\n\n while(rs.next()) {\n\n try\n {\n CountryReportRow countryReportRow = new CountryReportRow();\n\n countryReportRow.name = rs.getString(\"Name\");\n countryReportRow.code = rs.getString(\"code\");\n countryReportRow.continent = rs.getString(\"continent\");\n countryReportRow.region = rs.getString(\"Region\");\n countryReportRow.population = rs.getInt(\"Population\");\n countryReportRow.capital = rs.getString(\"capital\");\n\n objectList.add(countryReportRow);\n }\n catch (Exception ex)\n {\n System.out.println(ex);\n }\n }\n return objectList;\n }",
"@SuppressWarnings(\"unchecked\")\n \n \n private void table(){\n \n int c;\n \n try{\n \n Connection con1 = ConnectionProvider.getConn();\n Statement stm = con1.createStatement();\n ResultSet rst = stm.executeQuery(\"select * from sales\");\n ResultSetMetaData rstm = rst.getMetaData();\n \n c = rstm.getColumnCount();\n \n DefaultTableModel dtm2 = (DefaultTableModel)jTable1.getModel();\n dtm2.setRowCount(0);\n \n while (rst.next()){\n \n Vector vec = new Vector();\n \n for(int a =1 ; a<=c; a++)\n {\n vec.add(rst.getString(\"CustomerName\"));\n vec.add(rst.getString(\"OrderNo\"));\n vec.add(rst.getString(\"TypeOfService\"));\n vec.add(rst.getString(\"OrderType\"));\n vec.add(rst.getString(\"Descript\"));\n vec.add(rst.getString(\"OrderConfirmation\"));\n vec.add(rst.getString(\"OrderHandledBy\"));\n vec.add(rst.getString(\"OrderDate\"));\n vec.add(rst.getString(\"WarrantyExpireDate\"));\n vec.add(rst.getString(\"FullAmount\"));\n vec.add(rst.getString(\"AmountPaid\"));\n vec.add(rst.getString(\"Balance\"));\n }\n \n dtm2.addRow(vec);\n }\n \n }\n catch(Exception e)\n {\n \n }\n \n \n }"
] | [
"0.65286803",
"0.534848",
"0.50730497",
"0.5066221",
"0.4941833",
"0.49401188",
"0.48878023",
"0.48143768",
"0.4779027",
"0.47705206",
"0.4768561",
"0.4709952",
"0.4630686",
"0.4627567",
"0.4621398",
"0.4620115",
"0.46197212",
"0.46117622",
"0.4610349",
"0.45915264",
"0.45836517",
"0.45818207",
"0.45706216",
"0.45621425",
"0.45556563",
"0.45445597",
"0.44904444",
"0.44828254",
"0.44795954",
"0.44648537",
"0.44551814",
"0.4452571",
"0.44372922",
"0.44213322",
"0.44165614",
"0.44069606",
"0.4398013",
"0.43881744",
"0.43859977",
"0.43766263",
"0.43608928",
"0.43549415",
"0.43494883",
"0.43486357",
"0.43408197",
"0.43393332",
"0.4336818",
"0.4330989",
"0.4323934",
"0.43228042",
"0.43219525",
"0.43012932",
"0.42864367",
"0.42788604",
"0.4276837",
"0.42694756",
"0.42563516",
"0.424751",
"0.42456207",
"0.4241231",
"0.4238222",
"0.4233746",
"0.42305616",
"0.42267615",
"0.42233095",
"0.42201304",
"0.42035085",
"0.41946745",
"0.4188379",
"0.41867444",
"0.41627938",
"0.41614926",
"0.41595432",
"0.41593328",
"0.41520494",
"0.41516346",
"0.41464835",
"0.41436228",
"0.41311413",
"0.41281644",
"0.41076526",
"0.41012385",
"0.41000247",
"0.40950814",
"0.409362",
"0.4091189",
"0.40907964",
"0.40907964",
"0.40893164",
"0.40773812",
"0.4076629",
"0.40727022",
"0.40721136",
"0.40714166",
"0.40702757",
"0.40654072",
"0.40540966",
"0.40518394",
"0.4046777",
"0.40440512"
] | 0.6315908 | 1 |
Add space to the provided String to match the provided width | private static String padRight(String s, int n) {
n = n - (countLength(s) - s.length());//한글이 있는 경우 다시 글수를 줄여준다.
return String.format("%1$-" + n + "s", s);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String createSpaceString(int width) {\r\n String existing = widthToSpaceString.getObj(width);\r\n if(existing != null){\r\n return existing;\r\n }\r\n StringBuffer b = new StringBuffer(width);\r\n while (width-- > 0){\r\n b.append(' ');\r\n }\r\n String newStr = b.toString();\r\n widthToSpaceString.add(width, newStr);\r\n return newStr;\r\n }",
"public static String padL(String s, int width) {\n\t\tif (s == null) {\n\t\t\ts = \"null\";\n\t\t}\n\t\twhile (s.length() < width) {\n\t\t\ts = \" \" + s;\n\t\t}\n\t\treturn s;\n\t}",
"public static String wrap ( final String in, final int width )\n {\n final StringBuilder sb;\n\n if (null == in) return null;\n if (width < 1) return in;\n\n sb = new StringBuilder(in);\n\n int i = 0;\n while (i + width < sb.length() && (i = sb.lastIndexOf(\" \", i + width)) != -1) {\n sb.replace(i, i + 1, \"\\n\");\n i++;\n }\n return sb.toString();\n }",
"protected static String padString(String string, UIFont font, double width) {\n StringBuilder sb = new StringBuilder();\n CGSize size = new CGSize(Float.MAX_VALUE, Float.MAX_VALUE);\n NSStringDrawingOptions options = NSStringDrawingOptions.with(NSStringDrawingOptions.TruncatesLastVisibleLine,\n NSStringDrawingOptions.UsesLineFragmentOrigin);\n NSAttributedStringAttributes attr = new NSAttributedStringAttributes().setFont(font);\n while (true) {\n sb.append(\" \");\n CGSize resultSize = NSString.getBoundingRect(sb.toString(), size, options, attr, null).getSize();\n if (resultSize.getWidth() >= width) {\n break;\n }\n }\n\n // Add final spaces to be ready for first word\n sb.append(String.format(\" %s\", string));\n return sb.toString();\n }",
"public static String padR(String s, int width) {\n\t\tif (s == null) {\n\t\t\ts = \"null\";\n\t\t}\n\t\twhile (s.length() < width) {\n\t\t\ts += \" \";\n\t\t}\n\t\treturn s;\n\t}",
"public static void pstring(String val, int width)\n {\n\tSystem.out.print(val);\n\tfor (int rem = width - val.length(); rem > 0; --rem) {\n\t System.out.print(\" \");\n\t}\n }",
"public static String toFixedWidth(String s, int w) {\n StringTokenizer tokenizer = new StringTokenizer(s);\n StringBuffer buf = new StringBuffer();\n int col = 0;\n\n while (tokenizer.hasMoreTokens()) {\n String token = tokenizer.nextToken();\n if (col + 1 + token.length() > w) {\n buf.append(\"\\n\" + token);\n col = token.length();\n continue;\n }\n else if (col > 0) {\n buf.append(\" \");\n col++;\n }\n buf.append(token);\n col += token.length();\n }\n\n return buf.toString();\n }",
"public void setWidth(String string) {\r\n\t\t_width = string;\r\n\t}",
"public static String centerString(int width, String s) {\n \treturn String.format(\"%-\" + width + \"s\", String.format(\"%\" + (s.length() + (width - s.length()) / 2) + \"s\", s));\n\t}",
"public void setWidth(String width) {\r\n this.width = width;\r\n }",
"public static void replaceSpaces(char str[], int length) {\n\t\tint spaceCount = 0;\n\t\tint newLength = 0;\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\tif (str[i] == ' ') {\n\t\t\t\tspaceCount++;\n\t\t\t}\n\t\t}\n\t\tnewLength = length + 2 * spaceCount;\n\t\t// take a new array\n\t\tchar[] newStr = new char[newLength];\n\t\t// insert from the end\n\t\tfor (int i = length - 1; i >= 0; i--) {\n\t\t\tif (str[i] == ' ') {\n\t\t\t\tnewStr[newLength - 1] = '0';\n\t\t\t\tnewStr[newLength - 2] = '2';\n\t\t\t\tnewStr[newLength - 3] = '%';\n\t\t\t\tnewLength = newLength - 3;\n\t\t\t} else {\n\t\t\t\tnewStr[newLength - 1] = str[i];\n\t\t\t\tnewLength--;\n\t\t\t}\n\t\t}\n\t\tSystem.err.println(String.valueOf(newStr));\n\t}",
"private static void printCenter(String str, int fieldWidth, boolean newLine){\n int rightAlign = (int)(Math.floor(fieldWidth/2) + Math.ceil(str.length()/2));\n System.out.printf(\"%\" + rightAlign + \"s%\" + (fieldWidth - rightAlign) + \"s\" + (newLine ? \"%n\" : \"\"), str, \"\");\n }",
"void replaceSpaces(String strmain, int trueLen) {\n char[] str = strmain.toCharArray();\n int spaceCount = 0, index, i = 0;\n for (i = 0; i < trueLen; i++) {\n if(str[i]==' ')\n spaceCount++;\n }\n index = trueLen + spaceCount * 2; //length of the final string\n if (trueLen < str.length)\n str[trueLen] = '\\0';\n for (i = trueLen - 1; i >= 0; i--) {\n if (str[i] == ' ') {\n str[index - 1] = '0';\n str[index - 2] = '2';\n str[index - 3] = '%';\n index = index - 3;\n } else {\n str[index - 1] = str[i];\n index--;\n }\n }\n System.out.println(str);\n }",
"@Override\r\n public void setWidth(String width) {\n }",
"public void setWidth(final String value)\n {\n width = value;\n }",
"public static String pad(int fieldWidth, char padChar, String s) {\n StringBuilder sb = new StringBuilder();\n for (int i = s.length(); i < fieldWidth; i++) {\n sb.append(padChar);\n }\n sb.append(s);\n\n return sb.toString();\n }",
"public void setWidth(final int width) {\n\t\tthis.width = width;\n\t\tthis.widthString = \"%-\" + width + \"s\";\n\t}",
"public static String toFixedWidth(String s) {\n return toFixedWidth(s, 80);\n }",
"private String LeftPad(String str, int length)\n {\n //pad and return String\n return String.format(\"%1$\" + length + \"s\", str);\n }",
"private int addCharWidth(int x, char ch) {\n if (ch == '\\t') {\n return x + SINGLE_TAB.getDisplayWidth(x);\n } else if (ch < ' ' || ch == '\\u007f') {\n // FIXME: we could cache these, since there are so few.\n StringBuilder chars = new StringBuilder(6);\n StringUtilities.appendUnicodeEscape(chars, ch);\n return x + metrics[Font.PLAIN].stringWidth(chars.toString());\n } else {\n return x + metrics[Font.PLAIN].charWidth(ch);\n }\n }",
"public static StringBuffer addSpace(double str1, int len) {\n\t\tString str = String.valueOf(str1);\n\t\tStringBuffer result = new StringBuffer();\n\t\tif (len < str.getBytes().length)\n\t\t\tSystem.err.println(\"填充报文时出现错误,字段数据溢出。重新确认字段长度和验证程序的正确性\");\n\t\tresult.append(str + createSpace(len - str.getBytes().length));\n\t\treturn result;\n\t}",
"public static StringBuffer addSpace(int str1, int len) {\n\t\tString str = String.valueOf(str1);\n\t\tStringBuffer result = new StringBuffer();\n\t\tif (len < str.getBytes().length)\n\t\t\tSystem.err.println(\"填充报文时出现错误,字段数据溢出。重新确认字段长度和验证程序的正确性\");\n\t\tresult.append(str + createSpace(len - str.getBytes().length));\n\t\treturn result;\n\t}",
"public static void appendFormatted(StringBuilder sb, String value, int align, int width) {\n if (value.length() > width)\n value = value.substring(0, width);\n int before = switch (align) {\n case 0 -> (width - value.length()) / 2;\n case 1 -> width - value.length();\n default -> 0;\n };\n int after = width - value.length() - before;\n while (before-- > 0)\n sb.append(\" \");\n sb.append(value);\n while (after-- > 0)\n sb.append(\" \");\n sb.append(\" \");\n }",
"public static void printBorder(int width, String s) {\n\t\tString topLine = \"╭\" + \"─\".repeat(width+2) + \"╮\\n\";\n\t\tString botLine = \"╰\" + \"─\".repeat(width+2) + \"╯\\n\";\n\t\tString msg = String.format(\"│ %-\" + width + \"s │\\n\", String.format(\"%\" + (s.length() + (width - s.length()) / 2) + \"s\", s));\n \tSystem.out.println(topLine + msg + botLine);\n\t}",
"private String spacer(int length, char spacer) {\n // Do fancy centering\n StringBuilder sb = new StringBuilder();\n Stream.generate(() -> spacer).limit(length).forEach(sb::append);\n return sb.toString();\n }",
"private String normalizeSpace(final String arg) {\n return arg.replaceAll(Constants.SPACE_PATTERN, Constants.SPACE);\n }",
"public String addSpaces(String string) {\n string = string.replaceAll(\"_\", \" \");\n return string;\n }",
"public void xsetWidth(org.apache.xmlbeans.XmlString width)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_attribute_user(WIDTH$20);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_attribute_user(WIDTH$20);\n }\n target.set(width);\n }\n }",
"private String pad(String s, int l){ String p=\"\"; for(int i=0; i<l-s.length();i++)p+=\" \"; return \" \"+p+s; }",
"public static String addLeftPadding(String text, int length) {\n return String.format(\"%\" + length + \".\" + length + \"s\", text);\n }",
"static String padToLength(String s, int len) {\n\t\tStringBuffer sb = new StringBuffer(len);\n\t\tsb.append(s);\n\t\tfor (int i = s.length(); i < len; i++) sb.append(' ');\n\t\treturn sb.toString();\n\t}",
"public int getStringWidth(String text);",
"static public String pad(String str, int len)\n {\n int curlen = str.length();\n StringBuffer sb = new StringBuffer(len);\n \n for (int i=0; i<(len-curlen); i++)\n {\n sb.append(\" \");\n }\n sb.append(str);\n \n //System.out.println(\"Str len= \" + curlen + \" new len= \" + len);\n return sb.toString();\n }",
"private static char[] replaceSpaceInString(char[] array, int length) {\n\tint spaceCount = 0;\n\tfor(int i =0;i<length;i++)\n\t\tif(array[i]==' ')\n\t\t\tspaceCount++;\n\tchar newArr[] = new char[length + 2*spaceCount+1];\n\tint newLength = 0;\n\tnewArr[length + 2*spaceCount] = '\\0';\n\tfor(int i =0;i<length;i++){\n\t\tif(array[i]==' '){\n\t\t\tnewArr[newLength] = '%';\n\t\t\tnewArr[newLength+1] = '2';\n\t\t\tnewArr[newLength+2] = '0';\n\t\t\tnewLength+=3;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tnewArr[newLength] = array[i];\n\t\t\tnewLength++;\n\t\t}\n\t}\n\t\n\treturn newArr;\n}",
"public void setWidth(int newWidth) {\n roomWidth = newWidth;\n }",
"public static String center(String str, int spaces)\n {\n String pad = \"\";\n\n for(int i = 0; i < (spaces - str.length()) / 2; i++)\n {\n pad += \" \";\n } \n return pad + str + pad;\n }",
"public String addWhiteSpace(String str, int number) {\n\t\tStringBuilder result = new StringBuilder();\n\t\tfor (int i = 0; i < str.length(); i+=2) {\n\t\t if (i > 0) {\n\t\t\t for (int j = 0; j < number; j++)\n\t\t\t\t result.append(\" \");\n\t\t }\n\t\t result.append(str.charAt(i));\n\t\t result.append(str.charAt(i+1));\n\t\t}\n\t\treturn result.toString();\n\t}",
"public void setWidth(java.lang.String width)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(WIDTH$20);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(WIDTH$20);\n }\n target.setStringValue(width);\n }\n }",
"public void changeSpaces(int extraSpaces) {\n int newSpaces = spaces + extraSpaces;\n //to accept the input:\n this.setSpaces(newSpaces);\n }",
"public static String getCentered(int width, String text)\n {\n String line;\n int beforeTextSpace;\n beforeTextSpace = ((width - text.length()) / 2);\n\n line = ConsoleForm.getHorizontalLine(' ', beforeTextSpace);\n line += text;\n line += ConsoleForm.getHorizontalLine(' ', beforeTextSpace);\n return line;\n }",
"private static String justifyLine(String text, int totalSpacesToInsert) {\n String[] wordArray = text.split(\"\\\\s\");\n String toAppend = \" \";\n\n while ((totalSpacesToInsert) >= (wordArray.length - 1)) {\n toAppend = toAppend + \" \";\n totalSpacesToInsert = totalSpacesToInsert - (wordArray.length - 1);\n }\n int i = 0;\n String justifiedText = \"\";\n for (String word : wordArray) {\n if (i < totalSpacesToInsert)\n justifiedText = justifiedText + word + \" \" + toAppend;\n\n else\n justifiedText = justifiedText + word + toAppend;\n\n i++;\n }\n\n return justifiedText;\n }",
"public static String addSpace(int y) {\n\t\tString str = new String();\n\t\tif (y < 10)\n\t\t\tstr = \" \" + y;\n\t\telse if (y < 100)\n\t\t\tstr = \" \" + y;\n\t\telse\n\t\t\tstr = \"\" + y;\n\t\treturn str;\n\t}",
"private static String makeCorrectSize(String s, int length){\n\t\tStringBuilder sb = new StringBuilder(s); \n\t\tfor(int i = sb.length(); i<length; i++){\n sb.append(\" \");\n }\n\t\treturn sb.toString(); \n\n\t}",
"public static StringBuffer addSpace(long str1, int len) {\n\t\tString str = (new Long(str1)).toString();\n\t\tStringBuffer result = new StringBuffer();\n\t\tif (len < str.getBytes().length)\n\t\t\tSystem.err.println(\"填充报文时出现错误,字段数据溢出。重新确认字段长度和验证程序的正确性\");\n\t\tresult.append(str + createSpace(len - str.getBytes().length));\n\t\treturn result;\n\t}",
"boolean addLeadingWordWidth(String text, int[] width) {\n if (text.length() == 0)\n return false;\n if (Character.isWhitespace(text.charAt(0)))\n return true;\n\n text = 'a' + text + 'a';\n FlowUtilities.LINE_BREAK.setText(text);\n int index = FlowUtilities.LINE_BREAK.next() - 1;\n if (index == 0)\n return true;\n while (Character.isWhitespace(text.charAt(index)))\n index--;\n boolean result = index < text.length() - 1;\n // index should point to the end of the actual text (not including the\n // 'a' that was\n // appended), if there were no breaks\n if (index == text.length() - 1)\n index--;\n text = text.substring(1, index + 1);\n\n if (bidiInfo == null)\n width[0] += getTextUtilities().getTextExtents(text, getFont()).width;\n else {\n TextLayout textLayout = FlowUtilities.getTextLayout();\n textLayout.setFont(getFont());\n textLayout.setText(text);\n width[0] += textLayout.getBounds().width;\n }\n return result;\n }",
"public static String setLen(String s, int nofSpaces) {\n\t\tStringBuilder sb = new StringBuilder(s);\n\t\tfor (int i = 0; i < nofSpaces; i++)\n\t\tsb.insert(0, \" \");\n\t\t2\n\t\treturn sb.toString();\n\t}",
"public static String padL(int n, int width) {\n\t\treturn padL(String.valueOf(n), width);\n\t}",
"public void setIndentWidth(int indentWidth)\n {\n\tif (indentWidth < 1) indentWidth = 1;\n\tindentSpace = new char[indentWidth];\n\tfor (int i = 0; i < indentSpace.length; i++)\n\t indentSpace[i] = ' ';\n }",
"void setFitWidth(short width);",
"public static String addRightPadding(String text, int length) {\n return String.format(\"%-\" + length + \".\" + length + \"s\", text);\n }",
"@Override\r\n public void insertString(int offs, String str, AttributeSet a)\r\n throws BadLocationException {\n\r\n if (getLength() + str.length() > max) {\r\n // If it does, then truncate it\r\n\r\n str = str.substring(0, max - getLength());\r\n }\r\n super.insertString(offs, str, a);\r\n }",
"public static String formatParagragh(String text, Integer colWidth) {\n\t\tString formattedStr = \"\";\n\t\tString lineStr = \"\";\n\t\tString[] textArray = text.split(\" \");\n\t\tfor (String x : textArray) {\n\t\t\tif ((lineStr + x).length() > colWidth) {\n\t\t\t\tformattedStr += \"\\n\" + lineStr;\n\t\t\t\tlineStr = \"\";\n\t\t\t\t}\n\t\t\telse lineStr += \" \" + x;\n\t\t}\n\t\tif (lineStr != \"\") formattedStr += \"\\n\" + lineStr;\n\t\treturn formattedStr;\n\t}",
"public void replaceSpace(char [] arr, int size){\n\t\tint newSize = size;\n\n\t\tfor(int i=0; i< size; i++){\n\t\t\t//expand by 2 each time find space, ' ' is 1, '%20' is 3\n\t\t\tif(arr[i] == ' ')\n\t\t\t\tnewSize += 2;\n\t\t}\n\t\tint ind = newSize -1;\n\t\t//assign backward, extra space allow us to assign to the same arr without replacing the original chars when looping\n\t\tfor(int i = size-1; i >= 0; i--){\n\t\t\tif(arr[i] != ' '){\n\t\t\t\tarr[ind] = arr[i];\n\t\t\t}else{ //is space, assign backward\n\t\t\t\tarr[ind] = '0';\n\t\t\t\tarr[--ind] = '2';\n\t\t\t\tarr[--ind] = '%';\n\t\t\t}\n\t\t\tind--;\n\t\t}\n\n\t}",
"public static String centerString(int width, String s, String border) {\n \treturn String.format(border + \" %-\" + width + \"s \" + border, String.format(\"%\" + (s.length() + (width - s.length()) / 2) + \"s\", s));\n\t}",
"private void renderStringAligned(String text, int textX, int textY, int width, int color) {\n if (super.getBidiFlag()) {\n int stringWidth = super.getStringWidth(bidirectionalReorder(text));\n textX = textX + width - stringWidth;\n }\n \n renderString(text, textX, textY, color, false);\n }",
"void addSpaces() {\n\t\tSystem.out.print(\" \");\n\t\tfor (int j = 0; j < 3; j++)\n\t\t\tSystem.out.print(\"| \");\n\t\tSystem.out.println(\"|\");\n\t}",
"public void setStringvaluewidth(int stringvaluewidth) {\r\n\t\tthis._stringvaluewidth = stringvaluewidth;\r\n\t}",
"private static String padString(String source) {\r\n\r\n String paddedString = source;\r\n char paddingChar = ' ';\r\n int size = 16;\r\n int x = paddedString.length() % size;\r\n int padLength = size - x;\r\n for (int i = 0; i < padLength; i++) {\r\n paddedString += paddingChar;\r\n }\r\n\r\n return paddedString;\r\n }",
"public static String whitespace(int count, String spaces) {\r\n\t\tfor (int i = 0; i < count; i++) {spaces += \" \";}\r\n\t\treturn spaces;\r\n\t}",
"public void replaceSpaceWithPercent20(char[] arr, int origLen) {\n\t\tint count = 0;\n\n\t\tfor (int i = 0; i < origLen; i++) {//how many spaces\n\t\t\tif (arr[i] == ' ')\n\t\t\t\tcount++;\n\t\t}\n\n\t\tint newLen = origLen + 2 * count;\n\t\tarr[newLen] = '\\0';\n\n\t\tint iNL = newLen - 1;\n\n\t\tfor (int j = origLen - 1; j >= 0; j--) {\n\t\t\tif (arr[j] != ' ') {\n\t\t\t\tarr[iNL] = arr[j];\n\t\t\t\tiNL--;\n\t\t\t} else {\n\t\t\t\tarr[iNL] = '0';\n\t\t\t\tarr[iNL - 1] = '2';\n\t\t\t\tarr[iNL - 2] = '%';\n\t\t\t\tiNL -= 3;\n\n\t\t\t}\n\t\t}\n\t}",
"void setWidth(int width);",
"void setWidth(int width);",
"public static String addSpacing(String fields[]) {\r\n\t\tString fieldAfterPadding = \"\";\r\n\t\tint spacing = 25;\r\n\t\tint no_of_spaces = 25;\r\n\r\n\t\tif (fields != null) {\r\n\t\t\tfor (int ind = 0; ind < fields.length; ind++) {\r\n\t\t\t\tString field = fields[ind];\r\n\t\t\t\tString padding = \"\";\r\n\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif (field != null) {\r\n\t\t\t\t\tno_of_spaces = spacing - field.length();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tfor (int i = 0; i < no_of_spaces; i++) {\r\n\t\t\t\t\tpadding = padding + \" \";\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (field != null) {\r\n\t\t\t\t\tfieldAfterPadding = fieldAfterPadding+ field + padding;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfieldAfterPadding = padding;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn fieldAfterPadding;\r\n\r\n\t}",
"@Override\n @SimpleProperty()\n public void Width(int width) {\n if (width == LENGTH_PREFERRED) {\n width = LENGTH_FILL_PARENT;\n }\n super.Width(width);\n }",
"private static String padMovieTitle(String title) {\n\t\tif(title.length() >= 32) {\n\t\t\ttitle = title.substring(0, 28);\n\t\t\ttitle += \"...\";\n\t\t}\n\t\twhile(title.length() != 31) {\n\t\t\ttitle += \" \";\n\t\t}\n\t\treturn title;\n\t}",
"public void setWidth( int width )\n {\n int charWidth = ChatMenuAPI.getCharacterWidth( getCharacter( ) );\n length = width / charWidth;\n }",
"public void setWidth(double width) {\n this.width = width;\n }",
"@Override\n public void run() {\n int count = text.length() - text.replace(\" \", \"\").length();\n System.out.printf(\"Spaces: %d;\\n\", count);\n }",
"public void setWidth(int width) {\n this.width = width;\n }",
"@Override\r\n\tpublic void setWidth(int width) {\n\t\t\r\n\t}",
"private String padded(int i, int length) {\n String current = Integer.toString(i);\n int size = Integer.toString(length).length();\n current = String.format(\"%\" + size + \"s\", current);\n return current;\n }",
"public void setWidth(int width)\n {\n this.width = width;\n }",
"public static String formatSpaces(String s) {\n \tString temp = s;\n \tif(s.contains(\"underscores\")) temp = s.replace(\" \", \"_\");\n return temp;\n }",
"public void setWitdh(int newValue)\n {\n width = newValue;\n }",
"private String trim(StringBuilder formattedString) {\n int maxWidth;\n int cols = consoleMetaData.getCols();\n if (cols > 0) {\n maxWidth = cols - 1;\n } else {\n // Assume 80 wide. This is to minimize wrapping on console where we don't know the width (eg mintty)\n // It's not intended to be a correct solution, simply a work around\n maxWidth = 79;\n }\n if (maxWidth < formattedString.length()) {\n return formattedString.substring(0, maxWidth);\n }\n return formattedString.toString();\n }",
"B suggestionPopupWidth(String width);",
"public static String formatSpaces(String s) {\n\t\tif(s.contains(\"underscores\"))\n\t\treturn s.replaceAll(\" \", \"_\");\n\t\t\n\t\treturn s;\n\t}",
"public String replace(char[] str, int length) {\n int spaceCount = 0, newLength;\n for (int i = 0; i < length; i++) {\n if (str[i] == ' ') {\n spaceCount++;\n }\n }\n\n newLength = length + spaceCount * 2;\n char[] newStr=new char[newLength];\n for(int i=length-1;i>=0;i--)\n {\n if(str[i]==' ')\n {\n newStr[newLength-1]='0';\n newStr[newLength-2]='2';\n newStr[newLength-3]='%';\n newLength=newLength-3;\n }else\n {\n newStr[newLength-1]=str[i];\n newLength=newLength-1;\n }\n }\n return new String(newStr);\n }",
"public void setWidth(double width) {\n this.width = width;\n }",
"static public String center(String str, int len)\n {\n int halfPad = (len-str.length())/2;\n \n StringBuffer sb = new StringBuffer(len);\n for (int i=0; i<halfPad; i++)\n {\n sb.append(\" \");\n }\n sb.append(str);\n\n //setLength appears to not work on SCO\n //sb.setLength(len);\n int remainingPad = len - sb.length();\n for (int i=0; i<remainingPad; i++)\n {\n sb.append(\" \");\n }\n\n return sb.toString();\n }",
"private static String modifyString(String input) {\n final StringBuilder stringBuilder = new StringBuilder(input);\n\n for (int index = 0; index < stringBuilder.length();) {\n if (stringBuilder.charAt(index) == ' ') {\n stringBuilder.replace(index, index + 1, \"%20\");\n index = index + 3;\n } else {\n index++;\n }\n }\n return stringBuilder.toString();\n }",
"private String formatString(String s, int len){\n if(len<=s.length()){\n return s.substring(0,len);\n }\n StringBuilder sb = new StringBuilder(s);\n for(int i=s.length(); i<len; ++i){\n sb.append(\" \");\n }\n return sb.toString();\n }",
"public String setTenLenString(String sInput) {\n String sReturn = sInput;\n int nCount = 10 - sReturn.length();\n for (int i = 0; i < nCount; i++) {\n sReturn += \" \";\n }\n return sReturn;\n\n }",
"public void setWidth(double width) {\r\n this.width = width;\r\n }",
"@Override\n public boolean addLeadingWordRequirements(int[] width) {\n return addLeadingWordWidth(getText(), width);\n }",
"public static String formatSpaces(String s) {\n\t\t\n\t\tif(s.contains(\"underscores\")==true) {\n\t\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\t\tif(s.charAt(i)==' ') {\n\t\t\t\t\tString t1=s.substring(0, i);\n\t\t\t\t\tString t2=s.substring(i+1, s.length());\n\t\t\ts=t1+\"_\"+t2;\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\treturn s;\n\t}",
"private static String pad(String src, char fill, int length, boolean isPadRight) {\n\t\tif (src == null) src = \"\"; \n\t\tStringBuilder sb = new StringBuilder();\n\t\tint startLoc = length - src.length();\n\n\t\tint stringLen = src.length();\n\t\tif (stringLen > length) stringLen = length;\n\t\tif (isPadRight) sb.append(src.substring(0, stringLen));\n\t\tfor (int i = 0; i < startLoc; i++) {\n\t\t\tsb.append(fill);\n\t\t}\n\t\t\n\t\tif (! isPadRight)sb.append(src.substring(0, stringLen));\n\n\t\treturn sb.toString();\n\t}",
"private void addSpaces(String text) {\n if (!text.equals(myPreviousText)) {\n // Remove spaces\n text = text.replace(\" \", \"\");\n\n // Add space between each character\n StringBuilder newText = new StringBuilder();\n for (int i = 0; i < text.length(); i++) {\n if (i == text.length() - 1) {\n // Do not add a space after the last character -> Allow user to delete last character\n newText.append(Character.toUpperCase(text.charAt(text.length() - 1)));\n }\n else {\n newText.append(Character.toUpperCase(text.charAt(i)) + LETTER_SPACING);\n }\n }\n\n myPreviousText = newText.toString();\n // Update the text with spaces and place the cursor at the end\n myEditText.setText(newText);\n myEditText.setSelection(newText.length());\n }\n }",
"public static String padLeftSpaces(final String s, final int n) {\n\t\treturn String.format(\"%1$#\" + n + \"s\", s);\n\t}",
"public static String padRightSpaces(final String s, final int n) {\n\t\treturn String.format(\"%1$-\" + n + \"s\", s);\n\t}",
"private String replaceSpaces(String value) {\r\n\t\treturn value.replace(\" \", \"_\");\r\n\t}",
"public static int replaceBlank(char[] string, int length) {\n int count = 0;\n for(int i=0;i<length;i++){\n if(string[i]==' '){\n count++;\n }\n }\n int ans = length+count*2;\n int j=ans-1;\n for(int i=length-1;i>-1;i--){\n if(string[i]==' '){\n string[j--]='0';\n string[j--]='2';\n string[j--]='%';\n }else{\n string[j--]=string[i];\n }\n }\n return ans;\n }",
"public String addEmptySpace(int spaces) {\n\n String stringOfEmptySpace = \"\";\n\n for (int i = 0; i < spaces; i++)\n stringOfEmptySpace += \" \";\n\n return stringOfEmptySpace;\n }",
"public void setWidth(String value)\r\n\t{\r\n\r\n\t\tput(HtmlEnum.width.getAttributeName(), value);\r\n\t}",
"public int stringWidth(String str) {\r\n\t\treturn substringWidth(str, 0, str.length());\r\n\t}",
"protected final String space(int n) {\n StringBuffer buf = new StringBuffer(0);\n for (int i = 0; i < n; i++) {\n buf.append(\" \");\n }\n return buf.toString();\n }",
"public void setWidth(double width) {\n\t\tthis.width = width;\n\t}",
"public void setWidth(double width) {\n\t\tthis.width = width;\n\t}",
"private void append(String text) {\n // Reset counter if starts with a newline. only from formats above, not in natural text\n if (text.startsWith(\"\\n\")) {\n mWidth = 0;\n }\n\n // Don't accumulate long runs of empty spaces\n if (text.equals(\" \") && (mAccum.length() == 0 || StringUtil.in(\n mAccum.substring(mAccum.length() - 1), \" \", \"\\n\"))) {\n return;\n }\n\n // Won't fit, needs to wrap\n if (text.length() + mWidth > mMaxWidth) {\n String[] words = text.split(\"\\\\s+\");\n\n for (int i = 0; i < words.length; i++) {\n String word = words[i];\n boolean last = i == words.length - 1;\n\n // Insert a space if not the last word\n if (!last) {\n word = word + \" \";\n }\n\n // Wrap and reset counter\n if (word.length() + mWidth > mMaxWidth) {\n mAccum.append(\"\\n\").append(word);\n mWidth = word.length();\n } else {\n mAccum.append(word);\n mWidth += word.length();\n }\n }\n } else {\n // Fits as is, without need to wrap text\n mAccum.append(text);\n mWidth += text.length();\n }\n }",
"public static void printBorder(int width, String s, String color) {\n\t\tString endcolor = \"\\033[0m\";\n\t\tString topLine = \"╭\" + \"─\".repeat(width+2) + \"╮\\n\";\n\t\tString botLine = \"╰\" + \"─\".repeat(width+2) + \"╯\\n\";\n\t\tString msg = String.format(\"│ %-\" + width + \"s │\\n\", String.format(\"%\" + (s.length() + (width - s.length()) / 2) + \"s\", s));\n \tif(color != null) {\n \t\tSystem.out.println(color + topLine + msg + botLine + endcolor);\n \t} else {\n \t\tSystem.out.println(topLine + msg + botLine);\n \t}\n\t}",
"public static String padR(int n, int width) {\n\t\treturn padR(String.valueOf(n), width);\n\t}"
] | [
"0.71742725",
"0.71599925",
"0.70039",
"0.6922064",
"0.6875334",
"0.66256416",
"0.6603168",
"0.6537529",
"0.65151703",
"0.6419661",
"0.6372351",
"0.63550884",
"0.62860376",
"0.6281648",
"0.6236538",
"0.62180173",
"0.62156636",
"0.6194254",
"0.6107574",
"0.6096356",
"0.60578096",
"0.604866",
"0.60418934",
"0.6025679",
"0.5945119",
"0.5928491",
"0.59034914",
"0.58871794",
"0.58832836",
"0.5844229",
"0.5833935",
"0.58264875",
"0.58220494",
"0.58057827",
"0.58017665",
"0.57714295",
"0.57582337",
"0.57510126",
"0.5749643",
"0.5749567",
"0.5747796",
"0.57470715",
"0.5734284",
"0.57226926",
"0.57206506",
"0.57182294",
"0.568624",
"0.5684448",
"0.56368244",
"0.562928",
"0.56272656",
"0.5625368",
"0.5617971",
"0.56093264",
"0.5602988",
"0.55976725",
"0.5595624",
"0.5594559",
"0.55861515",
"0.55857563",
"0.5584342",
"0.5584342",
"0.55672747",
"0.5542084",
"0.5539969",
"0.55368155",
"0.552458",
"0.55015045",
"0.5492337",
"0.54792476",
"0.54639816",
"0.5458125",
"0.5457317",
"0.5455654",
"0.54503727",
"0.5448718",
"0.54476804",
"0.5442059",
"0.5439817",
"0.54346853",
"0.54332286",
"0.5423285",
"0.54229516",
"0.5417137",
"0.5416418",
"0.539242",
"0.538964",
"0.5383301",
"0.5382857",
"0.5372758",
"0.5369779",
"0.5357745",
"0.53513026",
"0.535075",
"0.53475416",
"0.53420985",
"0.53406537",
"0.53406537",
"0.5336292",
"0.53049976",
"0.5290024"
] | 0.0 | -1 |
Metodos para 5 operaciones | public void enfermarTodosConProbabilidad50() {
for (Persona p : super.getMundo().getListaDoctores()) {
if (super.getMundo().getRandom1and2() == 1) {
super.getMundo().enfermarPersona(p);
}
}
for (Persona p : super.getMundo().getListaCocineros()) {
if (super.getMundo().getRandom1and2() == 1)
super.getMundo().enfermarPersona(p);
}
for (Persona p : super.getMundo().getListaAlbaniles()) {
if (super.getMundo().getRandom1and2() == 1)
super.getMundo().enfermarPersona(p);
}
for (Persona p : super.getMundo().getListaHerreros()) {
if (super.getMundo().getRandom1and2() == 1)
super.getMundo().enfermarPersona(p);
}
for (Persona p : super.getMundo().getListaCocineros()) {
if (super.getMundo().getRandom1and2() == 1)
super.getMundo().enfermarPersona(p);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Operations operations();",
"public void calculos() {\n a = a1+a2+a3;\n b = b1+b2+b3;\n c = c1+c2+c3;\n }",
"public void sumaPuntos() {\r\n int rojo = 0;\r\n int azul = 0;\r\n for (int i = 1; i < 10; i++) {\r\n\r\n if (tablero[1][i].getTipo().equals(\"Rojo\")) {\r\n rojo += tablero[1][i].getValor();\r\n }\r\n\r\n if (tablero[8][i].getTipo().equals(\"Azul\")) {\r\n azul += tablero[8][i].getValor();\r\n }\r\n\r\n }\r\n if (rojo > azul) {\r\n this.setResultado(\"Rojo\");\r\n this.agregarVictoria(jugadorRojo);\r\n }\r\n if (azul > rojo) {\r\n this.setResultado(\"Azul\");\r\n this.agregarVictoria(jugadorAzul);\r\n }\r\n \r\n this.setReplay(true);\r\n }",
"@Override\n public void cantidad_Ataque(){\n ataque=5+2*nivel+aumentoT;\n }",
"@Override\r\n\tpublic int operar() {\n\t\treturn 0;\r\n\t}",
"private String auxOperacion(int operando1, int operando2, String valor1, String valor2, int op) {\n if (ManejadorMemoria.isInt(operando1)) {\n if (ManejadorMemoria.isInt(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Integer.parseInt(valor1) + Integer.parseInt(valor2)) + \"\";\n case Codigos.RESTA:\n return (Integer.parseInt(valor1) - Integer.parseInt(valor2)) + \"\";\n case Codigos.MULT:\n return (Integer.parseInt(valor1) * Integer.parseInt(valor2)) + \"\";\n case Codigos.DIV:\n return (Integer.parseInt(valor1) / Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYOR:\n System.out.println(valor1 + \" \" + valor2 + \" \" + (Integer.parseInt(valor1) > Integer.parseInt(valor2)));\n return (Integer.parseInt(valor1) > Integer.parseInt(valor2)) + \"\";\n case Codigos.MENOR:\n return (Integer.parseInt(valor1) < Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Integer.parseInt(valor1) >= Integer.parseInt(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Integer.parseInt(valor1) <= Integer.parseInt(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Integer.parseInt(valor1) == Integer.parseInt(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Integer.parseInt(valor1) != Integer.parseInt(valor2)) + \"\";\n }\n } else if (ManejadorMemoria.isFloat(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Integer.parseInt(valor1) + Double.parseDouble(valor2)) + \"\";\n case Codigos.RESTA:\n return (Integer.parseInt(valor1) - Double.parseDouble(valor2)) + \"\";\n case Codigos.MULT:\n return (Integer.parseInt(valor1) * Double.parseDouble(valor2)) + \"\";\n case Codigos.DIV:\n return (Integer.parseInt(valor1) / Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYOR:\n return (Integer.parseInt(valor1) > Double.parseDouble(valor2)) + \"\";\n case Codigos.MENOR:\n return (Integer.parseInt(valor1) < Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Integer.parseInt(valor1) >= Double.parseDouble(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Integer.parseInt(valor1) <= Double.parseDouble(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Integer.parseInt(valor1) == Double.parseDouble(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Integer.parseInt(valor1) != Double.parseDouble(valor2)) + \"\";\n }\n }\n } else if (ManejadorMemoria.isFloat(operando1)) {\n if (ManejadorMemoria.isInt(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Double.parseDouble(valor1) + Integer.parseInt(valor2)) + \"\";\n case Codigos.RESTA:\n return (Double.parseDouble(valor1) - Integer.parseInt(valor2)) + \"\";\n case Codigos.MULT:\n return (Double.parseDouble(valor1) * Integer.parseInt(valor2)) + \"\";\n case Codigos.DIV:\n return (Double.parseDouble(valor1) / Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYOR:\n return (Double.parseDouble(valor1) > Integer.parseInt(valor2)) + \"\";\n case Codigos.MENOR:\n return (Double.parseDouble(valor1) < Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Double.parseDouble(valor1) >= Integer.parseInt(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Double.parseDouble(valor1) <= Integer.parseInt(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Double.parseDouble(valor1) == Integer.parseInt(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Double.parseDouble(valor1) != Integer.parseInt(valor2)) + \"\";\n }\n } else if (ManejadorMemoria.isFloat(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Double.parseDouble(valor1) + Double.parseDouble(valor2)) + \"\";\n case Codigos.RESTA:\n return (Double.parseDouble(valor1) - Double.parseDouble(valor2)) + \"\";\n case Codigos.MULT:\n return (Double.parseDouble(valor1) * Double.parseDouble(valor2)) + \"\";\n case Codigos.DIV:\n return (Double.parseDouble(valor1) / Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYOR:\n return (Double.parseDouble(valor1) > Double.parseDouble(valor2)) + \"\";\n case Codigos.MENOR:\n return (Double.parseDouble(valor1) < Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Double.parseDouble(valor1) >= Double.parseDouble(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Double.parseDouble(valor1) <= Double.parseDouble(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Double.parseDouble(valor1) == Double.parseDouble(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Double.parseDouble(valor1) != Double.parseDouble(valor2)) + \"\";\n }\n }\n } else if (ManejadorMemoria.isString(operando1)) {\n return valor1 + valor2;\n } else if(ManejadorMemoria.isBool(operando1)){\n switch(op){\n case Codigos.AND:\n return (Boolean.parseBoolean(valor1) && Boolean.parseBoolean(valor2)) + \"\";\n case Codigos.OR:\n return (Boolean.parseBoolean(valor1) || Boolean.parseBoolean(valor2)) + \"\";\n case Codigos.NOT:\n return (! Boolean.parseBoolean(valor1))+ \"\";\n }\n }\n\n return \"\";\n }",
"public void operacao();",
"@Override\n\tpublic void getResultat() {\n\t\tcalcul();\n\t}",
"private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}",
"@Test\n void testCalculations() {\n double addition = calculator.add(10, 2);\n double subtraction = calculator.sub(10, 2);\n double multiplication = calculator.mul(10, 2);\n double division = calculator.div(10, 2);\n\n //Then\n assertEquals(12, addition);\n assertEquals(8, subtraction);\n assertEquals(20, multiplication);\n assertEquals(5, division);\n }",
"void total() {\r\n t=m1+m2+m3;\r\n per=t/3;\r\n System.out.println(\"total :\"+t);\r\n System.out.println(\"persentage:\"+per);\r\n \r\n \r\n }",
"public int getOperacion()\r\n/* 22: */ {\r\n/* 23:45 */ return this.operacion;\r\n/* 24: */ }",
"@Override\n public void alRechazarOperacion() {\n }",
"public Double realizaroperacionesunavariable (ArrayList <String> funcion) {\n\n\t\t//mientras en la funcion hayan mas de dos numeros para operar\n\t\twhile(funcion.size()>=2) {\n\n\t\t\t//separar por token penultima posicion del arraylist\n\t\t\tStringTokenizer tokens = new StringTokenizer(funcion.get(funcion.size()-2));\n\t\t\tStringTokenizer tokens2 = new StringTokenizer(funcion.get(funcion.size()-1));\n\n\t\t\t//obtener signo de token de penultima operacion\n\t\t\tString tokensignosoperacion = tokens.nextToken();\n\n\t\t\t//omitir simbolo de operacion del ultimo token\n\t\t\ttokens2.nextToken();\n\n\t\t\t//obtener el valor del ultimo token\n\t\t\tString siguientetoken2= tokens2.nextToken();\n\n\n\n\t\t\twhile (tokens.hasMoreTokens()) {\n\n\t\t\t\tString siguientetoken = tokens.nextToken();\n\n\t\t\t\t//Chequear si el siguiente token para saber si es otra operacion, si lo es empezar a realizar calculos\n\t\t\t\tif (siguientetoken.equals(\"+\")|| siguientetoken.equals(\"-\")|| siguientetoken.equals(\"*\")|| siguientetoken.equals(\"/\")) {\n\t\t\t\t\ttokensignosoperacion = siguientetoken;\n\t\t\t\t}\n\t\t\t\t//realizar operacion si es suma\n\t\t\t\tif (tokensignosoperacion.equals(\"+\")) {\n\n\t\t\t\t\twhile(!siguientetoken.equals(\"+\")&& !siguientetoken.equals(\"-\")&& !siguientetoken.equals(\"*\")&& !siguientetoken.equals(\"/\") ) {\n\n\t\t\t\t\tresultadocalculosperaciones = Double.parseDouble(siguientetoken) + Double.parseDouble(siguientetoken2) ;\n\n\t\t\t\t\t//atrapar error de que no hay ningun siguiente token\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsiguientetoken= tokens.nextToken();\n\n\t\t\t\t\t}\n\n\t\t\t\t\tcatch(NoSuchElementException errorelemento) {\n\t\t\t\t\t\tsiguientetoken = \"+\";\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//realizar operacion si es resta\n\t\t\t\tif (tokensignosoperacion.equals(\"-\")) {\n\n\t\t\t\t\twhile(!siguientetoken.equals(\"+\")&& !siguientetoken.equals(\"-\")&& !siguientetoken.equals(\"*\")&& !siguientetoken.equals(\"/\") ) {\n\n\t\t\t\t\tresultadocalculosperaciones = Double.parseDouble(siguientetoken)- Double.parseDouble(siguientetoken2);\n\n\t\t\t\t\t//atrapar error de que no hay ningun siguiente token\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsiguientetoken= tokens.nextToken();\n\n\t\t\t\t\t}\n\n\t\t\t\t\tcatch(NoSuchElementException errorelemento) {\n\t\t\t\t\t\tsiguientetoken = \"+\";\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//realizar operacion si es multiplicacion\n\t\t\t\tif (tokensignosoperacion.equals(\"*\")) {\n\t\t\t\t\t//darle el valor de 1 para que la primera multiplicacion no sea 0\n\t\t\t\t\twhile(!siguientetoken.equals(\"+\")&& !siguientetoken.equals(\"-\")&& !siguientetoken.equals(\"*\")&& !siguientetoken.equals(\"/\") ) {\n\t\t\t\t\tresultadocalculosperaciones = Double.parseDouble(siguientetoken) * Double.parseDouble(siguientetoken2);\n\n\t\t\t\t\t//atrapar error de que no hay ningun siguiente token\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsiguientetoken= tokens.nextToken();\n\n\t\t\t\t\t}\n\n\t\t\t\t\tcatch(NoSuchElementException errorelemento) {\n\t\t\t\t\t\tsiguientetoken = \"+\";\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t//realizar operacion si es division\n\t\t\t\tif (tokensignosoperacion.equals(\"/\")) {\n\t\t\t\t\twhile(!siguientetoken.equals(\"+\")&& !siguientetoken.equals(\"-\")&& !siguientetoken.equals(\"*\")&& !siguientetoken.equals(\"/\") ) {\n\n\t\t\t\t\t\tresultadocalculosperaciones = Double.parseDouble(siguientetoken) / Double.parseDouble(siguientetoken2);\n\n\n\t\t\t\t\t//atrapar error de que no hay ningun siguiente token\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsiguientetoken= tokens.nextToken();\n\n\t\t\t\t\t}\n\n\t\t\t\t\tcatch(NoSuchElementException errorelemento) {\n\t\t\t\t\t\tsiguientetoken = \"+\";\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t}\n\n\n\t\t\t\tcalculounavariable.set(funcion.size()-2 ,tokensignosoperacion + \" \"+String.valueOf(resultadocalculosperaciones));\n\t\t\t\tfuncion.remove(funcion.size()-1);\n\t\t\t\tcontadororden++;\n\t\t\t\tcontadorespacios=0;\n\n\t\t\t}\n\n\n\t\t}\n\t\tif(calculounavariable !=null) {\n\t\t\tcalculounavariable.clear();\n\t\t}\n\t//\tponer el valor de los resultados en 0 por si se ingresara una nueva\n\t\tdouble resultadocalculosperaciones2 = resultadocalculosperaciones;\n\t\tresultadocalculosperaciones=0;\n\t\treturn resultadocalculosperaciones2;\n\n\t}",
"private IOferta buildOfertaEjemplo5() {\n\t\tPredicate<Compra> condicion = new PredicadoJubilado();\n\n\t\tFunction<Compra, Float> descuento = Functions.compose(\n\t\t\t\tnew DescuentoPorcentual(10.0f),\n\t\t\t\tnew ExtraerTotalBruto());\n\n\t\treturn new OfertaDinero(\"10% descuento jubilados\", condicion, descuento);\n\t}",
"@Test\n public void pruebaCalculCamiseta() {\n System.out.println(\"prueba Calcul Camiseta\");\n Camiseta camisetaTest = new Camiseta(1);\n assertEquals(190, (camisetaTest.calculCamiseta(1)),0) ;\n \n Camiseta camisetaTestDos = new Camiseta(2);\n assertEquals(1481.2, (camisetaTestDos.calculCamiseta(7)),0) ;\n \n Camiseta camisetaTestTres = new Camiseta(3);\n assertEquals(1178, (camisetaTestTres.calculCamiseta(4)),0) ;\n \n \n }",
"private void Calculation() {\n\t\tint calStd = jetztStunde + schlafStunde;\n\t\tint calMin = jetztMinute + schlafMinute;\n\n\t\ttotalMin = calMin % 60;\n\t\ttotalStunde = calStd % 24 + calMin / 60;\n\n\t}",
"public void prinRecaudacion()\n {\n System.out.println(\"La cantidad recaudada por la maquina1 es \" + maquina1.getTotal());\n System.out.println(\"La cantidad recaudada por la maquina2 es \" + maquina2.getTotal());\n System.out.println(\"La cantidad total es\" + ( maquina1.getTotal() + maquina2.getTotal()));\n}",
"long getExpirations();",
"public Boolean iniciarOperacionesPersona5(Persona p) {\n p.aumentarContadorOperaciones5();\n if (!p.getPersonaSaludable()) {\n if (p.getContadorOperaciones5() == 5) {\n p.resetearContadorOperaciones5();\n return true;\n }\n }\n return false;\n }",
"public void calculoPersonal(){\n ayudantes = getAyudantesNecesarios();\n responsables = getResponsablesNecesarios();\n \n //Calculo atencion al cliente (30% total trabajadores) y RRPP (10% total trabajadores):\n \n int total = ayudantes + responsables;\n \n atencion_al_cliente = (total * 30) / 100;\n \n RRPP = (total * 10) / 100;\n \n //Creamos los trabajadores\n \n gestor_trabajadores.crearTrabajadores(RRPP, ayudantes,responsables,atencion_al_cliente);\n \n }",
"public abstract int calcularOferta();",
"public static ArrayList<Integer> estadisticageneral() {\n\n\t\tArrayList<Integer> mensaje = new ArrayList<>();\n\n\t\tArrayList<Res> resesAntes = ResCRUD.select();\n\t\tArrayList<Res> resess = new ArrayList<>();\n\n\t\t\n\t\tfor (int i = 0; i < resesAntes.size(); i++) {\n\t\t\t\n\t\t\tif (resesAntes.get(i).getVivo()==1) {\n\t\t\t\t\n\t\t\t\tresess.add(resesAntes.get(i));\n\t\t\t}\n\t\t}\t\t\n\n\t\tArrayList<Potrero> potrero = PotreroCRUD.select();\n\n\t\tRes res = null;\n\n\t\tint potreros = potrero.size();\n\t\tint reses = resess.size();\n\t\tint hembras = 0;\n\t\tint machos = 0;\n\t\tint ch = 0;\n\t\tint hl = 0;\n\t\tint nv = 0;\n\t\tint vh = 0;\n\t\tint vp = 0;\n\t\tint cm = 0;\n\t\tint ml = 0;\n\t\tint mc = 0;\n\t\tint tp = 0;\n\n\t\tfor (int i = 0; i < resess.size(); i++) {\n\n\t\t\tres = resess.get(i);\n\n\t\t\tif (res.getGenero().equalsIgnoreCase(\"H\")) {\n\t\t\t\thembras++;\n\n\t\t\t\tswitch (res.getTipo()) {\n\n\t\t\t\tcase \"CH\":\n\n\t\t\t\t\tch++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"HL\":\n\n\t\t\t\t\thl++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"NV\":\n\n\t\t\t\t\tnv++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"VH\":\n\n\t\t\t\t\tvh++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"VP\":\n\n\t\t\t\t\tvp++;\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif (res.getGenero().equalsIgnoreCase(\"M\")) {\n\t\t\t\tmachos++;\n\n\t\t\t\tswitch (res.getTipo()) {\n\n\t\t\t\tcase \"CM\":\n\n\t\t\t\t\tcm++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"ML\":\n\n\t\t\t\t\tml++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"MC\":\n\n\t\t\t\t\tmc++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"TP\":\n\n\t\t\t\t\ttp++;\n\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\tmensaje.add(potreros);\n\t\tmensaje.add(reses);\n\t\tmensaje.add(hembras);\n\t\tmensaje.add(machos);\n\t\tmensaje.add(ch);\n\t\tmensaje.add(hl);\n\t\tmensaje.add(nv);\n\t\tmensaje.add(vh);\n\t\tmensaje.add(vp);\n\t\tmensaje.add(cm);\n\t\tmensaje.add(ml);\n\t\tmensaje.add(mc);\n\t\tmensaje.add(tp);\n\n\t\treturn mensaje;\n\t}",
"public void calcular()\r\n/* 530: */ {\r\n/* 531:556 */ this.facturaProveedorSRI.setMontoIva(this.facturaProveedorSRI.getBaseImponibleDiferenteCero().multiply(\r\n/* 532:557 */ ParametrosSistema.getPorcentajeIva().divide(BigDecimal.valueOf(100L))));\r\n/* 533: */ }",
"public static void casos(int i, Operaciones cal){\n String mensaje2 = \"El resultado es: \";\n switch (i) {\n case 1:\n System.out.println(mensaje2);\n System.out.println(cal.suma());\n break;\n case 2:\n System.out.println(mensaje2);\n System.out.println(cal.resta());\n break;\n case 3:\n System.out.println(mensaje2);\n System.out.println(cal.mult());\n break;\n case 4: \n System.out.println(mensaje2);\n System.out.println(cal.div());\n break;\n default:\n System.out.println(\"Ingresar valor valido\");\n } \n }",
"private double getOEEPerformance(Batch batch) {\n return 1;\n }",
"public void ultimo(){//executa metodo para ultima pagina de registro de funcionarios\r\n\t\tdao.ultimo();\r\n\t}",
"public void precio4e(){\n precioHabitaciones = precioHabitaciones + (cantidadHabitaciones * numeroCamas);\n\n //Restaurante\n if(capacidadRestaurant < 30){\n precioHabitaciones = precioHabitaciones + 10;\n } else if (capacidadRestaurant > 29 && capacidadRestaurant < 51){\n precioHabitaciones = precioHabitaciones + 30;\n } else if (capacidadRestaurant > 50){\n precioHabitaciones = precioHabitaciones + 50;\n }\n\n //Gimnasio\n switch (gimnasio){\n case \"A\":\n precioHabitaciones = precioHabitaciones + 50;\n break;\n case \"B\":\n precioHabitaciones = precioHabitaciones + 30;\n break;\n }\n\n }",
"public String execute() {\n\t\ttry {\n\t\t\tHashMap<Integer, RigaVenditeCommercianti> map = new HashMap<Integer, RigaVenditeCommercianti>();\n\t\t\tlistaTotali = new LinkedList<RigaVenditeCommercianti>();\n\t\t\t\n\t\t\tFatture fatture = new Fatture();\n\t\t\tfatture.setOrderByCliente();\n\t\t\tCollection colFatture = fatture.getFatture(dataDal, dataAl);\n\t\t\tIterator itr = colFatture.iterator();\n\t\t\twhile (itr.hasNext()) {\n\t\t\t\tFattura fattura = (Fattura) itr.next();\t\n\t\t\t\tfattura.calcolaTotali();\n\t\t\t\tif (map.containsKey(fattura.getIdCliente().intValue())) {\n\t\t\t\t\t//Aggiungi totali alla riga attuale\n\t\t\t\t\tRigaVenditeCommercianti riga = map.get(fattura.getIdCliente().intValue());\n\t\t\t\t\triga.setTotaleFattura(riga.getTotaleFattura().add(fattura.getTotaleFattura()));\n\n\t\t\t\t\t//CALCOLO IMPONIBILI\n\t\t\t\t\tfattura.calcolaTotali();\n\t\t\t\t\tHashMap<BigDecimal, BigDecimal[]> imponibili = fattura.getImponibili();\n\t\t\t\t\t\n\t\t\t\t\t//IVA AL 4\n\t\t\t\t\tif (imponibili.containsKey(riga.getIva1())) { //IVA AL 4\n\t\t\t\t\t\triga.setImponibile1(riga.getImponibile1().add(imponibili.get(riga.getIva1())[0]));\n\t\t\t\t\t\triga.setImposta1(riga.getImposta1().add(imponibili.get(riga.getIva1())[1]));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//IVA AL 10\n\t\t\t\t\tif (imponibili.containsKey(riga.getIva2())) {\n\t\t\t\t\t\triga.setImponibile2(riga.getImponibile2().add(imponibili.get(riga.getIva2())[0]));\n\t\t\t\t\t\triga.setImposta2(riga.getImposta2().add(imponibili.get(riga.getIva2())[1]));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//IVA AL 20\n\t\t\t\t\tif (imponibili.containsKey(riga.getIva2())) {\n\t\t\t\t\t\triga.setImponibile3(riga.getImponibile3().add(imponibili.get(riga.getIva3())[0]));\n\t\t\t\t\t\triga.setImposta3(riga.getImposta3().add(imponibili.get(riga.getIva3())[1]));\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\t//Crea riga per cliente\n\t\t\t\t\tRigaVenditeCommercianti riga = new RigaVenditeCommercianti();\n\t\t\t\t\triga.setCliente(fattura.getCliente());\n\t\t\t\t\triga.setTotaleFattura(fattura.getTotaleFattura());\n\t\t\t\t\t\n\t\t\t\t\t//CALCOLO IMPONIBILI\n\t\t\t\t\tHashMap<BigDecimal, BigDecimal[]> imponibili = fattura.getImponibili();\n\t\t\t\t\tIvas dao = new Ivas();\n\t\t\t\t\tdao.setOrderByDescrizione(DataAccessObject.ORDER_ASC);\n\t\t\t\t\tCollection aliquote = dao.getElements();\n\t\t\t\t\t\n\t\t\t\t\tint index = 1;\n\t\t\t\t\tfor(Object obj : aliquote)\n\t\t\t\t\t{\n\t\t\t\t\t\tIva iva = (Iva)obj;\n\t\t\t\t\t\tif(iva.getValore().floatValue() < 4) continue;\n\t\t\t\t\t\t\n\t\t\t\t\t\tBigDecimal imponibile = new BigDecimal(0);\n\t\t\t\t\t\tBigDecimal imposta = new BigDecimal(0);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(imponibili.containsKey(iva.getValore()))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\timponibile = imponibili.get(iva.getValore())[0];\n\t\t\t\t\t\t\timposta = imponibili.get(iva.getValore())[1];\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(index == 1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\triga.setIva1(iva.getValore());\n\t\t\t\t\t\t\triga.setImponibile1(imponibile);\n\t\t\t\t\t\t\triga.setImposta1(imposta);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(index == 2)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\triga.setIva2(iva.getValore());\n\t\t\t\t\t\t\triga.setImponibile2(imponibile);\n\t\t\t\t\t\t\triga.setImposta2(imposta);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(index == 3)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\triga.setIva3(iva.getValore());\n\t\t\t\t\t\t\triga.setImponibile3(imponibile);\n\t\t\t\t\t\t\triga.setImposta3(imposta);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(index == 3) break;\n\t\t\t\t\t\t\n\t\t\t\t\t\tindex++;\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tmap.put(fattura.getIdCliente().intValue(), riga);\n\t\t\t\t\tlistaTotali.add(riga);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tstampaErrore(\"PrintVendite.execute()\", e);\n\t\t\treturn ERROR;\n\t\t}\n\t\treturn SUCCESS;\n\t}",
"public int executeOperation(){\n\t\tswitch (operation){\n\t\tcase 1: \n\t\t\treturn var1 + var2;\n\t\tcase 2: \n\t\t\treturn var1 - var2;\n\t\tcase 3: \n\t\t\treturn var1 * var2;\n\t\tcase 4: \n\t\t\treturn var1 / var2;\n\t\t default:\n\t\t\treturn 0;\n\t\t\n\t\t}\n\t}",
"@Override\n\tpublic int getNextOperacionDetalle() {\n\t\treturn 0;\n\t}",
"@Test\n\tpublic void mejorCasoOrderAndSelectTest() {\n\t\t// TODO!\n\t\tint longitud = 16;\n\t\tInteger[] conjunto = new Integer[longitud];\n\t\tfor (int i = 0; i < conjunto.length / 2; i++)\n\t\t\tconjunto[i] = 1;\n\t\tfor (int i = conjunto.length / 2; i < conjunto.length; i++)\n\t\t\tconjunto[i] = 2;\n\t\tint k = longitud - 1;\n\t\tassertEquals(new Integer(2), buscador.buscarEstadisticoDeOrdenK(conjunto, k));\n\t}",
"private int obstaculos() {\n\t\treturn this.quadricula.length * this.quadricula[0].length - \n\t\t\t\tthis.ardiveis();\n\t}",
"@Override\n public double calcularValorCompra(ArrayList<Mueble> muebles){\n double total = 0d;\n for (Mueble m : muebles) {\n total+= m.getCantidad()*m.getPrecio();\n }\n return total; \n }",
"public void imprimirResultados(){\n System.out.println(\"t (tiempo actual) \"+t);\n \n \n System.out.println(\"\\nGanancia total: $\"+R);\n System.out.println(\"Costos por mercaderia comprada: $\"+C);\n System.out.println(\"Costos por mantenimiento inventario: $\"+H);\n System.out.println(\"Ganancia promeio de la tienda por unidad de tiempo: $\"+(R-C-H)/T);\n \n }",
"public void operation() {\n\t\t\n\t\tswitch(calculation){\n\t\t\tcase 1:\n\t\t\t\ttotal = num + Double.parseDouble(textField.getText());\n\t\t\t\ttextField.setText(Double.toString(total));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 2:\n\t\t\t\ttotal = num - Double.parseDouble(textField.getText());\n\t\t\t\ttextField.setText(Double.toString(total));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 3:\n\t\t\t\ttotal = num * Double.parseDouble(textField.getText());\n\t\t\t\ttextField.setText(Double.toString(total));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 4:\n\t\t\t\ttotal = num / (Double.parseDouble(textField.getText()));\n\t\t\t\ttextField.setText(Double.toString(total));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t}\n\t}",
"public void updateOperations() {\n String temp = \"\";\n \n if (chkBoxOperators[0].isSelected()) temp += PLUS;\n if (chkBoxOperators[1].isSelected()) temp += MINUS;\n if (chkBoxOperators[2].isSelected()) temp += TIMES;\n if (chkBoxOperators[3].isSelected()) temp += DIVIDE;\n \n charOperators = temp.toCharArray();\n if (temp.indexOf(currentOperator) == -1) setNewNumbers();\n \n }",
"public void Millas_M(){\r\n System.out.println(\"Cálcular Metros o Kilometros de Millas Marinas\");\r\n System.out.println(\"Ingrese un valor en Millas Marinas\");\r\n cadena =numero.next(); \r\n valor = metodo.Doble(cadena);\r\n valor = metodo.NegativoD(valor);\r\n totalM = valor * 1852 ;\r\n Millas_KM(totalM);\r\n }",
"public int esquinas(){\n int v=0;\n if (fila==0 && columna==0){\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna+1)!=null && automata.getElemento(fila+1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n }\n else if(fila==0 && columna==15){\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna-1)!=null && automata.getElemento(fila+1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n }\n else if(fila==15 && columna==0){\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna+1)!=null && automata.getElemento(fila-1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n }\n else if(fila==15 && columna==15){\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna-1)!=null && automata.getElemento(fila-1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n }\n return v;\n }",
"protected int getTimesOptimized()\r\n {\r\n return timesOptimized;\r\n }",
"private static void calcularTotal(String[] campos) {\n\t\tif (campos.length == 1)\n\t\t\tSystem.out.println(\"TOTAL de lugares atribuidos: \" + gestor.totalAtribuidos());\n\t\telse {\n\t\t\tint escalao = Integer.valueOf(campos[1]);\n\t\t\tSystem.out.println(\"TOTAL de lugares atribuidos no escalao \" + escalao + \" : \" + gestor.atribuidosNoEscalao(escalao));\n\t\t}\n\t}",
"private int calculateTotal(boolean oneAnswer, boolean twoAnswer, boolean threeAnswer, boolean fourAnswer, String fiveAnswer, boolean sixAnswer) {\n int calculateTotal = 0;\n\n if (oneAnswer) {\n calculateTotal = calculateTotal + 1;\n }\n if (twoAnswer) {\n calculateTotal = calculateTotal + 1;\n }\n if (threeAnswer) {\n calculateTotal = calculateTotal + 1;\n }\n if (fourAnswer) {\n calculateTotal = calculateTotal + 1;\n }\n if (fiveAnswer.equalsIgnoreCase(\"Decatur Staleys\")) {\n calculateTotal = calculateTotal + 1;\n }\n if (sixAnswer) {\n calculateTotal = calculateTotal + 1;\n }\n\n return calculateTotal;\n }",
"private static void eval5(){\n for(int i = 0; i < 46; i++){\n for(int j = i + 1; j < 47; j++){\n for(int k = j + 1; k < 48; k++){\n for(int l = k + 1; l < 49; l++){\n for(int m = l + 1; m < 50; m++){\n Evaluator.evaluate(i, j, k, l, m);\n }\n }\n }\n }\n }\n }",
"long getQuantite();",
"private static void operacionesJugar() {\r\n\t\tjuego.actualizarJugadores(respuesta);\r\n\t\tJugadorM[] ganadores;\r\n\t\ttry {\r\n\t\t\tint before = juego.getNJugadoresActivos();\r\n\t\t\tganadores = juego.finalizarRonda();\r\n\t\t\tif (ganadores.length == 0) {\r\n\t\t\t\tescribirRonda(false);\r\n\t\t\t\tmostrarEmpateRonda();\r\n\t\t\t} else if (ganadores.length == before) {\r\n\t\t\t\tescribirRonda(false);\r\n\t\t\t\tmostrarEmpateRonda();\r\n\t\t\t} else if (ganadores.length == 1) {\r\n\t\t\t\tescribirRonda(true);\r\n\t\t\t\tFINhayGanador(ganadores[0]);\r\n\t\t\t\tjuego.nextRonda();\r\n\t\t\t} else {\r\n\t\t\t\tmostrarGanadoresRonda(ganadores);\r\n\t\t\t\tescribirRonda(true);\r\n\t\t\t\tjuego.nextRonda();\r\n\t\t\t}\r\n\t\t} catch (AllRondasCompleteException e) {\r\n\t\t\tFINtotalRondasAlcanzadas(e);\r\n\t\t}\r\n\t}",
"void forceStats(long operations, long hits);",
"@Override\n\tprotected Integer compute() {\n\t\treturn 3;\n\t}",
"public void MUL( ){\n String tipo1 = pilhaVerificacaoTipos.pop().toString();\n String tipo2 = pilhaVerificacaoTipos.pop().toString();\n String val1 = dads.pop().toString();\n float fresult = -1;\n int iresult = -1;\n String val2 = dads.pop().toString();\n if(val1 != null && val2 != null){\n if (tipo1 != null && tipo2 != null){\n if(tipo1 == \"inteiro\" && tipo2 == \"real\"){\n fresult = Integer.parseInt(val1) * Float.parseFloat(val2);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }else if(tipo1 == \"real\" && tipo2 ==\"inteiro\"){\n fresult = Integer.parseInt(val2) * Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }else if(tipo1 == \"real\" && tipo2 ==\"real\"){\n fresult = Float.parseFloat(val2) * Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }else if(tipo1 == \"inteiro\" && tipo2 ==\"inteiro\"){\n iresult = Integer.parseInt(val2) * Integer.parseInt(val1);\n dads.push(iresult);\n pilhaVerificacaoTipos.push(\"inteiro\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(1): essa instrução é válida apenas para valores inteiros ou reais.\";\n numErrVM += 1;\n return;\n }\n }else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(2): não foi possível executar a instrução, tipo null encontrado.\";\n numErrVM += 1;\n return;\n }\n }else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(3): não foi possível executar a instrução, valor null encontrado.\";\n numErrVM += 1;\n return;\n }\n\n\n\n topo += -1;\n ponteiro += 1;\n }",
"public void mostrarTotales() { \n // Inicializacion de los atributos en 0\n totalPCs = 0;\n totalLaptops = 0;\n totalDesktops = 0; \n /* Recorrido de la lista de computadores para acumular el precio usar instanceof para comparar el tipo de computador */ \n for (Computador pc : computadores){\n if (pc instanceof PCLaptop) {\n totalLaptops += pc.calcularPrecio(); \n } else if (pc instanceof PCDesktop){\n totalDesktops += pc.calcularPrecio();\n }\n }\n totalPCs = totalLaptops + totalDesktops;\n System.out.println(\"El precio total de los computadores es de \" + totalPCs); \n System.out.println(\"La suma del precio de los Laptops es de \" + totalLaptops); \n System.out.println(\"La suma del precio de los Desktops es de \" + totalDesktops);\n }",
"public int obtenerNumeroOperaciones(){\n return historialOperaciones.size();\n }",
"long buscarUltimo();",
"public Calculadora(){\n this.operador1 = 0.0;\n this.operador2 = 0.0;\n this.resultado = 0.0;\n }",
"private void calcularOtrosIngresos(Ingreso ingreso)throws Exception{\n\t\tfor(IngresoDetalle ingresoDetalle : ingreso.getListaIngresoDetalle()){\r\n\t\t\tif(ingresoDetalle.getIntPersPersonaGirado().equals(ingreso.getBancoFondo().getIntPersonabancoPk())\r\n\t\t\t&& ingresoDetalle.getBdAjusteDeposito()==null){\r\n\t\t\t\tbdOtrosIngresos = ingresoDetalle.getBdMontoAbono();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public int getAvgExecs()\n/* */ {\n/* 55 */ return this.avgExecs;\n/* */ }",
"@Override\n public double calculaTributos() {\n // TODO Auto-generated method stub\n return 10;\n }",
"public void enfoncerMoins() {\n\t\ttry {\n\t\t\tthis.op = new Moins();\n\t\t\tif (!raz) {\n\t\t\t\tthis.pile.push(valC);\n\t\t\t}\n\t\t\tint a = this.pile.pop(); int b = this.pile.pop();\n\t\t\tthis.valC = this.op.eval(b,a);\n\t\t\tthis.pile.push(this.valC);\n\t\t\tthis.raz = true;\n\t\t}\n\t\tcatch (EmptyStackException e) {\n\t\t\tSystem.out.println(\"Erreur de syntaxe : Saisir deux operandes avant de saisir un operateur\");\n\t\t}\n\t}",
"public int getPrecios()\r\n {\r\n for(int i = 0; i < motos.size(); i++)\r\n {\r\n precio_motos += motos.get(i).getCoste();\r\n }\r\n \r\n return precio_motos;\r\n }",
"private static void addAllMultiplesOfFive()\n\t{\n\t\tfor (int i = 0; i <= MAX_NUMBER; i += 5)\n\t\t{\n\t\t\tboolean isDivisibleByThree = i % 3 == 0;\n\t\t\tif (!isDivisibleByThree)\n\t\t\t{\n\t\t\t\tanswerSum += i;\n\t\t\t}\n\t\t}\n\t}",
"public void test5(){\r\n\t\tZug zug1 = st.zugErstellen(1, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(0, 3, \"Zug 2\"); \r\n\t}",
"private int getResult() {\n ArrayList<Character> operanzi = new ArrayList<Character>();\n ArrayList<Character> operatori = new ArrayList<Character>();\n for(int i = 1; i <= n; i++){\n // System.out.println(i);\n if ((expr[i] == 'T' ) || (expr[i] == 'F'))\n operanzi.add(expr[i]);\n else \n operatori.add(expr[i]);\n }\n System.out.println(operanzi.get(0));\n int n1 = operanzi.size();\n System.out.println(n1);\n long [][] T = new long[n1][n1];\n long [][] F = new long[n1][n1];\n\n for (int i = 0; i < operanzi.size(); i++) {\n \n if (operanzi.get(i) == 'T') {\n T[i][i] = 1;\n F[i][i] = 0;\n } else if (operanzi.get(i) == 'F') {\n T[i][i] = 0;\n F[i][i] = 1;\n }\n }\n long aux=0;\n for (int l=1; l<n1; ++l) \n { \n for (int i=0, j=l; j<n1; ++i, ++j) \n { \n T[i][j] = F[i][j] = 0; \n for (int g=0; g<l; g++) \n { \n int k = i + g; \n long total_i_k = evaluate(T[i][k],F[i][k],'+'); \n long total_k_j = evaluate(T[k+1][j] , F[k+1][j],'+'); \n long total = evaluate(total_i_k,total_k_j,'*');\n if (operatori.get(k) == '&') \n { \n aux = evaluate(T[i][k],T[k+1][j],'*');\n T[i][j] = evaluate(T[i][j],aux,'+'); \n \n\n F[i][j] = evaluate( F[i][j],evaluate(total,aux,'-'),'+'); \n } \n if (operatori.get(k) == '|') \n { \n aux = evaluate(F[i][k],F[k+1][j],'*');\n F[i][j] = evaluate(F[i][j],aux,'+'); \n \n T[i][j] =evaluate( T[i][j],evaluate(total, aux,'-'),'+'); \n } \n if (operatori.get(k) == '^') \n { \n aux = evaluate(F[i][k],T[k+1][j],'*');\n long aux1= evaluate(T[i][k],F[k+1][j],'*');\n T[i][j] = evaluate( T[i][j],evaluate( aux , aux1,'+'),'+'); \n aux = evaluate(T[i][k],T[k+1][j],'*');\n aux1 = evaluate(F[i][k],F[k+1][j],'*');\n F[i][j] = evaluate( F[i][j],evaluate(aux,aux1,'+'),'+');\n } \n } \n } \n } \n return (int)T[0][n1-1]; \n }",
"private void molCalculator() {\n\t\tdouble finalMolRMultiplier = 100000000;\n\t\tint finalMolRIndex = 0;\n\t\tdouble finalMolPMultiplier = 100000000;\n\t\tint finalMolPIndex = 0;\n\t\tdouble finalMol = 0;\n\t\tint finalMolAmt = 0;\n\n\t\t/* Finds the limiting moles on the reactant side and sets the # textfield to its assumed value \n\t\tin case of non-numerical values */\n\t\tfor (int i = 0; i < intReactant; i++) {\n\t\t\tif (reactantMM[i] > 0) {\n\t\t\t\tif (reactantAmt[i] == 0) {\n\t\t\t\t\treactantTextAmt.get(i).setText(\"1\");\n\t\t\t\t\treactantAmt[i] = 1;\n\t\t\t\t}\n\t\t\t\treactantTextAmt.get(i).setText(reactantAmt[i] + \"\");\n\t\t\t\tif (!(reactantMoles[i] == 0)) {\n\t\t\t\t\tdouble temp = reactantMoles[i] / reactantAmt[i];\n\t\t\t\t\tif (finalMolRMultiplier > temp) {\n\t\t\t\t\t\tfinalMolRMultiplier = temp;\n\t\t\t\t\t\tfinalMolRIndex = i;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/* Finds the limiting moles on the product side and sets the # textfield to its assumed value \n\t\tin case of non-numerical values */\n\t\tfor (int i = 0; i < intProduct; i++) {\n\t\t\tif (productMM[i] > 0) {\n\t\t\t\tif (productAmt[i] == 0) {\n\t\t\t\t\tproductTextAmt.get(i).setText(\"1\");\n\t\t\t\t\tproductAmt[i] = 1;\n\t\t\t\t}\n\t\t\t\tproductTextAmt.get(i).setText(productAmt[i] + \"\");\n\t\t\t\tif (!(productMoles[i] == 0)) {\n\t\t\t\t\tdouble temp = productMoles[i] / productAmt[i];\n\t\t\t\t\tif (finalMolPMultiplier > temp) {\n\t\t\t\t\t\tfinalMolPMultiplier = temp;\n\t\t\t\t\t\tfinalMolPIndex = i;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Finds the final limiting moles\n\t\tif (finalMolRMultiplier > finalMolPMultiplier) {\n\t\t\tfinalMol = productMoles[finalMolPIndex];\n\t\t\tfinalMolAmt = productAmt[finalMolPIndex];\n\t\t} else {\n\t\t\tfinalMol = reactantMoles[finalMolRIndex];\n\t\t\tfinalMolAmt = reactantAmt[finalMolRIndex];\n\t\t}\n\n\t\t// Stores the final limiting moles of each reactant\n\t\tfor (int i = 0; i < intReactant; i++) {\n\t\t\tif (reactantMM[i] > 0) {\n\t\t\t\t// Tries to find the final mol on the reactant side but if the calculation is NaN, don't divide\n\t\t\t\ttry {\n\t\t\t\t\tfinalMolReactant[i] = Double.parseDouble(numberFormat.format((reactantAmt[i] * finalMol) / finalMolAmt));\n\t\t\t\t} catch(Exception e) {\n\t\t\t\t\tfinalMolAmt = 1;\n\t\t\t\t\tfinalMolReactant[i] = Double.parseDouble(numberFormat.format(reactantAmt[i] * finalMol));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Stores the final limiting moles of each product\n\t\tfor (int i = 0; i < intProduct; i++) {\n\t\t\tif (productMM[i] > 0) {\n\t\t\t\t// Tries to find the final mol on the product side but if the calculation is NaN, don't divide\n\t\t\t\ttry {\n\t\t\t\t\tfinalMolProduct[i] = Double.parseDouble(numberFormat.format((productAmt[i] * finalMol) / finalMolAmt));\n\t\t\t\t} catch(Exception e) {\n\t\t\t\t\tfinalMolProduct[i] = Double.parseDouble(numberFormat.format(productAmt[i] * finalMol));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"protected abstract Object doCalculations();",
"public int limitesX(){\n int v=0;\n if (fila==0 && columna>0 && columna<15){\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna-1)!=null && automata.getElemento(fila+1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna+1)!=null && automata.getElemento(fila+1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n }\n else if (fila==15 && columna>0 && columna<15){\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna-1)!=null && automata.getElemento(fila-1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna+1)!=null && automata.getElemento(fila-1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n }\n else{v=limitesY();}\n return v;\n }",
"@Override\r\n\tpublic int execute(List<Long> idUserList)\r\n\t{\n\t\tfinal int k = 8;\r\n\t\tint m = (int) Math.pow(2, k);\r\n\r\n\t\t// M GRANDE, ARRAY DI GRANDEZZA m.\r\n\t\tint[] estimators = new int[m];\r\n\r\n//\t\tint total = 0;\r\n\t\tfor(long userId : idUserList)\r\n\t\t{\r\n\t\t\t// NUMERO GENERATO RANDOM TRA 0 E m (escluso)\r\n\t\t\tint i = (int) (Math.random() * m);\r\n\t\t\t// POSIZIONE DEL PRIMO 1 MENO SIGNIFICATIVO A PARTIRE DA DESTRA\r\n\t\t\tint b = Long.numberOfTrailingZeros(userId) + 1;\r\n\t\t\t// ALLA POSIZIONE i-esima VADO A METTERE IL MAX TRA IL VECCHIO VALORE E b\r\n\t\t\testimators[i] = Math.max(estimators[i], b);\r\n\t\t}\r\n\t\t// SOMMA DI TUTTI I VALORI ALL'INTERNO DELL'ARRAY\r\n//\t\tfor(int value : estimators) { total += value; }\r\n\t\t// ESPONENTE DELLA FORMULA (MEDIA)\r\n//\t\tdouble average = (1.0/(double) m) * total;\r\n\t\tdouble media = Arrays.stream(estimators).summaryStatistics().getAverage();\r\n\t\treturn (int) (ARRAY[k] * Math.pow(2, media));\r\n\t}",
"public synchronized double getTotal(){\n float CantidadTotal=0;\n Iterator it = getElementos().iterator();\n while (it.hasNext()) {\n ArticuloVO e = (ArticuloVO)it.next();\n CantidadTotal=CantidadTotal+(e.getCantidad()*e.getPrecio());\n}\n\n \n return CantidadTotal;\n\n }",
"public void toilette() {\n if (!autoriseOperation()) {\n return;\n }\n incrSale(-3);\n incrHumeur(1);\n incrXp(1);\n\n setChanged();\n notifyObservers();\n }",
"@Override\r\n\t\tvoid calculate() {\r\n\t\t\tnum3=num1+num2;\r\n\t\t\t\r\n\t\t}",
"@Override\n\t\t\t\t\tpublic void execute(Object data) {\n\t\t\t\t\t\tif (about.equals(\"CoinDiamond\")) {\n\t\t\t\t\t\t\taddCoins += 15;\n\t\t\t\t\t\t} else if (about.equals(\"ClockDiamond\")) {\n\t\t\t\t\t\t\ttimeRemain = Math.min(timeRemain + 5, timeLevel);\n\t\t\t\t\t\t} else if (about.equals(\"ClockItem\")) {\n\t\t\t\t\t\t\ttimeRemain = Math.min(timeRemain + 10, timeLevel);\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"public int produtosDiferentesComprados(){\r\n return this.faturacao.produtosDiferentesComprados();\r\n }",
"@Test\n\tpublic void peorCasoOrderAndSelectTest() {\n\t\tint longitud = 16;\n\t\tInteger[] conjunto = new Integer[longitud];\n\t\tfor (int i = 0; i < conjunto.length; i++)\n\t\t\tconjunto[i] = 1; \n\t\tint k = longitud - 1;\n\t\tassertEquals(new Integer(15), buscador.buscarEstadisticoDeOrdenK(conjunto, k));\n\t}",
"public static int tirarDados(){\n //elige valores aleatorios para los dados\n int dado1 = 1 + numerosAleatorios.nextInt(6);//<primer tiro del dado\n int dado2 = 1 + numerosAleatorios.nextInt(6);//< segundo tiro del dado\n \n int suma = dado1 + dado2;//< suma de los valores de los dados\n \n //muestra los resultados de este tiro\n System.out.printf(\"El jugador tiro %d + %d = %d%n\", dado1, dado2, suma);\n return suma;\n }",
"public FuncionMultiplicacion(String operador, int hijos) {\n super(operador, hijos);\n }",
"private int calcula(int op,int a, int b){\n \n switch (op) {\n case 0: \n return a+b;\n case 1: \n return a-b;\n case 2: \n return a*b;\n case 3: \n return a/b;\n default: \n return 0;\n }\n \n }",
"public static void main(String[] args) {\n MathOp add=new MathOp() {\n \t \n public int operation(int x, int y)\n {\n \t return x+y;\n }\n\t };\n\t System.out.println(add.operation(1, 2));\n \n\t MathOp sub=new MathOp() {\n \t \n\t public int operation(int x, int y)\n\t {\n\t \t return x-y;\n\t }\n\t\t };\n\t\t System.out.println(sub.operation(1, 2));\n\t \n\t\t MathOp mul=new MathOp() {\n\t \t \n\t\t public int operation(int x, int y)\n\t\t {\n\t\t \t return x*y;\n\t\t }\n\t\t\t };\n\t\t\t System.out.println(mul.operation(1, 2));\n\t\t \n\t\t\t MathOp div=new MathOp() {\n\t\t \t \n\t\t\t public int operation(int x, int y)\n\t\t\t { \n\t\t\t \t return x/y;\n\t\t\t }\n\t\t\t\t };\n\t\t\t\t System.out.println(div.operation(1, 2));\n\t\t\t \n}",
"private void mutateHelper() {\n\t\tsynchronized (this) {\n\t\t\tRandom rand = new Random();\n\t\t\tint mutateType = rand.nextInt(5);\n\t\t\tif (rules.size() >= 14) {\n\t\t\t\tmutateType = rand.nextInt(6);\n\t\t\t}\n\t\t\tint index = rand.nextInt(rules.size());\n\t\t\tMutation m = null;\n\t\t\tswitch (mutateType) {\n\t\t\tcase 0:\n\t\t\t\tm = MutationFactory.getDuplicate();\n\t\t\t\tm.addRules(rules.root);\n\t\t\t\tm.mutate(index);\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tm = MutationFactory.getInsert();\n\t\t\t\tm.addRules(rules.root);\n\t\t\t\tm.mutate(index);\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\tm = MutationFactory.getRemove();\n\t\t\t\tm.addRules(rules.root);\n\t\t\t\tm.mutate(index);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tm = MutationFactory.getReplace();\n\t\t\t\tm.addRules(rules.root);\n\t\t\t\tm.mutate(index);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tm = MutationFactory.getSwap();\n\t\t\t\tm.addRules(rules.root);\n\t\t\t\tm.mutate(index);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tm = MutationFactory.getTransform();\n\t\t\t\tm.addRules(rules.root);\n\t\t\t\tm.mutate(index);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"private static int benchmarkedMethod() {\n return 3;\n }",
"@Override\n\tpublic int manufacturando(int unidades) {\n\t\treturn unidades*this.getTiempoEstimadoParaProducirse();\n\t}",
"private Pair<JsonArray, JsonArray> performManyOpsAndReturnResultingErrorsAndResults(String accession,\n Iterable<Op> ops) {\n JsonArray opsWithErrors = new JsonArray();\n JsonArray opsWithResults = new JsonArray();\n boolean failed = false;\n boolean setFailed = false;\n JsonElement resultOfPreviousOperations = JsonNull.INSTANCE;\n JsonElement resultOfCurrentOperation;\n List<Op> opsThatProducedTheSameResult = new ArrayList<>();\n for (Op op: ops) {\n if (failed) {\n resultOfCurrentOperation = new JsonPrimitive(\"Not started\");\n } else {\n Pair<OpResult, ? extends JsonElement> r = performOneOp(accession, op);\n if (r.getLeft().equals(OpResult.FAILURE)) {\n setFailed = true;\n }\n resultOfCurrentOperation = r.getRight();\n }\n\n if (resultOfPreviousOperations.equals(resultOfCurrentOperation)) {\n opsThatProducedTheSameResult.add(op);\n } else {\n if (!resultOfPreviousOperations.equals(JsonNull.INSTANCE)) {\n (failed ? opsWithErrors : opsWithResults)\n .add(aggregatedResultsObject(opsThatProducedTheSameResult, resultOfPreviousOperations));\n }\n opsThatProducedTheSameResult = new ArrayList<>();\n opsThatProducedTheSameResult.add(op);\n resultOfPreviousOperations = resultOfCurrentOperation;\n }\n failed |= setFailed;\n }\n (failed ? opsWithErrors : opsWithResults)\n .add(aggregatedResultsObject(opsThatProducedTheSameResult, resultOfPreviousOperations));\n return Pair.of(opsWithErrors, opsWithResults);\n }",
"public void soin() {\n if (!autoriseOperation()) {\n return;\n }\n if (tamagoStats.getXp() >= 2) {\n incrFatigue(-3);\n incrHumeur(3);\n incrFaim(-3);\n incrSale(-3);\n incrXp(-2);\n\n if (tamagoStats.getPoids() == 0) {\n incrPoids(3);\n } else if (tamagoStats.getPoids() == TamagoStats.POIDS_MAX) {\n incrPoids(-3);\n }\n\n setEtatPiece(Etat.NONE);\n tamagoStats.setEtatSante(Etat.NONE);\n\n setChanged();\n notifyObservers();\n }\n }",
"public double getStockFinal(long pv) {\n float entree = 0 ;\n float sortie = 0 ;\n\n ArrayList<Produit> produits = null ;\n if (pv==0) produits = produitDAO.getAll();\n else produits = produitDAO.getAllByPv(pv) ;\n\n ArrayList<Mouvement> mouvements = null;\n\n double valeur = 0 ;\n double total = 0 ;\n double quantite = 0 ;\n double cmpu = 0 ;\n double restant = 0 ;\n double qsortie = 0 ;\n double qentree = 0 ;\n // Vente par produit\n Mouvement mouvement = null ;\n Operation operation = null ;\n\n for (int i = 0; i < produits.size(); i++) {\n try {\n mouvements = mouvementDAO.getManyByProductInterval(produits.get(i).getId_externe(),DAOBase.formatter2.parse(datedebut),DAOBase.formatter2.parse(datefin)) ;\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n if (mouvements != null){\n valeur = 0 ;\n quantite = 0 ;\n restant = 0 ;\n qentree = 0 ;\n cmpu = 0 ;\n qsortie = 0 ;\n\n for (int j = 0; j < mouvements.size(); j++) {\n mouvement = mouvements.get(j) ;\n operation = operationDAO.getOne(mouvement.getOperation_id()) ;\n if (operation==null || (operation.getAnnuler()==1 && operation.getDateannulation().before(new Date())) || operation.getTypeOperation_id().startsWith(OperationDAO.CMD)) continue;\n\n //if (pv!=0 && caisseDAO.getOne(operation.getCaisse_id()).getPointVente_id()!=pv) continue;\n if (j==0)\n if (mouvement.getRestant()==mouvement.getQuantite() && mouvement.getEntree()==0){\n restant = 0 ;\n }\n else restant = mouvement.getRestant() ;\n\n if (mouvement.getEntree()==0) {\n valeur -= mouvement.getPrixA() * mouvement.getQuantite() ;\n qentree += mouvement.getQuantite() ;\n cmpu = mouvement.getPrixA() ;\n }\n else {\n valeur += mouvement.getCmup() * mouvement.getQuantite() ;\n qsortie += mouvement.getQuantite() ;\n }\n /*\n if (restant!=0) cmpu = valeur / restant ;\n else cmpu = mouvement.getCmup() ;\n */\n }\n\n quantite = restant + qentree - qsortie ;\n total+=Math.abs(valeur) ;\n }\n }\n\n return total;\n }",
"public int act1Cost()\r\n {\r\n return 1;\r\n }",
"public void sumar(){\n recogidaDatos();\n System.out.println(\"El resultado de la suma es: \" + (numerando1 + numerando2));\n System.out.println(\"***********************************\");\n\n }",
"public int q1(int op,int band,int acum2)\n {\n \n int reslt=0;\n if(opBebidad!=0){//op Bebiba corresponde a si al menos una de las bebidas has sido seleccionada\n \n \n if(band==1)//Parametro band corresponde a varias operaciones\n {// 1. Si el boton de cancelar ha sido seleccionado\n // 2. Si ha sido ingresada una moneda\n \n //---------------------------------------------------------------------\n //Mostrar precio de cada producto, al presionar su imagen mediante la llamada al metodo valorBeb()\n Set<String> quipu = new HashSet<String>(monedas);\n for (String key : quipu) \n {\n if(key.equals(\"25\"))\n {\n cant25=Integer.parseInt(Collections.frequency(monedas, key)+\"\");\n\n }else\n if(key.equals(\"5\"))\n {\n cant5=Integer.parseInt(Collections.frequency(monedas, key)+\"\"); \n\n }else\n if(key.equals(\"10\"))\n {\n cant10=Integer.parseInt(Collections.frequency(monedas, key)+\"\");\n\n }\n }\n valorBeb(op);\n Ventana_Principal.arrow.setVisible(false);\n Ventana_Principal.txtA.setText(\"Por Favor Retirar su Dinero...Gracias\");\n Ventana_Principal.txtA.append(\"\\nEntregando...\");\n Cambio hilo=new Cambio(Ventana_Principal.txtA,monedas.size(),monedas);\n hilo.start();\n\n Ventana_Principal.lbl5.setText(cant5+\"\");\n Ventana_Principal.lbl10.setText(cant10+\"\");\n Ventana_Principal.lbl25.setText(cant25+\"\");\n\n //Luego de un minuto el hilo vuelve a ejecutarse\n //ScheduledExecutorService timer = Executors.newSingleThreadScheduledExecutor();\n //timer.scheduleAtFixedRate(hilo, 1, 1, TimeUnit.MINUTES);\n \n }\n else\n if(band==2)\n {\n hilo=new Publicidad(txtA,true);\n Ventana_Principal.hilo.stop();\n //Se detiene el hilo para mostrar el valor del producto vs el valor que se va ingresando\n //Mediante acum2, se acumulan las monedas ingresadas\n double dif=0; \n System.out.println(\"----------------------------------------------------------------------\");\n System.out.println(\"Precio: \"+valor+\"| Ingreso:\"+acum);\n monedas.add(acum2+\"\");//Se van guardando cada una de las monedas ingresadas, para poder ser contadas\n \n dif=valor-acum;\n if(dif<0)\n {\n \n if(acum==100)\n {\n String aux=Integer.toString(acum);\n Ventana_Principal.txtA.setText(\"Ha Ingresado: \"+aux.substring(0,1)+\".0 dolar/es\");\n Ventana_Principal.txtMon.setText(\"\");\n }else\n {\n if(acum>100)\n {\n String aux=Integer.toString(acum);\n String aux2=aux.substring(0,1);\n Ventana_Principal.txtA.setText(\"Ha Ingresado: \"+aux2.concat(\".\").concat(aux.substring(1))+\" dolar/es\");\n Ventana_Principal.txtMon.setText(\"\");\n }else\n {\n Ventana_Principal.txtA.setText(\"Ha Ingresado: \"+acum+\" centavos\");\n Ventana_Principal.txtMon.setText(\"\");\n }\n }\n \n }else\n {\n if(acum==valor)\n {\n if(acum==100)\n {\n String aux=Integer.toString(acum);\n Ventana_Principal.txtA.setText(\"Ha Ingresado: \"+aux.substring(0,1)+\".0 dolar/es\");\n Ventana_Principal.txtMon.setText(\"\");\n }else\n {\n Ventana_Principal.txtA.setText(\"Ha Ingresado: \"+acum+\" centavos\");\n Ventana_Principal.txtMon.setText(\"\");\n }\n }else\n {\n Ventana_Principal.txtA.setText(\"Ha Ingresado: \"+acum+ \" centavos\\nFaltan \"+dif+\" centavos\");\n Ventana_Principal.txtMon.setText(\"\");\n }\n \n }\n if(acum>=valor)\n {\n if(acum==valor)\n {\n Ventana_Principal.txtA.append(\"\\nPor Favor, Retire su Bebida...\");\n Ventana_Principal.txtMon.setEnabled(false);\n Ventana_Principal.arrow.setVisible(true);\n Ventana_Principal.lblPush.setEnabled(true);\n }else\n {\n Ventana_Principal.txtMon.setEnabled(false);\n q2(1);\n Ventana_Principal.txtA.append(\"\\nPor Favor, Retire su Bebida...\");\n Ventana_Principal.lblPush.setEnabled(true);\n }\n }\n //Se llama a cantMonedas, que muestra la cantidad de cada moneda ingresada\n cantMonedas();//Cuenta las monedas y las clasifica\n \n }\n }\n reslt=acum;\n return reslt; \n }",
"private void montaQuery(Publicacao object, Query q) {\t\t\n\t}",
"@Test\n\t@Category (WrongPlace.class)\n\t// long running test in the unit test section\n\tpublic void orderOfOperations() {\n\t\tCalculator c = new Calculator();\n\t\tc.press(\"1\");\n\t\tc.press(\"+\");\n\t\tc.press(\"2\");\n\t\tc.press(\"*\");\n\t\tc.press(\"4\");\n\t\tc.press(\"=\");\n\t\tString result = c.getDisplay();\n\t\tassertEquals(result, \"9\");\n\t}",
"private void iterativeDataPropertyMetrics() {\n\t}",
"public OperationType[] createOperationTypes() {\n int[] op1v1 = new int[]{2, 3, 4, 6};\n OperationType op1 = new OperationType(1, op1v1, null, null, 2\n , 0, 17520, 730, 8, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Transport net before operation\");\n int[] op2v1 = new int[]{2, 3, 4, 6};\n int[] op2v2 = new int[]{2, 3, 4, 6};\n OperationType op2 = new OperationType(2, op2v1, op2v2, null,\n 3, 1, 17520, 730, 4, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Install net\");\n int[] op3v1 = new int[]{2, 3, 4, 6};\n OperationType op3 = new OperationType(3, op3v1, null,\n null, 0, 2, 17520, 730, 8, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Transport net after operation\");\n int[] op4v1 = new int[]{5};\n int[] op4v2 = new int[]{2, 3, 4, 6};\n OperationType op4 = new OperationType(4, op4v1, op4v2, null,\n 0, 0, 1152, 192, 5, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 8, \"Delousing\");\n int[] op5v1 = new int[]{2, 3, 4};\n int[] op5v2 = new int[]{2, 3, 4};\n int[] op5BT = new int[]{6};\n OperationType op5 = new OperationType(5, op5v1, op5v2, op5BT,\n 0, 0, 8760, 360, 40, DataGenerator.costPenalty * DataGenerator.maxSailingTime, \"Large inspection of the facility\");\n int[] op6v1 = new int[]{2};\n OperationType op6 = new OperationType(6, op6v1, null, null,\n 0, 0, 5110, 730, 5, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Wash the net\");\n int[] op7v1 = new int[]{4, 6};\n OperationType op7 = new OperationType(7, op7v1, null, null,\n 0, 0, 8760, 360, 48, DataGenerator.costPenalty * DataGenerator.maxSailingTime, \"tightening anchor lines\");\n int[] op8v1 = new int[]{2, 3, 4, 6};\n int[] op8v2 = new int[]{2, 3, 4, 6};\n OperationType op8 = new OperationType(8, op8v1, op8v2, null,\n 0, 9, 8760, 360, 3, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Small installation facility\");\n int[] op9v1 = new int[]{2, 3, 4, 6};\n OperationType op9 = new OperationType(9, op9v1, null, null,\n 8, 0, 8760, 360, 6, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Easy transport of equipment to facility\");\n int[] op10v1 = new int[]{2, 3, 4, 6};\n OperationType op10 = new OperationType(10, op10v1, null, null,\n 0, 0, 720, 100, 2, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Remove dead fish\");\n int[] op11v1 = new int[]{2, 3, 4, 6};\n OperationType op11 = new OperationType(11, op11v1, null, null,\n 0, 0, 720, 100, 4, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 8, \"Support wellboat\");\n int[] op12v1 = new int[]{1, 2, 3, 4, 6};\n OperationType op12 = new OperationType(12, op12v1, null, null,\n 0, 0, 720, 100, 5, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Inspect net ROV\");\n int[] op13v1 = new int[]{1, 3};\n OperationType op13 = new OperationType(13, op13v1, null, null,\n 0, 0, 8760, 360, 4, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Inspect net diver\");\n int[] op14v1 = new int[]{2};\n OperationType op14 = new OperationType(14, op14v1, null, null,\n 0, 0, 8760, 360, 4, DataGenerator.costPenalty * DataGenerator.maxSailingTime, \"Wash bottom ring and floating collar\");\n int[] op15v1 = new int[]{2, 3, 4, 6};\n OperationType op15 = new OperationType(15, op15v1, null, null,\n 0, 0, 168, 24, 3, DataGenerator.costPenalty * DataGenerator.maxSailingTime * 4, \"Support working boat\");\n return new OperationType[]{op1, op2, op3, op4, op5, op6, op7, op8, op9, op10, op11, op12, op13, op14, op15};\n }",
"public double calculoCuotaEspecialOrdinario() {\n\tdouble resultado =0;\n\tresultado = (getMontoCredito()+(getMontoCredito()*getInteres()/100))/getPlazo(); \n\treturn resultado;\n}",
"@Override\n public long minutosOcupados(Integer idEstacion, Date inicio, Date fin) {\n long minutos = 0;\n String sql = \"SELECT eje FROM Recurso rec, Ejecucion eje WHERE rec.idestacion = :idEstacion AND eje.idrecurso = rec.idrecurso AND eje.fechafin >= :inicio AND eje.fechainicio < :fin\";\n List<Ejecucion> ejecuciones = getCurrentSession().createQuery(sql).setParameter(\"idEstacion\", idEstacion).setParameter(\"inicio\", inicio).setParameter(\"fin\", fin).list();\n for (Ejecucion next : ejecuciones) {\n Date inicioEjecucion = next.getFechainicio();\n Date finEjecucion = next.getFechafin();\n if (inicioEjecucion.before(inicio) && finEjecucion.before(fin)) {\n //Comienza en inicio y finaliza en el fin de la ejecucion\n minutos = minutos + Math.abs(finEjecucion.getTime() - inicio.getTime())/60000;\n \n } else if (inicioEjecucion.after(inicio) && finEjecucion.before(fin)) {\n //Comienza en inicio de la ejecucion y finaliza en el fin de la ejecucion\n minutos = minutos + Math.abs(fin.getTime() - inicioEjecucion.getTime())/60000;\n \n }else if (inicioEjecucion.after(inicio) && finEjecucion.after(fin)){\n //Comienza en inicio de la ejecucion y finaliza en el fin\n minutos = minutos + Math.abs(fin.getTime() - inicioEjecucion.getTime())/60000;\n \n } else if (inicioEjecucion.before(inicio) && finEjecucion.after(fin)) {\n //Comienza en inicio y finaliza en el fin\n minutos = minutos + Math.abs(fin.getTime() - inicio.getTime())/60000;\n }\n }\n return minutos;\n }",
"public void eduque() {\n if (!autoriseOperation()) {\n return;\n }\n incrXp(2);\n incrFatigue(1);\n incrHumeur(1);\n\n setChanged();\n notifyObservers();\n }",
"public static void main(String[] args) {\n Calculo soma = ( a, b ) -> a + b;\n\n // Chama para ser executado -> paradigma funcional\n System.out.println(executarOperacao(soma,1,3));\n System.out.println(executarOperacao( ( a, b ) -> a + b,1,3));\n\n // paradigma imperativo\n System.out.println(somar(1, 3));\n // 4\n\n System.out.println(\"Demais operações matemáticas...\");\n Calculo subtracao = ( a, b ) -> a - b;\n Calculo multiplicacao = ( a, b ) -> a * b;\n Calculo divisao = ( a, b ) -> a / b;\n System.out.println(executarOperacao(subtracao,10,3));\n System.out.println(executarOperacao(multiplicacao,10,3));\n System.out.println(executarOperacao(divisao,12,3));\n\n System.out.println(\"Demais operações matemáticas chamando direto...\");\n System.out.println(executarOperacao( ( a, b ) -> a - b,10,3));\n System.out.println(executarOperacao( ( a, b ) -> a * b,10,3));\n System.out.println(executarOperacao( ( a, b ) -> a / b,12,3));\n\n }",
"private static void calculDistanceTournees(List<Point> points, int nbTournees) {\n long time = System.currentTimeMillis();\n double distance = 0;\n Random rand = new Random(0);\n for(int i=0; i<nbTournees; i++) {\n distance += calculDistanceTourneeAlea(points, rand);\n }\n long deltaTime = System.currentTimeMillis() - time;\n System.out.println(\"Calcul de la moyenne des distances pour \"+nbTournees+ \" tournees\");\n System.out.println(\"La moyenne vaut : \"+distance/nbTournees);\n System.out.println(\"La moyenne est calculee en \"+deltaTime+\" ms\");\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tString oper1 = operando1.getText();\n\t\t\t\tString oper2 = operando2.getText();\n\t\t\t\tint num1 = Integer.parseInt(oper1);\n\t\t\t\tint num2 = Integer.parseInt(oper2);\n\t\t\t\tint resul = num1 / num2;\n\t\t\t\tString total = String.valueOf(resul);\n\t\t\t\tresultado.setText(total);\n\t\t\t}",
"public static void main(String[] args) {\n int numeros[] = {2, 3, 4, 2, 4, 5, 6, 2, 1, 2};\n //Creamos segundo arreglo con iguall tamaño que el arreglo nùmeros\n int cuadrados[] = new int[numeros.length];\n //Arreglo para almacenar el proceso de la operación\n String procesos[] = new String[numeros.length];\n //Creamos ciclo de repeticiòn para recorrer arreglo \n for (int indice = 0; indice < numeros.length; indice++) {\n int cuadrado = numeros[indice] * numeros[indice];\n //Almacenamos el proceso de la opreaciòn en el arreglo cuadrados\n cuadrados[indice] = cuadrado;\n \n //Almacenar resultado en el arreglo procesos\n procesos[indice] = numeros[indice] + \"x\" + numeros[indice];\n }\n //Ciclo de repetición para mostrar arreglos\n String print_numeros = \"numeros - \";\n String print_cuadrados = \"cuadrados - \";\n String print_procesos = \"procesoss - \";\n for (int indice = 0; indice < numeros.length; indice++) {\n print_numeros = print_numeros + numeros[indice] + \", \";\n print_cuadrados = print_cuadrados + cuadrados[indice] + \", \";\n print_procesos = print_procesos + procesos[indice] + \", \";\n\n }\n System.out.println(print_numeros);\n System.out.println(print_cuadrados);\n System.out.println(print_procesos);\n \n //suma solo numeros pares\n int acumulador_pares=0;\n for (int indice = 0; indice < 10; indice++) {\n boolean par= detectar_par(numeros[indice]);\n if (par == true) {\n acumulador_pares = acumulador_pares + numeros[indice];\n \n }\n }\n System.out.println(\"La suma de los nùmeros pares es: \"+acumulador_pares);\n \n }",
"int getSumaAdunata();",
"private void getAllTotesCenterTimer()\r\n\t{\r\n\t\tswitch(autoStep)\r\n\t\t{\r\n\t\t\tcase 0:\r\n\t\t\t{\r\n\t\t\t\tpickUpTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 1:\r\n\t\t\t{\r\n\t\t\t\tstrafeLeftTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 2:\r\n\t\t\t{\r\n\t\t\t\tpickUpTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 3:\r\n\t\t\t{\r\n\t\t\t\tstrafeRightTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 4:\r\n\t\t\t{\r\n\t\t\t\tstrafeRightTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 5:\r\n\t\t\t{\r\n\t\t\t\tpickUpTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 6:\r\n\t\t\t{\r\n\t\t\t\tdriveForwardTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\t\r\n\t}",
"public OptimismPessimismCalculator() {\n mostPositive = 0;\n mostPositiveDoc = null;\n mostNegative = 0;\n mostNegativeDoc = null;\n biggestDifference = 0;\n biggestDifferenceDoc = null;\n \n publisherOptimism = new HashMap<>();\n publisherPessimism = new HashMap<>();\n regionOptimism = new HashMap<>();\n regionPessimism = new HashMap<>();\n dayOptimism = new HashMap<>();\n dayPessimism = new HashMap<>();\n weekdayOptimism = new HashMap<>();\n weekdayPessimism = new HashMap<>();\n }",
"public int limitesY(){\n int v=0;\n if (columna==0 && fila>0 && fila<15){\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna+1)!=null && automata.getElemento(fila+1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna+1)!=null && automata.getElemento(fila-1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n }\n else if (columna==15 && fila>0 && fila<15){\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna-1)!=null && automata.getElemento(fila+1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna-1)!=null && automata.getElemento(fila-1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n }\n else{v=esquinas();}\n return v;\n }",
"public void operar() {\n\t\tOperacionMetodoRef op2 = MetRefApp::referenciaMedodoStatic;\n\t\top2.saludar();\n\t}",
"public void calculateMethod() {\n\n if (counter != 16) {\n ifElseCalculation();\n } else {\n ifElseCalculation();\n\n //saves final Points for 2nd Activity\n shareData();\n //opens 2nd Activity for Result\n Intent intent = new Intent(this, EditTextActivity.class);\n startActivity(intent);\n }\n\n /**\n * Set back all Buttons\n */\n checkedA = false;\n checkedB = false;\n checkedC = false;\n checkedD = false;\n\n /**\n * Set up all included Views for the next Question\n */\n nextQuestion();\n }",
"public int getOpsTodo() {\n int todo = _opcount - _opsdone;\n return todo < 0 ? 0 : todo;\n }"
] | [
"0.6044281",
"0.5899731",
"0.580222",
"0.57333404",
"0.55848813",
"0.5517909",
"0.54781795",
"0.5430023",
"0.5419435",
"0.533079",
"0.5289265",
"0.5282964",
"0.5281537",
"0.52700627",
"0.52617383",
"0.52608746",
"0.525692",
"0.5245816",
"0.5241903",
"0.52374995",
"0.52323633",
"0.5224653",
"0.5210091",
"0.5203439",
"0.5202781",
"0.5196857",
"0.5173356",
"0.5170793",
"0.5167665",
"0.5163909",
"0.5162438",
"0.5161884",
"0.5153626",
"0.51353556",
"0.51345515",
"0.51324195",
"0.5130813",
"0.51306933",
"0.5124586",
"0.51148283",
"0.51135",
"0.5108082",
"0.51036894",
"0.51017374",
"0.5099278",
"0.50992614",
"0.50913775",
"0.508592",
"0.5080563",
"0.5076928",
"0.5066377",
"0.50661725",
"0.5061269",
"0.5060177",
"0.50551975",
"0.5052026",
"0.5048556",
"0.5046471",
"0.50352705",
"0.50311506",
"0.5030958",
"0.50145584",
"0.50069946",
"0.5003255",
"0.50000364",
"0.4999197",
"0.49983773",
"0.49952093",
"0.4992141",
"0.4987167",
"0.49831524",
"0.497302",
"0.4970636",
"0.49672887",
"0.4967052",
"0.49643958",
"0.4964048",
"0.4963025",
"0.49604255",
"0.49596056",
"0.49580458",
"0.49557018",
"0.4955407",
"0.4951807",
"0.49507922",
"0.49443147",
"0.4940679",
"0.4940236",
"0.4939274",
"0.49364394",
"0.4936307",
"0.4935752",
"0.4935748",
"0.49326953",
"0.49313262",
"0.49309102",
"0.49232295",
"0.492154",
"0.49185702",
"0.49137682",
"0.49062267"
] | 0.0 | -1 |
Metodos para 10 operaciones | public void ganarDineroPorAutomoviles() {
for (Persona p : super.getMundo().getListaDoctores()) {
for (Vehiculo v : p.getVehiculos()) {
v.puedeGanarInteres();
v.setPuedeGanarInteres(false);
}
}
for (Persona p : super.getMundo().getListaCocineros()) {
for (Vehiculo v : p.getVehiculos()) {
v.puedeGanarInteres();
v.setPuedeGanarInteres(false);
}
}
for (Persona p : super.getMundo().getListaAlbaniles()) {
for (Vehiculo v : p.getVehiculos()) {
v.puedeGanarInteres();
v.setPuedeGanarInteres(false);
}
}
for (Persona p : super.getMundo().getListaHerreros()) {
for (Vehiculo v : p.getVehiculos()) {
v.puedeGanarInteres();
v.setPuedeGanarInteres(false);
}
}
for (Persona p : super.getMundo().getListaCocineros()) {
for (Vehiculo v : p.getVehiculos()) {
v.puedeGanarInteres();
v.setPuedeGanarInteres(false);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getTotRuptures();",
"public void Millas_M(){\r\n System.out.println(\"Cálcular Metros o Kilometros de Millas Marinas\");\r\n System.out.println(\"Ingrese un valor en Millas Marinas\");\r\n cadena =numero.next(); \r\n valor = metodo.Doble(cadena);\r\n valor = metodo.NegativoD(valor);\r\n totalM = valor * 1852 ;\r\n Millas_KM(totalM);\r\n }",
"public void sumaPuntos() {\r\n int rojo = 0;\r\n int azul = 0;\r\n for (int i = 1; i < 10; i++) {\r\n\r\n if (tablero[1][i].getTipo().equals(\"Rojo\")) {\r\n rojo += tablero[1][i].getValor();\r\n }\r\n\r\n if (tablero[8][i].getTipo().equals(\"Azul\")) {\r\n azul += tablero[8][i].getValor();\r\n }\r\n\r\n }\r\n if (rojo > azul) {\r\n this.setResultado(\"Rojo\");\r\n this.agregarVictoria(jugadorRojo);\r\n }\r\n if (azul > rojo) {\r\n this.setResultado(\"Azul\");\r\n this.agregarVictoria(jugadorAzul);\r\n }\r\n \r\n this.setReplay(true);\r\n }",
"private void puntuacion(){\n timer++;\n if(timer == 10){\n contador++;\n timer = 0;\n }\n }",
"private void Calculation() {\n\t\tint calStd = jetztStunde + schlafStunde;\n\t\tint calMin = jetztMinute + schlafMinute;\n\n\t\ttotalMin = calMin % 60;\n\t\ttotalStunde = calStd % 24 + calMin / 60;\n\n\t}",
"void forceStats(long operations, long hits);",
"public String dimeTuTiempo()\n {\n String cadResultado=\"\";\n if (horas<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+horas;\n cadResultado=cadResultado+\":\";\n if(minutos<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+minutos;\n \n return cadResultado;\n }",
"@Override\n public double calculaTributos() {\n // TODO Auto-generated method stub\n return 10;\n }",
"public void imprimirResultados(){\n System.out.println(\"t (tiempo actual) \"+t);\n \n \n System.out.println(\"\\nGanancia total: $\"+R);\n System.out.println(\"Costos por mercaderia comprada: $\"+C);\n System.out.println(\"Costos por mantenimiento inventario: $\"+H);\n System.out.println(\"Ganancia promeio de la tienda por unidad de tiempo: $\"+(R-C-H)/T);\n \n }",
"public int obtenerNumeroOperaciones(){\n return historialOperaciones.size();\n }",
"long getQuantite();",
"public int getDimes()\n {\n\treturn dimes;\n }",
"public void mostrarTotales() { \n // Inicializacion de los atributos en 0\n totalPCs = 0;\n totalLaptops = 0;\n totalDesktops = 0; \n /* Recorrido de la lista de computadores para acumular el precio usar instanceof para comparar el tipo de computador */ \n for (Computador pc : computadores){\n if (pc instanceof PCLaptop) {\n totalLaptops += pc.calcularPrecio(); \n } else if (pc instanceof PCDesktop){\n totalDesktops += pc.calcularPrecio();\n }\n }\n totalPCs = totalLaptops + totalDesktops;\n System.out.println(\"El precio total de los computadores es de \" + totalPCs); \n System.out.println(\"La suma del precio de los Laptops es de \" + totalLaptops); \n System.out.println(\"La suma del precio de los Desktops es de \" + totalDesktops);\n }",
"long getExpirations();",
"public static void Number(){\n for(int c=1000;c<=1000000;c++)\n {\n VampireNumber(c);\n }\n }",
"public List<String>top10Utilizadores() {\n Map<String,List<String>> utilizadorEncomendas = new HashMap<String,List<String>>();\n \n for(Encomenda e : this.encomendas.values()) {\n if(!utilizadorEncomendas.containsKey(e.getCodigoUtilizador())) {\n utilizadorEncomendas.put(e.getCodigoUtilizador(), new ArrayList<>());\n }\n utilizadorEncomendas.get(e.getCodigoUtilizador()).add(e.getCodigoEncomenda());\n }\n \n // a partir do primeiro map criar um segundo com codigo de utilizador e numero de encomendas\n // a razao de ser um double é porque o mesmo comparator é também utilizado no metodo List<String>top10Transportadores()\n Map<String,Double> utilizadoresNumeroEncs = new HashMap<>();\n \n Iterator<Map.Entry<String, List<String>>> itr = utilizadorEncomendas.entrySet().iterator(); \n \n while(itr.hasNext()) { \n Map.Entry<String, List<String>> entry = itr.next(); \n utilizadoresNumeroEncs.put(entry.getKey(), Double.valueOf(entry.getValue().size()));\n }\n \n MapStringDoubleComparator comparator = new MapStringDoubleComparator(utilizadoresNumeroEncs);\n \n // criar map ordenado (descending)\n TreeMap<String, Double> utilizadorNumeroEncsOrdenado = new TreeMap<String, Double>(comparator);\n \n utilizadorNumeroEncsOrdenado.putAll(utilizadoresNumeroEncs);\n \n // retornar a lista de codigos de utilizadores pretendida\n return utilizadorNumeroEncsOrdenado.keySet()\n .stream()\n .limit(10)\n .collect(Collectors.toList()); \n }",
"@Override\r\n\tpublic int operar() {\n\t\treturn 0;\r\n\t}",
"private void MontarTabela(String where) {\n \n int linha = 0;\n int coluna = 0;\n \n String offset = String.valueOf(getPaginacao());\n \n while(linha < 10){\n while(coluna < 7){\n tbConFin.getModel().setValueAt(\"\", linha, coluna);\n coluna++;\n }\n linha++;\n coluna = 0;\n }\n \n linha = 0;\n \n String rd_id\n ,rd_codico\n ,rd_nome\n ,rd_receita_despesa\n ,rd_grupo\n ,rd_fixa\n ,rd_ativo;\n \n \n \n try{\n ResultSet rsConFin = cc.stm.executeQuery(\"select * from v_receitadespesa \"+where+\" order by rd_codico limit 10 offset \"+offset);\n \n while ( rsConFin.next() ) {\n rd_id = rsConFin.getString(\"RD_ID\");\n rd_codico = rsConFin.getString(\"rd_codico\");\n rd_nome = rsConFin.getString(\"rd_nome\");\n rd_receita_despesa = getRecDesp(rsConFin.getString(\"rd_receita_despesa\"));\n rd_grupo = getSimNao(rsConFin.getString(\"rd_grupo\"));\n rd_fixa = getSimNao(rsConFin.getString(\"rd_fixa\"));\n rd_ativo = getSimNao(rsConFin.getString(\"rd_ativo\"));\n \n tbConFin.getModel().setValueAt(rd_id, linha, 0);\n tbConFin.getModel().setValueAt(rd_codico, linha, 1);\n tbConFin.getModel().setValueAt(rd_nome, linha, 2);\n tbConFin.getModel().setValueAt(rd_receita_despesa, linha, 3);\n tbConFin.getModel().setValueAt(rd_grupo, linha, 4);\n tbConFin.getModel().setValueAt(rd_fixa, linha, 5);\n tbConFin.getModel().setValueAt(rd_ativo, linha, 6);\n \n linha++;\n }\n \n \n if(linha <= 10){\n setMensagem(\"A Busca retornou \"+linha+\" registros!\");\n }\n \n if(linha < 10){\n setFimConsulta(true);\n }else{\n setFimConsulta(false);\n }\n \n }catch(SQLException e){\n JOptionPane.showMessageDialog(this, \"Erro ao Carregar informações de contas financeiras!\\n\"+e.getMessage());\n }\n \n }",
"protected int getTimesOptimized()\r\n {\r\n return timesOptimized;\r\n }",
"long buscarUltimo();",
"public Calculadora(){\n this.operador1 = 0.0;\n this.operador2 = 0.0;\n this.resultado = 0.0;\n }",
"public Long numeroRegistrosFactura();",
"public void Times() \n {\n if(status.getStatus_NUM() == 1 || status.getStatus_NUM() == 2 || status.getStatus_NUM() == 3)\n { //Waiting Time\n startWaitingTime = System.nanoTime();\n if(status.getStatus_NUM() != 1 || status.getStatus_NUM() != 2 || status.getStatus_NUM() != 3)\n {\n endWaitingTime = System.nanoTime();\n }\n \n totalWaitingTime += endWaitingTime - startWaitingTime;\n }\n //When it is running status \n else if(status.getStatus_NUM() == 0)\n {\n //Running Time\n startRunningTime = System.nanoTime();\n //Add a process\n if(status.getStatus_NUM() != 0)\n {\n endRunningTime = System.nanoTime();\n }\n \n totalRunningTime += endRunningTime - startRunningTime;\n }\n //When it is terminated\n else\n {\n System.out.println(\"Terminated\");\n System.out.println(\"Total Running Time : \" + totalRunningTime);\n System.out.println(\"Total Waiting Time : \" + totalWaitingTime);\n }\n }",
"private static void helloHelloModulo() {\n int a = 1;\n int b = 10;\n int c = 1 / 10;\n\n int d = 1 % 10;\n\n\n System.out.println(\" Result deleniya \" + c);\n System.out.println(\" Result deleniya \" + d);\n\n\n int делимое = 75;\n int делитель = 13;\n int f = делимое % делитель;\n\n int остаток = делимое - (делимое / делитель) * делитель;\n int j = 7 % 2;\n\n System.out.println(f);\n System.out.println(остаток);\n\n\n }",
"void total() {\r\n t=m1+m2+m3;\r\n per=t/3;\r\n System.out.println(\"total :\"+t);\r\n System.out.println(\"persentage:\"+per);\r\n \r\n \r\n }",
"private double getOEEPerformance(Batch batch) {\n return 1;\n }",
"public void mostrarVideojuegosNumeradosPorOrdenDeRegistro()\n {\n int posicActual = 0;\n while (posicActual < listaDeVideojuegos.size()) {\n System.out.println((posicActual+1) + \". \" + listaDeVideojuegos.get(posicActual).getDatosVideojuego());\n posicActual++;\n }\n }",
"Operations operations();",
"@Test\n public void reduceNumber() throws Exception {\n Date date = new Date();\n int updateCount = seckillDao.reduceNumber(1000,date);\n System.out.println(updateCount);\n }",
"@Test\n\tvoid getResultsTest() {\n\t\tassertEquals(22, utilities.getResults(-21));\n\t\tassertEquals(20, utilities.getResults(-20));\n\t\tassertEquals(40, utilities.getResults(-19));\n\t\tassertEquals(38, utilities.getResults(-18));\n\t\tassertEquals(22, utilities.getResults(21));\n\t\tassertEquals(20, utilities.getResults(20));\n\t\tassertEquals(22, utilities.getResults(2));\n\t\tassertEquals(22, utilities.getResults(1));\n\t}",
"long getSpokes();",
"public void ultimo(){//executa metodo para ultima pagina de registro de funcionarios\r\n\t\tdao.ultimo();\r\n\t}",
"public int getPrecios()\r\n {\r\n for(int i = 0; i < motos.size(); i++)\r\n {\r\n precio_motos += motos.get(i).getCoste();\r\n }\r\n \r\n return precio_motos;\r\n }",
"private void syncNumCopertiTotali() {\n int qPranzo = campoPranzo.getInt();\n int qCena = campoCena.getInt();\n campoTotale.setValore(qPranzo+qCena);\n }",
"@Override\n\tpublic double calculaTributos() {\n\t\treturn numeroDePacientes * 10;\n\t}",
"public void nourrir() {\n if (!autoriseOperation()) {\n return;\n }\n\n incrFaim(-2);\n incrPoids(1);\n incrHumeur(1);\n incrXp(1);\n\n System.out.println(tamagoStats.getXp());\n setChanged();\n notifyObservers();\n\n }",
"public static void main(String[] args) {\n\n double valorTotal = 36000;\n\n for (int parcela = (int) valorTotal; parcela >= 1; parcela--) {\n double valorParcela = valorTotal / parcela;\n if (valorParcela >= 1000) {\n System.out.println(parcela + \" parcelas de \" + valorParcela + \"R$\");\n }\n }\n }",
"public void calculoPersonal(){\n ayudantes = getAyudantesNecesarios();\n responsables = getResponsablesNecesarios();\n \n //Calculo atencion al cliente (30% total trabajadores) y RRPP (10% total trabajadores):\n \n int total = ayudantes + responsables;\n \n atencion_al_cliente = (total * 30) / 100;\n \n RRPP = (total * 10) / 100;\n \n //Creamos los trabajadores\n \n gestor_trabajadores.crearTrabajadores(RRPP, ayudantes,responsables,atencion_al_cliente);\n \n }",
"public void prinRecaudacion()\n {\n System.out.println(\"La cantidad recaudada por la maquina1 es \" + maquina1.getTotal());\n System.out.println(\"La cantidad recaudada por la maquina2 es \" + maquina2.getTotal());\n System.out.println(\"La cantidad total es\" + ( maquina1.getTotal() + maquina2.getTotal()));\n}",
"@Override\n public void cantidad_Ataque(){\n ataque=5+2*nivel+aumentoT;\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}",
"public void temporizadorTiempo() {\n Timer timer = new Timer();\n tareaRestar = new TimerTask() {\n @Override\n public void run() {\n tiempoRonda--;\n }\n };\n timer.schedule(tareaRestar, 1,1000);\n }",
"public int totalOrdersTaken();",
"public static void main(String[] args) {\n\t\t\n double p = 3048;\n int i;\n\t\t\n\t\t\n\t\tfor (i=1; i <=40; i++) {\n\t\t\t\n\t\t p = p * 2 / 3;\n\t\t \n\t\t}\n\t\t\n\t\tSystem.out.println(\"La distancia que habra recorrido la bola al momento de realizar su rebote numero 40 es de : \"+ p+ \" mts\");\n\n\t}",
"@Override\n\tpublic int horas_trabajo() {\n\t\treturn 1000;\n\t}",
"public static void main(String...args) {\n\t\t\tint numero,sumaP=0,sumaN=0,contaP=0,contN=0,contC=0;\n\t\t\tfloat mediaP=0,mediaN=0;\n\t\t\t\n\t\t\tfor(int i=1 ; i<=10 ; i++) {\n\t\t\t\tnumero = Integer.parseInt(JOptionPane.showInputDialog(\"digite 10 numeros\"));\n\t\t\t\tif (numero==0) {\n\t\t\t\t\tcontC++;\n\t\t\t\t}\n\t\t\t\telse if(numero>0) {\n\t\t\t\t\tsumaP=sumaP+numero;\n\t\t\t\t\tcontaP++;\n\t\t\t\t}\n\t\t\t\telse if(numero<0) {\n\t\t\t\t\tsumaN=sumaN+numero;\n\t\t\t\t\tcontN++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(contaP==0) {\n\t\t\t\t\tSystem.err.println(\"error no se puede sacar la media de numero postivos\");\n\t\t\t\t}\n\t\t\t\telse {mediaP= (float)sumaP/contaP;}\n\t\t\t\t\n\t\t\t\tif(contN==0) {\n\t\t\t\t\tSystem.out.println(\"No se puede calcular la media de los numero negativos\");\n\t\t\t\t}\n\t\t\t\telse {mediaN=(float)sumaN/contN;}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"se Introduzco \"+contC+\" ceros\");\n\t\t\tSystem.out.println(\"la media de los numeros positos es \"+mediaP);\n\t\t\tSystem.out.println(\"la medai de los numeros negativos es \"+ mediaN);\n\t}",
"@Test\n\tvoid testCost() {\n\t\tint nbCores = 16;\n\t\tlong duration = 2000;\n\t\tDate requestDate = new Date(\"01/01/2000\");\n\t\tJob j1 = new Job(nbCores,requestDate,duration,mediumQ);//16 cores less than 1h\n\t\tJob j2 = new Job(nbCores*2,requestDate,duration,mediumQ);//32 cores less than 1h\n\t\tJob j3 = new Job(nbCores*2+1,requestDate,duration,mediumQ);//33 cores less than 1h\n\t\tJob j4 = new Job(nbCores,requestDate,duration*2,mediumQ);//16 cores more than 1h\n\t\tJob j5 = new Job(nbCores*2+1,requestDate,duration*2,mediumQ);//33 cores more than 1h\n\t\tassertEquals(j1.getCost(),0.05f);\n\t\tassertEquals(j2.getCost(),0.05f);\n\t\tassertEquals(j3.getCost(),0.1f);\n\t\tassertEquals(j4.getCost(),0.1f);\n\t\tassertEquals(j5.getCost(),0.2f);\n\t}",
"@Override\n\tpublic void getResultat() {\n\t\tcalcul();\n\t}",
"public float montos(){\n\tDefaultTableModel modelo = vc.returnModelo();\r\n\tint numeroFilas=modelo.getRowCount();\r\n\tfloat monto=0;\r\n\t\tif(modelo.getRowCount()!=0){\r\n\t\t\r\n\t\t\tfor (int i = 0; i < numeroFilas; i++) {\r\n\t\t\t\t\r\n\t\t\t\tmonto = monto + Float.valueOf(modelo.getValueAt(i, 5).toString());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tmonto=0;\r\n\t\t}\r\n\t\treturn monto;\r\n\t}",
"int getQuantite();",
"int getQuantite();",
"@Test\n void testCalculations() {\n double addition = calculator.add(10, 2);\n double subtraction = calculator.sub(10, 2);\n double multiplication = calculator.mul(10, 2);\n double division = calculator.div(10, 2);\n\n //Then\n assertEquals(12, addition);\n assertEquals(8, subtraction);\n assertEquals(20, multiplication);\n assertEquals(5, division);\n }",
"public int getNumberOfOperations() {\n return numberOfOperations;\n }",
"public static double toc() {\n\t\treturn System.currentTimeMillis() / 1000d - t;\n\t}",
"public void calculateMMage() {\n\t\t\n\t}",
"public void calcular()\r\n/* 530: */ {\r\n/* 531:556 */ this.facturaProveedorSRI.setMontoIva(this.facturaProveedorSRI.getBaseImponibleDiferenteCero().multiply(\r\n/* 532:557 */ ParametrosSistema.getPorcentajeIva().divide(BigDecimal.valueOf(100L))));\r\n/* 533: */ }",
"public int produtosDiferentesComprados(){\r\n return this.faturacao.produtosDiferentesComprados();\r\n }",
"RESPONSE tally();",
"public static void dormir(long milis)\r\n\t{\r\n\t\tlong inicial=System.currentTimeMillis();\r\n\t\twhile(System.currentTimeMillis()-inicial < milis) {/*Esperar a que pase el tiempo*/}\r\n\t}",
"public double calculoCuotaEspecialOrdinario() {\n\tdouble resultado =0;\n\tresultado = (getMontoCredito()+(getMontoCredito()*getInteres()/100))/getPlazo(); \n\treturn resultado;\n}",
"public int getCantidadCalles();",
"public int getHowManyInPeriod();",
"private static void printData(List<Long> runningTimes) {\n\t\tlong min = Collections.min(runningTimes);\n\t\tlong max = Collections.max(runningTimes);\n\t\t\n\t\tlong total = 0;\n\t\tfor(long runTime : runningTimes)\n\t\t\ttotal+=runTime;\n\t\t\n\t\tSystem.out.println(\"******* SEQUENTIAL RESULTS *******\");\n\t\tSystem.out.println(\"MIN RUNNING TIME(ms): \"+min);\n\t\tSystem.out.println(\"MAX RUNNING TIME(ms): \"+max);\n\t\tSystem.out.println(\"AVG RUNNING TIME(ms): \"+(total/runningTimes.size()));\n\t\tSystem.out.println(\"***********************************\");\n\t\tSystem.out.println();\n\t}",
"public abstract void setTotalRunTime();",
"public String getTen() {\n\t\treturn ten;\n\t}",
"@org.junit.Test\n public void kYearMonthDurationMultiply10() {\n final XQuery query = new XQuery(\n \"xs:dayTimeDuration(\\\"P3D\\\") * xs:yearMonthDuration(\\\"P3Y3M\\\")\",\n ctx);\n try {\n result = new QT3Result(query.value());\n } catch(final Throwable trw) {\n result = new QT3Result(trw);\n } finally {\n query.close();\n }\n test(\n error(\"XPTY0004\")\n );\n }",
"public void operacao();",
"private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}",
"public void getSecsDetail( );",
"public int getminutoStamina(){\n return tiempoReal;\n }",
"public static int GetMills() {\r\n return (int) System.currentTimeMillis() - StartUpTimeMS;\r\n }",
"@Test\n\tvoid calcularSalarioConMasCuarentaHorasPagoPositivoTest() {\n\t\tEmpleadoPorComision empleadoPorComision = new EmpleadoPorComision(\"Eiichiro oda\", \"p33\", 400000, 500000);\n\t\tdouble salarioEsperado = 425000;\n\t\tdouble salarioEmpleadoPorComision = empleadoPorComision.calcularSalario();\n\t\tassertEquals(salarioEsperado, salarioEmpleadoPorComision);\n\n\t}",
"public void processingTotal(int i);",
"void show(int step){\n System.out.println(\"Значение фунции в промежутке от \"+ 5 + \" до \"+ 10 +\" с шагом \" + 1);\n for (int i= 0; i < 10; i++) {\n this.calculate(i);\n }\n\n }",
"void MontaValores(){\r\n // 0;0;-23,3154166666667;-51,1447783333333;0 // Extrai os valores e coloca no objetos\r\n // Dis;Dir;Lat;Long;Velocidade\r\n // Quebra de Rota lat=-999.999 long=-999.999 ==> Marca ...\r\n \r\n int ind=0;\r\n NMEAS=NMEA.replace(\",\" , \".\");\r\n \r\n //1)\r\n dists=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind));\r\n Distancia=Double.valueOf(dists);\r\n ind=ind+dists.length()+1;\r\n \r\n //2)\r\n dirs=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Direcao=Double.valueOf(dirs);\r\n ind=ind+dirs.length()+1;\r\n \r\n //3)\r\n lats=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Lat=Double.valueOf(lats);\r\n ind=ind+lats.length()+1;\r\n \r\n //4)\r\n longs=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Long=Double.valueOf(longs);\r\n ind=ind+longs.length()+1;\r\n \r\n //5)\r\n vels=NMEAS.substring(ind,NMEAS.length());\r\n // Transforma de Knots para Km/h\r\n Velocidade=Double.valueOf(vels)/100*1.15152*1.60934;\r\n vels=String.valueOf(Velocidade);\r\n ind=ind+vels.length()+1;\r\n \r\n }",
"public synchronized double getTotal(){\n float CantidadTotal=0;\n Iterator it = getElementos().iterator();\n while (it.hasNext()) {\n ArticuloVO e = (ArticuloVO)it.next();\n CantidadTotal=CantidadTotal+(e.getCantidad()*e.getPrecio());\n}\n\n \n return CantidadTotal;\n\n }",
"int getMPPerSecond();",
"double objetosc() {\n return dlugosc * wysokosc * szerokosc; //zwraca obliczenie poza metode\r\n }",
"public int getTotalRunTime() {\n return totalRunTime;\n }",
"@Test\n\tvoid calcularSalarioSinVentasPagoPositivoTest() {\n\t\tEmpleadoPorComision empleadoPorComision = new EmpleadoPorComision(\"Hiromu Arakawa\", \"p24\", 400000, 0);\n\t\tdouble salarioEsperado = 400000;\n\t\tdouble salarioEmpleadoPorComision = empleadoPorComision.calcularSalario();\n\t\tassertEquals(salarioEsperado, salarioEmpleadoPorComision);\n\n\t}",
"void example9() {\n\t\t\n\t\t// an uninteresting procedure we will calculate values from\n\t\t\n\t\tProcedure2<Long,UnsignedInt12Member> proc = new Procedure2<Long, UnsignedInt12Member>()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void call(Long a, UnsignedInt12Member b) {\n\t\t\t\tb.setV((int) (long) a);\n\t\t\t}\n\t\t};\n\t\t\n\t\t// the ProcedureDataSource we will query\n\t\t\n\t\tIndexedDataSource<UnsignedInt12Member> list = new ProcedureDataSource<>(proc);\n\t\t\n\t\t// limit how much data to consider since procedures have a nearly unlimited x axis range\n\t\t\n\t\tIndexedDataSource<UnsignedInt12Member> fixedList = new FixedSizeDataSource<>(1000, list);\n\t\t\n\t\t// then calculate some values\n\t\t\n\t\tUnsignedInt12Member value = G.UINT12.construct();\n\t\t\n\t\tSum.compute(G.UINT12, fixedList, value);\n\t}",
"@Test\n public void pruebaCalculCamiseta() {\n System.out.println(\"prueba Calcul Camiseta\");\n Camiseta camisetaTest = new Camiseta(1);\n assertEquals(190, (camisetaTest.calculCamiseta(1)),0) ;\n \n Camiseta camisetaTestDos = new Camiseta(2);\n assertEquals(1481.2, (camisetaTestDos.calculCamiseta(7)),0) ;\n \n Camiseta camisetaTestTres = new Camiseta(3);\n assertEquals(1178, (camisetaTestTres.calculCamiseta(4)),0) ;\n \n \n }",
"public void pagar(int precio){\r\n this.dinero -=precio;\r\n }",
"public int getNumTimes();",
"long getTotalDoExamTime();",
"public int getDuration( ) {\nreturn numberOfPayments / MONTHS;\n}",
"public int calculerKgsNourritureParJour(){\r\n\t\treturn noms.size() * 10;\r\n\t}",
"private int getLatestRuns() {\n // return 90 for simplicity\n return 90;\n }",
"private String auxOperacion(int operando1, int operando2, String valor1, String valor2, int op) {\n if (ManejadorMemoria.isInt(operando1)) {\n if (ManejadorMemoria.isInt(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Integer.parseInt(valor1) + Integer.parseInt(valor2)) + \"\";\n case Codigos.RESTA:\n return (Integer.parseInt(valor1) - Integer.parseInt(valor2)) + \"\";\n case Codigos.MULT:\n return (Integer.parseInt(valor1) * Integer.parseInt(valor2)) + \"\";\n case Codigos.DIV:\n return (Integer.parseInt(valor1) / Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYOR:\n System.out.println(valor1 + \" \" + valor2 + \" \" + (Integer.parseInt(valor1) > Integer.parseInt(valor2)));\n return (Integer.parseInt(valor1) > Integer.parseInt(valor2)) + \"\";\n case Codigos.MENOR:\n return (Integer.parseInt(valor1) < Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Integer.parseInt(valor1) >= Integer.parseInt(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Integer.parseInt(valor1) <= Integer.parseInt(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Integer.parseInt(valor1) == Integer.parseInt(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Integer.parseInt(valor1) != Integer.parseInt(valor2)) + \"\";\n }\n } else if (ManejadorMemoria.isFloat(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Integer.parseInt(valor1) + Double.parseDouble(valor2)) + \"\";\n case Codigos.RESTA:\n return (Integer.parseInt(valor1) - Double.parseDouble(valor2)) + \"\";\n case Codigos.MULT:\n return (Integer.parseInt(valor1) * Double.parseDouble(valor2)) + \"\";\n case Codigos.DIV:\n return (Integer.parseInt(valor1) / Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYOR:\n return (Integer.parseInt(valor1) > Double.parseDouble(valor2)) + \"\";\n case Codigos.MENOR:\n return (Integer.parseInt(valor1) < Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Integer.parseInt(valor1) >= Double.parseDouble(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Integer.parseInt(valor1) <= Double.parseDouble(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Integer.parseInt(valor1) == Double.parseDouble(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Integer.parseInt(valor1) != Double.parseDouble(valor2)) + \"\";\n }\n }\n } else if (ManejadorMemoria.isFloat(operando1)) {\n if (ManejadorMemoria.isInt(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Double.parseDouble(valor1) + Integer.parseInt(valor2)) + \"\";\n case Codigos.RESTA:\n return (Double.parseDouble(valor1) - Integer.parseInt(valor2)) + \"\";\n case Codigos.MULT:\n return (Double.parseDouble(valor1) * Integer.parseInt(valor2)) + \"\";\n case Codigos.DIV:\n return (Double.parseDouble(valor1) / Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYOR:\n return (Double.parseDouble(valor1) > Integer.parseInt(valor2)) + \"\";\n case Codigos.MENOR:\n return (Double.parseDouble(valor1) < Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Double.parseDouble(valor1) >= Integer.parseInt(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Double.parseDouble(valor1) <= Integer.parseInt(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Double.parseDouble(valor1) == Integer.parseInt(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Double.parseDouble(valor1) != Integer.parseInt(valor2)) + \"\";\n }\n } else if (ManejadorMemoria.isFloat(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Double.parseDouble(valor1) + Double.parseDouble(valor2)) + \"\";\n case Codigos.RESTA:\n return (Double.parseDouble(valor1) - Double.parseDouble(valor2)) + \"\";\n case Codigos.MULT:\n return (Double.parseDouble(valor1) * Double.parseDouble(valor2)) + \"\";\n case Codigos.DIV:\n return (Double.parseDouble(valor1) / Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYOR:\n return (Double.parseDouble(valor1) > Double.parseDouble(valor2)) + \"\";\n case Codigos.MENOR:\n return (Double.parseDouble(valor1) < Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Double.parseDouble(valor1) >= Double.parseDouble(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Double.parseDouble(valor1) <= Double.parseDouble(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Double.parseDouble(valor1) == Double.parseDouble(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Double.parseDouble(valor1) != Double.parseDouble(valor2)) + \"\";\n }\n }\n } else if (ManejadorMemoria.isString(operando1)) {\n return valor1 + valor2;\n } else if(ManejadorMemoria.isBool(operando1)){\n switch(op){\n case Codigos.AND:\n return (Boolean.parseBoolean(valor1) && Boolean.parseBoolean(valor2)) + \"\";\n case Codigos.OR:\n return (Boolean.parseBoolean(valor1) || Boolean.parseBoolean(valor2)) + \"\";\n case Codigos.NOT:\n return (! Boolean.parseBoolean(valor1))+ \"\";\n }\n }\n\n return \"\";\n }",
"@Test\n public void testCpuMetric() {\n MetricValue mv = new MetricValue.Builder().load(30).add();\n\n CPU_METRICS.forEach(cmt -> testUpdateMetricWithoutId(cmt, mv));\n CPU_METRICS.forEach(cmt -> testLoadMetric(nodeId, cmt, mv));\n }",
"@Test\n public void testAnalisarPeriodo() throws Exception {\n System.out.println(\"analisarPeriodo\");\n int[][] dadosFicheiro = null;\n int lowerLimit = 0;\n int upperLimit = 0;\n int linhas = 0;\n int[] expResult = null;\n int[] result = ProjetoV1.analisarPeriodo(dadosFicheiro, lowerLimit, upperLimit, linhas);\n assertArrayEquals(expResult, result);\n\n }",
"@Override\n public long minutosOcupados(Integer idEstacion, Date inicio, Date fin) {\n long minutos = 0;\n String sql = \"SELECT eje FROM Recurso rec, Ejecucion eje WHERE rec.idestacion = :idEstacion AND eje.idrecurso = rec.idrecurso AND eje.fechafin >= :inicio AND eje.fechainicio < :fin\";\n List<Ejecucion> ejecuciones = getCurrentSession().createQuery(sql).setParameter(\"idEstacion\", idEstacion).setParameter(\"inicio\", inicio).setParameter(\"fin\", fin).list();\n for (Ejecucion next : ejecuciones) {\n Date inicioEjecucion = next.getFechainicio();\n Date finEjecucion = next.getFechafin();\n if (inicioEjecucion.before(inicio) && finEjecucion.before(fin)) {\n //Comienza en inicio y finaliza en el fin de la ejecucion\n minutos = minutos + Math.abs(finEjecucion.getTime() - inicio.getTime())/60000;\n \n } else if (inicioEjecucion.after(inicio) && finEjecucion.before(fin)) {\n //Comienza en inicio de la ejecucion y finaliza en el fin de la ejecucion\n minutos = minutos + Math.abs(fin.getTime() - inicioEjecucion.getTime())/60000;\n \n }else if (inicioEjecucion.after(inicio) && finEjecucion.after(fin)){\n //Comienza en inicio de la ejecucion y finaliza en el fin\n minutos = minutos + Math.abs(fin.getTime() - inicioEjecucion.getTime())/60000;\n \n } else if (inicioEjecucion.before(inicio) && finEjecucion.after(fin)) {\n //Comienza en inicio y finaliza en el fin\n minutos = minutos + Math.abs(fin.getTime() - inicio.getTime())/60000;\n }\n }\n return minutos;\n }",
"@Override\n public double calcularValorCompra(ArrayList<Mueble> muebles){\n double total = 0d;\n for (Mueble m : muebles) {\n total+= m.getCantidad()*m.getPrecio();\n }\n return total; \n }",
"private void test() {\n\t\tlong startTime = System.currentTimeMillis();\n\t\tBpmnModelInstance modelInstance = Bpmn.readModelFromFile(loadedFile);\n\t\tJsonEncoder jsonEncoder = new JsonEncoder(loadedFile.getName());\n\t\tBpmnBasicMetricsExtractor basicExtractor = new BpmnBasicMetricsExtractor(modelInstance, jsonEncoder);\n\t\tBpmnAdvancedMetricsExtractor advExtractor = new BpmnAdvancedMetricsExtractor(basicExtractor, jsonEncoder);\n\t\tlong loadTime = System.currentTimeMillis() - startTime;\n//\t\tSystem.out.println(\"Tempo load del file: \" + loadTime + \"ms\");\n\t\tbasicExtractor.runMetrics();\n\t\tlong basicTime = System.currentTimeMillis() - loadTime - startTime;\n//\t\tSystem.out.println(\"Tempo calcolo metriche di base: \" + basicTime + \"ms\");\n\t\tadvExtractor.runMetrics();\n\t\tlong advTime = System.currentTimeMillis() - basicTime - startTime - loadTime;\n//\t\tSystem.out.println(\"Tempo calcolo metriche avanzate: \" + advTime + \"ms\");\n\t\tjsonEncoder.exportJson();\n\t\tMySqlInterface db = new MySqlInterface();\n\t\tdb.connect();\n//\t\tdb.createTables(jsonEncoder);\n//\t\tdb.createAndInsertMetricsInfosTable();\n//\t\tdb.saveMetrics(jsonEncoder);\n//\t\tdb.closeConnection();\n\t}",
"public int getTempoMili() {\n return tempoMili;\n }",
"public void DiezDias()\n {\n for (int i = 0; i < 10; i++) {\n UnDia();\n }\n }",
"public int getTON() {\r\n return ton;\r\n }",
"@Override\n\t\tpublic int getSpeed() {\n\t\t\treturn i+30;\n\t\t}",
"public Long getProgressTotalToDo();",
"private void m128168k() {\n C42962b.f111525a.mo104671a(\"upload_page_duration\", C22984d.m75611a().mo59971a(\"first_selection_duration\", System.currentTimeMillis() - this.f104209S).mo59971a(\"page_stay_duration\", System.currentTimeMillis() - this.f104208R).f60753a);\n }",
"protected double[] getCurrentSteps() {\n// final int speedSteps = mPowerProfile.getNumSpeedSteps(); //amount of CPU working Frequents\n final int speedSteps = 10;\n final double[] powerCpuNormal = new double[speedSteps];\n for (int p = 0; p < speedSteps; p++) {\n// powerCpuNormal[p] = mPowerProfile.getAveragePower(PowerProfile.POWER_CPU_ACTIVE, p);\n powerCpuNormal[p] = 100 * (p + 1);\n }\n\n return powerCpuNormal;\n }"
] | [
"0.5692335",
"0.5648909",
"0.5595356",
"0.55876255",
"0.55208474",
"0.5512665",
"0.54612917",
"0.5451515",
"0.54446256",
"0.54430926",
"0.5436707",
"0.5427414",
"0.53677666",
"0.53603876",
"0.53302115",
"0.5323548",
"0.53204465",
"0.5314178",
"0.5288667",
"0.5266529",
"0.52623326",
"0.5260061",
"0.52492684",
"0.5244219",
"0.5240469",
"0.523841",
"0.522526",
"0.52231646",
"0.5219416",
"0.5205521",
"0.5198886",
"0.51987606",
"0.5198584",
"0.51794374",
"0.51729536",
"0.51680577",
"0.51565015",
"0.51511574",
"0.51464105",
"0.51458263",
"0.51420695",
"0.5137664",
"0.5126292",
"0.5125483",
"0.51086086",
"0.510227",
"0.5095789",
"0.50855386",
"0.5076874",
"0.50634384",
"0.50634384",
"0.5060277",
"0.5057577",
"0.5046677",
"0.5040338",
"0.5039938",
"0.5037755",
"0.5037346",
"0.50328624",
"0.50265485",
"0.50258666",
"0.5019064",
"0.5018074",
"0.50145644",
"0.5014231",
"0.50135005",
"0.50111055",
"0.5005151",
"0.49994564",
"0.49966604",
"0.49920437",
"0.4991844",
"0.49835005",
"0.49830332",
"0.49787042",
"0.49724957",
"0.4971286",
"0.49691817",
"0.4968647",
"0.49677163",
"0.49672535",
"0.4964288",
"0.4958096",
"0.4957523",
"0.49573523",
"0.49549788",
"0.49545315",
"0.4953611",
"0.4949505",
"0.4944938",
"0.4927712",
"0.49267006",
"0.4918893",
"0.4907795",
"0.4894184",
"0.48916468",
"0.48896465",
"0.48890904",
"0.48878735",
"0.48875207",
"0.4883939"
] | 0.0 | -1 |
Metodos para 15 operaciones | public void dividirDineroGobierno() {
double dineroDividible = super.getMundo().getGobierno().getCapitalEconomico() / 2;
double dineroPorPersona = super.getMundo().contarPersonas();
if (dineroDividible > 0) {
super.getMundo().gobiernoDarDinero(dineroDividible);
for (Persona p : super.getMundo().getListaDoctores())
p.ganarDinero(dineroPorPersona);
for (Persona p : super.getMundo().getListaCocineros())
p.ganarDinero(dineroPorPersona);
for (Persona p : super.getMundo().getListaAlbaniles())
p.ganarDinero(dineroPorPersona);
for (Persona p : super.getMundo().getListaHerreros())
p.ganarDinero(dineroPorPersona);
for (Persona p : super.getMundo().getListaCocineros())
p.ganarDinero(dineroPorPersona);
for (Persona p : super.getMundo().getListaDoctores())
p.ganarDinero(dineroPorPersona);
for (Persona p : super.getMundo().getListaCocineros())
p.ganarDinero(dineroPorPersona);
for (Persona p : super.getMundo().getListaAlbaniles())
p.ganarDinero(dineroPorPersona);
for (Persona p : super.getMundo().getListaHerreros())
p.ganarDinero(dineroPorPersona);
for (Persona p : super.getMundo().getListaCocineros())
p.ganarDinero(dineroPorPersona);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void Millas_M(){\r\n System.out.println(\"Cálcular Metros o Kilometros de Millas Marinas\");\r\n System.out.println(\"Ingrese un valor en Millas Marinas\");\r\n cadena =numero.next(); \r\n valor = metodo.Doble(cadena);\r\n valor = metodo.NegativoD(valor);\r\n totalM = valor * 1852 ;\r\n Millas_KM(totalM);\r\n }",
"private void Calculation() {\n\t\tint calStd = jetztStunde + schlafStunde;\n\t\tint calMin = jetztMinute + schlafMinute;\n\n\t\ttotalMin = calMin % 60;\n\t\ttotalStunde = calStd % 24 + calMin / 60;\n\n\t}",
"@Override\n public void cantidad_Ataque(){\n ataque=5+2*nivel+aumentoT;\n }",
"public void calcular()\r\n/* 530: */ {\r\n/* 531:556 */ this.facturaProveedorSRI.setMontoIva(this.facturaProveedorSRI.getBaseImponibleDiferenteCero().multiply(\r\n/* 532:557 */ ParametrosSistema.getPorcentajeIva().divide(BigDecimal.valueOf(100L))));\r\n/* 533: */ }",
"long getExpirations();",
"public void sumaPuntos() {\r\n int rojo = 0;\r\n int azul = 0;\r\n for (int i = 1; i < 10; i++) {\r\n\r\n if (tablero[1][i].getTipo().equals(\"Rojo\")) {\r\n rojo += tablero[1][i].getValor();\r\n }\r\n\r\n if (tablero[8][i].getTipo().equals(\"Azul\")) {\r\n azul += tablero[8][i].getValor();\r\n }\r\n\r\n }\r\n if (rojo > azul) {\r\n this.setResultado(\"Rojo\");\r\n this.agregarVictoria(jugadorRojo);\r\n }\r\n if (azul > rojo) {\r\n this.setResultado(\"Azul\");\r\n this.agregarVictoria(jugadorAzul);\r\n }\r\n \r\n this.setReplay(true);\r\n }",
"public void calculoPersonal(){\n ayudantes = getAyudantesNecesarios();\n responsables = getResponsablesNecesarios();\n \n //Calculo atencion al cliente (30% total trabajadores) y RRPP (10% total trabajadores):\n \n int total = ayudantes + responsables;\n \n atencion_al_cliente = (total * 30) / 100;\n \n RRPP = (total * 10) / 100;\n \n //Creamos los trabajadores\n \n gestor_trabajadores.crearTrabajadores(RRPP, ayudantes,responsables,atencion_al_cliente);\n \n }",
"long getQuantite();",
"public String dimeTuTiempo()\n {\n String cadResultado=\"\";\n if (horas<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+horas;\n cadResultado=cadResultado+\":\";\n if(minutos<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+minutos;\n \n return cadResultado;\n }",
"public void calculos() {\n a = a1+a2+a3;\n b = b1+b2+b3;\n c = c1+c2+c3;\n }",
"public void precio4e(){\n precioHabitaciones = precioHabitaciones + (cantidadHabitaciones * numeroCamas);\n\n //Restaurante\n if(capacidadRestaurant < 30){\n precioHabitaciones = precioHabitaciones + 10;\n } else if (capacidadRestaurant > 29 && capacidadRestaurant < 51){\n precioHabitaciones = precioHabitaciones + 30;\n } else if (capacidadRestaurant > 50){\n precioHabitaciones = precioHabitaciones + 50;\n }\n\n //Gimnasio\n switch (gimnasio){\n case \"A\":\n precioHabitaciones = precioHabitaciones + 50;\n break;\n case \"B\":\n precioHabitaciones = precioHabitaciones + 30;\n break;\n }\n\n }",
"public Calculadora(){\n this.operador1 = 0.0;\n this.operador2 = 0.0;\n this.resultado = 0.0;\n }",
"void total() {\r\n t=m1+m2+m3;\r\n per=t/3;\r\n System.out.println(\"total :\"+t);\r\n System.out.println(\"persentage:\"+per);\r\n \r\n \r\n }",
"public double calculoCuotaEspecialOrdinario() {\n\tdouble resultado =0;\n\tresultado = (getMontoCredito()+(getMontoCredito()*getInteres()/100))/getPlazo(); \n\treturn resultado;\n}",
"private void m128168k() {\n C42962b.f111525a.mo104671a(\"upload_page_duration\", C22984d.m75611a().mo59971a(\"first_selection_duration\", System.currentTimeMillis() - this.f104209S).mo59971a(\"page_stay_duration\", System.currentTimeMillis() - this.f104208R).f60753a);\n }",
"@Override\r\n\tpublic float chekearDatos(){\r\n\t\t\r\n\t\tfloat monto = 0f;\r\n\t\tfloat montoPorMes = creditoSolicitado/plazoEnMeses;\r\n\t\tdouble porcentajeDeSusIngesosMensuales = (cliente.getIngresosMensuales()*0.7);\r\n\t\t\r\n\t\tif(cliente.getIngresoAnual()>=15000f && montoPorMes<=porcentajeDeSusIngesosMensuales){\r\n\t\t\t\r\n\t\t\tmonto = this.creditoSolicitado;\r\n\t\t\tsetEstadoDeSolicitud(true);\r\n\t\t}\t\r\n\t\t\r\n\t\t\r\n\t\treturn monto;\r\n\t}",
"public float montos(){\n\tDefaultTableModel modelo = vc.returnModelo();\r\n\tint numeroFilas=modelo.getRowCount();\r\n\tfloat monto=0;\r\n\t\tif(modelo.getRowCount()!=0){\r\n\t\t\r\n\t\t\tfor (int i = 0; i < numeroFilas; i++) {\r\n\t\t\t\t\r\n\t\t\t\tmonto = monto + Float.valueOf(modelo.getValueAt(i, 5).toString());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tmonto=0;\r\n\t\t}\r\n\t\treturn monto;\r\n\t}",
"public void imprimirResultados(){\n System.out.println(\"t (tiempo actual) \"+t);\n \n \n System.out.println(\"\\nGanancia total: $\"+R);\n System.out.println(\"Costos por mercaderia comprada: $\"+C);\n System.out.println(\"Costos por mantenimiento inventario: $\"+H);\n System.out.println(\"Ganancia promeio de la tienda por unidad de tiempo: $\"+(R-C-H)/T);\n \n }",
"public void calcularCost() {\r\n cost = 0;\r\n int a = 0;\r\n try {\r\n String r = DataR.toString()+ \" \" + horaR;\r\n String d = DataD.toString()+ \" \" + horaD;\r\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\r\n Date dateR = simpleDateFormat.parse(r);\r\n Date dateD = simpleDateFormat.parse(d);\r\n a = (int) ((dateD.getTime() - dateR.getTime())/(1000*3600));\r\n \r\n \r\n } catch (ParseException ex) {\r\n Logger.getLogger(Reserva.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n if(a > 24) {\r\n cost += 15*(a/(24));\r\n a -= (((int)(a/24))*24);\r\n }\r\n if(a%3600 == 0) {\r\n cost += 1;\r\n }\r\n if(a%3600 > 0) {\r\n cost += 1;\r\n }\r\n \r\n }",
"public void calcularIndicePlasticidad(){\r\n\t\tindicePlasticidad = limiteLiquido - limitePlastico;\r\n\t}",
"long buscarUltimo();",
"private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}",
"@Override\n public double calculaTributos() {\n // TODO Auto-generated method stub\n return 10;\n }",
"void MontaValores(){\r\n // 0;0;-23,3154166666667;-51,1447783333333;0 // Extrai os valores e coloca no objetos\r\n // Dis;Dir;Lat;Long;Velocidade\r\n // Quebra de Rota lat=-999.999 long=-999.999 ==> Marca ...\r\n \r\n int ind=0;\r\n NMEAS=NMEA.replace(\",\" , \".\");\r\n \r\n //1)\r\n dists=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind));\r\n Distancia=Double.valueOf(dists);\r\n ind=ind+dists.length()+1;\r\n \r\n //2)\r\n dirs=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Direcao=Double.valueOf(dirs);\r\n ind=ind+dirs.length()+1;\r\n \r\n //3)\r\n lats=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Lat=Double.valueOf(lats);\r\n ind=ind+lats.length()+1;\r\n \r\n //4)\r\n longs=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Long=Double.valueOf(longs);\r\n ind=ind+longs.length()+1;\r\n \r\n //5)\r\n vels=NMEAS.substring(ind,NMEAS.length());\r\n // Transforma de Knots para Km/h\r\n Velocidade=Double.valueOf(vels)/100*1.15152*1.60934;\r\n vels=String.valueOf(Velocidade);\r\n ind=ind+vels.length()+1;\r\n \r\n }",
"@Test\n public void pruebaCalculCamiseta() {\n System.out.println(\"prueba Calcul Camiseta\");\n Camiseta camisetaTest = new Camiseta(1);\n assertEquals(190, (camisetaTest.calculCamiseta(1)),0) ;\n \n Camiseta camisetaTestDos = new Camiseta(2);\n assertEquals(1481.2, (camisetaTestDos.calculCamiseta(7)),0) ;\n \n Camiseta camisetaTestTres = new Camiseta(3);\n assertEquals(1178, (camisetaTestTres.calculCamiseta(4)),0) ;\n \n \n }",
"public void prinRecaudacion()\n {\n System.out.println(\"La cantidad recaudada por la maquina1 es \" + maquina1.getTotal());\n System.out.println(\"La cantidad recaudada por la maquina2 es \" + maquina2.getTotal());\n System.out.println(\"La cantidad total es\" + ( maquina1.getTotal() + maquina2.getTotal()));\n}",
"public double getStockFinal(long pv) {\n float entree = 0 ;\n float sortie = 0 ;\n\n ArrayList<Produit> produits = null ;\n if (pv==0) produits = produitDAO.getAll();\n else produits = produitDAO.getAllByPv(pv) ;\n\n ArrayList<Mouvement> mouvements = null;\n\n double valeur = 0 ;\n double total = 0 ;\n double quantite = 0 ;\n double cmpu = 0 ;\n double restant = 0 ;\n double qsortie = 0 ;\n double qentree = 0 ;\n // Vente par produit\n Mouvement mouvement = null ;\n Operation operation = null ;\n\n for (int i = 0; i < produits.size(); i++) {\n try {\n mouvements = mouvementDAO.getManyByProductInterval(produits.get(i).getId_externe(),DAOBase.formatter2.parse(datedebut),DAOBase.formatter2.parse(datefin)) ;\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n if (mouvements != null){\n valeur = 0 ;\n quantite = 0 ;\n restant = 0 ;\n qentree = 0 ;\n cmpu = 0 ;\n qsortie = 0 ;\n\n for (int j = 0; j < mouvements.size(); j++) {\n mouvement = mouvements.get(j) ;\n operation = operationDAO.getOne(mouvement.getOperation_id()) ;\n if (operation==null || (operation.getAnnuler()==1 && operation.getDateannulation().before(new Date())) || operation.getTypeOperation_id().startsWith(OperationDAO.CMD)) continue;\n\n //if (pv!=0 && caisseDAO.getOne(operation.getCaisse_id()).getPointVente_id()!=pv) continue;\n if (j==0)\n if (mouvement.getRestant()==mouvement.getQuantite() && mouvement.getEntree()==0){\n restant = 0 ;\n }\n else restant = mouvement.getRestant() ;\n\n if (mouvement.getEntree()==0) {\n valeur -= mouvement.getPrixA() * mouvement.getQuantite() ;\n qentree += mouvement.getQuantite() ;\n cmpu = mouvement.getPrixA() ;\n }\n else {\n valeur += mouvement.getCmup() * mouvement.getQuantite() ;\n qsortie += mouvement.getQuantite() ;\n }\n /*\n if (restant!=0) cmpu = valeur / restant ;\n else cmpu = mouvement.getCmup() ;\n */\n }\n\n quantite = restant + qentree - qsortie ;\n total+=Math.abs(valeur) ;\n }\n }\n\n return total;\n }",
"double objetosc() {\n return dlugosc * wysokosc * szerokosc; //zwraca obliczenie poza metode\r\n }",
"public static void sueldoTotal(int hora, int sueldo){\n int resultado = 0;\r\n if(hora<=40){\r\n resultado = hora*sueldo;\r\n }\r\n if(hora>40 || hora<48){\r\n resultado = (40*sueldo)+(hora-40)*(sueldo*2);\r\n }\r\n if (hora>=48){\r\n resultado =(40*sueldo)+8*(sueldo*2)+(hora-48)*(sueldo*3);\r\n }\r\n System.out.println(\"El sueldo es de \"+ resultado);//Se muestra el sueldo total\r\n \r\n \r\n \r\n }",
"public void hora()\n {\n horaTotal = HoraSalida - HoraLlegada;\n\n }",
"@Test\n\tvoid calcularSalarioConMasCuarentaHorasPagoPositivoTest() {\n\t\tEmpleadoPorComision empleadoPorComision = new EmpleadoPorComision(\"Eiichiro oda\", \"p33\", 400000, 500000);\n\t\tdouble salarioEsperado = 425000;\n\t\tdouble salarioEmpleadoPorComision = empleadoPorComision.calcularSalario();\n\t\tassertEquals(salarioEsperado, salarioEmpleadoPorComision);\n\n\t}",
"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}",
"@Override\n public long minutosOcupados(Integer idEstacion, Date inicio, Date fin) {\n long minutos = 0;\n String sql = \"SELECT eje FROM Recurso rec, Ejecucion eje WHERE rec.idestacion = :idEstacion AND eje.idrecurso = rec.idrecurso AND eje.fechafin >= :inicio AND eje.fechainicio < :fin\";\n List<Ejecucion> ejecuciones = getCurrentSession().createQuery(sql).setParameter(\"idEstacion\", idEstacion).setParameter(\"inicio\", inicio).setParameter(\"fin\", fin).list();\n for (Ejecucion next : ejecuciones) {\n Date inicioEjecucion = next.getFechainicio();\n Date finEjecucion = next.getFechafin();\n if (inicioEjecucion.before(inicio) && finEjecucion.before(fin)) {\n //Comienza en inicio y finaliza en el fin de la ejecucion\n minutos = minutos + Math.abs(finEjecucion.getTime() - inicio.getTime())/60000;\n \n } else if (inicioEjecucion.after(inicio) && finEjecucion.before(fin)) {\n //Comienza en inicio de la ejecucion y finaliza en el fin de la ejecucion\n minutos = minutos + Math.abs(fin.getTime() - inicioEjecucion.getTime())/60000;\n \n }else if (inicioEjecucion.after(inicio) && finEjecucion.after(fin)){\n //Comienza en inicio de la ejecucion y finaliza en el fin\n minutos = minutos + Math.abs(fin.getTime() - inicioEjecucion.getTime())/60000;\n \n } else if (inicioEjecucion.before(inicio) && finEjecucion.after(fin)) {\n //Comienza en inicio y finaliza en el fin\n minutos = minutos + Math.abs(fin.getTime() - inicio.getTime())/60000;\n }\n }\n return minutos;\n }",
"public double calcular_costo() {\n\t\t return 1.3*peso+30 ;\n\t}",
"public int getOperacion()\r\n/* 22: */ {\r\n/* 23:45 */ return this.operacion;\r\n/* 24: */ }",
"public Long numeroRegistrosFactura();",
"public double calcTuition(){\r\n return getNumCredits() * COST_PER_CREDIT_HOUR;\r\n }",
"public int precioFinal(){\r\n int monto=super.PrecioFinal();\r\n\t \t \r\n\t if (pulgadas>40){\r\n\t monto+=precioBase*0.3;\r\n\t }\r\n\t if (sintonizador){\r\n\t monto+=50;\r\n\t }\r\n\t \r\n\t return monto;\r\n\t }",
"@Override\n public long minutosLibres(Integer idEstacion, Date inicio, Date fin) {\n long minutos = Math.abs(fin.getTime() - inicio.getTime())/60000;\n List<Ejecucion> ejecuciones = null;\n String sql = \"SELECT eje FROM Recurso rec, Ejecucion eje WHERE rec.estacion.idestaciones = :idEstacion AND eje.recurso.idrecurso = rec.idrecurso AND eje.fechafin >= :inicio AND eje.fechainicio < :fin\";\n ejecuciones = getCurrentSession().createQuery(sql).setParameter(\"idEstacion\", idEstacion).setParameter(\"inicio\", inicio).setParameter(\"fin\", fin).list();\n \n if (ejecuciones != null) {\n for (Ejecucion next : ejecuciones) {\n Date inicioEjecucion = next.getFechainicio();\n Date finEjecucion = next.getFechafin();\n if (inicioEjecucion.before(inicio) && finEjecucion.before(fin)) {\n //Comienza en inicio y finaliza en el fin de la ejecucion\n minutos = minutos - Math.abs(finEjecucion.getTime() - inicio.getTime())/60000;\n\n } else if (inicioEjecucion.after(inicio) && finEjecucion.before(fin)) {\n //Comienza en inicio de la ejecucion y finaliza en el fin de la ejecucion\n minutos = minutos - Math.abs(fin.getTime() - inicioEjecucion.getTime())/60000;\n\n }else if (inicioEjecucion.after(inicio) && finEjecucion.after(fin)){\n //Comienza en inicio de la ejecucion y finaliza en el fin\n minutos = minutos - Math.abs(fin.getTime() - inicioEjecucion.getTime())/60000;\n\n } else if (inicioEjecucion.before(inicio) && finEjecucion.after(fin)) {\n //Comienza en inicio y finaliza en el fin\n minutos = minutos - Math.abs(fin.getTime() - inicio.getTime())/60000;\n }\n /*if (inicioEjecucion.before(inicio) && finEjecucion.before(fin)) {\n //Comienza en inicio y finaliza en el fin de la ejecucion\n minutos = minutos + (fin.getTime() - inicio.getTime())/60000;\n\n } else if (inicioEjecucion.after(inicio) && finEjecucion.before(fin)) {\n //Comienza en inicio de la ejecucion y finaliza en el fin de la ejecucion\n minutos = minutos + ((fin.getTime() - inicio.getTime()) + (inicioEjecucion.getTime() - inicio.getTime()))/60000;\n\n }else if (inicioEjecucion.after(inicio) && finEjecucion.after(fin)){\n //Comienza en inicio de la ejecucion y finaliza en el fin\n minutos = minutos + Math.abs(inicioEjecucion.getTime() - inicio.getTime())/60000;\n\n }*/\n }\n }\n return minutos;\n }",
"public void calculoSalarioBruto(){\n salarioBruto = hrTrabalhada * valorHr;\n }",
"public int getminutoStamina(){\n return tiempoReal;\n }",
"public abstract int calcularOferta();",
"@Override\n public double tuition(){\n return 2500;\n }",
"Operations operations();",
"protected int getTimesOptimized()\r\n {\r\n return timesOptimized;\r\n }",
"private double getOEEPerformance(Batch batch) {\n return 1;\n }",
"private void syncNumCopertiTotali() {\n int qPranzo = campoPranzo.getInt();\n int qCena = campoCena.getInt();\n campoTotale.setValore(qPranzo+qCena);\n }",
"@Test\n\tvoid calcularSalarioSinVentasPagoPositivoTest() {\n\t\tEmpleadoPorComision empleadoPorComision = new EmpleadoPorComision(\"Hiromu Arakawa\", \"p24\", 400000, 0);\n\t\tdouble salarioEsperado = 400000;\n\t\tdouble salarioEmpleadoPorComision = empleadoPorComision.calcularSalario();\n\t\tassertEquals(salarioEsperado, salarioEmpleadoPorComision);\n\n\t}",
"public float calcularPerimetro(){\n return baseMayor+baseMenor+(medidaLado*2);\n }",
"public final void calcular() {\n long dias = Duration.between(retirada, devolucao).toDays();\n valor = veiculo.getModelo().getCategoria().getDiaria().multiply(new BigDecimal(dias));\n }",
"private String auxOperacion(int operando1, int operando2, String valor1, String valor2, int op) {\n if (ManejadorMemoria.isInt(operando1)) {\n if (ManejadorMemoria.isInt(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Integer.parseInt(valor1) + Integer.parseInt(valor2)) + \"\";\n case Codigos.RESTA:\n return (Integer.parseInt(valor1) - Integer.parseInt(valor2)) + \"\";\n case Codigos.MULT:\n return (Integer.parseInt(valor1) * Integer.parseInt(valor2)) + \"\";\n case Codigos.DIV:\n return (Integer.parseInt(valor1) / Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYOR:\n System.out.println(valor1 + \" \" + valor2 + \" \" + (Integer.parseInt(valor1) > Integer.parseInt(valor2)));\n return (Integer.parseInt(valor1) > Integer.parseInt(valor2)) + \"\";\n case Codigos.MENOR:\n return (Integer.parseInt(valor1) < Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Integer.parseInt(valor1) >= Integer.parseInt(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Integer.parseInt(valor1) <= Integer.parseInt(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Integer.parseInt(valor1) == Integer.parseInt(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Integer.parseInt(valor1) != Integer.parseInt(valor2)) + \"\";\n }\n } else if (ManejadorMemoria.isFloat(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Integer.parseInt(valor1) + Double.parseDouble(valor2)) + \"\";\n case Codigos.RESTA:\n return (Integer.parseInt(valor1) - Double.parseDouble(valor2)) + \"\";\n case Codigos.MULT:\n return (Integer.parseInt(valor1) * Double.parseDouble(valor2)) + \"\";\n case Codigos.DIV:\n return (Integer.parseInt(valor1) / Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYOR:\n return (Integer.parseInt(valor1) > Double.parseDouble(valor2)) + \"\";\n case Codigos.MENOR:\n return (Integer.parseInt(valor1) < Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Integer.parseInt(valor1) >= Double.parseDouble(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Integer.parseInt(valor1) <= Double.parseDouble(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Integer.parseInt(valor1) == Double.parseDouble(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Integer.parseInt(valor1) != Double.parseDouble(valor2)) + \"\";\n }\n }\n } else if (ManejadorMemoria.isFloat(operando1)) {\n if (ManejadorMemoria.isInt(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Double.parseDouble(valor1) + Integer.parseInt(valor2)) + \"\";\n case Codigos.RESTA:\n return (Double.parseDouble(valor1) - Integer.parseInt(valor2)) + \"\";\n case Codigos.MULT:\n return (Double.parseDouble(valor1) * Integer.parseInt(valor2)) + \"\";\n case Codigos.DIV:\n return (Double.parseDouble(valor1) / Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYOR:\n return (Double.parseDouble(valor1) > Integer.parseInt(valor2)) + \"\";\n case Codigos.MENOR:\n return (Double.parseDouble(valor1) < Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Double.parseDouble(valor1) >= Integer.parseInt(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Double.parseDouble(valor1) <= Integer.parseInt(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Double.parseDouble(valor1) == Integer.parseInt(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Double.parseDouble(valor1) != Integer.parseInt(valor2)) + \"\";\n }\n } else if (ManejadorMemoria.isFloat(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Double.parseDouble(valor1) + Double.parseDouble(valor2)) + \"\";\n case Codigos.RESTA:\n return (Double.parseDouble(valor1) - Double.parseDouble(valor2)) + \"\";\n case Codigos.MULT:\n return (Double.parseDouble(valor1) * Double.parseDouble(valor2)) + \"\";\n case Codigos.DIV:\n return (Double.parseDouble(valor1) / Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYOR:\n return (Double.parseDouble(valor1) > Double.parseDouble(valor2)) + \"\";\n case Codigos.MENOR:\n return (Double.parseDouble(valor1) < Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Double.parseDouble(valor1) >= Double.parseDouble(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Double.parseDouble(valor1) <= Double.parseDouble(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Double.parseDouble(valor1) == Double.parseDouble(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Double.parseDouble(valor1) != Double.parseDouble(valor2)) + \"\";\n }\n }\n } else if (ManejadorMemoria.isString(operando1)) {\n return valor1 + valor2;\n } else if(ManejadorMemoria.isBool(operando1)){\n switch(op){\n case Codigos.AND:\n return (Boolean.parseBoolean(valor1) && Boolean.parseBoolean(valor2)) + \"\";\n case Codigos.OR:\n return (Boolean.parseBoolean(valor1) || Boolean.parseBoolean(valor2)) + \"\";\n case Codigos.NOT:\n return (! Boolean.parseBoolean(valor1))+ \"\";\n }\n }\n\n return \"\";\n }",
"public int q1(int op,int band,int acum2)\n {\n \n int reslt=0;\n if(opBebidad!=0){//op Bebiba corresponde a si al menos una de las bebidas has sido seleccionada\n \n \n if(band==1)//Parametro band corresponde a varias operaciones\n {// 1. Si el boton de cancelar ha sido seleccionado\n // 2. Si ha sido ingresada una moneda\n \n //---------------------------------------------------------------------\n //Mostrar precio de cada producto, al presionar su imagen mediante la llamada al metodo valorBeb()\n Set<String> quipu = new HashSet<String>(monedas);\n for (String key : quipu) \n {\n if(key.equals(\"25\"))\n {\n cant25=Integer.parseInt(Collections.frequency(monedas, key)+\"\");\n\n }else\n if(key.equals(\"5\"))\n {\n cant5=Integer.parseInt(Collections.frequency(monedas, key)+\"\"); \n\n }else\n if(key.equals(\"10\"))\n {\n cant10=Integer.parseInt(Collections.frequency(monedas, key)+\"\");\n\n }\n }\n valorBeb(op);\n Ventana_Principal.arrow.setVisible(false);\n Ventana_Principal.txtA.setText(\"Por Favor Retirar su Dinero...Gracias\");\n Ventana_Principal.txtA.append(\"\\nEntregando...\");\n Cambio hilo=new Cambio(Ventana_Principal.txtA,monedas.size(),monedas);\n hilo.start();\n\n Ventana_Principal.lbl5.setText(cant5+\"\");\n Ventana_Principal.lbl10.setText(cant10+\"\");\n Ventana_Principal.lbl25.setText(cant25+\"\");\n\n //Luego de un minuto el hilo vuelve a ejecutarse\n //ScheduledExecutorService timer = Executors.newSingleThreadScheduledExecutor();\n //timer.scheduleAtFixedRate(hilo, 1, 1, TimeUnit.MINUTES);\n \n }\n else\n if(band==2)\n {\n hilo=new Publicidad(txtA,true);\n Ventana_Principal.hilo.stop();\n //Se detiene el hilo para mostrar el valor del producto vs el valor que se va ingresando\n //Mediante acum2, se acumulan las monedas ingresadas\n double dif=0; \n System.out.println(\"----------------------------------------------------------------------\");\n System.out.println(\"Precio: \"+valor+\"| Ingreso:\"+acum);\n monedas.add(acum2+\"\");//Se van guardando cada una de las monedas ingresadas, para poder ser contadas\n \n dif=valor-acum;\n if(dif<0)\n {\n \n if(acum==100)\n {\n String aux=Integer.toString(acum);\n Ventana_Principal.txtA.setText(\"Ha Ingresado: \"+aux.substring(0,1)+\".0 dolar/es\");\n Ventana_Principal.txtMon.setText(\"\");\n }else\n {\n if(acum>100)\n {\n String aux=Integer.toString(acum);\n String aux2=aux.substring(0,1);\n Ventana_Principal.txtA.setText(\"Ha Ingresado: \"+aux2.concat(\".\").concat(aux.substring(1))+\" dolar/es\");\n Ventana_Principal.txtMon.setText(\"\");\n }else\n {\n Ventana_Principal.txtA.setText(\"Ha Ingresado: \"+acum+\" centavos\");\n Ventana_Principal.txtMon.setText(\"\");\n }\n }\n \n }else\n {\n if(acum==valor)\n {\n if(acum==100)\n {\n String aux=Integer.toString(acum);\n Ventana_Principal.txtA.setText(\"Ha Ingresado: \"+aux.substring(0,1)+\".0 dolar/es\");\n Ventana_Principal.txtMon.setText(\"\");\n }else\n {\n Ventana_Principal.txtA.setText(\"Ha Ingresado: \"+acum+\" centavos\");\n Ventana_Principal.txtMon.setText(\"\");\n }\n }else\n {\n Ventana_Principal.txtA.setText(\"Ha Ingresado: \"+acum+ \" centavos\\nFaltan \"+dif+\" centavos\");\n Ventana_Principal.txtMon.setText(\"\");\n }\n \n }\n if(acum>=valor)\n {\n if(acum==valor)\n {\n Ventana_Principal.txtA.append(\"\\nPor Favor, Retire su Bebida...\");\n Ventana_Principal.txtMon.setEnabled(false);\n Ventana_Principal.arrow.setVisible(true);\n Ventana_Principal.lblPush.setEnabled(true);\n }else\n {\n Ventana_Principal.txtMon.setEnabled(false);\n q2(1);\n Ventana_Principal.txtA.append(\"\\nPor Favor, Retire su Bebida...\");\n Ventana_Principal.lblPush.setEnabled(true);\n }\n }\n //Se llama a cantMonedas, que muestra la cantidad de cada moneda ingresada\n cantMonedas();//Cuenta las monedas y las clasifica\n \n }\n }\n reslt=acum;\n return reslt; \n }",
"long getTotalDoExamTime();",
"public static Documento calcularExcento(Documento doc, List<DocumentoDetalleVo> productos) {\n\t\tDouble totalReal = 0.0, exectoReal = 0.0;\n\t\tDouble gravado = 0.0;\n\t\tDouble ivatotal = 0.0;\n\t\tDouble peso = 0.0;\n\t\tDouble iva5 = 0.0;\n\t\tDouble iva19 = 0.0;\n\t\tDouble base5 = 0.0;\n\t\tDouble base19 = 0.0;\n\t\tDouble costoTotal =0.0;\n\t\t//este campo es para retencion del hotel\n\t\tDouble retencion =0.0;\n\t\t// aqui voy toca poner a sumar las variables nuebas para que se reflejen\n\t\t// en el info diario\n\t\tfor (DocumentoDetalleVo dDV : productos) {\n\t\t\tLong productoId = dDV.getProductoId().getProductoId();\n\t\t\tDouble costoPublico = dDV.getParcial();\n\t\t\tDouble costo = (dDV.getProductoId().getCosto()==null?0.0:dDV.getProductoId().getCosto())*dDV.getCantidad();\n\t\t\tDouble iva1 = dDV.getProductoId().getIva().doubleValue() / 100;\n\t\t\tDouble peso1 = dDV.getProductoId().getPeso() == null ? 0.0 : dDV.getProductoId().getPeso();//\n\t\t\tpeso1 = peso1 * dDV.getCantidad();\n\t\t\ttotalReal += costoPublico;\n\t\t\tcostoTotal+=costo;\n\t\t\tdouble temp;\n\t\t\tivatotal = ivatotal + ((costoPublico / (1 + iva1)) * iva1);\n\t\t\tpeso = peso + peso1;\n\t\t\t// si es iva del 19 se agrega al documento junto con la base\n\t\t\tif (iva1 == 0.19) {\n\t\t\t\tiva19 = iva19 + ((costoPublico / (1 + iva1)) * iva1);\n\t\t\t\tbase19 = base19 + (costoPublico / (1 + iva1));\n\t\t\t}\n\t\t\t// si es iva del 5 se agrega al documento junto con la base\n\t\t\tif (iva1 == 0.05) {\n\t\t\t\tiva5 = iva5 + ((costoPublico / (1 + iva1)) * iva1);\n\t\t\t\tbase5 = base5 + (costoPublico / (1 + iva1));\n\t\t\t}\n\t\t\tif (iva1 > 0.0) {\n\t\t\t\ttemp = costoPublico / (1 + iva1);\n\t\t\t\tgravado += temp;\n\n\t\t\t} else {\n\t\t\t\ttemp = costoPublico;\n\t\t\t\t//no suma el excento si es producto retencion\n\t\t\t\tif( productoId!=6l && productoId!=7l) {\n\t\t\t\t\texectoReal += temp;\n\t\t\t\t}else {\n\t\t\t\t\tretencion+= temp;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tdoc.setTotal(totalReal);\n\t\tdoc.setSaldo(totalReal);\n\t\tdoc.setExcento(exectoReal);\n\t\tdoc.setGravado(gravado);\n\t\tdoc.setIva(ivatotal);\n\t\tdoc.setPesoTotal(peso);\n\t\tdoc.setIva5(iva5);\n\t\tdoc.setIva19(iva19);\n\t\tdoc.setBase5(base5);\n\t\tdoc.setBase19(base19);\n\t\tdoc.setTotalCosto(costoTotal);\n\t\tdoc.setRetefuente(retencion);\n\t\treturn doc;\n\t}",
"public void calculateMMage() {\n\t\t\n\t}",
"public synchronized double getTotal(){\n float CantidadTotal=0;\n Iterator it = getElementos().iterator();\n while (it.hasNext()) {\n ArticuloVO e = (ArticuloVO)it.next();\n CantidadTotal=CantidadTotal+(e.getCantidad()*e.getPrecio());\n}\n\n \n return CantidadTotal;\n\n }",
"public void ActualizadorOro(){\n\njavax.swing.Timer ao = new javax.swing.Timer(1000*60, new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n try {\n Connection conn = Conectar.conectar();\n Statement st = conn.createStatement();\n\n usuarios = new ArrayList<Usuario>();\n ResultSet rs = st.executeQuery(\"select * from usuarios\");\n while(rs.next()){\n usuarios.add(new Usuario(rs.getString(1), rs.getString(2), rs.getString(3), Integer.parseInt(rs.getString(4)), Integer.parseInt(rs.getString(5)), Integer.parseInt(rs.getString(6)), Integer.parseInt(rs.getString(7))));\n }\n\n //preparamos una consulta que nos lanzara el numero de minas por categoria que tiene cada usuario\n String consulta1 = \"select idEdificio, count(*) from regiones, edificiosregion\"+\n \" where regiones.idRegion=edificiosregion.idRegion\"+\n \" and propietario='\";\n\n String consulta2 = \"' and idEdificio in (1101,1102,1103,1104,1105)\"+\n \" group by idEdificio\";\n\n //recorremos toda la lista sumando el oro, dependiendo del numero de minas que posea\n ResultSet rs2 = null;\n for(Usuario usuario : usuarios){\n rs2 = st.executeQuery(consulta1 + usuario.getNick() + consulta2);\n int oro = 0;\n while(rs2.next()){\n System.out.println(Integer.parseInt(rs2.getString(1)));\n if(Integer.parseInt(rs2.getString(1)) == 1101){\n oro = oro + (rs2.getInt(2) * 100);\n }\n else if(Integer.parseInt(rs2.getString(1)) == 1102){\n oro = oro + (rs2.getInt(2) * 150);\n }\n else if(Integer.parseInt(rs2.getString(1)) == 1103){\n oro = oro + (rs2.getInt(2) * 300);\n }\n else if(Integer.parseInt(rs2.getString(1)) == 1104){\n oro = oro + (rs2.getInt(2) * 800);\n }\n else if(Integer.parseInt(rs2.getString(1)) == 1105){\n oro = oro + (rs2.getInt(2) * 2000);\n }\n }\n st.executeQuery(\"UPDATE usuarios SET oro = (SELECT oro+\" + oro + \" FROM usuarios WHERE nick ='\" + usuario.getNick() + \"'\"+\n \") WHERE nick = '\" + usuario.getNick() + \"'\");\n\n }\n st.close();\n rs.close();\n rs2.close();\n conn.close();\n\n } catch (SQLException ex) {\n System.out.println(ex.getMessage() + \" Fallo actualizar oro.\");\n }\n\n }\n });\n\n ao.start();\n}",
"private static void calcularTotal(String[] campos) {\n\t\tif (campos.length == 1)\n\t\t\tSystem.out.println(\"TOTAL de lugares atribuidos: \" + gestor.totalAtribuidos());\n\t\telse {\n\t\t\tint escalao = Integer.valueOf(campos[1]);\n\t\t\tSystem.out.println(\"TOTAL de lugares atribuidos no escalao \" + escalao + \" : \" + gestor.atribuidosNoEscalao(escalao));\n\t\t}\n\t}",
"@Override\n\tpublic void getResultat() {\n\t\tcalcul();\n\t}",
"public void MUL( ){\n String tipo1 = pilhaVerificacaoTipos.pop().toString();\n String tipo2 = pilhaVerificacaoTipos.pop().toString();\n String val1 = dads.pop().toString();\n float fresult = -1;\n int iresult = -1;\n String val2 = dads.pop().toString();\n if(val1 != null && val2 != null){\n if (tipo1 != null && tipo2 != null){\n if(tipo1 == \"inteiro\" && tipo2 == \"real\"){\n fresult = Integer.parseInt(val1) * Float.parseFloat(val2);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }else if(tipo1 == \"real\" && tipo2 ==\"inteiro\"){\n fresult = Integer.parseInt(val2) * Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }else if(tipo1 == \"real\" && tipo2 ==\"real\"){\n fresult = Float.parseFloat(val2) * Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }else if(tipo1 == \"inteiro\" && tipo2 ==\"inteiro\"){\n iresult = Integer.parseInt(val2) * Integer.parseInt(val1);\n dads.push(iresult);\n pilhaVerificacaoTipos.push(\"inteiro\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(1): essa instrução é válida apenas para valores inteiros ou reais.\";\n numErrVM += 1;\n return;\n }\n }else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(2): não foi possível executar a instrução, tipo null encontrado.\";\n numErrVM += 1;\n return;\n }\n }else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(3): não foi possível executar a instrução, valor null encontrado.\";\n numErrVM += 1;\n return;\n }\n\n\n\n topo += -1;\n ponteiro += 1;\n }",
"@Override\r\n\tpublic int operar() {\n\t\treturn 0;\r\n\t}",
"public void MOD( ){\n String tipo1 = pilhaVerificacaoTipos.pop().toString();\n String tipo2 = pilhaVerificacaoTipos.pop().toString();\n String val1 = dads.pop().toString();\n float fresult = -1;\n String val2 = dads.pop().toString();\n if(val1 != null && val2 != null){\n if (tipo1 != null && tipo2 != null){\n if(tipo1 == \"inteiro\" && tipo2 == \"real\"){\n if(Float.parseFloat(val2) != 0){\n fresult = Integer.parseInt(val1) % Float.parseFloat(val2);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(5): impossível realizar a operação. O valor do dividendo deve ser maior que zero\";\n numErrVM += 1;\n }\n }else if(tipo1 == \"real\" && tipo2 ==\"inteiro\"){\n if(Float.parseFloat(val1) != 0){\n fresult = Integer.parseInt(val2) % Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(5): impossível realizar a operação. O valor do dividendo deve ser maior que zero\";\n numErrVM += 1;\n }\n }else if(tipo1 == \"real\" && tipo2 ==\"real\"){\n if(Float.parseFloat(val1) != 0){\n fresult = Float.parseFloat(val2) % Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(5): impossível realizar a operação. O valor do dividendo deve ser maior que zero\";\n numErrVM += 1;\n }\n }else if(tipo1 == \"inteiro\" && tipo2 ==\"inteiro\"){\n if(Integer.parseInt(val1) != 0){\n fresult = Integer.parseInt(val2) % Integer.parseInt(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(5): impossível realizar a operação. O valor do dividendo deve ser maior que zero\";\n numErrVM += 1;\n return;\n }\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(1): essa instrução é válida apenas para valores inteiros ou reais.\";\n numErrVM += 1;\n return;\n }\n }else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(2): não foi possível executar a instrução, tipo null encontrado.\";\n numErrVM += 1;\n return;\n }\n }else {\n mensagensErrosVM += \"\\nRUNTIME ERROR(3): não foi possível executar a instrução, valor null encontrado.\";\n numErrVM += 1;\n return;\n }\n\n\n topo += -1;\n ponteiro += 1;\n }",
"public int getTotRuptures();",
"public int getDuration( ) {\nreturn numberOfPayments / MONTHS;\n}",
"public void minutoStamina(int minutoStamina){\n tiempoReal = (minutoStamina * 6)+10;\n }",
"@Override\n public void cantidad_Punteria(){\n punteria=69.5+05*nivel+aumentoP;\n }",
"public static void calcularPromedioSemanal() {\n }",
"private void actualizaPuntuacion() {\n if(cambiosFondo <= 10){\n puntos+= 1*0.03f;\n }\n if(cambiosFondo > 10 && cambiosFondo <= 20){\n puntos+= 1*0.04f;\n }\n if(cambiosFondo > 20 && cambiosFondo <= 30){\n puntos+= 1*0.05f;\n }\n if(cambiosFondo > 30 && cambiosFondo <= 40){\n puntos+= 1*0.07f;\n }\n if(cambiosFondo > 40 && cambiosFondo <= 50){\n puntos+= 1*0.1f;\n }\n if(cambiosFondo > 50) {\n puntos += 1 * 0.25f;\n }\n }",
"@Override\n public double calcularValorCompra(ArrayList<Mueble> muebles){\n double total = 0d;\n for (Mueble m : muebles) {\n total+= m.getCantidad()*m.getPrecio();\n }\n return total; \n }",
"public void ultimo(){//executa metodo para ultima pagina de registro de funcionarios\r\n\t\tdao.ultimo();\r\n\t}",
"private void getAllTotesCenterTimer()\r\n\t{\r\n\t\tswitch(autoStep)\r\n\t\t{\r\n\t\t\tcase 0:\r\n\t\t\t{\r\n\t\t\t\tpickUpTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 1:\r\n\t\t\t{\r\n\t\t\t\tstrafeLeftTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 2:\r\n\t\t\t{\r\n\t\t\t\tpickUpTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 3:\r\n\t\t\t{\r\n\t\t\t\tstrafeRightTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 4:\r\n\t\t\t{\r\n\t\t\t\tstrafeRightTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 5:\r\n\t\t\t{\r\n\t\t\t\tpickUpTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 6:\r\n\t\t\t{\r\n\t\t\t\tdriveForwardTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\t\r\n\t}",
"private Long calcTiempoCompensado(Long tiempoReal, Barco barco, Manga manga) {\n //Tiempo compensado = Tiempo Real + GPH * Nº de millas manga.\n Float res = tiempoReal + barco.getGph() * manga.getMillas();\n return (long) Math.round(res);\n }",
"@Override\n public double salario() {\n return 2600 * 1.10;\n }",
"public void calcularQuinA(){\n sueldoQuinAd = sueldoMensual /2;\n\n }",
"@Override\n\tpublic int manufacturando(int unidades) {\n\t\treturn unidades*this.getTiempoEstimadoParaProducirse();\n\t}",
"@Override\n\tpublic int horas_trabajo() {\n\t\treturn 1000;\n\t}",
"public void temporizadorTiempo() {\n Timer timer = new Timer();\n tareaRestar = new TimerTask() {\n @Override\n public void run() {\n tiempoRonda--;\n }\n };\n timer.schedule(tareaRestar, 1,1000);\n }",
"public void toilette() {\n if (!autoriseOperation()) {\n return;\n }\n incrSale(-3);\n incrHumeur(1);\n incrXp(1);\n\n setChanged();\n notifyObservers();\n }",
"public int limitesX(){\n int v=0;\n if (fila==0 && columna>0 && columna<15){\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna-1)!=null && automata.getElemento(fila+1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna+1)!=null && automata.getElemento(fila+1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n }\n else if (fila==15 && columna>0 && columna<15){\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna-1)!=null && automata.getElemento(fila-1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna+1)!=null && automata.getElemento(fila-1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n }\n else{v=limitesY();}\n return v;\n }",
"public void operacao();",
"public int fondMagasin(){\n\tint total =this.jeton;\n\tfor(Caisse c1 : this.lesCaisses){\n\ttotal = c1.getTotal()+total;\n\t}\n\treturn total;\n}",
"BigDecimal Spigot()\n\t{\n\t\t\n\t\tint increment \t= 20000;\n\t\tint max \t\t= 1000000;\n\t\t\n\t\tBigDecimal totResult = new BigDecimal(0.0);\n\t\t\n\t\tsumPart++;\n\t\t\n\t\tBigDecimal result1 = new BigDecimal(0.0);\n\t\t\n\t\tBigDecimal sixTeenPowStartVal = new BigDecimal(1.0);\n\t\tBigDecimal sixTeenPowIncrement = new BigDecimal(16).pow(increment);\n\t\t\n\t\tlong startTime = System.currentTimeMillis();\n\t\t\n\t\tfor(int i=0; i<max; i+=increment)\n\t\t{\n\t\t\tresult1 = result1.add( Spigot_Level_3(i, increment/5, 5, max, sixTeenPowStartVal) );\n\t\t\t\n\t\t\tlong timeTaken = System.currentTimeMillis() - startTime;\n\t\t\t\n\t\t\tSystem.out.println(\"Iteration : \"+(i+increment)+\" time : \"+timeTaken);\n\t\t\t\n\t\t\tsixTeenPowStartVal = sixTeenPowStartVal.multiply( sixTeenPowIncrement );\n\t\t}\n\t\tresult1 = result1.multiply( new BigDecimal(4) );\n\t\t\n\t\t\n\t\t\n\t\tsumPart++;\n\t\t\n\t\tBigDecimal result2 = new BigDecimal(0.0);\n\t\t\n\t\tsixTeenPowStartVal = new BigDecimal(1.0);\n\t\tsixTeenPowIncrement = new BigDecimal(16).pow(increment);\n\t\t\n\t\tfor(int i=0; i<max; i+=increment)\n\t\t{\n\t\t\tresult2 = result2.add( Spigot_Level_3(i, increment/5, 5, max, sixTeenPowStartVal) );\n\t\t\t\n\t\t\tlong timeTaken = System.currentTimeMillis() - startTime;\n\t\t\t\n\t\t\tSystem.out.println(\"Iteration : \"+(i+increment)+\" time : \"+timeTaken);\n\t\t\t\n\t\t\tsixTeenPowStartVal = sixTeenPowStartVal.multiply( sixTeenPowIncrement );\n\t\t}\t\t\n\t\t\n\t\tresult2 = result2.multiply( new BigDecimal(2) );\n\t\t\n\t\t\n\t\t\n\t\tsumPart++;\n\t\t\n\t\tBigDecimal result3 = new BigDecimal(0.0);\n\t\t\n\t\tsixTeenPowStartVal = new BigDecimal(1.0);\n\t\tsixTeenPowIncrement = new BigDecimal(16).pow(increment);\n\t\t\n\t\tfor(int i=0; i<max; i+=increment)\n\t\t{\n\t\t\tresult3 = result3.add( Spigot_Level_3(i, increment/5, 5, max, sixTeenPowStartVal) );\n\t\t\t\n\t\t\tlong timeTaken = System.currentTimeMillis() - startTime;\n\t\t\t\n\t\t\tSystem.out.println(\"Iteration : \"+(i+increment)+\" time : \"+timeTaken);\n\t\t\t\n\t\t\tsixTeenPowStartVal = sixTeenPowStartVal.multiply( sixTeenPowIncrement );\n\t\t}\t\t\n\t\t\n\t\t\n\t\t\n\t\tsumPart++;\n\t\t\n\t\tBigDecimal result4 = new BigDecimal(0.0);\n\t\t\n\t\tsixTeenPowStartVal = new BigDecimal(1.0);\n\t\tsixTeenPowIncrement = new BigDecimal(16).pow(increment);\n\t\t\n\t\tfor(int i=0; i<max; i+=increment)\n\t\t{\n\t\t\tresult4 = result4.add( Spigot_Level_3(i, increment/5, 5, max, sixTeenPowStartVal) );\n\t\t\t\n\t\t\tlong timeTaken = System.currentTimeMillis() - startTime;\n\t\t\t\n\t\t\tSystem.out.println(\"Iteration : \"+(i+increment)+\" time : \"+timeTaken);\n\t\t\t\n\t\t\tsixTeenPowStartVal = sixTeenPowStartVal.multiply( sixTeenPowIncrement );\n\t\t}\t\t\n\t\t\n\t\ttotResult = result1.subtract( result2.add( result3 ).add( result4 ) );\n\t\t\n\t\treturn totResult;\n\t}",
"public int getPrecios()\r\n {\r\n for(int i = 0; i < motos.size(); i++)\r\n {\r\n precio_motos += motos.get(i).getCoste();\r\n }\r\n \r\n return precio_motos;\r\n }",
"@Test\n public void test30() throws Throwable {\n Complex complex0 = new Complex((-2344.147405730839), 0.0);\n Complex complex1 = complex0.tanh();\n Complex complex2 = complex1.sin();\n Complex complex3 = complex0.createComplex(0.0, 0.0);\n Complex complex4 = complex1.multiply(0.0);\n Complex complex5 = complex0.tanh();\n Complex complex6 = complex0.subtract(complex1);\n int int0 = complex6.hashCode();\n Complex complex7 = complex0.atan();\n Complex complex8 = complex0.tan();\n ComplexField complexField0 = complex7.getField();\n Complex complex9 = complex6.sinh();\n Complex complex10 = complex0.add(complex6);\n Complex complex11 = complex7.exp();\n Complex complex12 = complex8.log();\n Complex complex13 = complex4.negate();\n Complex complex14 = complex7.sinh();\n Complex complex15 = complex3.atan();\n }",
"public static int tirarDados(){\n //elige valores aleatorios para los dados\n int dado1 = 1 + numerosAleatorios.nextInt(6);//<primer tiro del dado\n int dado2 = 1 + numerosAleatorios.nextInt(6);//< segundo tiro del dado\n \n int suma = dado1 + dado2;//< suma de los valores de los dados\n \n //muestra los resultados de este tiro\n System.out.printf(\"El jugador tiro %d + %d = %d%n\", dado1, dado2, suma);\n return suma;\n }",
"public void ex() {\n int inches = 86; \n int pie = 12; //1 pie = 12 inches \n //Operaciones para obtener la cantidad de pies e inches\n int cant = inches / pie; \n int res = inches % pie;\n //Muestra de resultados\n System.out.println(inches + \" pulgadas es equivalente a\\n \" + \n cant + \" pies \\n \" + res + \" pulgadas \");\n }",
"public float calcular(float dinero, float precio) {\n // Cálculo del cambio en céntimos de euros \n cambio = Math.round(100 * dinero) - Math.round(100 * precio);\n // Se inicializan las variables de cambio a cero\n cambio1 = 0;\n cambio50 = 0;\n cambio100 = 0;\n // Se guardan los valores iniciales para restaurarlos en caso de no \n // haber cambio suficiente\n int de1Inicial = de1;\n int de50Inicial = de50;\n int de100Inicial = de100;\n \n // Mientras quede cambio por devolver y monedas en la máquina \n // se va devolviendo cambio\n while(cambio > 0) {\n // Hay que devolver 1 euro o más y hay monedas de 1 euro\n if(cambio >= 100 && de100 > 0) {\n devolver100();\n // Hay que devolver 50 céntimos o más y hay monedas de 50 céntimos\n } else if(cambio >= 50 && de50 > 0) {\n devolver50();\n // Hay que devolver 1 céntimo o más y hay monedas de 1 céntimo\n } else if (de1 > 0){\n devolver1();\n // No hay monedas suficientes para devolver el cambio\n } else {\n cambio = -1;\n }\n }\n \n // Si no hay cambio suficiente no se devuelve nada por lo que se\n // restauran los valores iniciales\n if(cambio == -1) {\n de1 = de1Inicial;\n de50 = de50Inicial;\n de100 = de100Inicial;\n return -1;\n } else {\n return dinero - precio;\n }\n }",
"public void calcularEntropia(){\n //Verificamos si será con la misma probabilida o con probabilidad\n //especifica\n if(contadorEstados == 0){\n //Significa que será con la misma probabilidad por lo que nosotros\n //calcularemos las probabilidades individuales\n for(int i = 0; i < numEstados; i++){\n probabilidadEstados[i] = 1.0 / numEstados;\n }\n }\n for(int i = 0; i < numEstados; i++){\n double logEstado = Math.log10(probabilidadEstados[i]);\n logEstado = logEstado * (-1);\n double logDos = Math.log10(2);\n double divisionLog = logEstado / logDos;\n double entropiaTmp = probabilidadEstados[i] * divisionLog;\n resultado += entropiaTmp;\n }\n }",
"public int esquinas(){\n int v=0;\n if (fila==0 && columna==0){\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna+1)!=null && automata.getElemento(fila+1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n }\n else if(fila==0 && columna==15){\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna-1)!=null && automata.getElemento(fila+1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n }\n else if(fila==15 && columna==0){\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna+1)!=null && automata.getElemento(fila-1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n }\n else if(fila==15 && columna==15){\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna-1)!=null && automata.getElemento(fila-1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n }\n return v;\n }",
"int getQuantite();",
"int getQuantite();",
"public void sumar(){\n recogidaDatos();\n System.out.println(\"El resultado de la suma es: \" + (numerando1 + numerando2));\n System.out.println(\"***********************************\");\n\n }",
"public int limitesY(){\n int v=0;\n if (columna==0 && fila>0 && fila<15){\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna+1)!=null && automata.getElemento(fila+1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna+1)!=null && automata.getElemento(fila-1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n }\n else if (columna==15 && fila>0 && fila<15){\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna-1)!=null && automata.getElemento(fila+1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna-1)!=null && automata.getElemento(fila-1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n }\n else{v=esquinas();}\n return v;\n }",
"private void puntuacion(){\n timer++;\n if(timer == 10){\n contador++;\n timer = 0;\n }\n }",
"public void calcular() {\n int validar, c, d, u;\n int contrasena = 246;\n c = Integer.parseInt(spiCentenas.getValue().toString());\n d = Integer.parseInt(spiDecenas.getValue().toString());\n u = Integer.parseInt(spiUnidades.getValue().toString());\n validar = c * 100 + d * 10 + u * 1;\n //Si es igual se abre.\n if (contrasena == validar) {\n etiResultado.setText(\"Caja Abierta\");\n }\n //Si es menor nos indica que es mas grande\n if (validar < contrasena) {\n etiResultado.setText(\"El número secreto es mayor\");\n }\n //Si es mayot nos indica que es mas pequeño.\n if (validar > contrasena) {\n etiResultado.setText(\"El número secreto es menor\");\n }\n }",
"public abstract long mo9755t();",
"public void daiMedicina() {\n System.out.println(\"Vuoi curare \" + nome + \" per 200 Tam? S/N\");\n String temp = creaturaIn.next();\n if (temp.equals(\"s\") || temp.equals(\"S\")) {\n puntiVita += 60;\n soldiTam -= 200;\n }\n checkStato();\n }",
"@Override\n\tpublic double CalcularFuel() {\n\t\tdouble consumo=this.getCargaActual()*30+2*numEje;\n\t\treturn consumo;\n\t}",
"public int exec(GerenciadorPerifericos gerenciadorPerifericos, ParametroMacroOperacao param){\n\r\n\t\tBigDecimal quantidadeNecessaria = (BigDecimal)gerenciadorPerifericos.getCmos().ler(CMOS.QUANTIDADE_ITEM_NECESSARIO_PARA_SEPARACAO);\r\n\t\t\r\n\t\tTelaAVInicial tela = (TelaAVInicial) ServiceLocator.getInstancia().getTela(ConstantesTela.TELA_AV_INICIAL);\r\n\t\ttela.setCampoQuantidade(\"\");\r\n\t\ttela.setCampoDesconto(\"\");\r\n\t\tgerenciadorPerifericos.atualizaTela(tela);\r\n\r\n\t\tProduto produto = (Produto)gerenciadorPerifericos.getCmos().ler(CMOS.PRODUTO_ATUAL);\r\n\r\n\t\tBigDecimal quantidade = BigDecimal.ZERO;\r\n\t\t\r\n\t\tif (produto.getTipo().getId().equals(TipoProduto.UNIDADE_VARIAVEL)) {\r\n\t\t\tgerenciadorPerifericos.getCmos().gravar(CMOS.QUANTIDADE_ITEM, quantidadeNecessaria);\r\n\t\t} else {\r\n\t\t\ttry {\r\n\t\t\t\tEntradaDisplay entrada = gerenciadorPerifericos.lerDados( new int[] { Tecla.CODIGO_ENTER}, Display.MASCARA_NUMERICA, 8);\r\n\t\t\t\twhile (entrada.getTeclaFinalizadora() == Tecla.CODIGO_ENTER) {\r\n\t\t\t\t\tquantidade = new BigDecimal(entrada.getDado());\r\n\t\t\t\t\tif (quantidade.doubleValue() == BigDecimal.ZERO.doubleValue()) {\r\n\t\t\t\t\t\tgerenciadorPerifericos.getDisplay().setMensagem(MensagensAV.getMensagem(this, \"Quantidade Invalida [ESC]\"));\r\n\t\t\t\t\t\tgerenciadorPerifericos.esperaVolta();\r\n\t\t\t\t\t\tgerenciadorPerifericos.getDisplay().setMensagem(MensagensAV.getMensagem(this, \"Digite a Quantidade\"));\r\n\t\t\t\t\t\tentrada = gerenciadorPerifericos.lerDados( new int[] { Tecla.CODIGO_ENTER}, Display.MASCARA_NUMERICA, 8);\r\n\t\t\t\t\t} else if (quantidadeNecessaria.doubleValue() < quantidade.doubleValue()) {\r\n\t\t\t\t\t\tgerenciadorPerifericos.getDisplay().setMensagem(MensagensAV.getMensagem(this, \"Quantidade Superior [ESC]\"));\r\n\t\t\t\t\t\tgerenciadorPerifericos.esperaVolta();\r\n\t\t\t\t\t\tgerenciadorPerifericos.getDisplay().setMensagem(MensagensAV.getMensagem(this, \"Digite a Quantidade\"));\r\n\t\t\t\t\t\tentrada = gerenciadorPerifericos.lerDados( new int[] { Tecla.CODIGO_ENTER}, Display.MASCARA_NUMERICA, 8);\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (AppException e) {\r\n\t\t\t\treturn ALTERNATIVA_2;\r\n\t\t\t}\r\n\t\t}\r\n\t\tgerenciadorPerifericos.getCmos().gravar(CMOS.QUANTIDADE_ITEM, BigDecimal.ONE);\r\n\t\t\r\n\t\r\n\t\treturn ALTERNATIVA_1;\r\n\t}",
"public static void atacar(){\n int aleatorio; //variables locales a utilizar\n Random numeroAleatorio = new Random(); //declarando variables tipo random para aleatoriedad\n int ataqueJugador;\n //acciones de la funcion atacar sobre vida del enemigo\n aleatorio = (numeroAleatorio.nextInt(20-10+1)+10);\n ataqueJugador= ((nivel+1)*10)+aleatorio;\n puntosDeVidaEnemigo= puntosDeVidaEnemigo-ataqueJugador;\n \n }",
"@Override\n\tpublic double calculaTributos() {\n\t\treturn numeroDePacientes * 10;\n\t}"
] | [
"0.6039619",
"0.60232884",
"0.5997177",
"0.59716827",
"0.5954802",
"0.5927271",
"0.5865232",
"0.56842",
"0.5670034",
"0.566408",
"0.56298953",
"0.56230384",
"0.55941653",
"0.55867237",
"0.55851614",
"0.55840427",
"0.55701643",
"0.55614847",
"0.5543762",
"0.5521641",
"0.55198085",
"0.5508518",
"0.5508259",
"0.55030465",
"0.54980457",
"0.54911894",
"0.5467426",
"0.5458829",
"0.54493386",
"0.5443812",
"0.54399836",
"0.5437555",
"0.5433718",
"0.54255974",
"0.5416515",
"0.54112244",
"0.54001516",
"0.5397161",
"0.53949404",
"0.53899664",
"0.537914",
"0.53769994",
"0.5370432",
"0.53645235",
"0.5362341",
"0.5360285",
"0.5355916",
"0.5349152",
"0.5348494",
"0.53452367",
"0.5344129",
"0.53432965",
"0.53414935",
"0.5338473",
"0.53356034",
"0.53323483",
"0.5329538",
"0.53275955",
"0.5323212",
"0.5321006",
"0.5320194",
"0.53185445",
"0.5313547",
"0.5313421",
"0.5302926",
"0.53027785",
"0.52990407",
"0.5298369",
"0.529721",
"0.5295487",
"0.5290738",
"0.52839315",
"0.52809066",
"0.52800494",
"0.5276326",
"0.52749616",
"0.52659965",
"0.5262283",
"0.5247645",
"0.5245757",
"0.52456814",
"0.5244942",
"0.52435815",
"0.52386713",
"0.5233908",
"0.52309465",
"0.52296317",
"0.5225985",
"0.5225638",
"0.5224222",
"0.5224222",
"0.522253",
"0.521571",
"0.5215245",
"0.52125925",
"0.52101904",
"0.5208692",
"0.52039075",
"0.52012813",
"0.52012175",
"0.5199708"
] | 0.0 | -1 |
Metodos para 30 operaciones | public Boolean gorbiernoConPrestamos() {
if (super.getMundo().getGobierno().getPrestamos().size() > 0)
return true;
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"long getExpirations();",
"public void Millas_M(){\r\n System.out.println(\"Cálcular Metros o Kilometros de Millas Marinas\");\r\n System.out.println(\"Ingrese un valor en Millas Marinas\");\r\n cadena =numero.next(); \r\n valor = metodo.Doble(cadena);\r\n valor = metodo.NegativoD(valor);\r\n totalM = valor * 1852 ;\r\n Millas_KM(totalM);\r\n }",
"private void Calculation() {\n\t\tint calStd = jetztStunde + schlafStunde;\n\t\tint calMin = jetztMinute + schlafMinute;\n\n\t\ttotalMin = calMin % 60;\n\t\ttotalStunde = calStd % 24 + calMin / 60;\n\n\t}",
"public int getDuration( ) {\nreturn numberOfPayments / MONTHS;\n}",
"public static void dormir(long milis)\r\n\t{\r\n\t\tlong inicial=System.currentTimeMillis();\r\n\t\twhile(System.currentTimeMillis()-inicial < milis) {/*Esperar a que pase el tiempo*/}\r\n\t}",
"public int interval() {\n return 30;\n }",
"@Override\n public long minutosLibres(Integer idEstacion, Date inicio, Date fin) {\n long minutos = Math.abs(fin.getTime() - inicio.getTime())/60000;\n List<Ejecucion> ejecuciones = null;\n String sql = \"SELECT eje FROM Recurso rec, Ejecucion eje WHERE rec.estacion.idestaciones = :idEstacion AND eje.recurso.idrecurso = rec.idrecurso AND eje.fechafin >= :inicio AND eje.fechainicio < :fin\";\n ejecuciones = getCurrentSession().createQuery(sql).setParameter(\"idEstacion\", idEstacion).setParameter(\"inicio\", inicio).setParameter(\"fin\", fin).list();\n \n if (ejecuciones != null) {\n for (Ejecucion next : ejecuciones) {\n Date inicioEjecucion = next.getFechainicio();\n Date finEjecucion = next.getFechafin();\n if (inicioEjecucion.before(inicio) && finEjecucion.before(fin)) {\n //Comienza en inicio y finaliza en el fin de la ejecucion\n minutos = minutos - Math.abs(finEjecucion.getTime() - inicio.getTime())/60000;\n\n } else if (inicioEjecucion.after(inicio) && finEjecucion.before(fin)) {\n //Comienza en inicio de la ejecucion y finaliza en el fin de la ejecucion\n minutos = minutos - Math.abs(fin.getTime() - inicioEjecucion.getTime())/60000;\n\n }else if (inicioEjecucion.after(inicio) && finEjecucion.after(fin)){\n //Comienza en inicio de la ejecucion y finaliza en el fin\n minutos = minutos - Math.abs(fin.getTime() - inicioEjecucion.getTime())/60000;\n\n } else if (inicioEjecucion.before(inicio) && finEjecucion.after(fin)) {\n //Comienza en inicio y finaliza en el fin\n minutos = minutos - Math.abs(fin.getTime() - inicio.getTime())/60000;\n }\n /*if (inicioEjecucion.before(inicio) && finEjecucion.before(fin)) {\n //Comienza en inicio y finaliza en el fin de la ejecucion\n minutos = minutos + (fin.getTime() - inicio.getTime())/60000;\n\n } else if (inicioEjecucion.after(inicio) && finEjecucion.before(fin)) {\n //Comienza en inicio de la ejecucion y finaliza en el fin de la ejecucion\n minutos = minutos + ((fin.getTime() - inicio.getTime()) + (inicioEjecucion.getTime() - inicio.getTime()))/60000;\n\n }else if (inicioEjecucion.after(inicio) && finEjecucion.after(fin)){\n //Comienza en inicio de la ejecucion y finaliza en el fin\n minutos = minutos + Math.abs(inicioEjecucion.getTime() - inicio.getTime())/60000;\n\n }*/\n }\n }\n return minutos;\n }",
"public static int GetMills() {\r\n return (int) System.currentTimeMillis() - StartUpTimeMS;\r\n }",
"private void m128168k() {\n C42962b.f111525a.mo104671a(\"upload_page_duration\", C22984d.m75611a().mo59971a(\"first_selection_duration\", System.currentTimeMillis() - this.f104209S).mo59971a(\"page_stay_duration\", System.currentTimeMillis() - this.f104208R).f60753a);\n }",
"void forceStats(long operations, long hits);",
"public void calculoPersonal(){\n ayudantes = getAyudantesNecesarios();\n responsables = getResponsablesNecesarios();\n \n //Calculo atencion al cliente (30% total trabajadores) y RRPP (10% total trabajadores):\n \n int total = ayudantes + responsables;\n \n atencion_al_cliente = (total * 30) / 100;\n \n RRPP = (total * 10) / 100;\n \n //Creamos los trabajadores\n \n gestor_trabajadores.crearTrabajadores(RRPP, ayudantes,responsables,atencion_al_cliente);\n \n }",
"@Override\n public long minutosOcupados(Integer idEstacion, Date inicio, Date fin) {\n long minutos = 0;\n String sql = \"SELECT eje FROM Recurso rec, Ejecucion eje WHERE rec.idestacion = :idEstacion AND eje.idrecurso = rec.idrecurso AND eje.fechafin >= :inicio AND eje.fechainicio < :fin\";\n List<Ejecucion> ejecuciones = getCurrentSession().createQuery(sql).setParameter(\"idEstacion\", idEstacion).setParameter(\"inicio\", inicio).setParameter(\"fin\", fin).list();\n for (Ejecucion next : ejecuciones) {\n Date inicioEjecucion = next.getFechainicio();\n Date finEjecucion = next.getFechafin();\n if (inicioEjecucion.before(inicio) && finEjecucion.before(fin)) {\n //Comienza en inicio y finaliza en el fin de la ejecucion\n minutos = minutos + Math.abs(finEjecucion.getTime() - inicio.getTime())/60000;\n \n } else if (inicioEjecucion.after(inicio) && finEjecucion.before(fin)) {\n //Comienza en inicio de la ejecucion y finaliza en el fin de la ejecucion\n minutos = minutos + Math.abs(fin.getTime() - inicioEjecucion.getTime())/60000;\n \n }else if (inicioEjecucion.after(inicio) && finEjecucion.after(fin)){\n //Comienza en inicio de la ejecucion y finaliza en el fin\n minutos = minutos + Math.abs(fin.getTime() - inicioEjecucion.getTime())/60000;\n \n } else if (inicioEjecucion.before(inicio) && finEjecucion.after(fin)) {\n //Comienza en inicio y finaliza en el fin\n minutos = minutos + Math.abs(fin.getTime() - inicio.getTime())/60000;\n }\n }\n return minutos;\n }",
"public void temporizadorTiempo() {\n Timer timer = new Timer();\n tareaRestar = new TimerTask() {\n @Override\n public void run() {\n tiempoRonda--;\n }\n };\n timer.schedule(tareaRestar, 1,1000);\n }",
"@Test\n public void reduceNumber() throws Exception {\n Date date = new Date();\n int updateCount = seckillDao.reduceNumber(1000,date);\n System.out.println(updateCount);\n }",
"private void getAllTotesCenterTimer()\r\n\t{\r\n\t\tswitch(autoStep)\r\n\t\t{\r\n\t\t\tcase 0:\r\n\t\t\t{\r\n\t\t\t\tpickUpTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 1:\r\n\t\t\t{\r\n\t\t\t\tstrafeLeftTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 2:\r\n\t\t\t{\r\n\t\t\t\tpickUpTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 3:\r\n\t\t\t{\r\n\t\t\t\tstrafeRightTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 4:\r\n\t\t\t{\r\n\t\t\t\tstrafeRightTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 5:\r\n\t\t\t{\r\n\t\t\t\tpickUpTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 6:\r\n\t\t\t{\r\n\t\t\t\tdriveForwardTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\t\r\n\t}",
"void total() {\r\n t=m1+m2+m3;\r\n per=t/3;\r\n System.out.println(\"total :\"+t);\r\n System.out.println(\"persentage:\"+per);\r\n \r\n \r\n }",
"public void sumaPuntos() {\r\n int rojo = 0;\r\n int azul = 0;\r\n for (int i = 1; i < 10; i++) {\r\n\r\n if (tablero[1][i].getTipo().equals(\"Rojo\")) {\r\n rojo += tablero[1][i].getValor();\r\n }\r\n\r\n if (tablero[8][i].getTipo().equals(\"Azul\")) {\r\n azul += tablero[8][i].getValor();\r\n }\r\n\r\n }\r\n if (rojo > azul) {\r\n this.setResultado(\"Rojo\");\r\n this.agregarVictoria(jugadorRojo);\r\n }\r\n if (azul > rojo) {\r\n this.setResultado(\"Azul\");\r\n this.agregarVictoria(jugadorAzul);\r\n }\r\n \r\n this.setReplay(true);\r\n }",
"public void calculateMMage() {\n\t\t\n\t}",
"public void setMiliSeconds(int nt) {\r\n\t\tthis.milis = nt;\r\n\t}",
"long buscarUltimo();",
"public void hora()\n {\n horaTotal = HoraSalida - HoraLlegada;\n\n }",
"long getQuantite();",
"public Calculadora(){\n this.operador1 = 0.0;\n this.operador2 = 0.0;\n this.resultado = 0.0;\n }",
"private void puntuacion(){\n timer++;\n if(timer == 10){\n contador++;\n timer = 0;\n }\n }",
"public void ActualizadorOro(){\n\njavax.swing.Timer ao = new javax.swing.Timer(1000*60, new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n try {\n Connection conn = Conectar.conectar();\n Statement st = conn.createStatement();\n\n usuarios = new ArrayList<Usuario>();\n ResultSet rs = st.executeQuery(\"select * from usuarios\");\n while(rs.next()){\n usuarios.add(new Usuario(rs.getString(1), rs.getString(2), rs.getString(3), Integer.parseInt(rs.getString(4)), Integer.parseInt(rs.getString(5)), Integer.parseInt(rs.getString(6)), Integer.parseInt(rs.getString(7))));\n }\n\n //preparamos una consulta que nos lanzara el numero de minas por categoria que tiene cada usuario\n String consulta1 = \"select idEdificio, count(*) from regiones, edificiosregion\"+\n \" where regiones.idRegion=edificiosregion.idRegion\"+\n \" and propietario='\";\n\n String consulta2 = \"' and idEdificio in (1101,1102,1103,1104,1105)\"+\n \" group by idEdificio\";\n\n //recorremos toda la lista sumando el oro, dependiendo del numero de minas que posea\n ResultSet rs2 = null;\n for(Usuario usuario : usuarios){\n rs2 = st.executeQuery(consulta1 + usuario.getNick() + consulta2);\n int oro = 0;\n while(rs2.next()){\n System.out.println(Integer.parseInt(rs2.getString(1)));\n if(Integer.parseInt(rs2.getString(1)) == 1101){\n oro = oro + (rs2.getInt(2) * 100);\n }\n else if(Integer.parseInt(rs2.getString(1)) == 1102){\n oro = oro + (rs2.getInt(2) * 150);\n }\n else if(Integer.parseInt(rs2.getString(1)) == 1103){\n oro = oro + (rs2.getInt(2) * 300);\n }\n else if(Integer.parseInt(rs2.getString(1)) == 1104){\n oro = oro + (rs2.getInt(2) * 800);\n }\n else if(Integer.parseInt(rs2.getString(1)) == 1105){\n oro = oro + (rs2.getInt(2) * 2000);\n }\n }\n st.executeQuery(\"UPDATE usuarios SET oro = (SELECT oro+\" + oro + \" FROM usuarios WHERE nick ='\" + usuario.getNick() + \"'\"+\n \") WHERE nick = '\" + usuario.getNick() + \"'\");\n\n }\n st.close();\n rs.close();\n rs2.close();\n conn.close();\n\n } catch (SQLException ex) {\n System.out.println(ex.getMessage() + \" Fallo actualizar oro.\");\n }\n\n }\n });\n\n ao.start();\n}",
"protected int getTimesOptimized()\r\n {\r\n return timesOptimized;\r\n }",
"@Override\n public void cantidad_Ataque(){\n ataque=5+2*nivel+aumentoT;\n }",
"public void calcular()\r\n/* 530: */ {\r\n/* 531:556 */ this.facturaProveedorSRI.setMontoIva(this.facturaProveedorSRI.getBaseImponibleDiferenteCero().multiply(\r\n/* 532:557 */ ParametrosSistema.getPorcentajeIva().divide(BigDecimal.valueOf(100L))));\r\n/* 533: */ }",
"@Override\n\t\tpublic int getSpeed() {\n\t\t\treturn i+30;\n\t\t}",
"public double getEntreLlegadas() {\r\n return 60.0 / frecuencia;\r\n }",
"long getTotalDoExamTime();",
"public void ultimo(){//executa metodo para ultima pagina de registro de funcionarios\r\n\t\tdao.ultimo();\r\n\t}",
"public Long getTesuryo30() {\r\n return tesuryo30;\r\n }",
"private double getOEEPerformance(Batch batch) {\n return 1;\n }",
"public double getStockFinal(long pv) {\n float entree = 0 ;\n float sortie = 0 ;\n\n ArrayList<Produit> produits = null ;\n if (pv==0) produits = produitDAO.getAll();\n else produits = produitDAO.getAllByPv(pv) ;\n\n ArrayList<Mouvement> mouvements = null;\n\n double valeur = 0 ;\n double total = 0 ;\n double quantite = 0 ;\n double cmpu = 0 ;\n double restant = 0 ;\n double qsortie = 0 ;\n double qentree = 0 ;\n // Vente par produit\n Mouvement mouvement = null ;\n Operation operation = null ;\n\n for (int i = 0; i < produits.size(); i++) {\n try {\n mouvements = mouvementDAO.getManyByProductInterval(produits.get(i).getId_externe(),DAOBase.formatter2.parse(datedebut),DAOBase.formatter2.parse(datefin)) ;\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n if (mouvements != null){\n valeur = 0 ;\n quantite = 0 ;\n restant = 0 ;\n qentree = 0 ;\n cmpu = 0 ;\n qsortie = 0 ;\n\n for (int j = 0; j < mouvements.size(); j++) {\n mouvement = mouvements.get(j) ;\n operation = operationDAO.getOne(mouvement.getOperation_id()) ;\n if (operation==null || (operation.getAnnuler()==1 && operation.getDateannulation().before(new Date())) || operation.getTypeOperation_id().startsWith(OperationDAO.CMD)) continue;\n\n //if (pv!=0 && caisseDAO.getOne(operation.getCaisse_id()).getPointVente_id()!=pv) continue;\n if (j==0)\n if (mouvement.getRestant()==mouvement.getQuantite() && mouvement.getEntree()==0){\n restant = 0 ;\n }\n else restant = mouvement.getRestant() ;\n\n if (mouvement.getEntree()==0) {\n valeur -= mouvement.getPrixA() * mouvement.getQuantite() ;\n qentree += mouvement.getQuantite() ;\n cmpu = mouvement.getPrixA() ;\n }\n else {\n valeur += mouvement.getCmup() * mouvement.getQuantite() ;\n qsortie += mouvement.getQuantite() ;\n }\n /*\n if (restant!=0) cmpu = valeur / restant ;\n else cmpu = mouvement.getCmup() ;\n */\n }\n\n quantite = restant + qentree - qsortie ;\n total+=Math.abs(valeur) ;\n }\n }\n\n return total;\n }",
"long getSpokes();",
"public void calcularCost() {\r\n cost = 0;\r\n int a = 0;\r\n try {\r\n String r = DataR.toString()+ \" \" + horaR;\r\n String d = DataD.toString()+ \" \" + horaD;\r\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\r\n Date dateR = simpleDateFormat.parse(r);\r\n Date dateD = simpleDateFormat.parse(d);\r\n a = (int) ((dateD.getTime() - dateR.getTime())/(1000*3600));\r\n \r\n \r\n } catch (ParseException ex) {\r\n Logger.getLogger(Reserva.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n if(a > 24) {\r\n cost += 15*(a/(24));\r\n a -= (((int)(a/24))*24);\r\n }\r\n if(a%3600 == 0) {\r\n cost += 1;\r\n }\r\n if(a%3600 > 0) {\r\n cost += 1;\r\n }\r\n \r\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}",
"public void anualTasks(){\n List<Unit> units = unitService.getUnits();\n for(Unit unit: units){\n double amount = 10000; //@TODO calculate amount based on unit type\n Payment payment = new Payment();\n payment.setPaymentMethod(PaymentMethod.Cash);\n Calendar calendar = Calendar.getInstance();\n calendar.set(Calendar.MONTH, 1);\n calendar.set(Calendar.DATE, 30);\n payment.setDate(LocalDate.now());\n TimeZone tz = calendar.getTimeZone();\n ZoneId zid = tz == null ? ZoneId.systemDefault() : tz.toZoneId();\n payment.setAmount(amount);\n payment.setDueDate(LocalDateTime.ofInstant(calendar.toInstant(), zid).toLocalDate());\n payment.setClient(unit.getOwner());\n payment.setUnit(unit);\n payment.setRecurringInterval(365L);\n payment.setStatus(PaymentStatus.Pending);\n paymentService.savePayment(payment);\n }\n }",
"@Test public void shouldGive120MinFor350cent() {\r\n // Two hours: $1.5+2.0\r\n assertEquals( 2 * 60 /*minutes*/ , rs.calculateTime(350) ); \r\n }",
"public int getTotRuptures();",
"@Test public void shouldGive240MinFor950cent() {\r\n // Three hours: $1.5+2.0+3.0\r\n assertEquals( 4 * 60 /*minutes*/ , rs.calculateTime(950) ); \r\n }",
"public void calculos() {\n a = a1+a2+a3;\n b = b1+b2+b3;\n c = c1+c2+c3;\n }",
"public String dimeTuTiempo()\n {\n String cadResultado=\"\";\n if (horas<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+horas;\n cadResultado=cadResultado+\":\";\n if(minutos<10)\n {\n cadResultado=cadResultado+\"0\";\n }\n cadResultado=cadResultado+minutos;\n \n return cadResultado;\n }",
"@Override\n public double tuition(){\n return 2500;\n }",
"public Long numeroRegistrosFactura();",
"List<ResourceUsage> getLast30DaysMemoryInfo() {\n return daoInterface.getLast30DaysMemoryInfo();\n\n }",
"private static void calculDistanceTournees(List<Point> points, int nbTournees) {\n long time = System.currentTimeMillis();\n double distance = 0;\n Random rand = new Random(0);\n for(int i=0; i<nbTournees; i++) {\n distance += calculDistanceTourneeAlea(points, rand);\n }\n long deltaTime = System.currentTimeMillis() - time;\n System.out.println(\"Calcul de la moyenne des distances pour \"+nbTournees+ \" tournees\");\n System.out.println(\"La moyenne vaut : \"+distance/nbTournees);\n System.out.println(\"La moyenne est calculee en \"+deltaTime+\" ms\");\n }",
"public int getHowManyInPeriod();",
"public int getMiliSeconds() {\r\n\t\treturn milis;\r\n\t}",
"public void calculoSalarioBruto(){\n salarioBruto = hrTrabalhada * valorHr;\n }",
"private int getLatestRuns() {\n // return 90 for simplicity\n return 90;\n }",
"public void toilette() {\n if (!autoriseOperation()) {\n return;\n }\n incrSale(-3);\n incrHumeur(1);\n incrXp(1);\n\n setChanged();\n notifyObservers();\n }",
"public static void main(String[] args) {\n\t\t\n double p = 3048;\n int i;\n\t\t\n\t\t\n\t\tfor (i=1; i <=40; i++) {\n\t\t\t\n\t\t p = p * 2 / 3;\n\t\t \n\t\t}\n\t\t\n\t\tSystem.out.println(\"La distancia que habra recorrido la bola al momento de realizar su rebote numero 40 es de : \"+ p+ \" mts\");\n\n\t}",
"@Override\n public void runTasks() {\n BukkitTask task1 = new BukkitRunnable() {\n long start = 0;\n long now = 0;\n\n @Override\n public void run() {\n start = now;\n now = System.currentTimeMillis();\n long tdiff = now - start;\n\n if (tdiff > 0) {\n instTps = (float) (1000 / tdiff);\n }\n }\n }.runTaskTimer(Aurora.getInstance(), 0, 1);\n\n //Task to populate avgTps\n BukkitTask task2 = new BukkitRunnable() {\n ArrayList<Float> tpsList = new ArrayList<>();\n\n @Override\n public void run() {\n Float totalTps = 0f;\n\n tpsList.add(instTps);\n //Remove old tps after 15s\n if (tpsList.size() >= 15) {\n tpsList.remove(0);\n }\n for (Float f : tpsList) {\n totalTps += f;\n }\n avgTps = totalTps / tpsList.size();\n }\n }.runTaskTimerAsynchronously(Aurora.getInstance(), 20, 20);\n\n //Add to runnables[]\n runnables = new BukkitTask[]{task1, task2};\n }",
"private void getAllTotesLeftTimer()\r\n\t{\r\n\t\tswitch(autoStep)\r\n\t\t{\r\n\t\t\tcase 0:\r\n\t\t\t{\r\n\t\t\t\tpickUpTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 1:\r\n\t\t\t{\r\n\t\t\t\tstrafeRightTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 2:\r\n\t\t\t{\r\n\t\t\t\tpickUpTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 3:\r\n\t\t\t{\r\n\t\t\t\tstrafeRightTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 4:\r\n\t\t\t{\r\n\t\t\t\tpickUpTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcase 5:\r\n\t\t\t{\r\n\t\t\t\tdriveForwardTimer();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\t\r\n\t}",
"Period mo20733e();",
"public void setPeriod(int periodInYears) {\nnumberOfPayments = periodInYears * MONTHS;\n}",
"RESPONSE tally();",
"@Test\n\tvoid calcularSalarioConMasCuarentaHorasPagoPositivoTest() {\n\t\tEmpleadoPorComision empleadoPorComision = new EmpleadoPorComision(\"Eiichiro oda\", \"p33\", 400000, 500000);\n\t\tdouble salarioEsperado = 425000;\n\t\tdouble salarioEmpleadoPorComision = empleadoPorComision.calcularSalario();\n\t\tassertEquals(salarioEsperado, salarioEmpleadoPorComision);\n\n\t}",
"public static void main(String... args){\n\n long millisecsStart = System.currentTimeMillis();\n\n LongStream.range(0, 50).forEach(i -> {\n System.out.println( i + \" -> \" + calc(i));\n });\n\n long millisecsEnd = System.currentTimeMillis();\n\n System.out.println(\"Total Time Millis = \" + (millisecsEnd - millisecsStart));\n }",
"public int getDimes()\n {\n\treturn dimes;\n }",
"public int obtenerHoraMasAccesos()\n {\n int numeroAccesosMaximoEncontradosHastaAhoraParaUnaHora = 0;\n int horaConElNumeroDeAccesosMaximo = -1;\n\n if(archivoLog.size() >0){\n for(int horaActual=0; horaActual < 24; horaActual++){\n int totalDeAccesosParaHoraActual = 0;\n //Miramos todos los accesos\n for(Acceso acceso :archivoLog){\n if(horaActual == acceso.getHora()){\n totalDeAccesosParaHoraActual++;\n }\n }\n if(numeroAccesosMaximoEncontradosHastaAhoraParaUnaHora<=totalDeAccesosParaHoraActual){\n numeroAccesosMaximoEncontradosHastaAhoraParaUnaHora =totalDeAccesosParaHoraActual;\n horaConElNumeroDeAccesosMaximo = horaActual;\n }\n }\n }\n else{\n System.out.println(\"No hay datos\");\n }\n return horaConElNumeroDeAccesosMaximo;\n }",
"public void calcularIndicePlasticidad(){\r\n\t\tindicePlasticidad = limiteLiquido - limitePlastico;\r\n\t}",
"long getVoteFinalizeDelaySeconds();",
"public void utilization() {\r\n\t\tfloat fAktuell = this.aktuelleLast;\r\n\t\tfloat fMax = this.raumsonde.getMaxNutzlast();\r\n\t\tfloat prozent = fAktuell / fMax * 100;\r\n\r\n\t\tSystem.out.println(\" \" + fAktuell + \"/\" + fMax + \" (\" + prozent + \"%)\");\r\n\t}",
"public static void sueldoTotal(int hora, int sueldo){\n int resultado = 0;\r\n if(hora<=40){\r\n resultado = hora*sueldo;\r\n }\r\n if(hora>40 || hora<48){\r\n resultado = (40*sueldo)+(hora-40)*(sueldo*2);\r\n }\r\n if (hora>=48){\r\n resultado =(40*sueldo)+8*(sueldo*2)+(hora-48)*(sueldo*3);\r\n }\r\n System.out.println(\"El sueldo es de \"+ resultado);//Se muestra el sueldo total\r\n \r\n \r\n \r\n }",
"static void Jogo (String nome, String Classe)\n {\n Scanner scan = new Scanner (System.in);\n \n int pontos = 0;\n int pontuador = 0;\n int erro = 0;\n\n int [] aleatorio; // cria um vetor para pegar a resposta da função de Gerar Perguntas Aleatórias \n aleatorio = GerarAleatorio(); // Pega a Reposta da função\n \n \n long start = System.currentTimeMillis(); // inicia o Cronometro do Jogo\n \n for (int i = 0; i < aleatorio.length; i++) // Para cada cada pergunta Aleatoria do tamanho total de perguntas(7) ele chama a pergunta montada e compara as respostas do usario \n { // com a função que tem todas as perguntas certas\n \n System.out.println((i + 1) + \") \" + MostrarPergunta (aleatorio[i])); //chama a função que monta a pergunta, passando o numero da pergunta (gerado aleatoriamente) \n \n String Certa = Correta(aleatorio[i]); // pega a resposta correta de acordo com o numero com o numero da pergunta\n \n System.out.println(\"Informe sua resposta: \\n\");\n String opcao = scan.next();\n \n if (opcao.equals(Certa)) // compara a resposta do usuario com a Resposta correta guardada na função \"Correta\"\n { // marca os pontos de acordo com a Classe escolhida pelo jogador \n pontuador++;\n if (Classe.equals(\"Pontuador\")) \n {\n pontos = pontos + 100;\n \n System.out.println(\"Parabens você acertou!: \" + pontos + \"\\n\");\n\n if(pontuador == 3)\n {\n pontos = pontos + 300;\n \n System.out.println(\"Parabens você acertou, e ganhou um Bonus de 300 pontos. Seus Pontos: \" + pontos + \"\\n\");\n \n pontuador = 0;\n }\n }\n else\n {\n pontos = pontos + 100;\n System.out.println(\"Parabens você acertou. Seus pontos: \" + pontos + \"\\n\");\n } \n }\n \n else if (opcao.equals(Certa) == false) \n {\n erro++;\n \n if (Classe.equals(\"Errar\")) \n {\n if(erro == 3)\n {\n pontos = pontos + 50;\n \n System.out.println(\"Infelizmente Você errou. Mas acomulou 3 erros e recebeu um bonus de 50 pontos: \" + pontos + \"\\n\");\n \n erro = 0;\n }\n }\n else\n {\n pontuador = 0;\n \n pontos = pontos - 100; \n System.out.println(\"Que pena vc errou, Seus pontos atuais: \" + pontos + \"\\n\");\n }\n }\n }\n \n long end = System.currentTimeMillis(); //Encerra o Cronometro do jogador\n \n tempo(start, end, nome, pontos, Classe); //manda para a função Tempo, para calcular os minutos e segundos do usuario \n \n }",
"@Test\n\tvoid calcularSalarioSinVentasPagoPositivoTest() {\n\t\tEmpleadoPorComision empleadoPorComision = new EmpleadoPorComision(\"Hiromu Arakawa\", \"p24\", 400000, 0);\n\t\tdouble salarioEsperado = 400000;\n\t\tdouble salarioEmpleadoPorComision = empleadoPorComision.calcularSalario();\n\t\tassertEquals(salarioEsperado, salarioEmpleadoPorComision);\n\n\t}",
"@Test(timeout = 5000)\n public void dynamicTest5() {\n int[] hourlyVolume = generateRandomHourlyVolume(3000, 80, \"are you going to maths camp?\".hashCode());\n int[] fullServiceCapacity = {100,90,80,70,60,50,50,20,20,10};\n int[] regularServiceCapacity = {80,40,40,20,20,60};\n int[] minorServiceCapacity = {20, 40, 60, 60};\n int expectedResult = 33005;\n Assert.assertEquals(expectedResult, Dynamic.optimalLossDynamic(hourlyVolume, fullServiceCapacity, regularServiceCapacity, minorServiceCapacity));\n }",
"@Test public void shouldGive180MinFor650cent() {\r\n // Three hours: $1.5+2.0+3.0\r\n assertEquals( 3 * 60 /*minutes*/ , rs.calculateTime(650) ); \r\n }",
"public void imprimirResultados(){\n System.out.println(\"t (tiempo actual) \"+t);\n \n \n System.out.println(\"\\nGanancia total: $\"+R);\n System.out.println(\"Costos por mercaderia comprada: $\"+C);\n System.out.println(\"Costos por mantenimiento inventario: $\"+H);\n System.out.println(\"Ganancia promeio de la tienda por unidad de tiempo: $\"+(R-C-H)/T);\n \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 static void main(String[] args) {\n\n long a_i3 = 3;\n long a_i2 = 4;\n long a_i1 = 10;\n\n int MOD = 1000_000_000 + 7;\n\n for (int i = 4; i < 30; i++) {\n long a_i = (a_i1 + 2 * a_i2 + 4 * a_i3) % MOD;\n System.out.println(\"N: \" + i + \" --> \" + a_i);\n\n a_i3 = a_i2;\n a_i2 = a_i1;\n a_i1 = a_i;\n }\n\n old1();\n }",
"@Test\n\tpublic void test500000() {\n\n\tdouble tax = Main.calcTax(500_000.);\n\tassertEquals(20_250., tax, .01);\n\n\t}",
"@Override\n\tpublic void acelerar() {\n\t\t// TODO Auto-generated method stub\n\t\t\t\tvelocidadActual += 40;\n\t\t\t\tif(velocidadActual>250) {\n\t\t\t\t\tvelocidadActual = 250;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdepositoActual -= 10;\n\t\t\t\tSystem.out.println(\"Velocidad del ferrari: \"+velocidadActual);\n\t}",
"@Test\n\tpublic void testOneMillion() {\n\n\tdouble tax = Main.calcTax(1_000_000.);\n\tassertEquals(50_250., tax, .01);\n\n\t}",
"public static void main (String [] args){\n int a = 0;\n int b = 1;\n int c;\n \n for (int n = 0; n <= 30; n++) {\n if(n == 0){\n System.out.println(\"n=\"+n+\" -> \"+a);\n }else if (n == 1){\n System.out.println(\"n=\"+n+\" -> \"+b);\n }else{\n c = b + a;\n a = b;\n b = c;\n System.out.println(\"n=\"+n+\" -> \"+c);\n }\n \n }\n \n }",
"@Override\n public double total() {\n return 2500;\n }",
"private void actualizaPuntuacion() {\n if(cambiosFondo <= 10){\n puntos+= 1*0.03f;\n }\n if(cambiosFondo > 10 && cambiosFondo <= 20){\n puntos+= 1*0.04f;\n }\n if(cambiosFondo > 20 && cambiosFondo <= 30){\n puntos+= 1*0.05f;\n }\n if(cambiosFondo > 30 && cambiosFondo <= 40){\n puntos+= 1*0.07f;\n }\n if(cambiosFondo > 40 && cambiosFondo <= 50){\n puntos+= 1*0.1f;\n }\n if(cambiosFondo > 50) {\n puntos += 1 * 0.25f;\n }\n }",
"private void syncNumCopertiTotali() {\n int qPranzo = campoPranzo.getInt();\n int qCena = campoCena.getInt();\n campoTotale.setValore(qPranzo+qCena);\n }",
"public double calcTuition(){\r\n return getNumCredits() * COST_PER_CREDIT_HOUR;\r\n }",
"public float montos(){\n\tDefaultTableModel modelo = vc.returnModelo();\r\n\tint numeroFilas=modelo.getRowCount();\r\n\tfloat monto=0;\r\n\t\tif(modelo.getRowCount()!=0){\r\n\t\t\r\n\t\t\tfor (int i = 0; i < numeroFilas; i++) {\r\n\t\t\t\t\r\n\t\t\t\tmonto = monto + Float.valueOf(modelo.getValueAt(i, 5).toString());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tmonto=0;\r\n\t\t}\r\n\t\treturn monto;\r\n\t}",
"public synchronized double getTotal(){\n float CantidadTotal=0;\n Iterator it = getElementos().iterator();\n while (it.hasNext()) {\n ArticuloVO e = (ArticuloVO)it.next();\n CantidadTotal=CantidadTotal+(e.getCantidad()*e.getPrecio());\n}\n\n \n return CantidadTotal;\n\n }",
"int getEvalTm();",
"void MontaValores(){\r\n // 0;0;-23,3154166666667;-51,1447783333333;0 // Extrai os valores e coloca no objetos\r\n // Dis;Dir;Lat;Long;Velocidade\r\n // Quebra de Rota lat=-999.999 long=-999.999 ==> Marca ...\r\n \r\n int ind=0;\r\n NMEAS=NMEA.replace(\",\" , \".\");\r\n \r\n //1)\r\n dists=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind));\r\n Distancia=Double.valueOf(dists);\r\n ind=ind+dists.length()+1;\r\n \r\n //2)\r\n dirs=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Direcao=Double.valueOf(dirs);\r\n ind=ind+dirs.length()+1;\r\n \r\n //3)\r\n lats=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Lat=Double.valueOf(lats);\r\n ind=ind+lats.length()+1;\r\n \r\n //4)\r\n longs=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Long=Double.valueOf(longs);\r\n ind=ind+longs.length()+1;\r\n \r\n //5)\r\n vels=NMEAS.substring(ind,NMEAS.length());\r\n // Transforma de Knots para Km/h\r\n Velocidade=Double.valueOf(vels)/100*1.15152*1.60934;\r\n vels=String.valueOf(Velocidade);\r\n ind=ind+vels.length()+1;\r\n \r\n }",
"public int getTempoMili() {\n return tempoMili;\n }",
"private static float tock(){\n\t\treturn (System.currentTimeMillis() - startTime);\n\t}",
"public int getOperacion()\r\n/* 22: */ {\r\n/* 23:45 */ return this.operacion;\r\n/* 24: */ }",
"private void MontarTabela(String where) {\n \n int linha = 0;\n int coluna = 0;\n \n String offset = String.valueOf(getPaginacao());\n \n while(linha < 10){\n while(coluna < 7){\n tbConFin.getModel().setValueAt(\"\", linha, coluna);\n coluna++;\n }\n linha++;\n coluna = 0;\n }\n \n linha = 0;\n \n String rd_id\n ,rd_codico\n ,rd_nome\n ,rd_receita_despesa\n ,rd_grupo\n ,rd_fixa\n ,rd_ativo;\n \n \n \n try{\n ResultSet rsConFin = cc.stm.executeQuery(\"select * from v_receitadespesa \"+where+\" order by rd_codico limit 10 offset \"+offset);\n \n while ( rsConFin.next() ) {\n rd_id = rsConFin.getString(\"RD_ID\");\n rd_codico = rsConFin.getString(\"rd_codico\");\n rd_nome = rsConFin.getString(\"rd_nome\");\n rd_receita_despesa = getRecDesp(rsConFin.getString(\"rd_receita_despesa\"));\n rd_grupo = getSimNao(rsConFin.getString(\"rd_grupo\"));\n rd_fixa = getSimNao(rsConFin.getString(\"rd_fixa\"));\n rd_ativo = getSimNao(rsConFin.getString(\"rd_ativo\"));\n \n tbConFin.getModel().setValueAt(rd_id, linha, 0);\n tbConFin.getModel().setValueAt(rd_codico, linha, 1);\n tbConFin.getModel().setValueAt(rd_nome, linha, 2);\n tbConFin.getModel().setValueAt(rd_receita_despesa, linha, 3);\n tbConFin.getModel().setValueAt(rd_grupo, linha, 4);\n tbConFin.getModel().setValueAt(rd_fixa, linha, 5);\n tbConFin.getModel().setValueAt(rd_ativo, linha, 6);\n \n linha++;\n }\n \n \n if(linha <= 10){\n setMensagem(\"A Busca retornou \"+linha+\" registros!\");\n }\n \n if(linha < 10){\n setFimConsulta(true);\n }else{\n setFimConsulta(false);\n }\n \n }catch(SQLException e){\n JOptionPane.showMessageDialog(this, \"Erro ao Carregar informações de contas financeiras!\\n\"+e.getMessage());\n }\n \n }",
"public abstract void setTotalRunTime();",
"public static void ComienzaTimer(){\n timer = System.nanoTime();\n }",
"BigDecimal Spigot()\n\t{\n\t\t\n\t\tint increment \t= 20000;\n\t\tint max \t\t= 1000000;\n\t\t\n\t\tBigDecimal totResult = new BigDecimal(0.0);\n\t\t\n\t\tsumPart++;\n\t\t\n\t\tBigDecimal result1 = new BigDecimal(0.0);\n\t\t\n\t\tBigDecimal sixTeenPowStartVal = new BigDecimal(1.0);\n\t\tBigDecimal sixTeenPowIncrement = new BigDecimal(16).pow(increment);\n\t\t\n\t\tlong startTime = System.currentTimeMillis();\n\t\t\n\t\tfor(int i=0; i<max; i+=increment)\n\t\t{\n\t\t\tresult1 = result1.add( Spigot_Level_3(i, increment/5, 5, max, sixTeenPowStartVal) );\n\t\t\t\n\t\t\tlong timeTaken = System.currentTimeMillis() - startTime;\n\t\t\t\n\t\t\tSystem.out.println(\"Iteration : \"+(i+increment)+\" time : \"+timeTaken);\n\t\t\t\n\t\t\tsixTeenPowStartVal = sixTeenPowStartVal.multiply( sixTeenPowIncrement );\n\t\t}\n\t\tresult1 = result1.multiply( new BigDecimal(4) );\n\t\t\n\t\t\n\t\t\n\t\tsumPart++;\n\t\t\n\t\tBigDecimal result2 = new BigDecimal(0.0);\n\t\t\n\t\tsixTeenPowStartVal = new BigDecimal(1.0);\n\t\tsixTeenPowIncrement = new BigDecimal(16).pow(increment);\n\t\t\n\t\tfor(int i=0; i<max; i+=increment)\n\t\t{\n\t\t\tresult2 = result2.add( Spigot_Level_3(i, increment/5, 5, max, sixTeenPowStartVal) );\n\t\t\t\n\t\t\tlong timeTaken = System.currentTimeMillis() - startTime;\n\t\t\t\n\t\t\tSystem.out.println(\"Iteration : \"+(i+increment)+\" time : \"+timeTaken);\n\t\t\t\n\t\t\tsixTeenPowStartVal = sixTeenPowStartVal.multiply( sixTeenPowIncrement );\n\t\t}\t\t\n\t\t\n\t\tresult2 = result2.multiply( new BigDecimal(2) );\n\t\t\n\t\t\n\t\t\n\t\tsumPart++;\n\t\t\n\t\tBigDecimal result3 = new BigDecimal(0.0);\n\t\t\n\t\tsixTeenPowStartVal = new BigDecimal(1.0);\n\t\tsixTeenPowIncrement = new BigDecimal(16).pow(increment);\n\t\t\n\t\tfor(int i=0; i<max; i+=increment)\n\t\t{\n\t\t\tresult3 = result3.add( Spigot_Level_3(i, increment/5, 5, max, sixTeenPowStartVal) );\n\t\t\t\n\t\t\tlong timeTaken = System.currentTimeMillis() - startTime;\n\t\t\t\n\t\t\tSystem.out.println(\"Iteration : \"+(i+increment)+\" time : \"+timeTaken);\n\t\t\t\n\t\t\tsixTeenPowStartVal = sixTeenPowStartVal.multiply( sixTeenPowIncrement );\n\t\t}\t\t\n\t\t\n\t\t\n\t\t\n\t\tsumPart++;\n\t\t\n\t\tBigDecimal result4 = new BigDecimal(0.0);\n\t\t\n\t\tsixTeenPowStartVal = new BigDecimal(1.0);\n\t\tsixTeenPowIncrement = new BigDecimal(16).pow(increment);\n\t\t\n\t\tfor(int i=0; i<max; i+=increment)\n\t\t{\n\t\t\tresult4 = result4.add( Spigot_Level_3(i, increment/5, 5, max, sixTeenPowStartVal) );\n\t\t\t\n\t\t\tlong timeTaken = System.currentTimeMillis() - startTime;\n\t\t\t\n\t\t\tSystem.out.println(\"Iteration : \"+(i+increment)+\" time : \"+timeTaken);\n\t\t\t\n\t\t\tsixTeenPowStartVal = sixTeenPowStartVal.multiply( sixTeenPowIncrement );\n\t\t}\t\t\n\t\t\n\t\ttotResult = result1.subtract( result2.add( result3 ).add( result4 ) );\n\t\t\n\t\treturn totResult;\n\t}",
"private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}",
"public int calcMaxLife() {\n\t\treturn 10;\r\n\t}",
"public int precioFinal(){\r\n int monto=super.PrecioFinal();\r\n\t \t \r\n\t if (pulgadas>40){\r\n\t monto+=precioBase*0.3;\r\n\t }\r\n\t if (sintonizador){\r\n\t monto+=50;\r\n\t }\r\n\t \r\n\t return monto;\r\n\t }",
"private void obtenerGastosDiariosMes() {\n\t\t// Obtenemos las fechas actuales inicial y final\n\t\tCalendar calendar = Calendar.getInstance();\n calendar.setTime(new Date());\n int diaFinalMes = calendar.getActualMaximum(Calendar.DAY_OF_MONTH);\n\n\t\tList<Movimiento> movimientos = this.movimientoService.obtenerMovimientosFechaUsuario(idUsuario, LocalDate.of(LocalDate.now().getYear(),LocalDate.now().getMonthValue(),1),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tLocalDate.of(LocalDate.now().getYear(),LocalDate.now().getMonthValue(), diaFinalMes));\n\t\tList<Double> listaGastos = new ArrayList<Double>();\n\t\tList<String> listaFechas = new ArrayList<String>();\n\t\t\n\t\tDate fechaUtilizadaActual = null;\n\t\tdouble gastoDiario = 0;\n\t\t\n\t\tfor (Iterator iterator = movimientos.iterator(); iterator.hasNext();) {\n\t\t\tMovimiento movimiento = (Movimiento) iterator.next();\n\t\t\tif(fechaUtilizadaActual == null) { //Comprobamos si se acaba de entrar en el bucle para inicializar la fecha del movimiento\n\t\t\t\tfechaUtilizadaActual = movimiento.getFecha();\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// Si hemos cambiado de fecha del movimiento se procede a guardar los datos recogidos\n\t\t\tif(!fechaUtilizadaActual.equals(movimiento.getFecha())) {\n\t\t\t\tlistaGastos.add(gastoDiario);\n\t\t\t\tlistaFechas.add(fechaUtilizadaActual.getDate()+\"/\"+Utils.getMonthForInt(fechaUtilizadaActual.getMonth()).substring(0, 3));\n\t\t\t\tgastoDiario = 0; // Reiniciamos el contador del gasto\n\t\t\t\tfechaUtilizadaActual = movimiento.getFecha(); // Almacenemos la fecha del nuevo gasto\n\t\t\t}\n\t\t\t\n\t\t\t// Si el movimiento que se ha realizado es un gasto lo sumamos al contador de gasto\n\t\t\tif(movimiento.getTipo().equals(TipoMovimiento.GASTO)) {\n\t\t\t\tgastoDiario += movimiento.getCantidad();\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t// Comprobamos si es el ultimo item del iterador y almacenamos sus datos\n\t\t\tif(!iterator.hasNext()) {\n\t\t\t\tlistaGastos.add(gastoDiario);\n\t\t\t\tlistaFechas.add(fechaUtilizadaActual.getDate()+\"/\"+Utils.getMonthForInt(fechaUtilizadaActual.getMonth()).substring(0, 3));\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\tthis.listadoGastosDiariosDiagrama = new Double[listaGastos.size()];\n\t\tthis.listadoGastosDiariosDiagrama = listaGastos.toArray(this.listadoGastosDiariosDiagrama);\n\t\tthis.fechasDiagrama = new String[listaFechas.size()];\n\t\tthis.fechasDiagrama = listaFechas.toArray(this.fechasDiagrama);\n\t\t\n\t}",
"public void Times() \n {\n if(status.getStatus_NUM() == 1 || status.getStatus_NUM() == 2 || status.getStatus_NUM() == 3)\n { //Waiting Time\n startWaitingTime = System.nanoTime();\n if(status.getStatus_NUM() != 1 || status.getStatus_NUM() != 2 || status.getStatus_NUM() != 3)\n {\n endWaitingTime = System.nanoTime();\n }\n \n totalWaitingTime += endWaitingTime - startWaitingTime;\n }\n //When it is running status \n else if(status.getStatus_NUM() == 0)\n {\n //Running Time\n startRunningTime = System.nanoTime();\n //Add a process\n if(status.getStatus_NUM() != 0)\n {\n endRunningTime = System.nanoTime();\n }\n \n totalRunningTime += endRunningTime - startRunningTime;\n }\n //When it is terminated\n else\n {\n System.out.println(\"Terminated\");\n System.out.println(\"Total Running Time : \" + totalRunningTime);\n System.out.println(\"Total Waiting Time : \" + totalWaitingTime);\n }\n }",
"@Override\r\n public LocalDateTime bake_350degrees(LocalDateTime time) {\r\n System.out.println(\"Baking \"+quantity+\" batch(es) of cookies\");\r\n for(int count = 1; count <= quantity; count++) {\r\n \t time = time.plusMinutes(20);\r\n }\r\n return time;\r\n }",
"@Override\r\n\tpublic float chekearDatos(){\r\n\t\t\r\n\t\tfloat monto = 0f;\r\n\t\tfloat montoPorMes = creditoSolicitado/plazoEnMeses;\r\n\t\tdouble porcentajeDeSusIngesosMensuales = (cliente.getIngresosMensuales()*0.7);\r\n\t\t\r\n\t\tif(cliente.getIngresoAnual()>=15000f && montoPorMes<=porcentajeDeSusIngesosMensuales){\r\n\t\t\t\r\n\t\t\tmonto = this.creditoSolicitado;\r\n\t\t\tsetEstadoDeSolicitud(true);\r\n\t\t}\t\r\n\t\t\r\n\t\t\r\n\t\treturn monto;\r\n\t}",
"public int getTotalTime();"
] | [
"0.57848865",
"0.5751729",
"0.5724899",
"0.5594225",
"0.55455166",
"0.55100465",
"0.54704493",
"0.5446098",
"0.5442361",
"0.54396695",
"0.5423363",
"0.5416009",
"0.54154396",
"0.53986174",
"0.5392554",
"0.53893524",
"0.537341",
"0.53428555",
"0.53394854",
"0.5321044",
"0.53096324",
"0.5288822",
"0.52784747",
"0.52770597",
"0.5242771",
"0.52247065",
"0.52220875",
"0.5215092",
"0.52023685",
"0.5198108",
"0.51926965",
"0.51906866",
"0.51896024",
"0.51803464",
"0.51751363",
"0.5165371",
"0.5163897",
"0.51580167",
"0.5147919",
"0.5142944",
"0.5122062",
"0.5117765",
"0.50993943",
"0.5090986",
"0.50892234",
"0.50860375",
"0.50725937",
"0.50694835",
"0.5068059",
"0.50619173",
"0.5052957",
"0.50480986",
"0.5039636",
"0.50388646",
"0.5030086",
"0.50268507",
"0.50218964",
"0.5020139",
"0.5019108",
"0.50153923",
"0.5011141",
"0.50108564",
"0.5008678",
"0.50050926",
"0.50023377",
"0.50020623",
"0.50018007",
"0.50001967",
"0.49932182",
"0.4990981",
"0.4989582",
"0.49858102",
"0.4985434",
"0.49821815",
"0.49723476",
"0.49716738",
"0.49706614",
"0.49692002",
"0.4967634",
"0.49645558",
"0.49644202",
"0.4959505",
"0.4941473",
"0.49410966",
"0.49388936",
"0.49385405",
"0.49359083",
"0.49294183",
"0.49270257",
"0.49256605",
"0.4924839",
"0.4921553",
"0.49130154",
"0.49098104",
"0.49094945",
"0.4904587",
"0.49028748",
"0.48944902",
"0.48893768",
"0.488658",
"0.48800957"
] | 0.0 | -1 |
Validaciones realizadas en cada persona porque | public Boolean iniciarOperacionesPersona5(Persona p) {
p.aumentarContadorOperaciones5();
if (!p.getPersonaSaludable()) {
if (p.getContadorOperaciones5() == 5) {
p.resetearContadorOperaciones5();
return true;
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void validate() {\n\t\t// just in case;\n\t\tfor (int i=0;i<NR_OF_FIELDS; i++) {\n\t\t\tvalid[i] = \"0\";\n\t\t}\n\t\t//\n\t\t// Validate name and surname:\n\t\t//\n\t\tif ( ! this.isUpperAlpha(nume)) {\n\t\t\tfields[0] = \"1\";\n\t\t}\n\t\t\n\t\tif ( ! this.isUpperAlphaWithSpace(nume)) {\n\t\t\tfields[1] = \"1\";\n\t\t}\n\t\t//\n\t\t// validate seria\n\t\t//\n\t\tvalid[2] = \"1\";\t\t\t\t\t\t\t// presupun ca seria este invalida, si incerc sa o validez\n\t\tfor (int i=0; i<seriiBuletin.length; i++) {\n\t\t\tif (seriiBuletin[i].equals(seria)) {\n\t\t\t\tvalid[2] = \"0\";\n\t\t\t}\n\t\t}\n\t\t//\n\t\t// validate numarul\n\t\t//\n\t\ttry {\n\t\t\tvalid[3] = \"1\";\n\t\t\tint nr = Integer.valueOf(numarul);\n\t\t\tif ( nr >= 100000 && nr <= 999999 ) {\n\t\t\t\tvalid[3] = \"0\";\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLog.d(TAG, \"Error validating seria.\");\n\t\t}\n\n\t\t//\n\t\t// validate sex\n\t\t//\n\t\tif ( ! (sex == 'M' || sex == 'F')) {\n\t\t\tvalid[6] = \"1\";\n\t\t}\n\t\t//\n\t\t// Validate valabilitate\n\t\t//\n\t\tif ( ! isNumber(this.valabilitate)) {\n\t\t\tvalid[7] = \"1\";\n\t\t}\n\t\t//\n\t\t// validate CNP\n\t\t//\n\t\tif ( ! (isNumber(CNP) && isValidCNP(CNP))) {\n\t\t\tvalid[8] = \"1\";\n\t\t}\n\t\t\n\t}",
"public void GuardarPersonas()\r\n {\r\n System.out.print(\"Inserte su numero de cedula: \");\r\n setNumeroId(entrada.nextLine());\r\n System.out.print(\"Inserte su Primer Nombre: \");\r\n setNombre(entrada.nextLine());\r\n System.out.print(\"Inserte su Primer Apellido: \");\r\n setPrimerApellido(entrada.nextLine());\r\n System.out.print(\"Inserte su Segundo Apellido: \");\r\n setSegundoApellido(entrada.nextLine());\r\n System.out.print(\"Inserte su edad: \");\r\n setEdad(Integer.parseInt(entrada.nextLine()));\r\n System.out.print(\"Inserte su peso: \");\r\n setPeso(Float.valueOf(entrada.nextLine()));\r\n \r\n }",
"public void ValidandoPerfil()\r\n\t{\n\t\t\r\n\t}",
"public boolean isValidPerson() {\n\t \n\t final Validator validator = Validation.buildDefaultValidatorFactory().getValidator();\n\t \n\t final Set<ConstraintViolation<Pessoa>> violations = validator.validate(this);\n\t \n\t errors = \"\";\n\t if (!violations.isEmpty()) {\n\t for (ConstraintViolation violation : violations) {\n\t \tif(!errors.isEmpty()){\n\t \t\terrors += System.lineSeparator();\n\t \t}\n\t \t\n\t errors += \"- \" + violation.getMessage();\n\t }\n\t return false;\n\t }\n\t return true;\n\t}",
"public void validar_campos(){\r\n\t\tfor(int i=0;i<fieldNames.length-1;++i) {\r\n\t\t\tif (jtxt[i].getText().length() > 0){\r\n\t\t\t}else{\r\n\t\t\t\tpermetir_alta = 1;\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tif((CmbPar.getSelectedItem() != null) && (Cmbwp.getSelectedItem() != null) && (CmbComp.getSelectedItem() != null) && (jdc1.getDate() != null) && (textdescripcion.getText().length() > 1) && (textjustificacion.getText().length() > 1)){\t\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tpermetir_alta = 1;\r\n\t\t}\r\n\t\t\r\n\t}",
"private void validarObligaciones(TituloPropiedad pTitulo, Persona pPersonaAnterior, Persona pPersonaNueva) {\n\t\tList<ObligacionRfr> locListaObligacionesParcela = Criterio.getInstance(entityManager, DocHabEspecializadoRfr.class)\n\t\t\t\t.add(Restriccion.IGUAL(\"parcela\", ((TituloPropiedadParcelario) pTitulo).getParcela())).setProyeccion(Proyeccion.PROP(\"obligacion\")).list();\n\t\tif(!locListaObligacionesParcela.isEmpty()) {\n\t\t\t// ID = 0 significa que es una persona temporal, usada en la\n\t\t\t// migración, y no debería generar actualización de deudas,\n\t\t\t// solo cambiar el titular.\n\t\t\t// if (pPersonaAnterior.getIdPersona() == 0) {\n\t\t\tfor(ObligacionRfr cadaObligacion : locListaObligacionesParcela) {\n\t\t\t\tcadaObligacion.setPersona(pPersonaNueva);\n\t\t\t}\n\t\t\t// }\n\t\t}\n\t}",
"public void agregarPersona(PersonaDTO persona, Set<TelefonoDTO> telefonos, Set<DireccionDTO> direcciones,\n\t\t\tSet<CorreoElectronicoDTO> correos) throws CustomErrorException, CustomValidationException {\n\t\ttry {\n\t\t\t// Vemos si tiene lo necesario, sino salimos\n\t\t\tif (telefonos.size() == 0) {\n\t\t\t\tthrow new CustomValidationException(CustomValidationException.TELEFONO_NECESARIO);\n\t\t\t}\n\t\t\tif (direcciones.size() == 0) {\n\t\t\t\tthrow new CustomValidationException(CustomValidationException.DIRECCION_NECESARIA);\n\t\t\t}\n\t\t\tif (correos.size() == 0) {\n\t\t\t\tthrow new CustomValidationException(CustomValidationException.CORREO_NECESARIO);\n\t\t\t}\n\t\t\t//Evaluamos si se trata de un modificacion\n\t\t\tif (persona.getIdPersona() == null) {\n\t\t\t\t//Es un alta\n\t\t\t\t//Persistir las entidades agregadas\n\t\t\t\tfor (TelefonoDTO t: telefonos) {\n\t\t\t\t\tt.setIdTelefono(persistirTelefono(Converter.toEntity(t))); \n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor (DireccionDTO d: direcciones) {\n\t\t\t\t\td.setIdDireccion(persistirDireccion(Converter.toEntity(d)));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor (CorreoElectronicoDTO c: correos) {\n\t\t\t\t\tc.setIdCorreoElectronico(persistirCorreoElectronico(Converter.toEntity(c)));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Las entidades están peristentes, asignarlas a la persona\n\t\t\t\tpersona.setTelefonos(telefonos);\n\t\t\t\tpersona.setCorreos(correos);\n\t\t\t\tpersona.setDirecciones(direcciones);\n\t\t\t\t\n\t\t\t\t//persistir la persona\n\t\t\t\tgPersona.add(Converter.toEntity(persona));\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tmodificarPersona(persona, telefonos, direcciones, correos);\n\t\t\t}\n\t\t\t\n\t\t} catch(CustomErrorException cer) {\n\t\t\tthrow cer;\n\t\t} catch (Exception e) {\n\t\t\tif(persona.getIdPersona() == null) {\n\t\t\t\ttry {\n\t\t\t\t\tfor (TelefonoDTO t : telefonos) {\n\t\t\t\t\t\tgTelefono.delete(Converter.toEntity(t));\n\t\t\t\t\t}\n\t\t\t\t\tfor (DireccionDTO d : direcciones) {\n\t\t\t\t\t\tgDireccion.delete(Converter.toEntity(d));\n\t\t\t\t\t}\n\t\t\t\t\tfor (CorreoElectronicoDTO c : correos) {\n\t\t\t\t\t\tgCorreoElectronico.delete(Converter.toEntity(c));\n\t\t\t\t\t} \n\t\t\t\t}catch (CustomErrorException cer) {\n\t\t\t\t\tthrow cer;\n\t\t\t\t}catch (Exception e2) {\n\t\t\t\t\tthrow new CustomErrorException(CustomErrorException.ERROR_SERVICIO,this.getClass().getSimpleName(),e.getStackTrace());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void modificarPersona(PersonaDTO persona, Set<TelefonoDTO> telefonos, Set<DireccionDTO> direcciones,\n\t\t\tSet<CorreoElectronicoDTO> correos) throws CustomValidationException, CustomErrorException, Exception {\n\t\t//Recuperamos la persona\n\t\t//Verificamos cambio de DNI\n\t\tif (persona.getIdPersona() == null) {throw new CustomErrorException(CustomErrorException.ID_INEXISTENTE_PARA_MODIFICAR,this.getClass().getSimpleName());}\n\t\t\n\t\tPersonaDTO personaPersistente = obtenerPersona(persona.getIdPersona());\n\t\tif (!personaPersistente.getNroDni().equals(persona.getNroDni())) {\n\t\t\tif (gPersona.existePersonaPorDNI(persona.getNroDni())) {\n\t\t\t\tthrow new CustomValidationException(CustomValidationException.DNI_REPETIDO);\n\t\t\t};\n\t\t}\n\t\t\n\t\tSet<TelefonoDTO> nuevosTelefonos = new HashSet<TelefonoDTO>();\n\t\teliminarBorrados(telefonos,personaPersistente.getTelefonos());\n\t\tnuevosTelefonos.addAll(agregarNuevos(telefonos));\n\t\t//vuelvo a setear la lista en persona\n\t\tpersona.setTelefonos(null);\n\t\tSet <TelefonoDTO> telefonosPersona = new HashSet<TelefonoDTO>();\n\t\ttelefonosPersona.addAll(nuevosTelefonos);\n\t\tpersona.setTelefonos(telefonosPersona);\n\t\t\n\t\tSet<DireccionDTO> nuevasDirecciones = new HashSet<DireccionDTO>();\n\t\teliminarBorrados(direcciones, personaPersistente.getDirecciones());\n\t\tnuevasDirecciones.addAll(agregarNuevos(direcciones));\n\t\tpersona.setDirecciones(null);\n\t\tSet<DireccionDTO> direccionesPersona = new HashSet<DireccionDTO>();\n\t\tdireccionesPersona.addAll(nuevasDirecciones);\n\t\tpersona.setDirecciones(direccionesPersona); \n\t\t\n\t\tSet<CorreoElectronicoDTO> nuevosCorreos = new HashSet<CorreoElectronicoDTO>();\n\t\teliminarBorrados(correos, personaPersistente.getCorreos());\n\t\tnuevosCorreos.addAll(agregarNuevos(correos));\n\t\t//vuelvo a setear la lista en persona\n\t\tpersona.setCorreos(null);\n\t\tSet<CorreoElectronicoDTO> correosPersona = new HashSet<CorreoElectronicoDTO>();\n\t\tcorreosPersona.addAll(nuevosCorreos);\n\t\tpersona.setCorreos(correosPersona); \n\t\t\n\t\t// Llamo a modify para cerrar la operación;\n\t\tfor (TelefonoDTO t: telefonos) {\n\t\t\tt.setIdTelefono(modificarTelefono(Converter.toEntity(t))); \n\t\t}\n\t\t\n\t\tfor (DireccionDTO d: direcciones) {\n\t\t\td.setIdDireccion(modificarDireccion(Converter.toEntity(d)));\n\t\t}\n\t\t\n\t\tfor (CorreoElectronicoDTO c: correos) {\n\t\t\tc.setIdCorreoElectronico(modificarCorreoElectronico(Converter.toEntity(c)));\n\t\t}\n\t\t\n\t\tgPersona.modify(Converter.toEntity(persona));\n\t\t\n\t}",
"public void validarPostagem() {\n\t\t// validando se o nome motorista ou carona foram preenchidos\n\t\tint verif = 0;\n\t\ttry {\n\t\t\tif (txtCarona.getText() == null\n\t\t\t\t\t|| txtCarona.getText().trim().equals(\"\")) {\n\n\t\t\t\tverif++;\n\n\t\t\t}\n\t\t\tif (txtMotorista.getText() == null\n\t\t\t\t\t|| txtMotorista.getText().trim().equals(\"\")) {\n\n\t\t\t\tverif++;\n\n\t\t\t}\n\t\t\tif (verif == 2) {\n\t\t\t\tthrow new IllegalArgumentException();\n\t\t\t}\n\n\t\t\tif (txtDestino.getText() == null\n\t\t\t\t\t|| txtDestino.getText().trim().equals(\"\")) {\n\t\t\t\tthrow new IllegalArgumentException();\n\t\t\t}\n\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tJOptionPane\n\t\t\t\t\t.showMessageDialog(\n\t\t\t\t\t\t\tnull,\n\t\t\t\t\t\t\t\"Para postar no quadro é necessário informar nome (motorista ou passageiro) \"\n\t\t\t\t\t\t\t\t\t+ \"\t\t\t\t\t\t\te local. \\n Por favor certifique se os campos foram preenchidos e tente novamente.\");\n\t\t}\n\n\t}",
"public void registrarPersona() {\n\t\ttry {\n\t\t\tif (validaNumDocumento(getNumDocumentPersona())) {\n\t\t\t\t\tif (validaDireccion()) {\n\t\t\t\t\t\tif (validaApellidosNombres()) {\n\t\t\t\t\t\t\tPaPersona persona = new PaPersona();\n\t\t\t\t\t\t\tif (getActualizaPersona() != null && getActualizaPersona().equals(\"N\")) {\n\t\t\t\t\t\t\t\tpersona.setPersonaId(Constante.RESULT_PENDING);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tpersona.setPersonaId(getPersonaId() == null ? Constante.RESULT_PENDING: getPersonaId());\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tpersona.setTipoDocumentoId(Integer.valueOf(mapTipoDocumento.get(getTipoDocumento())));\n\t\t\t\t\t\t\tpersona.setNroDocIdentidad(getNumDocumentPersona());\n\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\tif (persona.getTipoDocumentoId() == Constante.TIPO_DOCUMENTO_RUC_ID) {\n\t\t\t\t\t\t\t\tpersona.setRazonSocial(getRazonSocial());\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tpersona.setPrimerNombre(getPrimerNombre());\n\t\t\t\t\t\t\t\tpersona.setSegundoNombre(getSegundoNombre());\n\t\t\t\t\t\t\t\tpersona.setApePaterno(getApellidoPaterno());\n\t\t\t\t\t\t\t\tpersona.setApeMaterno(getApellidoMaterno());\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tPaDireccion direccion = new PaDireccion();\n\t\t\t\t\t\t\tdireccion.setDireccionId(getDireccionId() == null ? Constante.RESULT_PENDING: getDireccionId());\n\t\t\t\t\t\t\tif (getSelectedOptBusc().intValue() == 1) {\n\t\t\t\t\t\t\t\tdireccion.setTipoViaId(mapGnTipoVia.get(getCmbtipovia().getValue()));\n\t\t\t\t\t\t\t\tdireccion.setViaId(mapGnVia.get(getCmbvia().getValue()));\n\t\t\t\t\t\t\t\tdireccion.setLugarId(null);\n\t\t\t\t\t\t\t\tdireccion.setSectorId(null);\n\t\t\t\t\t\t\t\tdireccion.setNumero(numero);\n\t\t\t\t\t\t\t\tdireccion.setPersonaId(persona.getPersonaId());\n\n\t\t\t\t\t\t\t\tString direccionCompleta = papeletaBo.getDireccionCompleta(direccion,mapIGnTipoVia, mapIGnVia);\n\t\t\t\t\t\t\t\tif (direccionCompleta != null && direccionCompleta.trim().length() > 0) {\n\t\t\t\t\t\t\t\t\tdireccion.setDireccionCompleta(direccionCompleta);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tdireccion.setDireccionCompleta(getDireccionCompleta());\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tBuscarPersonaDTO personaDto = getPersonaDto(persona, direccion);\n\t\t\t\t\t\t\tString personaPapeleta = (String) getSessionMap().get(\"personaPapeleta\");\n\t\t\t\t\t\t\tif (personaPapeleta != null\n\t\t\t\t\t\t\t\t\t&& personaPapeleta.equals(\"I\")) {\n\t\t\t\t\t\t\t\tRegistroPapeletasManaged registro = (RegistroPapeletasManaged) getManaged(\"registroPapeletasManaged\");\n\t\t\t\t\t\t\t\tregistro.setDatosInfractor(personaDto);\n\t\t\t\t\t\t\t} else if (personaPapeleta != null\n\t\t\t\t\t\t\t\t\t&& personaPapeleta.equals(\"P\")) {\n\t\t\t\t\t\t\t\tRegistroPapeletasManaged registro = (RegistroPapeletasManaged) getManaged(\"registroPapeletasManaged\");\n\t\t\t\t\t\t\t\tregistro.setDatosPropietario(personaDto);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tlimpiar();\n\t\t\t\t\t\t\tesContribuyente = (Boolean) getSessionMap().get(\"esContribuyente\");\n\t\t\t\t\t\t\tif (esContribuyente == true) {\t\n\t\t\t\t\t\t\t\tWebMessages.messageError(\"Es un Contribeyente s�lo se Actualiz� la Direcci�n para Papeletas, los otros datos es por DJ\");\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tWebMessages\n\t\t\t\t\t\t\t\t\t.messageError(\"Apellidos y nombres no valido\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tWebMessages\n\t\t\t\t\t\t\t\t.messageError(\"Especifique la direccion de la persona\");\n\t\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tWebMessages\n\t\t\t\t\t\t.messageError(\"Número de documento de identidad no valido\");\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void validaDados(int numeroDePacientes, double gastosEmCongressos) throws Exception{\n\t\tif(numeroDePacientes >= 0) {\n\t\t\tthis.numeroDePacientes = numeroDePacientes;\n\t\t}else {\n\t\t\tthrow new Exception(\"O numero de pacientes atendidos pelo medico nao pode ser negativo.\");\n\t\t}\n\t\tif(gastosEmCongressos >= 0) {\n\t\t\tthis.gastosEmCongressos = gastosEmCongressos;\n\t\t}else {\n\t\t\tthrow new Exception(\"O total de gastos em congressos do medico nao pode ser negativo.\");\n\t\t}\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"@Override\n\tpublic void validaDatos() {\n\t\t\n\t}",
"private void validate() {\n\n etCardNumber.validate();\n\n etCardExpiryDate.validate();\n\n etCardCvv.validate();\n\n etCardHolderName.validate();\n\n etPhoneNumber.validate();\n\n etCustomerName.validate();\n }",
"private void validarhorarioconotroshorariosactivos(HorarioAsignado horarioasignado, List<HorarioAsignado> horarios) throws LogicaException, ParseException, DatoException {\nGregorianCalendar startasignado=new GregorianCalendar();\nDate startdateasignado= new Date(horarioasignado.getValidezinicio().getTime());\nstartasignado.setTime(startdateasignado);\nGregorianCalendar endasignado=new GregorianCalendar();\nDate enddateasignado= new Date(horarioasignado.getValidezfin().getTime());\nendasignado.setTime(enddateasignado);\n\nint tempfrecasignado = horarioasignado.getHorario().getIdfrecuenciaasignacion().intValue();\nList<Integer> diadelasemanaasignado = diadelasemana(tempfrecasignado);\nList<HashMap<String, Object>> dataasignado = Util.diferenciaEnDiasconFrecuencia(startasignado, endasignado,diadelasemanaasignado,tempfrecasignado);\n\n\n\n\nfor(HorarioAsignado ho:horarios){\n\t\t\tif(ho.getIdhorarioasignado().equals(horarioasignado.getIdhorarioasignado())){\n\t\t\t\n\t\t\t}else{\n\t\t\tif(ho.getIdhorario()==horarioasignado.getIdhorario()){\n\t\t\t\n\t\t\t/*//cedulasconhorarios.add(em);\n\t\t\tif (horarioasignado.getValidezinicio().after(ho.getValidezinicio()) && horarioasignado.getValidezinicio().before(ho.getValidezfin())){\n\t\t\tthrow new LogicaException(\"este contrato ya tiene asociado ese horario\"\n\t\t\t+ \" entre las fechas \"+ho.getValidezinicio()+\" y \"+ ho.getValidezfin());\n\t\t\t\n\t\t\t}*/\n\t\t\t\n\t\t\t}else{\n\t\t\t\n\t\t\t}\n\n\t\tContrato contrato = contratoEJB.getContratosporId(ho.getIdcontrato());\n\t\tEmpleadoBean empleado = empleadoEJB.buscarEmpleadosporId(contrato.getIdempleado());\t\n\tGregorianCalendar start=new GregorianCalendar();\n\tDate startdate= new Date(ho.getValidezinicio().getTime());\n\tstart.setTime(startdate);\n\tGregorianCalendar end=new GregorianCalendar();\n\tDate enddate= new Date(ho.getValidezfin().getTime());\n\tend.setTime(enddate);\n\t\n\tint tempfrec = ho.getHorario().getIdfrecuenciaasignacion().intValue();\n\tList<Integer> diadelasemana = diadelasemana(tempfrec);\n\tList<HashMap<String, Object>> data = Util.diferenciaEnDiasconFrecuencia(start, end,diadelasemana,tempfrec);\n\t\n\t\t\t\t\tfor(HashMap<String, Object> diadehorario:data){\n\t\t\t\tHashMap<String, Object> horariofechas=new HashMap<String, Object>();\n\t\t\t\tGregorianCalendar fecha = (GregorianCalendar)diadehorario.get(\"fecha\");\n\t\t\t\tDate fechadat =fecha.getTime();\n\t\t\t\tGregorianCalendar fechafin = (GregorianCalendar)diadehorario.get(\"fechafin\");\n\t\t\t\tDate fechafindat = fechafin.getTime();\n\t\t\t\tfor(HashMap<String, Object> diaasignado:dataasignado){\n\t\t\t\t\t\tHashMap<String, Object> horariofechasasignadas=new HashMap<String, Object>();\n\t\t\t\t\t\tGregorianCalendar fechaasignada = (GregorianCalendar)diaasignado.get(\"fecha\");\n\t\t\t\t\t\tDate fechaasignadadat =fechaasignada.getTime();\n\t\t\t\t\t\tGregorianCalendar fechafinasignada = (GregorianCalendar)diaasignado.get(\"fechafin\");\n\t\t\t\t\t\tDate fechafinasignadadat = fechafinasignada.getTime();\n\t\t\t\t\t\t\t\t\tif(fechaasignada.after(fechafin)){\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif((fechaasignada.getTime().after(fecha.getTime())||fechaasignada.getTime().equals(fecha.getTime())) && fechaasignada.getTime().before(fechafin.getTime()) ){\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//\tif((fechaasignada.getTime().after(fecha.getTime()) && fechaasignada.getTime().before(fechafin.getTime())) ){\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\") +\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tif((fechafinasignada.getTime().after(fecha.getTime())||fechafinasignada.getTime().equals(fecha.getTime())) && fechafinasignada.getTime().before(fechafin.getTime()) ){\n\t\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\")+\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif((fecha.getTime().after(fechaasignada.getTime() ) && fecha.getTime().before(fechafinasignada.getTime())) ){\n\t\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\")+\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\tif((fechafin.getTime().after(fechaasignada.getTime() ) && fechafin.getTime().before(fechafinasignada.getTime())) ){\n\t\t\t\t\t\t\t\t\t\t\t\tthrow new LogicaException(\"Este contrato del empleado con identificación numero:\"+empleado.getEmpleadoidentificacion().getNumeroidentificacion() +\" ya tiene asociado un horario\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" en las fechas \"+Util.dateToString(fecha.getTime(), \"dd/MM/yyyy HH:mm\")+\" y \"+ Util.dateToString(fechafin.getTime(),\"dd/MM/yyyy HH:mm\")+\" debe seleccionar un rango de dias diferente o un horario diferente\");\n\t\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\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\t\n\t\t\t\t\n\t\t\t\t}\n\n}\n\n\n}\n\n\n/////////////////////////fin validacion/\n}",
"public boolean validarCampos() {\n\t\tboolean valid = true;\n\n\t\tif(!Util.isStringNotBlankOrNotNull(this.getPaciente().getNome())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isDateNotNull(this.getPaciente().getDataCadastro())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isStringNotBlankOrNotNull(this.getPaciente().getSexo())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isObjectNotNull(this.getPaciente().getRG())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(Util.isObjectNotNull(this.getPaciente().getRG()) && this.getPaciente().getRG() < 0) {\n\t\t\tthis.tratarMensagemErro(null, \"MSG015\");\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isObjectNotNull(this.getPaciente().getCPF())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isCPFValido(this.getPaciente().getCPF())) {\n\t\t\tthis.tratarMensagemErro(null, \"MSG006\");\n\t\t\tvalid = false;\n\t\t}\n\t\tif(Util.isCPFValido(this.getPaciente().getCPF()) && isPacienteCadastrado(this.getPaciente())) {\n\t\t\tthis.tratarMensagemErro(null, \"MSG017\");\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isStringNotBlankOrNotNull(this.getPaciente().getEndereco())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isStringNotBlankOrNotNull(this.getPaciente().getBairro())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isStringNotBlankOrNotNull(this.getPaciente().getCidade())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isStringNotBlankOrNotNull(this.getPaciente().getUF())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isDateNotNull(this.getPaciente().getDataNascimento())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isObjectNotNull(this.getPaciente().getTelefone())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isTelefoneValido(this.getPaciente().getTelefone())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\t\n\t\treturn valid;\n\t}",
"private void validarCampos() {\n }",
"public boolean validar_ingresoUsuario_inasistencia(ArrayList<JTextField> ar){\n\t\t\tfor(JTextField tf : ar){\n\t\t\t\t\n\t\t\t\tif(!validarInt(tf.getText())) return false;\n\t\t\t\tif(tf.getText().length() >30) return false;\n\t\t\t\t//if(numero < 0) return false;\n\t\t\t\tif(numero < 0) return false;\n\t\t\t}\n\t\t\n\t\treturn true;\n\t}",
"@Test\n\tpublic void validaRegras1() {\n\t // Selecionar Perfil de Investimento\n\t //#####################################\n\t\t\n\t\t\n\t\tsimipage.selecionaPerfil(tipoperfilvoce);\n\t\t\n\t\t//#####################################\n\t // Informar quanto será aplicado\n\t //#####################################\n\t\t \t\n\t\tsimipage.qualValorAplicar(idvaloraplicacao,valoraplicacao);\n\t\t\n\t\t//#####################################\n\t // Que valor poupar todo mês\n\t //#####################################\n\t\tsimipage.quantopoupartodomes(idvalorpoupar,valorpoupar,opcao);\n\t\t\t\t\n\t \t//#####################################\n\t \t//Por quanto tempo poupar\n\t \t//#####################################\n\t \t\n\t\t//Informar o total de Meses ou Anos\n\t \tsimipage.quantotempopoupar(idperiodopoupar,periodopoupar); \n\t \t\n\t\t//Selecionar Combobox Se Meses ou Anos \n\t \tsimipage.selecionamesano(mesano, idmesano);\n\t \t\n\t \t//#####################################\n\t \t//Clica em Simular\n\t \t//#####################################\n\t \t\n\t \tsimipage.clicaremsimular(); \n\t\t\n\t\t\t\t\n\t}",
"public void ValidarLetra() {\n\t\t\n\t\tString valorCampo = \"\";\n\t\t\n\t\tif (campo == 1) {\n\t\t\t\n\t\t\tvalorCampo = textCampo1.getText();\n\t\t}\n\t\telse if (campo == 2) {\n\t\t\t\n\t\t\t valorCampo = textCampo2.getText();\n\t\t}\n\t\t\n\t\telse if (campo == 3) {\n\t\t\t\n\t\t\tvalorCampo = textCampo3.getText();\n\t\t}\n\t\t\n\t\telse if (campo == 4) {\n\t\t\t\n\t\t\tvalorCampo = textCampo4.getText();\n\t\t}\n\t\t\n\t\telse if (campo == 5) {\n\t\t\t\n\t\t\tvalorCampo = textCampo5.getText();\n\t\t}\n\n\t\telse if (campo == 6) {\n\t\t\t\n\t\t\tvalorCampo = textCampo6.getText();\n\t\t}\n\t\t\n\t\telse if (campo == 7) {\n\t\t\t\n\t\t\tvalorCampo = textCampo7.getText();\n\t\t}\n\t\t\n\t\telse if (campo == 8) {\n\t\t\t\n\t\t\tvalorCampo = textCampo8.getText();\n\t\t}\n\t\t\n\t\telse if (campo == 9) {\n\t\t\t\n\t\t\tvalorCampo = textCampo9.getText();\n\t\t}\n\t\t\n\t\telse if (campo == 10) {\n\t\t\t\n\t\t\tvalorCampo = textCampo10.getText();\n\t\t}\n\n\t\t \n\t\tboolean existe = palabra.contains(valorCampo);\n\t\t \n\t\t System.out.println(\" \"+existe);\n\n\n\t\t\n\t\t\n\t\tSystem.out.println(\"probando campo \"+campo);\n\t\t\n\t\t/*campo = 0;*/\n\t\t\n\t\t//System.out.println(\" inicializa \"+campo);\n\n\t}",
"private boolean camposValidos() {\n boolean valido = false;\n\n if (txtInfectados.getText().equals(\"\")\n || txtFecha.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Rellene todos los campos\");\n } else {\n valido = true;\n }\n\n return valido;\n }",
"private void batchValidate() {\n lblIdError.setText(CustomValidator.validateLong(fieldId));\n lblNameError.setText(CustomValidator.validateString(fieldName));\n lblAgeError.setText(CustomValidator.validateInt(fieldAge));\n lblWageError.setText(CustomValidator.validateDouble(fieldWage));\n lblActiveError.setText(CustomValidator.validateBoolean(fieldActive));\n }",
"public void validate() {\n for (Map.Entry<Integer, List<Message>> messagesOneId : messagesMap.entrySet()) {\n //get bank client\n int clientId = messagesOneId.getKey();\n BankClient bankClient = bankDatabase.get(clientId);\n\n //loop for each message with this ID\n for (Message messageData : messagesOneId.getValue()) {\n //check if this message is verified\n boolean isVerified = SignatureVerification.checkIsVerified(bankClient, messageData);\n //check if the request amount exceed limitation\n boolean isValid = checkIsValid(bankClient, messageData);\n //set the corresponding fields of message\n messageData.setVerified(isVerified);\n messageData.setValid(isValid);\n }\n }\n }",
"private boolean validarDatos() {\n boolean result = true; // variable para saber si los datos son validos para su envio a la DAL de Rol y despues a la base de datos \n // verificar si la caja de texto txtNombre esta vacia \n if (this.txtNombre.getText().trim().isEmpty()) {\n result = false; // en el caso que la caja de texto txtNombre este vacia se colocara la variable resul en false\n }\n\n if (this.txtApellido.getText().trim().isEmpty()) {\n result = false; // en el caso que la caja de texto txtNombre este vacia se colocara la variable resul en false\n }\n\n if (this.txtDui.getText().trim().isEmpty()) {\n result = false; // en el caso que la caja de texto txtNombre este vacia se colocara la variable resul en false\n }\n\n if (this.txtNumero.getText().trim().isEmpty()) {\n result = false; // en el caso que la caja de texto txtNombre este vacia se colocara la variable resul en false\n }\n\n if (result == false) {\n // mostrar un mensaje al usuario de la pantalla que los campos son obligatorios en el caso que la variable result sea false\n JOptionPane.showMessageDialog(this, \"Los campos con * son obligatorios\");\n }\n return result; // retorna la variable result con el valor true o false para saber si los datos son validos o no\n }",
"void addressValidity(M person) {\n // Valid data\n assignValidData(person);\n assertDoesNotThrow(person::checkDataValidity);\n }",
"private boolean validarCampos() {\n\t\t// TODO Auto-generated method stub\n\t\tif (txtCedula.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese un numero de cedula\");\n\t\t\treturn false;\n\t\t}\n\t\tif (txtNombre.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese un nombre\");\n\t\t\treturn false;\n\t\t}\n\t\tif (txtApellidos.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese los apellidos\");\n\t\t\treturn false;\n\t\t}\n\t\tif (txtCorreo.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese el correo\");\n\t\t\treturn false;\n\t\t}\n\t\tif (!Utilidades.validarEmailFuerte(txtCorreo.getText().trim())) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese un correo valido\");\n\t\t\treturn false;\n\t\t}\n\t\tif (txtDireccion.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese la direccion\");\n\t\t\treturn false;\n\t\t}\n\t\tif (txtTelefono.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese el numero de telefono\");\n\t\t\treturn false;\n\t\t}\n\t\tif (txtUsuario.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese el nombre de usuario\");\n\t\t\treturn false;\n\t\t}\n\t\tif (txtContrasenia.getText().trim().equals(\"\")) {\n\t\t\tUtilidades.mostrarMensaje(\"Complete el campo\", \"Por favor ingrese una contraseña\");\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"private boolean validarFormulario() {\n boolean cumple=true;\n boolean mosntrarMensajeGeneral=true;\n if(!ValidacionUtil.tieneTexto(txtNombreMedicamento)){\n cumple=false;\n };\n if(!ValidacionUtil.tieneTexto(txtCantidad)){\n cumple=false;\n };\n if(cmbTipoMedicamento.getSelectedItem()==null|| cmbTipoMedicamento.getSelectedItem().equals(\"Seleccione\")){\n setSpinnerError(cmbTipoMedicamento,\"Campo Obligatorio\");\n cumple=false;\n\n }\n if(getSucursalesSeleccionadas().isEmpty()){\n\n cumple=false;\n mosntrarMensajeGeneral=false;\n Utilitario.mostrarMensaje(getApplicationContext(),\"Seleccione una sucursal para continuar.\");\n }\n if(!cumple){\n if(mosntrarMensajeGeneral) {\n Utilitario.mostrarMensaje(getApplicationContext(), \"Error, ingrese todos los campos obligatorios.\");\n }\n }\n return cumple;\n }",
"private void validate() {\n for (DBRow row : rows) {\n for (DBColumn column : columns) {\n Cell cell = Cell.at(row, column);\n DBValue value = values.get(cell);\n notNull(value,\"Cell \" + cell);\n }\n }\n }",
"public boolean validarCampos() {\n\t\tboolean valid = true;\n\t\t\n\t\tif(!Util.isDateNotNull(this.getAgendaMedico().getData())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isDateNotNull(this.getAgendaMedico().getHorarioInicioAtendimento())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\tif(!Util.isDateNotNull(this.getAgendaMedico().getHorarioFimAtendimento())) {\n\t\t\tthis.tratarMensagemErro(null);\n\t\t\tvalid = false;\n\t\t}\n\t\t\n\t\tif(valid) {\n\t\t\tif(this.getAgendaMedicoDAO().verificaAgendamentoHorario(this.getMedicoSessao(), this.getAgendaMedico())) {\n\t\t\t\tthis.tratarMensagemErro(null, \"MSG014\");\n\t\t\t\tvalid = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn valid;\n\t}",
"public List<ValidationError> validate() {\n\n List<ValidationError> errors = new ArrayList<>();\n\n // isActive\n if (this.isActive != null && !this.isActive.equals(\"\") && this.getIsActiveAsBoolean() == null) {\n errors.add(new ValidationError(\"isActive\", \"isActive is not correctly formated, should be a true or false\"));\n }\n\n // actorTypeRefId\n if (this.actorTypeRefId != null && !this.actorTypeRefId.equals(\"\") && this.getActorType() == null) {\n errors.add(new ValidationError(\"actorTypeRefId\", String.format(\"ActorType %s does not exist\", this.actorTypeRefId)));\n }\n\n // login\n if (this.login != null && !this.login.equals(\"\")) {\n Actor testActor = ActorDao.getActorByUid(this.login);\n if (testActor != null) {\n Actor actor = ActorDao.getActorByRefId(this.refId);\n if (actor != null) { // edit\n if (!testActor.id.equals(actor.id)) {\n errors.add(new ValidationError(\"login\", \"The login \\\"\" + this.login + \"\\\" is already used by another actor\"));\n }\n } else { // create\n errors.add(new ValidationError(\"login\", \"The login \\\"\" + this.login + \"\\\" is already used by another actor\"));\n }\n }\n }\n\n return errors.isEmpty() ? null : errors;\n }",
"public void validarTareasDepartamento(){\r\n\t\tif ((this.equipo != null) && !(this.equipo.isEmpty()) ){\r\n\t\t\tthis.equipo = gerente.validarTareasEquipo(this.equipo);\r\n\t\t}\r\n\t}",
"private boolean validacionesSolicitarReserva(int indice, int CodEmp, int CodLoc, int CodCot, boolean isSol){\n boolean blnRes=true;\n try{\n if(!validaItemsServicio(CodEmp, CodLoc, CodCot)){\n blnRes=false;\n MensajeInf(\"La cotizacion contiene Items de Servicio o Transporte, los cuales no deben ser reservados.\");\n }\n\n if(!validaFechasMAX(indice, tblDat.getValueAt(indice,INT_TBL_DAT_STR_TIP_RES_INV).toString(),isSol)){\n blnRes=false;\n MensajeInf(\"La Fecha solicitada es mayor a la permitida, revise la Fecha y vuelva a intentarlo\");\n }\n \n if(!validaTerminalesLSSegunEmpresaLocal(CodEmp,CodLoc,CodCot)){\n blnRes=false;\n MensajeInf(\"No puede solicitar reserva de codigos L/S en este local, debe reservarlo por el local que puede ser facturado\");\n }\n \n if(!validaFechasPrimerDiaLaboral(indice,isSol,CodEmp,CodLoc)){\n blnRes=false;\n MensajeInf(\"La Fecha solicitada, no corresponde al primer dia laboral registrado\");\n } \n \n if(tblDat.getValueAt(indice,INT_TBL_DAT_STR_TIP_RES_INV).toString().equals(\"R\")){\n if(!validaTerminalesLReservaLocal(CodEmp,CodLoc,CodCot)){\n blnRes=false;\n MensajeInf(\"No puede solicitar Reserva en Empresa de Codigos L \");\n }\n }\n }\n catch(Exception e){\n objUti.mostrarMsgErr_F1(null, e);\n blnRes=false;\n }\n return blnRes;\n }",
"void telephoneValidity(M person) {\n // Valid data\n assignValidData(person);\n assertDoesNotThrow(person::checkDataValidity);\n person.setTelephone(\"+391111111111\");\n assertDoesNotThrow(person::checkDataValidity);\n person.setTelephone(\"1111111111\");\n assertDoesNotThrow(person::checkDataValidity);\n person.setTelephone(\"111 1111111\");\n assertDoesNotThrow(person::checkDataValidity);\n\n // Invalid data\n person.setTelephone(\"AAA\");\n assertThrows(InvalidFieldException.class, person::checkDataValidity);\n }",
"private boolean validarEntradaDeDados() {\n\t\tString errorMessage = \"\";\n\n\t\tif (textFieldProdutoNome.getText() == null || textFieldProdutoNome.getText().length() == 0) {\n\t\t\terrorMessage += \"Nome invalido!\\n\";\n\t\t}\n\t\tif (textFieldProdutoPreco.getText() == null || textFieldProdutoPreco.getText().length() == 0) {\n\t\t\terrorMessage += \"Preço invalido!\\n\";\n\t\t}\n\t\tif (textFieldProdutoQuantidade.getText() == null || textFieldProdutoQuantidade.getText().length() == 0) {\n\t\t\terrorMessage += \"Quantidade invalido!\\n\";\n\t\t}\n\t\tif (comboBoxProdutoCategoria.getSelectionModel().getSelectedItem() == null) {\n\t\t\terrorMessage += \"Categoria invalido!\\n\";\n\t\t}\n\t\tif (errorMessage.length() == 0) {\n\t\t\treturn true;\n\t\t} else {\n\n\t\t\t/** Mostrar a mensagem de erro. */\n\t\t\tAlert alert = new Alert(Alert.AlertType.ERROR);\n\t\t\talert.setTitle(\"Erro no registo\");\n\t\t\talert.setHeaderText(\"Campos invalidos, corrija...\");\n\t\t\talert.setContentText(errorMessage);\n\t\t\talert.show();\n\t\t\treturn false;\n\t\t}\n\t}",
"@Test\n\tpublic void validarPeticionListAllRegistros() {\n\t\t// Arrange\n\t\tint cantidadRegistros = 1;\n\t\t// Act\n\t\tList<Registro> registroRecuperados = (List<Registro>) registroService.listAllRegistro();\n\t\tint cantidadRegistrosRecuperdos = registroRecuperados.size();\n\t\t// Assert\n\t\tAssert.assertEquals(\"Valor recuperado es igual\", cantidadRegistrosRecuperdos, cantidadRegistros);\n\t}",
"public boolean validarForm() throws Exception {\r\n\r\n\t\ttbxIdentificacion\r\n\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:white\");\r\n\t\tlbxTipo_disnostico\r\n\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:white\");\r\n\t\tlbxCodigo_consulta_pyp\r\n\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:white\");\r\n\r\n\t\tString mensaje = \"Los campos marcados con (*) son obligatorios\";\r\n\r\n\t\tboolean valida = true;\r\n\r\n\t\tif (tbxIdentificacion.getText().trim().equals(\"\")) {\r\n\t\t\ttbxIdentificacion\r\n\t\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n\t\t\tvalida = false;\r\n\t\t}\r\n\r\n\t\tif (lbxTipo_disnostico.getSelectedIndex() == 0) {\r\n\t\t\tlbxTipo_disnostico\r\n\t\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n\t\t\tvalida = false;\r\n\t\t}\r\n\r\n\t\tif (!lbxFinalidad_cons.getSelectedItem().getValue().toString()\r\n\t\t\t\t.equalsIgnoreCase(\"10\")\r\n\t\t\t\t&& lbxCodigo_consulta_pyp.getSelectedIndex() == 0) {\r\n\t\t\tlbxCodigo_consulta_pyp\r\n\t\t\t\t\t.setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n\t\t\tvalida = false;\r\n\t\t}\r\n\r\n\t\tif (tbxTipo_principal.getText().trim().equals(\"\")) {\r\n\t\t\tmensaje = \"Debe digitar la impresion diagnostica\";\r\n\t\t\tvalida = false;\r\n\t\t} else if (vaidarIgualdad(tbxTipo_principal.getText(),\r\n\t\t\t\ttbxTipo_relacionado_1.getText(),\r\n\t\t\t\ttbxTipo_relacionado_2.getText(),\r\n\t\t\t\ttbxTipo_relacionado_3.getText())) {\r\n\t\t\tmensaje = \"no se puede repetir la impresion diagnostica\";\r\n\t\t\tvalida = false;\r\n\t\t}\r\n\r\n\t\tif (!valida) {\r\n\t\t\tMessagebox.show(mensaje,\r\n\t\t\t\t\tusuarios.getNombres() + \" recuerde que...\", Messagebox.OK,\r\n\t\t\t\t\tMessagebox.EXCLAMATION);\r\n\t\t}\r\n\r\n\t\treturn valida;\r\n\t}",
"public void validar() \r\n\t{\r\n\t\tString imagen = sudoku.validar();\r\n\t\tactualizarInformacion();\r\n\t\tactualizarImagen(imagen);\r\n\t}",
"public boolean validarForm() throws Exception {\r\n\r\n tbxNro_identificacion\r\n .setStyle(\"text-transform:uppercase;background-color:white\");\r\n lbxNro_ingreso.setStyle(\"background-color:white\");\r\n tbxCodigo_prestador\r\n .setStyle(\"text-transform:uppercase;background-color:white\");\r\n tbxCodigo_diagnostico_principal\r\n .setStyle(\"text-transform:uppercase;background-color:white\");\r\n tbxCausa_muerte\r\n .setStyle(\"text-transform:uppercase;background-color:white\");\r\n lbxEstado_salida.setStyle(\"background-color:white\");\r\n dtbxFecha_ingreso.setStyle(\"background-color:white\");\r\n\r\n Admision admision = ((Admision) lbxNro_ingreso.getSelectedItem()\r\n .getValue());\r\n\r\n boolean valida = true;\r\n\r\n String mensaje = \"Los campos marcados con (*) son obligatorios\";\r\n\r\n if (tbxNro_identificacion.getText().trim().equals(\"\")) {\r\n tbxNro_identificacion\r\n .setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n valida = false;\r\n }\r\n if (tbxCodigo_prestador.getText().trim().equals(\"\")) {\r\n tbxCodigo_prestador\r\n .setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n valida = false;\r\n }\r\n if (admision == null) {\r\n lbxNro_ingreso.setStyle(\"background-color:#F6BBBE\");\r\n valida = false;\r\n }\r\n if (tbxCodigo_diagnostico_principal.getText().trim().equals(\"\")) {\r\n tbxCodigo_diagnostico_principal\r\n .setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n valida = false;\r\n }\r\n\r\n if (lbxCausa_externa.getSelectedIndex() == 0) {\r\n lbxCausa_externa\r\n .setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n valida = false;\r\n }\r\n\r\n if (valida) {\r\n if (lbxEstado_salida.getSelectedItem().getValue().equals(\"2\")\r\n && tbxCausa_muerte.getText().trim().equals(\"\")) {\r\n tbxCausa_muerte\r\n .setStyle(\"text-transform:uppercase;background-color:#F6BBBE\");\r\n mensaje = \"Usted selecciono el estado de la salida como muerto(a) \\npor lo tanto debe seleccionar la causa de muerte\";\r\n valida = false;\r\n }\r\n }\r\n\r\n if (valida) {\r\n if (!lbxEstado_salida.getSelectedItem().getValue().equals(\"2\")\r\n && !tbxCausa_muerte.getText().trim().equals(\"\")) {\r\n lbxEstado_salida.setStyle(\"background-color:#F6BBBE\");\r\n mensaje = \"Usted selecciono una casua de muerte \\npor lo tanto debe seleccionar el estado a la salida como muerto (a)\";\r\n valida = false;\r\n }\r\n }\r\n\r\n if (valida) {\r\n if (dtbxFecha_ingreso.getValue().compareTo(\r\n dtbxFecha_egreso.getValue()) > 0) {\r\n dtbxFecha_ingreso.setStyle(\"background-color:#F6BBBE\");\r\n mensaje = \"La fecha de ingreso no puede ser mayor a la fecha de egreso\";\r\n valida = false;\r\n }\r\n }\r\n\r\n if (!valida) {\r\n Messagebox.show(mensaje,\r\n usuarios.getNombres() + \" recuerde que...\", Messagebox.OK,\r\n Messagebox.EXCLAMATION);\r\n }\r\n\r\n return valida;\r\n }",
"private void validateTime()\n {\n List<Object> collisions = validateCollisions();\n\n for (Object object : collisions)\n {\n if (DietTreatmentBO.class.isAssignableFrom(object.getClass()))\n {\n _errors.add(String\n .format(\"Die Diätbehandlung '%s' überschneidet sich mit der Diätbehandlung '%s'\",\n _dietTreatment.getDisplayText(),\n ((DietTreatmentBO) object).getName()));\n }\n }\n }",
"public static void validation() {\n\t\tif ((!textFieldName.getText().isEmpty()) && (!textField_FirstName.getText().isEmpty())\n\t\t\t\t&& (!textField_Town.getText().isEmpty()) && (!textField_Town.getText().isEmpty())) {\n\n\t\t\tif ((isValidEmailAddress(textField_Email.getText()) == true)) {\n\t\t\t\ttextField_Email.setBackground(Color.white);\n\t\t\t\tif ((force(textField_Mtp.getText()) > 82)) {\n\t\t\t\t\ttextField_Mtp.setBackground(Color.white);\n\t\t\t\t\tactionGiveServeur();\n\n\t\t\t\t} else {\n\t\t\t\t\tshowMessageDialog(null, \"Votre mot de passe est trop faible\");\n\t\t\t\t\ttextField_Mtp.setText(\"Mot de passe trop simple : changer le \");\n\t\t\t\t\ttextField_Mtp.setBackground(Color.RED);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ttextField_Email.setText(\"Email invalide\");\n\t\t\t\ttextField_Email.setBackground(Color.RED);\n\t\t\t\tshowMessageDialog(null, \"Email est invalide\");\n\t\t\t}\n\t\t} else {\n\n\t\t\tshowMessageDialog(null, \"Certain champs sont vide !\");\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\tString nombre = leerTexto(\"Ingrese un nombre:\");\r\n\tint edad = leerNumero(\"Ingrese su edad:\");\r\n\tString rut = leerTexto(\"Ingresa el RUT:\");\r\n\tchar genero = leerTexto(\"Ingresa el genero: (M/F/O)\").charAt(0);\r\n\tfloat peso = leerNumero(\"Ingrese peso:\");\r\n\tfloat altura = leerNumero(\"Ingrese la altura:\");\r\n\tPersona claudia = new Persona(nombre, rut, edad, genero, peso, altura);\r\n\t\r\n\tnombre = leerTexto(\"Ingrese un nombre:\");\r\n\tedad = leerNumero(\"Ingrese su edad:\");\r\n\trut = leerTexto(\"Ingresa el RUT:\");\r\n\tgenero = leerTexto(\"Ingresa el genero: (M/F/O)\").charAt(0);\r\n\tPersona juliano = new Persona(nombre, rut, edad, genero);\r\n\t\r\n\tPersona noelia = new Persona();\r\n\tnoelia.setNombre(leerTexto(\"Ingresa un nombre\"));\r\n\tnoelia.setEdad(leerNumero(\"Ingresa la edad\"));\r\n\tnoelia.setRut(leerTexto(\"Ingresa el RUT\"));\r\n\tnoelia.setGenero(leerTexto(\"Ingresa el genero\").charAt(0));\r\n\tnoelia.setAltura(leerNumero(\"Ingresa la altura\"));\r\n\tnoelia.setPeso(leerNumero(\"Ingresa el peso\"));\r\n\t\r\n\tPersona[] perso = new Persona[3];\r\n\tperso[0] = claudia;\r\n\tperso[1] = juliano;\r\n\tperso[2] = noelia;\r\n\t\r\n\tfor (Persona persona : perso) {\r\n\t\tif (persona.calcularIMC()==Persona.PESO_BAJO) {\r\n\t\t\tescribir(\"Pongale sus buenas cazuelas\");\r\n\t\t}else {\r\n\t\t\tif (persona.calcularIMC()==Persona.PESO_IDEAL) {\r\n\t\t\t\tescribir(\"Estamos tiki taka\");\r\n\t\t\t}else {\r\n\t\t\t\tescribir(\"Menos coffe break!\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Mayor de edad\r\n\t\tescribir(\"La persona \" + persona.getNombre() + \" es mayor de edad? \" + persona.esMayorDeEdad());\r\n\t\t//Mostrar el toString()\r\n\t\tescribir(persona.toString());\r\n\t }\r\n\t}",
"public void iniciarValidacaoCorrespondencias(Dataset dataset);",
"public void validate() {\n\t\terrors.clear();\n\t\t\n\t\tif(!this.id.isEmpty()) {\n\t\t\ttry {\n\t\t\t\tLong.parseLong(this.id);\n\t\t\t} catch(NumberFormatException ex) {\n\t\t\t\terrors.put(\"id\", \"Id is not valid.\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(this.firstName.isEmpty()) {\n\t\t\terrors.put(\"firstName\", \"First name is obligatory!\");\n\t\t}\n\t\t\n\t\tif(this.lastName.isEmpty()) {\n\t\t\terrors.put(\"lastName\", \"Last name is obligatory!\");\n\t\t}\n\t\t\n\t\tif(this.nick.isEmpty()) {\n\t\t\terrors.put(\"nick\", \"Nick is obligatory!\");\n\t\t}\n\t\t\n\t\tif(DAOProvider.getDAO().doesNickAlreadyExist(nick)) {\n\t\t\terrors.put(\"nick\", \"Nick already exist!\");\n\t\t}\n\n\t\tif(this.email.isEmpty()) {\n\t\t\terrors.put(\"email\", \"EMail is obligatory!\");\n\t\t} else {\n\t\t\tint l = email.length();\n\t\t\tint p = email.indexOf('@');\n\t\t\tif(l<3 || p==-1 || p==0 || p==l-1) {\n\t\t\t\terrors.put(\"email\", \"EMail is not valid.\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(this.password.isEmpty()) {\n\t\t\terrors.put(\"password\", \"Password is obligatory!\");\n\t\t}\n\t}",
"private boolean hayCamposVacios() {\r\n\t\tif(nomTextField.getText().isEmpty()\r\n\t\t\t|| claveTextField.getText().isEmpty()\r\n\t\t\t\t|| reingresoTextField.getText().isEmpty()\r\n\t\t\t\t\t|| preguntaTextField.getText().isEmpty()\r\n\t\t\t\t\t\t|| respuestaTextField.getText().isEmpty())\r\n\t\t\treturn true;\t\t\r\n\t\treturn false;\r\n\t}",
"public static void main(String[] args) {\n char resp = 's';\n int cont = 0;\n\n ArrayList listaPersonajes = new ArrayList();\n ArrayList<Personaje> lista_buena = new ArrayList();\n lista_buena.add(new Personaje(\"mago\", \"humano\", \"norfair\", 1.68, 88, \"vende chiles\", 150, \"juan\"));\n lista_buena.add(new Personaje(\"picaro\", \"enano\", \"zebes\", 2.58, 350, \"YES\", 185, \"Ricardo\"));\n lista_buena.add(new Personaje(\"barbaro\", \"humano\", \"maridia\", 1.50, 500, \"es inutil\", 158, \"egroj\"));\n lista_buena.add(new Personaje(\"clerigo\", \"elfo\", \"crateria\", 1.70, 55, \"es muy creido\", 85, \"pipe\"));\n while (resp == 's' || resp == 's') {\n System.out.println(\"0 Salir\");\n System.out.println(\"1 Crear Personaje\");\n System.out.println(\"2 Modificar personaje\");\n System.out.println(\"3 Ver atributos de personaje\");\n System.out.println(\"4 Eliminar personaje\");\n System.out.println(\"5 Combate\");\n System.out.print(\"ingrese opcion\");\n int opcion = leer.nextInt();\n\n switch (opcion) {\n case 0:\n System.exit(0);\n break;\n case 1:\n if (cont > 4) {\n System.out.println(\"no se pueden mas personajes\");\n break;\n }\n System.out.println(\"clerigo, barbaro, mago o picaro\");\n System.out.print(\"Eliga su Clase: \");\n String clase = leer.next();\n if (clase.contains(\"clerigo\") || clase.contains(\"barbaro\") || clase.contains(\"mago\") || clase.contains(\"picaro\")) {\n\n } else {\n System.out.println(\"usted no puede elejir esa clase\");\n System.out.print(\"Eliga su Clase: \");\n clase = leer.next();\n }\n\n //\n listaPersonajes.add(cont, clase);\n System.out.println(\"Ingrese su nombre\");\n String nombre = leer.next();\n listaPersonajes.add(cont, nombre);\n //\n System.out.println(\"mediano, enano, elfo o humano\");\n System.out.print(\"ingrese raza: \");\n String raza = leer.next();\n if (raza.contains(\"mediano\") || raza.contains(\"enano\") || raza.contains(\"elfo\") || raza.contains(\"humano\")) {\n\n } else {\n System.out.println(\"no puede ser de esa raza\");\n System.out.print(\"ingrese raza:\");\n raza = leer.next();\n }\n listaPersonajes.add(cont, raza);\n System.out.println(\"ingrese estatura: \");\n double estatura = leer.nextDouble();\n listaPersonajes.add(cont, estatura);\n //\n System.out.println(\"ingrese peso: \");\n double peso = leer.nextDouble();\n listaPersonajes.add(cont, peso);\n //\n System.out.println(\"ingrese edad: \");\n int edad = leer.nextInt();\n listaPersonajes.add(cont, edad);\n //\n System.out.println(\"ingrese descripcion: \");\n leer.nextLine();\n String descrip = leer.nextLine();\n listaPersonajes.add(cont, descrip);\n //\n System.out.println(\"norfair ,brinstar , maridia, zebes o crateria\");\n System.out.print(\"ingrese nacionalidad: \");\n String nacion = leer.next();\n //\n if (nacion.contains(\"norfair\") || nacion.contains(\"brinstatr\") || nacion.contains(\"maridia\") || nacion.contains(\"zebes\") || nacion.contains(\"crateria\")) {\n\n } else {\n System.out.println(\"no puede ser de esa region: \");\n System.out.print(\"ingrese nacionalidad: \");\n nacion = leer.next();\n }\n\n //\n lista_buena.add(new Personaje(clase, raza, nacion, estatura, edad, descrip, peso, nombre));\n cont++;\n break;\n case 2:\n System.out.println(\"que posicion de pesonaje desea modificar\");\n int perso_mod = leer.nextInt();\n modificacion(perso_mod, lista_buena);\n break;\n case 3:\n\n for (Object o : lista_buena) {\n System.out.println(o);\n System.out.println();\n }\n\n break;\n case 4:\n System.out.println(\"Que personaje desea eliminar\");\n int elim = leer.nextInt();\n lista_buena.remove(elim);\n break;\n case 5:\n System.out.println(\"no funcio\");\n break;\n default:\n resp = 'n';\n }\n }\n\n }",
"private void validation() {\n Pattern pattern = validationfilterStringData();\n if (pattern.matcher(txtDrug.getText().trim()).matches() && pattern.matcher(txtGenericName.getText().trim()).matches()) {\n try {\n TblTreatmentadvise treatmentadvise = new TblTreatmentadvise();\n treatmentadvise.setDrugname(txtDrug.getText());\n treatmentadvise.setGenericname(txtGenericName.getText());\n treatmentadvise.setTiming(cmbDosestiming.getSelectedItem().toString());\n cmbtiming.setSelectedItem(cmbDosestiming);\n treatmentadvise.setDoses(loadcomboDoses());\n treatmentadvise.setDuration(loadcomboDuration());\n PatientService.saveEntity(treatmentadvise);\n JOptionPane.showMessageDialog(this, \"SAVE SUCCESSFULLY\");\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(this, \"STARTUP THE DATABASE CONNECTION\");\n }\n } else {\n JOptionPane.showMessageDialog(this, \"WRONG DATA ENTERED.\");\n }\n }",
"private String validarEntradas()\n { \n return Utilitarios.validarEntradas(campoNomeAC, campoEnderecoAC, campoBairroAC, campoCidadeAC, campoUfAC, campoCepAC, campoTelefoneAC, campoEmailAC);\n }",
"public void validate(){\n ArrayList<User> u1 = new ArrayList<User>();\n u1.addAll(Application.getApplication().getUsers());\n u1.add(this);\n\n ArrayList<User> u2 = new ArrayList<User>();\n \n u2.addAll(Application.getApplication().getNonValidatedUsers());\n u2.remove(this);\n\n Application.getApplication().setUsers(u1);\n Application.getApplication().setNonValidatedUsers(u2);\n }",
"@Override\n protected void validaRegras(ArquivoLoteVO entity) {\n\n }",
"private void validarDadosUsuarios(View v) {\n String nome = edtName1.getText().toString();\n edtName1.setError(\"Digite o nome do produto\");\n String descricao = descricaoProduto.getText().toString();\n descricaoProduto.setError(\"Descriçao produto\");\n String preco = precoProduto.getText().toString();\n precoProduto.setError(\"Digite Preço\");\n String data = DataOferta.getText().toString();\n DataOferta.setError(\"Digite a data da Oferta\");\n ImageView imagePerfil = null;\n\n\n if (!nome.isEmpty()) {\n if (!descricao.isEmpty()) {\n if (!preco.isEmpty()) {\n if (!data.isEmpty()) {\n\n\n Anuncio anuncio = new Anuncio();\n\n anuncio.setNome(nome);\n\n anuncio.setDescricao(descricao);\n anuncio.setPreco(preco);\n anuncio.setDate(data);\n anuncio.setUrlImage(urlImagemSelecionada);\n anuncio.salvar();\n finish();\n\n\n } else {\n\n exibirMensagem(\"Digite o nome do produto \");\n }\n } else {\n exibirMensagem(\"Descriçao produto \");\n }\n } else {\n exibirMensagem(\"Digite Preço\");\n }\n } else {\n exibirMensagem(\"Digite a data da Oferta \");\n }\n\n finish();\n }",
"private boolean verificaDados() {\n if (!txtNome.getText().equals(\"\") && !txtProprietario.getText().equals(\"\")) {\n return true;\n } else {\n JOptionPane.showMessageDialog(null, \"Falta campos a ser preenchido\", \"Informação\", 2);\n return false;\n }\n }",
"public boolean validarIngresosUsuario_sueldo(JTextField empleadoTF, JTextField montoTF){\n\t\t\tif(!validarDouble(montoTF.getText())) return false;\n\t\t\tif(montoTF.getText().length() >30) return false;\n\t\t\tif(!validarInt(empleadoTF.getText())) return false;\n\t\t\tif(numero==33) return false; //codigo halcones\n\t\t\tif(empleadoTF.getText().length() >30) return false;\n\t\t\t//if(numero < 0) return false;\n\t\t\tif(numero_double < 0) return false;\n\t\t\n\t\t\treturn true;\n\t}",
"private void validateEmptyElements()\n {\n // Check if something is missing\n if (_dietTreatment.getName().length() < 1)\n {\n getErrors().add(\"Kein Name angegeben.\");\n }\n\n // TODO: check that at least one user is TREATING!\n if (_dietTreatment.getSystemUsers().isEmpty())\n {\n getErrors().add(\"Kein verantwortlicher User angegeben.\");\n }\n\n if (_dietTreatment.getPatientStates().isEmpty())\n {\n getErrors().add(\"Keine Zuweisungsdiagnose angegeben.\");\n }\n }",
"public static void criaListaCandidatos() {\n\t\tScanner sc = new Scanner(System.in);\t\n\t\tString id, numCandidatos, nomePessoa, nomeLista, tipoLista;\n\t\tArrayList<Pessoa> listaCandidatos = new ArrayList<>();\n\t\tint check = 0, num, i;\n\t\t\n\t\tSystem.out.println(\"\\nInsira o id da eleicao a qual pretende adicionar uma lista de candidatos:\");\n\t\tid = sc.nextLine();\n\n\t\tdo {\n\t\t\tSystem.out.println(\"\\nInsira numero de elementos (Min. 2):\");\n\t\t\tnumCandidatos = sc.nextLine();\n\t\t\tif(verificarNumeros(numCandidatos)) {\n\t\t\t\tif (Integer.parseInt(numCandidatos) >= 2) {\n\t\t\t\t\tcheck = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"\\nO numero so pode conter digitos\");\n\t\t\t}\n\t\t}while(check==0);\n\t\tnum = Integer.parseInt(numCandidatos);\n\t\tcheck = 0;\n\t\t\n\t\tdo {\n\t\t\tSystem.out.println(\"\\nInsira o nome da lista:\");\n\t\t\tnomeLista = sc.nextLine();\n\t\t\tif(verificarLetras(nomeLista) && nomeLista.length()>0) {\n\t\t\t\tcheck = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"\\nO nome apenas pode conter letras\");\n\t\t\t}\n\t\t}while(check==0);\n\t\t\n\t\tcheck = 0;\n\t\t\n\t\tdo {\n\t\t\tSystem.out.println(\"\\nEm que tipo se insere a lista?\\n(1) Estudantes (2) Funcionarios (3) Docentes\");\n\t\t\ttipoLista = sc.nextLine();\n\t\t\tif(verificarNumeros(tipoLista)) {\n\t\t\t\tif ( (tipoLista.equals(\"1\")) || (tipoLista.equals(\"2\")) || (tipoLista.equals(\"3\")) ) {\n\t\t\t\t\tcheck = 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"\\nA opcao so pode conter digitos de 1 a 3\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"\\nA opcao so pode conter digitos\");\n\t\t\t}\n\t\t}while(check==0);\n\t\t\n\t\tcheck = 0;\n\t\t\n\t\tdo {\n\t\t\tSystem.out.println(\"\\nInsira o nome do presidente:\");\n\t\t\tnomePessoa = sc.nextLine();\n\t\t\tif(verificarLetras(nomePessoa) && nomePessoa.length()>0) {\n\t\t\t\tcheck = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"\\nO nome apenas pode conter letras\");\n\t\t\t}\n\t\t}while(check==0);\n\t\tPessoa p = new Pessoa(nomePessoa);\n\t\tlistaCandidatos.add(p);\t\n\t\tnum--;\n\t\t\n\t\tcheck = 0;\n\t\t\n\t\tdo {\n\t\t\tSystem.out.println(\"\\nInsira o nome do vice-presidente:\");\n\t\t\tnomePessoa = sc.nextLine();\n\t\t\tif(verificarLetras(nomePessoa) && nomePessoa.length()>0) {\n\t\t\t\tcheck = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"\\nO nome apenas pode conter letras\");\n\t\t\t}\n\t\t}while(check==0);\n\t\tPessoa novap = new Pessoa(nomePessoa);\n\t\tlistaCandidatos.add(novap);\t\n\t\tnum--;\n\t\t\n\t\tcheck = 0;\n\t\t\n\t\tfor (i=0; i<num;i++) {\n\t\t\tdo {\n\t\t\t\tSystem.out.println(\"\\nInsira o nome do elemento seguinte:\");\n\t\t\t\tnomePessoa = sc.nextLine();\n\t\t\t\tif(verificarLetras(nomePessoa) && nomePessoa.length()>0) {\n\t\t\t\t\tcheck = 1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"\\nO nome apenas pode conter letras\");\n\t\t\t\t}\n\t\t\t}while(check==0);\n\t\t\tPessoa novaPessoa = new Pessoa(nomePessoa);\n\t\t\tlistaCandidatos.add(novaPessoa);\n\t\t\tcheck = 0;\n\t\t}\n\t\t\n\t\tString msgServer = \"\";\n\t\t\n\t\tcheck = 0;\n\t\tint tries = 0;\n\t\tdo {\n\t\t\ttry {\n\t\t\t\tmsgServer = rmiserver.criaLista(id, tipoLista, nomeLista, listaCandidatos);\n\t\t\t\tSystem.out.println(msgServer);\n\t\t\t\tSystem.out.println(\"\\n\");\n\t\t\t\tcheck = 1;\n\t\t\t} catch (RemoteException e1) {\n\t\t\t\t// Tratamento da Excepcao da chamada RMI alteraFac\n\t\t\t\tif(tries == 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(6000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries > 0 && tries < 24) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\ttries++;\n\t\t\t\t\t}\n\t\t\t\t}else if(tries >= 24) {\n\t\t\t\t\tSystem.out.println(\"Impossivel realizar a operacao devido a falha tecnica (Servidores RMI desligados).\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}while(check==0);\n\t\tcheck = 0;\n\t}",
"public static boolean verificarExistenciaPersona(Personas persona)\n {\n //Este método permite verificar si el usuario a crear es vendedor, comprador o ninguno. Validacion en el main y para el metodo que agrega los tipo de usuario\n ArrayList<Personas> personas = Personas.desserializarPersonas(\"Personas.ser\");\n for(Personas pe: personas)\n {\n if(pe.getCorreoElectronico().equals(persona.getCorreoElectronico()) && pe.getTipo().equals(pe.getTipo()) ) \n \n return true;\n }\n return false;\n }",
"public void validar(){\n\t\tif (verificador == false){\r\n\t\t\tif (contador == 1){\r\n\t\t\t\ttools.searchText(cadenaSinSeparar);\r\n\t\t\t\ttools.waitTime(25000);\r\n\t\t\t}else{\r\n\t\t\t\ttools.scroll(\"abajo\");\r\n\t\t\t\tplayAEventWhichIsPresentInAChannel();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tif (contador == 1){\r\n\t\t\t\ttools.scroll(\"abajo\");\r\n\t\t\t\tplayAEventWhichIsntPresentInAChannel();\r\n\t\t\t}else{\r\n\t\t\t\ttools.searchText(cadenaSinSeparar);\r\n\t\t\t\ttools.waitTime(25000);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}",
"void birthDateValidity(M person) {\n // Valid data\n assignValidData(person);\n assertDoesNotThrow(person::checkDataValidity);\n\n // Invalid data\n person.setBirthdate(null);\n assertThrows(InvalidFieldException.class, person::checkDataValidity);\n }",
"public static void gereCandidatos() {\n\t\tString idE, titulo, op, numCandidatos, nomeP;\n\t\tScanner sc = new Scanner(System.in);\n\t\tint check = 0, num, i;\n\t\tArrayList<Pessoa> listaCandidatos = new ArrayList<>();\n\t\tString msgServer = \"\";\n\t\t\n\t\tSystem.out.println(\"\\nInsira o id da eleicao a qual pretende adicionar uma lista de candidatos:\");\n\t\tidE = sc.nextLine();\n\t\t\n\t\tdo {\n\t\t\tSystem.out.println(\"\\nInsira o titulo da lista:\");\n\t\t\ttitulo = sc.nextLine();\n\t\t\tif(verificarLetras(titulo) && titulo.length()>0) {\n\t\t\t\tcheck = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"\\nO titulo apenas pode conter letras\");\n\t\t\t}\n\t\t}while(check==0);\n\t\t\n\t\tcheck = 0;\n\t\t\n\t\tdo {\n\t\t\tSystem.out.println(\"\\nO que pretende fazer?\\n(1) Adicoes (2) Remocoes\");\n\t\t\top = sc.nextLine();\n\t\t\tif(op.equals(\"1\") || op.equals(\"2\")) {\n\t\t\t\tcheck = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"\\nA opcao so pode conter digitos de 1 a 2\");\n\t\t\t}\n\t\t}while(check==0);\n\t\tcheck = 0;\n\t\t\n\t\tswitch(op) {\n\t\t\tcase \"1\":\n\t\t\t\tdo {\n\t\t\t\t\tSystem.out.println(\"\\nInsira numero de elementos:\");\n\t\t\t\t\tnumCandidatos = sc.nextLine();\n\t\t\t\t\tif(verificarNumeros(numCandidatos)) {\n\t\t\t\t\t\tif (Integer.parseInt(numCandidatos) > 0) {\n\t\t\t\t\t\t\tcheck = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"\\nO numero so pode conter digitos\");\n\t\t\t\t\t}\n\t\t\t\t}while(check==0);\n\t\t\t\tnum = Integer.parseInt(numCandidatos);\n\t\t\t\tcheck = 0;\n\t\t\t\t\n\t\t\t\tfor (i=0; i<num;i++) {\n\t\t\t\t\tdo {\n\t\t\t\t\t\tSystem.out.println(\"\\nInsira o nome do elemento a adicionar:\");\n\t\t\t\t\t\tnomeP = sc.nextLine();\n\t\t\t\t\t\tif(verificarLetras(nomeP) && nomeP.length()>0) {\n\t\t\t\t\t\t\tcheck = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tSystem.out.println(\"\\nO nome apenas pode conter letras\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}while(check==0);\n\t\t\t\t\tPessoa novaP = new Pessoa(nomeP);\n\t\t\t\t\tlistaCandidatos.add(novaP);\n\t\t\t\t\tcheck = 0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcheck = 0;\n\t\t\t\tint tries = 0;\n\t\t\t\tdo {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tmsgServer = rmiserver.adicionaCandidatos(idE, titulo, listaCandidatos);\n\t\t\t\t\t\tSystem.out.println(msgServer);\n\t\t\t\t\t\tSystem.out.println(\"\\n\");\n\t\t\t\t\t\tcheck = 1;\n\t\t\t\t\t} catch (RemoteException e1) {\n\t\t\t\t\t\t// Tratamento da Excepcao da chamada RMI addCandidatos\n\t\t\t\t\t\tif(tries == 0) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tThread.sleep(6000);\n\t\t\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\t\t\ttries++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(tries > 0 && tries < 24) {\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\t//faz novo lookup\n\t\t\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\t\t\ttries++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(tries >= 24) {\n\t\t\t\t\t\t\tSystem.out.println(\"Impossivel realizar a operacao devido a falha tecnica (Servidores RMI desligados).\");\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}while(check==0);\n\t\t\t\tcheck = 0;\n\t\t\t\tbreak;\n\t\t\tcase \"2\":\n\t\t\t\tdo {\n\t\t\t\t\tSystem.out.println(\"\\nInsira numero de elementos:\");\n\t\t\t\t\tnumCandidatos = sc.nextLine();\n\t\t\t\t\tif(verificarNumeros(numCandidatos)) {\n\t\t\t\t\t\tif (Integer.parseInt(numCandidatos) > 0) {\n\t\t\t\t\t\t\tcheck = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.println(\"\\nO numero so pode conter digitos\");\n\t\t\t\t\t}\n\t\t\t\t}while(check==0);\n\t\t\t\tnum = Integer.parseInt(numCandidatos);\n\t\t\t\tcheck = 0;\n\t\t\t\t\n\t\t\t\tfor (i=0; i<num;i++) {\n\t\t\t\t\tdo {\n\t\t\t\t\t\tSystem.out.println(\"\\nInsira o nome do elemento a remover:\");\n\t\t\t\t\t\tnomeP = sc.nextLine();\n\t\t\t\t\t\tif(verificarLetras(nomeP) && nomeP.length()>0) {\n\t\t\t\t\t\t\tcheck = 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tSystem.out.println(\"\\nO nome apenas pode conter letras\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}while(check==0);\n\t\t\t\t\tPessoa novaP = new Pessoa(nomeP);\n\t\t\t\t\tlistaCandidatos.add(novaP);\n\t\t\t\t\tcheck = 0;\n\t\t\t\t}\n\t\t\t\n\t\t\t\tcheck = 0;\n\t\t\t\ttries = 0;\n\t\t\t\tdo {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tmsgServer = rmiserver.removeCandidatos(idE, titulo, listaCandidatos);\n\t\t\t\t\t\tSystem.out.println(msgServer);\n\t\t\t\t\t\tSystem.out.println(\"\\n\");\n\t\t\t\t\t\tcheck = 1;\n\t\t\t\t\t} catch (RemoteException e1) {\n\t\t\t\t\t\t// Tratamento da Excepcao da chamada RMI addCandidatos\n\t\t\t\t\t\tif(tries == 0) {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tThread.sleep(6000);\n\t\t\t\t\t\t\t\t//faz novo lookup\n\t\t\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\t\t\ttries++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(tries > 0 && tries < 24) {\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\t//faz novo lookup\n\t\t\t\t\t\t\t\trmiserver = (RMI_S_I) Naming.lookup(\"rmi://\"+registryIP+\":\"+registryPort+\"/rmi\");\n\t\t\t\t\t\t\t\trmiserver.subscribeConsola((ADMIN_C_I)consola);\n\t\t\t\t\t\t\t\ttries = 0;\n\t\t\t\t\t\t\t} catch (RemoteException | InterruptedException | MalformedURLException | NotBoundException e) {\n\t\t\t\t\t\t\t\t// FailOver falhou\n\t\t\t\t\t\t\t\ttries++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else if(tries >= 24) {\n\t\t\t\t\t\t\tSystem.out.println(\"Impossivel realizar a operacao devido a falha tecnica (Servidores RMI desligados).\");\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}while(check==0);\n\t\t\t\tcheck = 0;\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t}\n\t}",
"private void addPersonnageToGame() throws PersonnageOnMultipleJoueurException {\n\t\t\n\t\t// liste de personnage venant d'un joueur\n\t\tList<Personnage> listePersonnageFromJoueur;\n\t\t\n\t\t// liste venant de TurnManager, qui représente la totalité des personnages\n\t\tList<Personnage> listePersonnageFromTurnManager = this.getListePersonnage();\n\t\t\n\t\tIterator<Joueur> iteratorOverListeJoueur = this.getListeJoueur().iterator();\n\t\tIterator<Personnage> iteratorOverListePersonnage;\n\t\n\t\tPersonnage personnage;\n\t\n\t\t// on boucle sur la liste de joueurs\n\t\twhile(iteratorOverListeJoueur.hasNext()){\n\t\t\t\n\t\t\t// on récupère la liste des personnages du joueur suivant\n\t\t\tlistePersonnageFromJoueur = iteratorOverListeJoueur.next().getListePersonnage();\n\t\t\titeratorOverListePersonnage = listePersonnageFromJoueur.iterator();\n\t\t\t\n\t\t\t// on boucle sur la liste de personnages du joueur\n\t\t\twhile(iteratorOverListePersonnage.hasNext()){\n\t\t\t\t\n\t\t\t\t// on récupère le personnage suivant\n\t\t\t\tpersonnage = iteratorOverListePersonnage.next();\n\t\t\t\t\n\t\t\t\t// si le personnage n'existe pas on l'ajoute dans la liste\n\t\t\t\tif(!listePersonnageFromTurnManager.contains(personnage)){\n\t\t\t\t\tlistePersonnageFromTurnManager.add(personnage);\n\t\t\t\t}\n\t\t\t\t// si il existe déjà, il y a une erreur\n\t\t\t\telse {\n\t\t\t\t\tthrow new PersonnageOnMultipleJoueurException();\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void verificarMatriculado() {\r\n\t\ttry {\r\n\t\t\tif (periodo == null)\r\n\t\t\t\tMensaje.crearMensajeERROR(\"ERROR AL BUSCAR PERIODO HABILITADO\");\r\n\t\t\telse {\r\n\t\t\t\tif (mngRes.buscarNegadoPeriodo(getDniEstudiante(), periodo.getPrdId()))\r\n\t\t\t\t\tMensaje.crearMensajeWARN(\r\n\t\t\t\t\t\t\t\"Usted no puede realizar una reserva. Para más información diríjase a las oficinas de Bienestar Estudiantil.\");\r\n\t\t\t\telse {\r\n\t\t\t\t\testudiante = mngRes.buscarMatriculadoPeriodo(getDniEstudiante(), periodo.getPrdId());\r\n\t\t\t\t\tif (estudiante == null) {\r\n\t\t\t\t\t\tMensaje.crearMensajeWARN(\r\n\t\t\t\t\t\t\t\t\"Usted no esta registrado. Para más información diríjase a las oficinas de Bienestar Universitario.\");\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tmngRes.generarEnviarToken(getEstudiante());\r\n\t\t\t\t\t\tRequestContext.getCurrentInstance().execute(\"PF('dlgtoken').show();\");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tMensaje.crearMensajeERROR(\"Error verificar matrícula: \" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void validar(View v) {\r\n //Compruebo que se hayan insertado todos los datos\r\n SimpleDateFormat formatoFecha = new SimpleDateFormat(\"dd-MM-yyyy\");\r\n if(!nombre.getText().toString().equals(\"\")\r\n &&!mail.getText().toString().equals(\"\")\r\n &&!fecha.getText().toString().equals(\"\")) {\r\n //Si se han introducido todos los datos compruebo la edad\r\n fNac = null;\r\n fActual = null;\r\n\r\n try {\r\n fNac = formatoFecha.parse(fecha.getText().toString());\r\n fActual = new Date();\r\n edad = (int) ((fActual.getTime() - fNac.getTime()) / 1000 / 60 / 60 / 24 / 360);//Calculo la edad\r\n //Compruebo si es mayor de edad\r\n if (edad < 18)\r\n //Error si es menor de edad\r\n Toast.makeText(getApplicationContext(), R.string.menorDeEdad, Toast.LENGTH_LONG).show();\r\n else {//Si todo es correcto devuelve los datos introcucidos a la pantalla principal.\r\n Toast.makeText(getApplicationContext(), R.string.registroCompletado, Toast.LENGTH_LONG).show();\r\n Intent i = new Intent();\r\n i.putExtra(\"REGISTRADO\", true);\r\n i.putExtra(\"NOMBRE\", nombre.getText().toString());\r\n i.putExtra(\"MAIL\", mail.getText().toString());\r\n i.putExtra(\"FECHA\", fecha.getText().toString());\r\n setResult(RESULT_OK,i);\r\n finish();\r\n }\r\n } catch (Exception e) {\r\n Toast.makeText(getApplicationContext(), \"Error\", Toast.LENGTH_LONG).show();//Si no se ha introducido ninguna fecha\r\n }\r\n }else\r\n Toast.makeText(getApplicationContext(), R.string.toastFaltanDatos, Toast.LENGTH_LONG).show();\r\n }",
"void fiscalCodeValidity(M person) {\n // Valid data\n assignValidData(person);\n assertDoesNotThrow(person::checkDataValidity);\n\n // Invalid data\n person.setFiscalCode(null);\n assertThrows(InvalidFieldException.class, person::checkDataValidity);\n person.setFiscalCode(\"A\");\n assertThrows(InvalidFieldException.class, person::checkDataValidity);\n }",
"public boolean validarForm() throws Exception {\r\n\r\n\t\tboolean valida = true;\r\n\r\n\t\tif (!valida) {\r\n\t\t\tMessagebox.show(\"Los campos marcados con (*) son obligatorios\",\r\n\t\t\t\t\tusuarios.getNombres() + \" recuerde que...\", Messagebox.OK,\r\n\t\t\t\t\tMessagebox.EXCLAMATION);\r\n\t\t}\r\n\r\n\t\treturn valida;\r\n\t}",
"void firstNameValidity(M person) {\n // Valid data\n assignValidData(person);\n assertDoesNotThrow(person::checkDataValidity);\n\n // Invalid data\n person.setFirstName(null);\n assertThrows(InvalidFieldException.class, person::checkDataValidity);\n person.setFirstName(\"AA1\");\n assertThrows(InvalidFieldException.class, person::checkDataValidity);\n }",
"private void validateData() {\n }",
"public void crearPeliculaNueva(){\n //Atributos de pelicula\n String titulo;\n String autor;\n Multimedia.FORMATO formato;\n GregorianCalendar anyo;\n double duracion = 0;\n String actorPrincipal;\n String actrizPrincipal;\n\n boolean validado = false;\n\n\n titulo = pedirString( \"titulo\"); // Pido el titulo\n autor = pedirString(\"autor\"); // Pido el autor\n formato = pedirFormato(); // Pido el formato\n anyo = pedirAnyo(); // Pido el anyo\n\n do{\n System.out.println(\"Introduce la duracion:\");\n try {\n duracion = Double.parseDouble(lector.nextLine());\n validado = true;\n\n if(duracion <= 0){\n validado = false;\n System.out.println(\"la duracion no puede ser un numero negativo\");\n }\n }catch (NumberFormatException nfe){\n System.out.println(\"Por favor, introduce un numero.\");\n }\n\n }while(!validado);\n validado = false;\n\n // Pido el actor\n do {\n System.out.println(\"Actor: \");\n actorPrincipal = lector.nextLine();\n validado = titulo.length() > 2;\n if(!validado) {\n System.out.println(\"El actor debe tener almenos 2 caracteres\");\n Lib.pausa();\n }\n } while (!validado);\n\n validado = false;\n\n // Pido la actriz\n do {\n System.out.println(\"Actriz: \");\n actrizPrincipal = lector.nextLine();\n validado = titulo.length() > 2;\n if(!validado) {\n System.out.println(\"La actriz debe tener almenos 2 caracteres\");\n Lib.pausa();\n }\n } while (!validado);\n\n\n // Finalmente creo la pelicula y lo anyado a las peliculas de la tienda.\n tienda.getPeliculas().add(new Pelicula(titulo, autor, formato, anyo, duracion, actorPrincipal, actrizPrincipal));\n System.out.println(\"Pelicula creado con exito\");\n Lib.pausa();\n\n }",
"public boolean validarForm() throws Exception {\n\n\t\tboolean valida = true;\n\n\t\tif (!valida) {\n\t\t\tMensajesUtil.mensajeAlerta(usuarios.getNombres()\n\t\t\t\t\t+ \" recuerde que...\",\n\t\t\t\t\t\"Los campos marcados con (*) son obligatorios\");\n\t\t}\n\n\t\treturn valida;\n\t}"
] | [
"0.6656113",
"0.6640114",
"0.65798867",
"0.65522546",
"0.65472674",
"0.65188444",
"0.6469047",
"0.64347935",
"0.6389813",
"0.62918544",
"0.6288726",
"0.6286731",
"0.6286731",
"0.6286731",
"0.6286731",
"0.6286731",
"0.6286731",
"0.6286731",
"0.6286731",
"0.6286731",
"0.6286731",
"0.6286731",
"0.6286731",
"0.6286731",
"0.6286731",
"0.6286731",
"0.6286731",
"0.6286731",
"0.6286731",
"0.6286731",
"0.6286731",
"0.6286731",
"0.6286731",
"0.6286731",
"0.6286731",
"0.6286731",
"0.6286731",
"0.6286731",
"0.6286731",
"0.6286731",
"0.6286731",
"0.6286731",
"0.6286731",
"0.6286731",
"0.6286731",
"0.6286731",
"0.6286731",
"0.628151",
"0.6276136",
"0.62746775",
"0.6262474",
"0.62064904",
"0.6205089",
"0.6192752",
"0.6179487",
"0.6157728",
"0.6141645",
"0.6112209",
"0.6053976",
"0.6038863",
"0.6029036",
"0.60267335",
"0.6021265",
"0.59912044",
"0.5986409",
"0.59477997",
"0.5921326",
"0.5910942",
"0.5907518",
"0.5903304",
"0.5902782",
"0.58956534",
"0.58955455",
"0.5892875",
"0.5849081",
"0.58436465",
"0.5833577",
"0.58294564",
"0.58162796",
"0.58152455",
"0.58100003",
"0.5805603",
"0.58026284",
"0.5792662",
"0.5787584",
"0.57861835",
"0.5778442",
"0.57712626",
"0.5761671",
"0.57590604",
"0.5753951",
"0.5749845",
"0.5748652",
"0.5745311",
"0.5744065",
"0.57301295",
"0.5718651",
"0.57183117",
"0.5718273",
"0.5717112",
"0.5659841"
] | 0.0 | -1 |
Instantiates a new BrowserPresenterFactory. | public BrowserPresenterFactory(Context context) {
this.context = context;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BrowserPresenter create() {\n return new BrowserPresenter(context);\n }",
"Browser create(ConnectionFactory connectionFactory) {\n return new BrowserImpl(connectionFactory);\n }",
"public JavaBrowsingPerspectiveFactory() {\n\t\tsuper();\n\t}",
"private static LoginRequiredPagePresenter createPresenter() {\r\n ClientSession session = mock(ClientSession.class);\r\n SystemStateInjector systemStateInjector = mock(SystemStateInjector.class);\r\n when(systemStateInjector.getSession()).thenReturn(session);\r\n ExternalEventBus eventBus = mock(ExternalEventBus.class);\r\n ILoginRequiredPageView view = mock(ILoginRequiredPageView.class);\r\n\r\n LoginRequiredPagePresenter presenter = new LoginRequiredPagePresenter();\r\n presenter.setSystemStateInjector(systemStateInjector);\r\n presenter.setEventBus(eventBus);\r\n presenter.setView(view);\r\n\r\n assertSame(systemStateInjector, presenter.getSystemStateInjector());\r\n assertSame(session, presenter.getSession());\r\n assertSame(eventBus, presenter.getEventBus());\r\n assertSame(view, presenter.getView());\r\n\r\n return presenter;\r\n }",
"@Test\n public void createPresenter_setsThePresenterToView() {\n historyPresenter = new HistoryPresenter(historyView, remoteDataSource,\n sharedPreferenceService);\n\n // Then the presenter is set to the view.\n verify(historyView).setPresenter(historyPresenter);\n }",
"public WebpageFactoryImpl() {\n\t\tsuper();\n\t}",
"public bhi createPresenter() {\n return new bhi(this);\n }",
"public static WebpageFactory init() {\n\t\ttry {\n\t\t\tWebpageFactory theWebpageFactory = (WebpageFactory)EPackage.Registry.INSTANCE.getEFactory(WebpagePackage.eNS_URI);\n\t\t\tif (theWebpageFactory != null) {\n\t\t\t\treturn theWebpageFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new WebpageFactoryImpl();\n\t}",
"public BromiumFactoryImpl()\n {\n super();\n }",
"public PrePareLivePresenter createPresenter() {\n return new PrePareLivePresenter(this.mContext, this);\n }",
"SeleniumFactory getSeleniumFactory();",
"private static AccountLockedPagePresenter createPresenter() {\r\n ExternalEventBus eventBus = mock(ExternalEventBus.class);\r\n IAccountLockedPageView view = mock(IAccountLockedPageView.class);\r\n\r\n AccountLockedPagePresenter presenter = new AccountLockedPagePresenter();\r\n presenter.setEventBus(eventBus);\r\n presenter.setView(view);\r\n\r\n assertSame(eventBus, presenter.getEventBus());\r\n assertSame(view, presenter.getView());\r\n\r\n return presenter;\r\n }",
"public static BromiumFactory init()\n {\n try\n {\n BromiumFactory theBromiumFactory = (BromiumFactory)EPackage.Registry.INSTANCE.getEFactory(BromiumPackage.eNS_URI);\n if (theBromiumFactory != null)\n {\n return theBromiumFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new BromiumFactoryImpl();\n }",
"private void initPresenter() {\n\n RequestQueue requestQueue = App.getInstance().getRequestQueue();\n CatsHttp catsHttp = new VolleyCatsHttp(requestQueue);\n\n CatsRepository catsRepository = new CatsRepository(catsHttp);\n\n presenter = new MainPresenter(catsRepository);\n presenter.bindView(this);\n }",
"@Test\n public void createPresenter_setsThePresenterToView() {\n mEntryDetailPresenter = new EntryDetailPresenter(\n mEntryRepository, mEntryDetailView);\n\n // Then the presenter is set to the view\n verify(mEntryDetailView).setPresenter(mEntryDetailPresenter);\n }",
"void setupPresenter() {\n mPresenter = new leaguePresenter(this);\n ScheduleList.getInstance().setPresenter(mPresenter);\n }",
"private static org.netbeans.beaninfo.editors.HtmlBrowser.FactoryEditor createHtmlBrowserFactoryEditor() {\n return new org.netbeans.beaninfo.editors.HtmlBrowser.FactoryEditor(){\n public void setValue(Object value) {\n setWWWBrowser((HtmlBrowser.Factory)value);\n }\n\n public Object getValue() {\n return getWWWBrowser();\n }\n };\n }",
"public static WebDriverFactory getFactory(){\r\n\t\treturn new FirefoxWebDriverFactory();\r\n\t}",
"public interface Factory{\n\n @NonNull\n Navigator createNavigator();\n }",
"public DashBoardPageFactory(WebDriver driver) {\n\n\t\tdriver=DriverManager.getDriver();\n\t\tPageFactory.initElements(driver, this);\n\t}",
"public interface IMainframeFactory {\n\n\t/**\n\t * \n\t * @return new instance of IMainframe\n\t */\n\tIMainframe createInstance();\n}",
"@Override\n protected ActiveAreaPresenter createPresenter() {\n return new ActiveAreaPresenter(this);\n }",
"public static HwDiagramFactory init() {\r\n\t\ttry {\r\n\t\t\tHwDiagramFactory theHwDiagramFactory = (HwDiagramFactory)EPackage.Registry.INSTANCE.getEFactory(HwDiagramPackage.eNS_URI);\r\n\t\t\tif (theHwDiagramFactory != null) {\r\n\t\t\t\treturn theHwDiagramFactory;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new HwDiagramFactoryImpl();\r\n\t}",
"public abstract void setupMvpPresenter();",
"public interface ProjectHomePresenter {\n\n void init();\n\n}",
"protected WebDriver newDriver() {\n SupportedWebDriver supportedDriverType = Configuration.getDriverType();\n return webDriverFactory.newInstanceOf(supportedDriverType);\n }",
"public static ViewFactory getFactory() {\r\n return new ViewFactory() {\r\n @Override\r\n public boolean canDisplay(CellRenderer renderer) {\r\n return renderer instanceof SwingCellRenderer;\r\n }\r\n\r\n @Override\r\n public View getView(CellRenderer renderer) {\r\n return new SwingView((SwingCellRenderer)renderer);\r\n }\r\n };\r\n }",
"public interface PresenterFactory<T extends BasePresenter> {\n @NonNull\n T create();\n}",
"public static UiFactory init() {\n\t\ttry {\n\t\t\tUiFactory theUiFactory = (UiFactory)EPackage.Registry.INSTANCE.getEFactory(UiPackage.eNS_URI);\n\t\t\tif (theUiFactory != null) {\n\t\t\t\treturn theUiFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new UiFactoryImpl();\n\t}",
"public UiFactoryImpl() {\n\t\tsuper();\n\t}",
"public AmazonHomePageFactory(WebDriver driver){\n\t\t\n\t\tPageFactory.initElements(driver, this);\n \n elementControl=new CommonElements();\n \n \n dropdownControl=new DropdownControl();\n \n \n\t}",
"@Override\n\tpublic EmbeddedBrowser get() {\n\t\tLOGGER.debug(\"Setting up a Browser\");\n\t\t// Retrieve the config values used\n\t\tImmutableSortedSet<String> filterAttributes =\n\t\t configuration.getCrawlRules().getPreCrawlConfig().getFilterAttributeNames();\n\t\tlong crawlWaitReload = configuration.getCrawlRules().getWaitAfterReloadUrl();\n\t\tlong crawlWaitEvent = configuration.getCrawlRules().getWaitAfterEvent();\n\n\t\t// Determine the requested browser type\n\t\tEmbeddedBrowser browser = null;\n\t\tEmbeddedBrowser.BrowserType browserType = configuration.getBrowserConfig().getBrowsertype();\n\t\ttry {\n\t\t\tswitch (browserType) {\n\t\t\t\tcase FIREFOX:\n\t\t\t\t\tbrowser =\n\t\t\t\t\t newFireFoxBrowser(filterAttributes, crawlWaitReload, crawlWaitEvent);\n\t\t\t\t\tbreak;\n\t\t\t\tcase INTERNET_EXPLORER:\n\t\t\t\t\tbrowser =\n\t\t\t\t\t WebDriverBackedEmbeddedBrowser.withDriver(\n\t\t\t\t\t new InternetExplorerDriver(),\n\t\t\t\t\t filterAttributes, crawlWaitEvent, crawlWaitReload);\n\t\t\t\t\tbreak;\n\t\t\t\tcase CHROME:\n\t\t\t\t\tbrowser = newChromeBrowser(filterAttributes, crawlWaitReload, crawlWaitEvent);\n\t\t\t\t\tbreak;\n\t\t\t\tcase REMOTE:\n\t\t\t\t\tbrowser =\n\t\t\t\t\t WebDriverBackedEmbeddedBrowser.withRemoteDriver(configuration\n\t\t\t\t\t .getBrowserConfig().getRemoteHubUrl(), filterAttributes,\n\t\t\t\t\t crawlWaitEvent, crawlWaitReload);\n\t\t\t\t\tbreak;\n\t\t\t\tcase PHANTOMJS:\n\t\t\t\t\tbrowser =\n\t\t\t\t\t newPhantomJSDriver(filterAttributes, crawlWaitReload, crawlWaitEvent);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new IllegalStateException(\"Unrecognized browsertype \"\n\t\t\t\t\t + configuration.getBrowserConfig().getBrowsertype());\n\t\t\t}\n\t\t} catch (IllegalStateException e) {\n\t\t\tLOGGER.error(\"Crawling with {} failed: {}\", browserType.toString(), e.getMessage());\n\t\t\tthrow e;\n\t\t}\n\t\tplugins.runOnBrowserCreatedPlugins(browser);\n\t\treturn browser;\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}",
"private void createUI() throws FactoryException {\n assert theGame != null;\n assert ghostController != null;\n\n buttonPanel = new ButtonPanel(this);\n buttonPanel.initialize();\n\n pi = new PacmanInteraction(this, theGame);\n pi.addController(ghostController);\n buttonPanel.setListener(pi);\n this.addKeyListener(new PacmanKeyListener(pi));\n\n boardView = createBoardView();\n animator = new Animator(boardView);\n pi.addController(animator);\n\n points = new PointsPanel();\n points.initialize(theGame.getPointManager());\n theGame.attach(points);\n\n JPanel mainGrid = new JPanel();\n mainGrid.setLayout(new BorderLayout());\n mainGrid.setName(\"jpacman.topdown\");\n mainGrid.add(points, BorderLayout.NORTH);\n mainGrid.add(boardView, BorderLayout.CENTER);\n mainGrid.add(buttonPanel, BorderLayout.SOUTH);\n\n getContentPane().add(mainGrid);\n\n int width = Math.max(boardView.windowWidth(), buttonPanel.getWidth());\n int height = boardView.windowHeight() + buttonPanel.getHeight();\n setSize(width, height);\n setGridSize();\n\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n setName(\"jpacman.main\");\n setTitle(\"JPacman\");\n }",
"private void initMVP() {\n mainPresenter = new MainPresenter(this, getActivity());\n }",
"public interface BasePresenter {\n void init();\n}",
"public static Factory factory() {\n return ext_h::new;\n }",
"public interface IView {\n void initializePresenter();\n BasePresenter getPresenter();\n}",
"@Override\r\n\tprotected void initializePresenter() {\n\r\n\t}",
"public static DomainManagerLauncher newInstance() {\n return new DomainManagerLauncher();\n }",
"public PiviFactoryImpl() {\r\n\t\tsuper();\r\n\t}",
"public WebDriver createWebDriver()\n {\n WebDriver result = null;\n \n LoggingHelper.LogInfo(getClass().getName(), \"Initializing the FirefoxDriver instance.\");\n try \n { \n result = new FirefoxDriver(); \n } \n catch(Exception e)\n {\n LoggingHelper.LogError(getClass().getName(), \"Cannot initialize the FirefoxDriver: %s\", e.toString());\n throw e;\n }\n \n LoggingHelper.LogVerbose(getClass().getName(), \"Succesfully initialized the FirefoxDriver instance.\"); \n return result;\n }",
"public SlackPresenter() {\n if (this.slackService == null) {\n this.slackService = new SlackService();\n }\n }",
"public static ControlFactory init() {\n\t\ttry {\n\t\t\tControlFactory theControlFactory = (ControlFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://opaeum.org/uimetamodel/control/1.0\"); \n\t\t\tif (theControlFactory != null) {\n\t\t\t\treturn theControlFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new ControlFactoryImpl();\n\t}",
"public static HtmlBrowser.Factory getExternalWWWBrowser () {\n return getBrowser( PROP_EXTERNAL_WWWBROWSER, true );\n }",
"private NKE_BrowserWindow() {}",
"private Presenter createChatClientFactory(View view) {\r\n\t\tPresenter presenter = new ClientPresenter();\r\n\t\tview.setPresenter(presenter);\r\n\t\tpresenter.setView(view);\r\n\t\treturn presenter;\r\n\t}",
"public static VizualizerFactory init()\n {\n try\n {\n VizualizerFactory theVizualizerFactory = (VizualizerFactory)EPackage.Registry.INSTANCE.getEFactory(VizualizerPackage.eNS_URI);\n if (theVizualizerFactory != null)\n {\n return theVizualizerFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new VizualizerFactoryImpl();\n }",
"public static HtmlBrowser.Factory getWWWBrowser () {\n return getBrowser( PROP_WWWBROWSER, false );\n }",
"public GameDomainFactory() {\r\n\t\t\r\n\t\tCreateGameDomain = new HashMap<String, GameDomainFactory.gameDomainCreator>();\r\n\t\tCreateGameDomain.put(\"TicTacToe\" , new ticTacToeCreator());\r\n\t\tCreateGameDomain.put(\"Reversi\", new CreatorReversi());\r\n\t}",
"private ViewFactory() {}",
"@Before\n public void setup() {\n RoboGuice.overrideApplicationInjector(RuntimeEnvironment.application, new MyTestModule());\n mainPresenter = new MainPresenter(\n RuntimeEnvironment.application.getApplicationContext(), loginViewMock);\n\n }",
"public interface IMainPresenter {\n}",
"public ProyectoFactoryImpl() {\r\n\t\tsuper();\r\n\t}",
"interface MainPresenter {\n}",
"public static PiviFactory init() {\r\n\t\ttry {\r\n\t\t\tPiviFactory thePiviFactory = (PiviFactory)EPackage.Registry.INSTANCE.getEFactory(PiviPackage.eNS_URI);\r\n\t\t\tif (thePiviFactory != null) {\r\n\t\t\t\treturn thePiviFactory;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new PiviFactoryImpl();\r\n\t}",
"public ChoosePagePresenter() {\n// mGetKnowledgeHierarchyDataFromNet = new GetKnowledgeHierarchyDataFromNet();\n dataManager = DataManager.getInstance();\n }",
"private void init() {\n //set view to presenter\n presenter.setView(this, service);\n\n setupView();\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 800, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJPanel browserPanel = new JPanel();\n\t\tframe.getContentPane().add(browserPanel, BorderLayout.CENTER);\n\t\t\n\t\t// create javafx panel for browser\n browserFxPanel = new JFXPanel();\n browserPanel.add(browserFxPanel);\n \n // create JavaFX scene\n Platform.runLater(new Runnable() {\n public void run() {\n createScene();\n }\n });\n\t}",
"public static WebDriver initializatio(){\n\t\t \r\n\t\t\t String browse_name= prop.getProperty(\"browser\");\r\n\t\t\t \r\n\t\t\t \r\n\t\t if(driver==null && browse_name.equals(\"chrome\")){\r\n\t\t\t System.setProperty(\"webdriver.chrome.driver\", \"C://Users//RJ//Downloads//chromedriver.exe\");\r\n\t\t\t driver=new ChromeDriver();\r\n\t\t\t //E:\\Yadav Selenium\r\n\t\t }\r\n\t\t \r\n\t\t else if(driver==null && browse_name.equals(\"FF\")){\r\n\t\t\t System.setProperty(\"webdriver.gecko.driver\", \"E://Yadav Selenium//geckodriver.exe\");\r\n\t\t\t driver=new FirefoxDriver();\r\n\t\t }\r\n\t\t event_driver=new EventFiringWebDriver(driver);\r\n\t\t //now cearte Eventlistnerhandler to resgistor with eventFireingWebdriver\r\n\t\t event_lisner=new WebEventListner();\r\n\t\t event_driver.register(event_lisner);\r\n\t\t driver=event_driver;\r\n\t\t \r\n\t\t driver.manage().window().maximize();\r\n\t\t driver.manage().deleteAllCookies();\r\n\t\t driver.manage().timeouts().pageLoadTimeout(Testutil.PAGE_LOAD_TIMEOUT, TimeUnit.SECONDS);\r\n\t\t driver.manage().timeouts().implicitlyWait(Testutil.IMPLICIT_WAIT, TimeUnit.SECONDS);\r\n\t\t // driver.get(prop.getProperty(\"url\"));\r\n\t\t driver.navigate().to(prop.getProperty(\"url\"));\r\n\t\treturn driver;\r\n\t}",
"public Factory() {\n\t\tsuper();\n\t}",
"public WebDriver createWebDriverInstance(String Browser) throws MalformedURLException\n\t{\n\t\tif(d==null && Browser.equals(\"Firefox\"))\n\t\t{\n\n\t\t\td = new FirefoxDriver();\n\t\t\tlogger.info(\"--FireFox Browser has opened \");\n\t\t}\n\n\t\telse if(d==null && Browser.equals(\"Chrome\"))\n\t\t{\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\toptions.addArguments(\"start-maximized\");\n\t\t\tDesiredCapabilities capabilities = new DesiredCapabilities(DesiredCapabilities.chrome());\n\t\t\tcapabilities.setCapability (CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\t\tcapabilities.setCapability (ChromeOptions.CAPABILITY,options);\n\t\t\tChromeDriverManager.getInstance().setup();\n\t\t\t\n\t\t\t//Don't Remember Passwords by default\n\t\t\tMap<String, Object> prefs = new HashMap<String, Object>();\n\t\t\tprefs.put(\"credentials_enable_service\", false);\n\t\t\tprefs.put(\"profile.password_manager_enabled\", false);\n\t\t\toptions.setExperimentalOption(\"prefs\", prefs);\n\t\t\t/*\n\t\t\tString path =System.getProperty(\"user.dir\")+File.separator+\"chromedriver.exe\";\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", path);\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\tDesiredCapabilities caps = DesiredCapabilities.chrome();*/\n\t\t\td = new ChromeDriver(capabilities);\n\t\t\tlogger.info(\"--Chrome Browser has opened \");\n\t\t}\n\n\t\telse if (d==null && Browser.equals(\"IE\"))\n\t\t{\n\t\t\tString path =\"binary/IEDriverServer.exe\";\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", path);\n\t\t\tlogger.info(\"--IEDriver has setup\");\n\t\t\tDesiredCapabilities caps = DesiredCapabilities.internetExplorer();\n\t\t\tcaps.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,true);\n\t\t\tcaps.setCapability(\"requireWindowFocus\", true);\n\t\t\tcaps.setCapability(\"enablePersistentHover\", true);\n\t\t\tcaps.setCapability(\"native events\", true);\n\t\t\td = new InternetExplorerDriver(caps);\n\t\t\tlogger.info(\"--IE Browser has opened \");\n\t\t}\n\t\telse if (d==null && Browser.equals(\"IE32bit\"))\n\t\t{\n\t\t\tString path =\"binary/IEDriverServer_32bit.exe\";\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", path);\n\t\t\tlogger.info(\"--IEDriver has setup\");\n\t\t\tDesiredCapabilities caps = DesiredCapabilities.internetExplorer();\n\t\t\tcaps.setCapability(\n\t\t\t\t\tInternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,\n\t\t\t\t\ttrue);\n\t\t\tcaps.setCapability(\"requireWindowFocus\", true);\n\t\t\tcaps.setCapability(\"enablePersistentHover\", false);\n\t\t\tcaps.setCapability(\"native events\", true);\n\t\t\td = new InternetExplorerDriver(caps);\n\t\t\tlogger.info(\"--IE Browser has opened \");\n\t\t}\n\t\treturn d;\n\n\n\t}",
"private void createNewDriverInstance() {\n String browser = props.getProperty(\"browser\");\n if (browser.equals(\"firefox\")) {\n FirefoxProfile profile = new FirefoxProfile();\n profile.setPreference(\"intl.accept_languages\", language);\n driver = new FirefoxDriver();\n } else if (browser.equals(\"chrome\")) {\n ChromeOptions options = new ChromeOptions();\n options.setBinary(new File(chromeBinary));\n options.addArguments(\"--lang=\" + language);\n driver = new ChromeDriver(options);\n } else {\n System.out.println(\"can't read browser type\");\n }\n }",
"public interface IMainPresenter {\n\n void addNavigation();\n\n void addFragment();\n\n}",
"public DemoPluginFactory() {}",
"public static BehaviourFactory init() {\n\t\ttry {\n\t\t\tBehaviourFactory theBehaviourFactory = (BehaviourFactory)EPackage.Registry.INSTANCE.getEFactory(BehaviourPackage.eNS_URI);\n\t\t\tif (theBehaviourFactory != null) {\n\t\t\t\treturn theBehaviourFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new BehaviourFactoryImpl();\n\t}",
"private CreationViewController getCreationBrowserController(){\n\n FXMLLoader loader = new FXMLLoader(\n getClass().getResource(\"/CreationView.fxml\")\n );\n stage = new Stage(StageStyle.DECORATED);\n try {\n stage.setScene(new Scene(loader.load(), 800, 600));\n } catch (IOException e) {\n return null;\n }\n\n CreationViewController controller = loader.getController();\n builder.ConfigureUIController(controller, stage);\n return controller;\n }",
"public static void launchingBrowser() throws Exception {\n\n\t\tString applicationURL = merchEnv.getProtocol() + \"://\"\n\t\t\t\t+ merchEnv.getHost() + \":\" + merchEnv.getPort() + \"/\";\n\t\tselectedBrowser = merchEnv.getBrowser();\n\t\ttry {\n\t\t\tbaseScreen = new BaseScreen(selectedBrowser, applicationURL,\n\t\t\t\t\tmerchEnv.getContext(), merchEnv, merchUserInfo, merchUI);\n\t\t} catch (ScreenException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public static EditorFactory init() {\n\t\ttry {\n\t\t\tEditorFactory theEditorFactory = (EditorFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://opaeum.org/uimetamodel/editor/1.0\"); \n\t\t\tif (theEditorFactory != null) {\n\t\t\t\treturn theEditorFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new EditorFactoryImpl();\n\t}",
"private void $$$setupUI$$$() {\n\t\tpanel_overview = new JPanel();\n\t\tpanel_overview.setLayout(new BorderLayout(0, 0));\n\t\twebView = new WebbrowserPanel();\n\t\tpanel_overview.add(webView, BorderLayout.CENTER);\n\t}",
"public static GraphicsFactory init() {\n\t\ttry {\n\t\t\tGraphicsFactory theGraphicsFactory = (GraphicsFactory)EPackage.Registry.INSTANCE.getEFactory(GraphicsPackage.eNS_URI);\n\t\t\tif (theGraphicsFactory != null) {\n\t\t\t\treturn theGraphicsFactory;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new GraphicsFactory();\n\t}",
"public HomePage(){\r\n\tPageFactory.initElements(driver, this);\t\r\n\t}",
"static public ContentHandleFactory newFactory(Class<?>... pojoClasses)\n throws JAXBException {\n if (pojoClasses == null || pojoClasses.length == 0)\n return null;\n return new JAXBHandleFactory(pojoClasses);\n }",
"private static MockPageManager createPageManager()\r\n {\r\n return new MockPageManager();\r\n }",
"public interface IWelcomePresenter {\n}",
"IJQueryBrowser createBrowser(Display display, final SwtBrowserCanvas canvas,\n final BrowserPage page) {\n Shell shell = SWT_AWT.new_Shell(display, canvas);\n IJQueryBrowser browser = SWTJQueryBrowser\n .createSWTBrowser(shell, SWT.NONE);\n\n /* Ideally the size of browser and shell gets set via a resize listener.\n * This does not work when the tool window is re-openend as no size\n * change event is fired. The if clause below sets the size for this case */\n if (canvas.getHeight() > 0 && canvas.getWidth() > 0) {\n shell.setSize(canvas.getWidth(), canvas.getHeight());\n browser.setSize(canvas.getWidth(), canvas.getHeight());\n }\n\n final URL url = BrowserUtils.getResourceURL(page.getWebpage());\n \n assert url != null;\n \n browser.open(url.toString(), 5000);\n page.createBrowserFunctions(browser);\n browserManager.setBrowser(page, browser);\n browser.runOnDisposal(new Runnable() {\n @Override\n public void run() {\n browserManager.removeBrowser(page);\n }\n });\n \n return browser;\n }",
"public static PageGeneratorLanguareFactory init()\n {\n try\n {\n PageGeneratorLanguareFactory thePageGeneratorLanguareFactory = (PageGeneratorLanguareFactory)EPackage.Registry.INSTANCE.getEFactory(PageGeneratorLanguarePackage.eNS_URI);\n if (thePageGeneratorLanguareFactory != null)\n {\n return thePageGeneratorLanguareFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new PageGeneratorLanguareFactoryImpl();\n }",
"public static DOMImplementationRegistry newInstance() \t\t\n throws ClassNotFoundException, InstantiationException, \n IllegalAccessException\n {\n Vector _sources = new Vector(); \n\n // fetch system property:\n String p = System.getProperty(PROPERTY);\n if (p != null) {\n StringTokenizer st = new StringTokenizer(p);\n while (st.hasMoreTokens()) {\n String sourceName = st.nextToken();\n // Use context class loader, falling back to Class.forName\n // if and only if this fails...\n Object source = getClass(sourceName).newInstance();\n _sources.add(source);\n }\n }\n return new DOMImplementationRegistry(_sources);\n }",
"public static ProyectoFactory init() {\r\n\t\ttry {\r\n\t\t\tProyectoFactory theProyectoFactory = (ProyectoFactory)EPackage.Registry.INSTANCE.getEFactory(ProyectoPackage.eNS_URI);\r\n\t\t\tif (theProyectoFactory != null) {\r\n\t\t\t\treturn theProyectoFactory;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new ProyectoFactoryImpl();\r\n\t}",
"public ControlFactoryImpl() {\n\t\tsuper();\n\t}",
"public WebDriver initDriver (Properties prop) {\r\n\t\tString browserName = prop.getProperty(\"browser\");\r\n\t\tif(browserName.equals(\"chrome\")) {\r\n\t\t\toptionsManager = new OptionsManager(prop);\r\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\",\"./src/test/resources/chrome/chromedriver.exe\");\r\n\t\t\tdriver = new ChromeDriver(optionsManager.getChromeOptions());\r\n\t\t}else if(browserName.equals(\"firefox\")) {\r\n\t\t\toptionsManager = new OptionsManager(prop);\r\n\t\t\tSystem.setProperty(\"webdriver.gecko.driver\",\"./src/test/resources/firefox/geckodriver.exe\");\r\n\t\t\tdriver = new FirefoxDriver(optionsManager.getFirefoxOptions());\r\n\t\t}\r\n\t\t\r\n\t\teventDriver = new EventFiringWebDriver(driver);\r\n\t\teventListener = new WebEventListener();\r\n\t\teventDriver.register(eventListener);\r\n\t\tdriver = eventDriver;\r\n\t\t\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().deleteAllCookies();\r\n\t\tdriver.manage().timeouts().implicitlyWait(15, TimeUnit.SECONDS);\r\n\t\tdriver.get(prop.getProperty(\"url\"));\r\n\t\treturn driver;\r\n\t}",
"public static PascalFactory init()\n {\n try\n {\n PascalFactory thePascalFactory = (PascalFactory)EPackage.Registry.INSTANCE.getEFactory(PascalPackage.eNS_URI);\n if (thePascalFactory != null)\n {\n return thePascalFactory;\n }\n }\n catch (Exception exception)\n {\n EcorePlugin.INSTANCE.log(exception);\n }\n return new PascalFactoryImpl();\n }",
"protected WebDriver createPhantomJSDriver() {\n DesiredCapabilities desiredCapabilities = new DesiredCapabilities();\n String[] phantomArgs = new String[]{\n \"--webdriver-loglevel=\"\n + Resources.base().webDriverLogLevel()\n };\n desiredCapabilities\n .setCapability(PhantomJSDriverService.PHANTOMJS_CLI_ARGS,\n phantomArgs);\n desiredCapabilities.setCapability(\n \"phantomjs.page.customHeaders.Accept-Language\",\n getSystemLanguage());\n PhantomJSDriver phantomJSDriver = new PhantomJSDriver(\n desiredCapabilities);\n phantomJSDriver.manage().window().maximize();\n return phantomJSDriver;\n }",
"public void initialize() throws FactoryException {\n theGame = createModel();\n theGame.attach(this);\n ghostController = new RandomGhostMover(theGame);\n createUI();\n }",
"CreateEventViewModelFactory() {\n super(Storage.class, Authenticator.class);\n }",
"public interface IMainPresenter {\n void initialize();\n Fragment getFragments(int page);\n}",
"public static CommandsFactoryImpl init() {\r\n\t\ttry {\r\n\t\t\tCommandsFactoryImpl theCommandsFactory = (CommandsFactoryImpl) EPackage.Registry.INSTANCE\r\n\t\t\t\t\t.getEFactory(CommandsPackageImpl.eNS_URI);\r\n\t\t\tif (theCommandsFactory != null) {\r\n\t\t\t\treturn theCommandsFactory;\r\n\t\t\t}\r\n\t\t} catch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new CommandsFactoryImpl();\r\n\t}",
"private WebView createWebView() {\n WebView webView = new WebView();\n webView.setContextMenuEnabled(false);\n\n WebEngine engine = webView.getEngine();\n // The files below must exist! Or pdf viewer no more!\n String url = new File(\"src/Resources/pdfjs_2.7.570/web/viewer.html\").toURI().toString();\n\n engine.setJavaScriptEnabled(true);\n engine.load(url);\n\n\n engine.getLoadWorker()\n .stateProperty()\n .addListener(\n new ChangeListener<>() {\n @Override\n public void changed(ObservableValue<? extends Worker.State> observable, Worker.State oldValue, Worker.State newValue) {\n JSObject window = (JSObject) engine.executeScript(\"window\");\n window.setMember(\"java\", null);\n engine.executeScript(\"console.log = function(message){ try {java.log(message);} catch(e) {} };\");\n\n if (newValue == Worker.State.SUCCEEDED) {\n try {\n PDFDisplayer.this.pdfJsLoaded = true;\n\n if (PDFDisplayer.this.loadScript != null) {\n engine.executeScript(PDFDisplayer.this.loadScript);\n }\n\n engine.executeScript(PDFDisplayer.this.toExecuteWhenPDFJSLoaded);\n PDFDisplayer.this.toExecuteWhenPDFJSLoaded = null;\n observable.removeListener(this);\n } catch (RuntimeException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }\n }\n }\n });\n return webView;\n }",
"public interface AbstractWidgetFactory {\n public Window createWindow();\n}",
"public Factory() {\n\t\tclassMap = new TreeMap<String,Class<T> >();\n\t}",
"protected BaseWicketTester newWicketTester() {\n return new BaseWicketTester(newApplication());\n }",
"public BuiltinFactoryImpl() {\n\t\tsuper();\n\t}",
"public Factory() {\n this(getInternalClient());\n }",
"private FireWeaponScreenFactory() {\n\t}",
"public interface NewDetailPresenter {\n void loadContent (String url);\n}",
"public DocsAppHomePO ()\n\t{\n\t\tPageFactory.initElements(driver, this);\n\t}",
"public interface LoginPresenter {\n void onCreate();\n}",
"public HomePage(){\n PageFactory.initElements(driver, this);\n }",
"public PageFactoryCruises(WebDriver driver) {\n\t\tthis.driver = driver;\n\t\tPageFactory.initElements(driver, this);\n\t}",
"protected abstract GameViewFactory getGameViewFactory();"
] | [
"0.8511873",
"0.70937777",
"0.6868804",
"0.66813004",
"0.63037646",
"0.61608887",
"0.61320233",
"0.61091906",
"0.6068314",
"0.6028995",
"0.59755236",
"0.5929406",
"0.5910548",
"0.58887774",
"0.57976377",
"0.57607573",
"0.5752625",
"0.5717713",
"0.5707498",
"0.5677856",
"0.564404",
"0.5634562",
"0.5605421",
"0.55816185",
"0.556341",
"0.5549346",
"0.5524277",
"0.55083036",
"0.5504735",
"0.5474463",
"0.54689467",
"0.54157364",
"0.54080594",
"0.5404418",
"0.53998786",
"0.53978664",
"0.5394069",
"0.53859675",
"0.5354904",
"0.5351329",
"0.534479",
"0.53360933",
"0.5329146",
"0.532096",
"0.5319807",
"0.52834165",
"0.528134",
"0.52790225",
"0.525064",
"0.5249732",
"0.52368367",
"0.52309537",
"0.52270544",
"0.5226694",
"0.52241695",
"0.5213942",
"0.5205696",
"0.5196599",
"0.51902795",
"0.51899546",
"0.5179822",
"0.5177348",
"0.5171678",
"0.51575977",
"0.5152294",
"0.5140505",
"0.513325",
"0.5124088",
"0.5117983",
"0.5117765",
"0.51158214",
"0.5115555",
"0.51146036",
"0.51126504",
"0.5108557",
"0.5104728",
"0.51018137",
"0.5101192",
"0.5098153",
"0.50968176",
"0.5095221",
"0.50849855",
"0.507794",
"0.50656635",
"0.50598234",
"0.5048018",
"0.5038344",
"0.5037411",
"0.5036152",
"0.50297695",
"0.5025866",
"0.50229967",
"0.5015427",
"0.5011705",
"0.5011424",
"0.50074303",
"0.50039035",
"0.5001687",
"0.49998158",
"0.4994671"
] | 0.78022116 | 1 |
Creates a new BrowserPresenter | public BrowserPresenter create() {
return new BrowserPresenter(context);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public BrowserPresenterFactory(Context context) {\n this.context = context;\n }",
"public bhi createPresenter() {\n return new bhi(this);\n }",
"Browser create(ConnectionFactory connectionFactory) {\n return new BrowserImpl(connectionFactory);\n }",
"@Test\n public void createPresenter_setsThePresenterToView() {\n historyPresenter = new HistoryPresenter(historyView, remoteDataSource,\n sharedPreferenceService);\n\n // Then the presenter is set to the view.\n verify(historyView).setPresenter(historyPresenter);\n }",
"private static LoginRequiredPagePresenter createPresenter() {\r\n ClientSession session = mock(ClientSession.class);\r\n SystemStateInjector systemStateInjector = mock(SystemStateInjector.class);\r\n when(systemStateInjector.getSession()).thenReturn(session);\r\n ExternalEventBus eventBus = mock(ExternalEventBus.class);\r\n ILoginRequiredPageView view = mock(ILoginRequiredPageView.class);\r\n\r\n LoginRequiredPagePresenter presenter = new LoginRequiredPagePresenter();\r\n presenter.setSystemStateInjector(systemStateInjector);\r\n presenter.setEventBus(eventBus);\r\n presenter.setView(view);\r\n\r\n assertSame(systemStateInjector, presenter.getSystemStateInjector());\r\n assertSame(session, presenter.getSession());\r\n assertSame(eventBus, presenter.getEventBus());\r\n assertSame(view, presenter.getView());\r\n\r\n return presenter;\r\n }",
"@Override\n protected ActiveAreaPresenter createPresenter() {\n return new ActiveAreaPresenter(this);\n }",
"public JavaBrowsingPerspectiveFactory() {\n\t\tsuper();\n\t}",
"public PrePareLivePresenter createPresenter() {\n return new PrePareLivePresenter(this.mContext, this);\n }",
"private static AccountLockedPagePresenter createPresenter() {\r\n ExternalEventBus eventBus = mock(ExternalEventBus.class);\r\n IAccountLockedPageView view = mock(IAccountLockedPageView.class);\r\n\r\n AccountLockedPagePresenter presenter = new AccountLockedPagePresenter();\r\n presenter.setEventBus(eventBus);\r\n presenter.setView(view);\r\n\r\n assertSame(eventBus, presenter.getEventBus());\r\n assertSame(view, presenter.getView());\r\n\r\n return presenter;\r\n }",
"public abstract void setupMvpPresenter();",
"@Test\n public void createPresenter_setsThePresenterToView() {\n mEntryDetailPresenter = new EntryDetailPresenter(\n mEntryRepository, mEntryDetailView);\n\n // Then the presenter is set to the view\n verify(mEntryDetailView).setPresenter(mEntryDetailPresenter);\n }",
"public <T extends TechnologyModelObject> TechnologyModuleBrowserElement<T> createBrowserElement(T object, ProjectBrowser browser,\n\t\t\tBrowserElement parent);",
"interface MainPresenter {\n}",
"private static org.netbeans.beaninfo.editors.HtmlBrowser.FactoryEditor createHtmlBrowserFactoryEditor() {\n return new org.netbeans.beaninfo.editors.HtmlBrowser.FactoryEditor(){\n public void setValue(Object value) {\n setWWWBrowser((HtmlBrowser.Factory)value);\n }\n\n public Object getValue() {\n return getWWWBrowser();\n }\n };\n }",
"protected WebDriver newDriver() {\n SupportedWebDriver supportedDriverType = Configuration.getDriverType();\n return webDriverFactory.newInstanceOf(supportedDriverType);\n }",
"void setupPresenter() {\n mPresenter = new leaguePresenter(this);\n ScheduleList.getInstance().setPresenter(mPresenter);\n }",
"IJQueryBrowser createBrowser(Display display, final SwtBrowserCanvas canvas,\n final BrowserPage page) {\n Shell shell = SWT_AWT.new_Shell(display, canvas);\n IJQueryBrowser browser = SWTJQueryBrowser\n .createSWTBrowser(shell, SWT.NONE);\n\n /* Ideally the size of browser and shell gets set via a resize listener.\n * This does not work when the tool window is re-openend as no size\n * change event is fired. The if clause below sets the size for this case */\n if (canvas.getHeight() > 0 && canvas.getWidth() > 0) {\n shell.setSize(canvas.getWidth(), canvas.getHeight());\n browser.setSize(canvas.getWidth(), canvas.getHeight());\n }\n\n final URL url = BrowserUtils.getResourceURL(page.getWebpage());\n \n assert url != null;\n \n browser.open(url.toString(), 5000);\n page.createBrowserFunctions(browser);\n browserManager.setBrowser(page, browser);\n browser.runOnDisposal(new Runnable() {\n @Override\n public void run() {\n browserManager.removeBrowser(page);\n }\n });\n \n return browser;\n }",
"public interface ProjectHomePresenter {\n\n void init();\n\n}",
"public interface NewDetailPresenter {\n void loadContent (String url);\n}",
"private void $$$setupUI$$$() {\n\t\tpanel_overview = new JPanel();\n\t\tpanel_overview.setLayout(new BorderLayout(0, 0));\n\t\twebView = new WebbrowserPanel();\n\t\tpanel_overview.add(webView, BorderLayout.CENTER);\n\t}",
"public interface IMainPresenter {\n\n void addNavigation();\n\n void addFragment();\n\n}",
"public WebpageFactoryImpl() {\n\t\tsuper();\n\t}",
"private void initPresenter() {\n\n RequestQueue requestQueue = App.getInstance().getRequestQueue();\n CatsHttp catsHttp = new VolleyCatsHttp(requestQueue);\n\n CatsRepository catsRepository = new CatsRepository(catsHttp);\n\n presenter = new MainPresenter(catsRepository);\n presenter.bindView(this);\n }",
"public interface IWelcomePresenter {\n}",
"void setPresenter(P2Presenter ctrl);",
"public interface IView {\n void initializePresenter();\n BasePresenter getPresenter();\n}",
"public interface IMainPresenter {\n}",
"Page createPage();",
"private NKE_BrowserWindow() {}",
"private CreationViewController getCreationBrowserController(){\n\n FXMLLoader loader = new FXMLLoader(\n getClass().getResource(\"/CreationView.fxml\")\n );\n stage = new Stage(StageStyle.DECORATED);\n try {\n stage.setScene(new Scene(loader.load(), 800, 600));\n } catch (IOException e) {\n return null;\n }\n\n CreationViewController controller = loader.getController();\n builder.ConfigureUIController(controller, stage);\n return controller;\n }",
"protected abstract void startMvpPresenter();",
"@Override\n\tpublic EmbeddedBrowser get() {\n\t\tLOGGER.debug(\"Setting up a Browser\");\n\t\t// Retrieve the config values used\n\t\tImmutableSortedSet<String> filterAttributes =\n\t\t configuration.getCrawlRules().getPreCrawlConfig().getFilterAttributeNames();\n\t\tlong crawlWaitReload = configuration.getCrawlRules().getWaitAfterReloadUrl();\n\t\tlong crawlWaitEvent = configuration.getCrawlRules().getWaitAfterEvent();\n\n\t\t// Determine the requested browser type\n\t\tEmbeddedBrowser browser = null;\n\t\tEmbeddedBrowser.BrowserType browserType = configuration.getBrowserConfig().getBrowsertype();\n\t\ttry {\n\t\t\tswitch (browserType) {\n\t\t\t\tcase FIREFOX:\n\t\t\t\t\tbrowser =\n\t\t\t\t\t newFireFoxBrowser(filterAttributes, crawlWaitReload, crawlWaitEvent);\n\t\t\t\t\tbreak;\n\t\t\t\tcase INTERNET_EXPLORER:\n\t\t\t\t\tbrowser =\n\t\t\t\t\t WebDriverBackedEmbeddedBrowser.withDriver(\n\t\t\t\t\t new InternetExplorerDriver(),\n\t\t\t\t\t filterAttributes, crawlWaitEvent, crawlWaitReload);\n\t\t\t\t\tbreak;\n\t\t\t\tcase CHROME:\n\t\t\t\t\tbrowser = newChromeBrowser(filterAttributes, crawlWaitReload, crawlWaitEvent);\n\t\t\t\t\tbreak;\n\t\t\t\tcase REMOTE:\n\t\t\t\t\tbrowser =\n\t\t\t\t\t WebDriverBackedEmbeddedBrowser.withRemoteDriver(configuration\n\t\t\t\t\t .getBrowserConfig().getRemoteHubUrl(), filterAttributes,\n\t\t\t\t\t crawlWaitEvent, crawlWaitReload);\n\t\t\t\t\tbreak;\n\t\t\t\tcase PHANTOMJS:\n\t\t\t\t\tbrowser =\n\t\t\t\t\t newPhantomJSDriver(filterAttributes, crawlWaitReload, crawlWaitEvent);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new IllegalStateException(\"Unrecognized browsertype \"\n\t\t\t\t\t + configuration.getBrowserConfig().getBrowsertype());\n\t\t\t}\n\t\t} catch (IllegalStateException e) {\n\t\t\tLOGGER.error(\"Crawling with {} failed: {}\", browserType.toString(), e.getMessage());\n\t\t\tthrow e;\n\t\t}\n\t\tplugins.runOnBrowserCreatedPlugins(browser);\n\t\treturn browser;\n\t}",
"@Override\r\n\tprotected void initializePresenter() {\n\r\n\t}",
"public interface PresenterFactory<T extends BasePresenter> {\n @NonNull\n T create();\n}",
"private void createUI() throws FactoryException {\n assert theGame != null;\n assert ghostController != null;\n\n buttonPanel = new ButtonPanel(this);\n buttonPanel.initialize();\n\n pi = new PacmanInteraction(this, theGame);\n pi.addController(ghostController);\n buttonPanel.setListener(pi);\n this.addKeyListener(new PacmanKeyListener(pi));\n\n boardView = createBoardView();\n animator = new Animator(boardView);\n pi.addController(animator);\n\n points = new PointsPanel();\n points.initialize(theGame.getPointManager());\n theGame.attach(points);\n\n JPanel mainGrid = new JPanel();\n mainGrid.setLayout(new BorderLayout());\n mainGrid.setName(\"jpacman.topdown\");\n mainGrid.add(points, BorderLayout.NORTH);\n mainGrid.add(boardView, BorderLayout.CENTER);\n mainGrid.add(buttonPanel, BorderLayout.SOUTH);\n\n getContentPane().add(mainGrid);\n\n int width = Math.max(boardView.windowWidth(), buttonPanel.getWidth());\n int height = boardView.windowHeight() + buttonPanel.getHeight();\n setSize(width, height);\n setGridSize();\n\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n setName(\"jpacman.main\");\n setTitle(\"JPacman\");\n }",
"public interface BasePresenter {\n}",
"public interface BasePresenter {\n}",
"private static WebDriver newHtmlUnitDiver() {\n\t\tcapabilities = new DesiredCapabilities().htmlUnit();\n\t\tcapabilities.setBrowserName(\"HtmlUnit\");\n\t\tsetCommonCapabilities();\n\n//\t\treturn new HtmlUnitDriver(capabilities);\n\t\treturn new HtmlUnitDriver(true);\n\t}",
"@Override\r\n\tpublic void createControl(Composite parent) {\r\n\t\tpageBook = new PageBook(parent, SWT.NONE);\r\n\t\t\r\n\t\toutline = getViewer().createControl(pageBook);\r\n\t\tgetViewer().setContents(new Root(model));\r\n\t\tselectionSynchronizer.addViewer(getViewer());\r\n\t\t\r\n\t\toverview = new Canvas(pageBook, SWT.NONE);\r\n\t\tlws = new LightweightSystem(overview);\r\n\t\t\r\n IToolBarManager tbm = getSite().getActionBars().getToolBarManager();\r\n showOutlineAction = new Action() {\r\n public void run() {\r\n showPage(outline);\r\n }\r\n };\r\n showOutlineAction.setImageDescriptor(ImageDescriptor.createFromFile(\r\n \t\tDeploymentOutlinePage.class, \"icons/outline.gif\"));\r\n tbm.add(showOutlineAction);\r\n showOverviewAction = new Action() {\r\n public void run() {\r\n showPage(overview);\r\n }\r\n };\r\n showOverviewAction.setImageDescriptor(ImageDescriptor.createFromFile(\r\n \t\tDeploymentOutlinePage.class, \"icons/overview.gif\"));\r\n tbm.add(showOverviewAction);\r\n \r\n initializeOverview();\r\n \r\n showPage(outline);\r\n\t}",
"public static HtmlBrowser.Factory getWWWBrowser () {\n return getBrowser( PROP_WWWBROWSER, false );\n }",
"public interface BasePresenter {\r\n}",
"public interface BasePresenter {\n\n}",
"public interface BasePresenter {\n\n}",
"private void createNewDriverInstance() {\n String browser = props.getProperty(\"browser\");\n if (browser.equals(\"firefox\")) {\n FirefoxProfile profile = new FirefoxProfile();\n profile.setPreference(\"intl.accept_languages\", language);\n driver = new FirefoxDriver();\n } else if (browser.equals(\"chrome\")) {\n ChromeOptions options = new ChromeOptions();\n options.setBinary(new File(chromeBinary));\n options.addArguments(\"--lang=\" + language);\n driver = new ChromeDriver(options);\n } else {\n System.out.println(\"can't read browser type\");\n }\n }",
"public static HtmlBrowser.Factory getExternalWWWBrowser () {\n return getBrowser( PROP_EXTERNAL_WWWBROWSER, true );\n }",
"@Override\n protected MyInfoPresenter createPresenter() {\n return new MyInfoPresenter(MyInfoActivity.this);\n }",
"private Presenter createChatClientFactory(View view) {\r\n\t\tPresenter presenter = new ClientPresenter();\r\n\t\tview.setPresenter(presenter);\r\n\t\tpresenter.setView(view);\r\n\t\treturn presenter;\r\n\t}",
"public interface BasePresenter {\n void init();\n}",
"SeleniumFactory getSeleniumFactory();",
"protected abstract P onLoadPresenter(Bundle savedInstanceState);",
"public ChoosePagePresenter() {\n// mGetKnowledgeHierarchyDataFromNet = new GetKnowledgeHierarchyDataFromNet();\n dataManager = DataManager.getInstance();\n }",
"protected BaseWicketTester newWicketTester() {\n return new BaseWicketTester(newApplication());\n }",
"public static void launchingBrowser() throws Exception {\n\n\t\tString applicationURL = merchEnv.getProtocol() + \"://\"\n\t\t\t\t+ merchEnv.getHost() + \":\" + merchEnv.getPort() + \"/\";\n\t\tselectedBrowser = merchEnv.getBrowser();\n\t\ttry {\n\t\t\tbaseScreen = new BaseScreen(selectedBrowser, applicationURL,\n\t\t\t\t\tmerchEnv.getContext(), merchEnv, merchUserInfo, merchUI);\n\t\t} catch (ScreenException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public interface MainScreenPresenter {\n}",
"public GUIPresenter getGuiPresenter() {\n return guiPresenter;\n }",
"public BromiumFactoryImpl()\n {\n super();\n }",
"public interface IMainframeFactory {\n\n\t/**\n\t * \n\t * @return new instance of IMainframe\n\t */\n\tIMainframe createInstance();\n}",
"public AmazonHomePageFactory(WebDriver driver){\n\t\t\n\t\tPageFactory.initElements(driver, this);\n \n elementControl=new CommonElements();\n \n \n dropdownControl=new DropdownControl();\n \n \n\t}",
"public void execute() {\n try {\n final DemoManagerWindow window = new DemoManagerWindow();\n window.setResizable(false);\n window.setDemoManager(this);\n window.setDemoProvider(this);\n window.setVisibleAndWait();\n } catch (final Throwable t) {\n throw new BrowserException(\"\", t);\n }\n }",
"public final P getPresenter() {\n return presenter;\n }",
"interface IBasePresenter {\n}",
"public interface IBasePresenter {\n\n}",
"public interface Presenter {\n}",
"NativeWindow createWindow(CreationParams p);",
"public interface AbstractWidgetFactory {\n public Window createWindow();\n}",
"protected abstract void onPresenter();",
"public interface BasePresenter {\n\n void onCreate();\n\n void onDestroy();\n}",
"private WebView createWebView() {\n WebView webView = new WebView();\n webView.setContextMenuEnabled(false);\n\n WebEngine engine = webView.getEngine();\n // The files below must exist! Or pdf viewer no more!\n String url = new File(\"src/Resources/pdfjs_2.7.570/web/viewer.html\").toURI().toString();\n\n engine.setJavaScriptEnabled(true);\n engine.load(url);\n\n\n engine.getLoadWorker()\n .stateProperty()\n .addListener(\n new ChangeListener<>() {\n @Override\n public void changed(ObservableValue<? extends Worker.State> observable, Worker.State oldValue, Worker.State newValue) {\n JSObject window = (JSObject) engine.executeScript(\"window\");\n window.setMember(\"java\", null);\n engine.executeScript(\"console.log = function(message){ try {java.log(message);} catch(e) {} };\");\n\n if (newValue == Worker.State.SUCCEEDED) {\n try {\n PDFDisplayer.this.pdfJsLoaded = true;\n\n if (PDFDisplayer.this.loadScript != null) {\n engine.executeScript(PDFDisplayer.this.loadScript);\n }\n\n engine.executeScript(PDFDisplayer.this.toExecuteWhenPDFJSLoaded);\n PDFDisplayer.this.toExecuteWhenPDFJSLoaded = null;\n observable.removeListener(this);\n } catch (RuntimeException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n }\n }\n }\n });\n return webView;\n }",
"private void createBottomPanel() {\n humanPaquetView = new ViewDeckVisible(false);\n this.getContentPane().add(humanPaquetView);\n }",
"public interface BasePresenter {\n void onCreate();\n\n void onDestroy();\n}",
"public WebDriver createWebDriverInstance(String Browser) throws MalformedURLException\n\t{\n\t\tif(d==null && Browser.equals(\"Firefox\"))\n\t\t{\n\n\t\t\td = new FirefoxDriver();\n\t\t\tlogger.info(\"--FireFox Browser has opened \");\n\t\t}\n\n\t\telse if(d==null && Browser.equals(\"Chrome\"))\n\t\t{\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\toptions.addArguments(\"start-maximized\");\n\t\t\tDesiredCapabilities capabilities = new DesiredCapabilities(DesiredCapabilities.chrome());\n\t\t\tcapabilities.setCapability (CapabilityType.ACCEPT_SSL_CERTS, true);\n\t\t\tcapabilities.setCapability (ChromeOptions.CAPABILITY,options);\n\t\t\tChromeDriverManager.getInstance().setup();\n\t\t\t\n\t\t\t//Don't Remember Passwords by default\n\t\t\tMap<String, Object> prefs = new HashMap<String, Object>();\n\t\t\tprefs.put(\"credentials_enable_service\", false);\n\t\t\tprefs.put(\"profile.password_manager_enabled\", false);\n\t\t\toptions.setExperimentalOption(\"prefs\", prefs);\n\t\t\t/*\n\t\t\tString path =System.getProperty(\"user.dir\")+File.separator+\"chromedriver.exe\";\n\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", path);\n\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\tDesiredCapabilities caps = DesiredCapabilities.chrome();*/\n\t\t\td = new ChromeDriver(capabilities);\n\t\t\tlogger.info(\"--Chrome Browser has opened \");\n\t\t}\n\n\t\telse if (d==null && Browser.equals(\"IE\"))\n\t\t{\n\t\t\tString path =\"binary/IEDriverServer.exe\";\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", path);\n\t\t\tlogger.info(\"--IEDriver has setup\");\n\t\t\tDesiredCapabilities caps = DesiredCapabilities.internetExplorer();\n\t\t\tcaps.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,true);\n\t\t\tcaps.setCapability(\"requireWindowFocus\", true);\n\t\t\tcaps.setCapability(\"enablePersistentHover\", true);\n\t\t\tcaps.setCapability(\"native events\", true);\n\t\t\td = new InternetExplorerDriver(caps);\n\t\t\tlogger.info(\"--IE Browser has opened \");\n\t\t}\n\t\telse if (d==null && Browser.equals(\"IE32bit\"))\n\t\t{\n\t\t\tString path =\"binary/IEDriverServer_32bit.exe\";\n\t\t\tSystem.setProperty(\"webdriver.ie.driver\", path);\n\t\t\tlogger.info(\"--IEDriver has setup\");\n\t\t\tDesiredCapabilities caps = DesiredCapabilities.internetExplorer();\n\t\t\tcaps.setCapability(\n\t\t\t\t\tInternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,\n\t\t\t\t\ttrue);\n\t\t\tcaps.setCapability(\"requireWindowFocus\", true);\n\t\t\tcaps.setCapability(\"enablePersistentHover\", false);\n\t\t\tcaps.setCapability(\"native events\", true);\n\t\t\td = new InternetExplorerDriver(caps);\n\t\t\tlogger.info(\"--IE Browser has opened \");\n\t\t}\n\t\treturn d;\n\n\n\t}",
"protected WebDriver createPhantomJSDriver() {\n DesiredCapabilities desiredCapabilities = new DesiredCapabilities();\n String[] phantomArgs = new String[]{\n \"--webdriver-loglevel=\"\n + Resources.base().webDriverLogLevel()\n };\n desiredCapabilities\n .setCapability(PhantomJSDriverService.PHANTOMJS_CLI_ARGS,\n phantomArgs);\n desiredCapabilities.setCapability(\n \"phantomjs.page.customHeaders.Accept-Language\",\n getSystemLanguage());\n PhantomJSDriver phantomJSDriver = new PhantomJSDriver(\n desiredCapabilities);\n phantomJSDriver.manage().window().maximize();\n return phantomJSDriver;\n }",
"public WebDriver createWebDriver()\n {\n WebDriver result = null;\n \n LoggingHelper.LogInfo(getClass().getName(), \"Initializing the FirefoxDriver instance.\");\n try \n { \n result = new FirefoxDriver(); \n } \n catch(Exception e)\n {\n LoggingHelper.LogError(getClass().getName(), \"Cannot initialize the FirefoxDriver: %s\", e.toString());\n throw e;\n }\n \n LoggingHelper.LogVerbose(getClass().getName(), \"Succesfully initialized the FirefoxDriver instance.\"); \n return result;\n }",
"public interface IMainPresenter {\n void initialize();\n Fragment getFragments(int page);\n}",
"public interface BasePresenter {\n\n void initialize();\n void dispose();\n\n}",
"public static WebDriver getDriver(String browser)\n {\n return createInstance(browser);\n }",
"public WebDriver createLocalDriver(EBrowser browser) {\n\t\tthis._browser = browser;\n\t\tswitch (browser) {\n\t\t\tcase CHROME:createChromeDriver(); break;\n\t\t\tcase IE:createInternetExplorerDriver(); break;\n\t\t\tcase FIREFOX:createFireFoxDriver(); break;\n\t\t\tcase EDGE:createEdgeDriver(); break;\n\t\t\t// defaults to chrome\n\t\t\tdefault:createChromeDriver(); break;\n\t\t}\n\t\treturn _driver;\n\t}",
"public DashBoardPageFactory(WebDriver driver) {\n\n\t\tdriver=DriverManager.getDriver();\n\t\tPageFactory.initElements(driver, this);\n\t}",
"public interface MainPresenter {\n\tvoid onStartStateLoading();\n\n\tvoid onPresenterAttached(MainView mainView);\n\n\tvoid onPresenterDeattached();\n}",
"protected void createContents() {\r\n\t\tshell = new Shell();\r\n\t\tshell.setSize(450, 300);\r\n\t\tshell.setText(\"SWT Application\");\r\n\r\n\t}",
"private Browser prepBrowser(final Browser prepBr) {\n if (agent.get() == null) {\r\n agent.set(UserAgents.stringUserAgent(BrowserName.Chrome));\r\n }\r\n prepBr.getHeaders().put(\"User-Agent\", agent.get());\r\n prepBr.getHeaders().put(\"Accept-Language\", \"en-AU,en;q=0.8\");\r\n prepBr.getHeaders().put(\"Accept\", \"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8\");\r\n prepBr.getHeaders().put(\"Accept-Charset\", null);\r\n prepBr.setCookie(MAINPAGE, \"language\", \"en_au\");\r\n prepBr.setReadTimeout(3 * 60 * 1000);\r\n prepBr.setConnectTimeout(3 * 60 * 1000);\r\n return prepBr;\r\n }",
"public interface BasePresenter {\n// void start();\n\n\n\n\n}",
"public static WaitTitledPane create() {\n WaitTitledPane newContent = new WaitTitledPane();\n try {\n ViewControllerLoader.initializeCustomControl(newContent);\n } catch (IOException ex) {\n throw new InternalError(\"Error loading view\", ex);\n }\n return newContent;\n }",
"@Provides\n public HomeActivityContract.Presenter provideHomeActivityPresenter() {\n return new HomeActivityPresenter();\n }",
"protected Control createContents(Composite parent) {\n\t\tgetOverlayStore().load();\r\n\t\tgetOverlayStore().start();\r\n Composite composite = createContainer(parent);\r\n \r\n // The layout info for the preference page\r\n GridLayout gridLayout = new GridLayout();\r\n gridLayout.marginHeight = 0;\r\n gridLayout.marginWidth = 0;\r\n composite.setLayout(gridLayout);\r\n \r\n // A panel for the preference page\r\n Composite defPanel = new Composite(composite, SWT.NONE);\r\n GridLayout layout = new GridLayout();\r\n int numColumns = 2;\r\n layout.numColumns = numColumns;\r\n defPanel.setLayout(layout);\r\n GridData gridData =\r\n new GridData(GridData.FILL_BOTH | GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL);\r\n defPanel.setLayoutData(gridData);\r\n \r\n\r\n // Browser options\r\n\t\tGroup wrappingGroup= createGroup(numColumns, defPanel, \"Web Browser\");\r\n\t\tString labelText= \"Use tabbed browsing\";\r\n\t\tlabelText= \"Used tabbed browsing\";\r\n\t\taddCheckBox(wrappingGroup, labelText, CFMLPreferenceConstants.P_TABBED_BROWSER, 1);\r\n \r\n // File paths\r\n createFilePathGroup(defPanel);\r\n \r\n // Images tooltips\r\n\t\tGroup imageGroup= createGroup(numColumns, defPanel, \"Images\");\r\n\t\tlabelText= \"Show Image Tooltips (restart required)\";\r\n\t\taddCheckBox(imageGroup, labelText, CFMLPreferenceConstants.P_IMAGE_TOOLTIPS, 1);\r\n \t\t\r\n\t\t// default help url\r\n\t\tGroup helpGroup= createGroup(numColumns, defPanel, \"External Help Documentation\");\r\n\t\tlabelText= \"Default URL:\";\r\n\t\taddTextField(helpGroup, labelText, CFMLPreferenceConstants.P_DEFAULT_HELP_URL, 50, 0, null);\r\n\t\tlabelText= \"Use external broswer\";\r\n\t\taddCheckBox(helpGroup, labelText, CFMLPreferenceConstants.P_HELP_URL_USE_EXTERNAL_BROWSER, 1);\r\n \r\n // Template Sites\r\n \r\n // createTemplateSitesPathGroup(defPanel);\r\n\r\n\t\tinitializeFields();\r\n\t\tapplyDialogFont(defPanel);\r\n\r\n\t\treturn composite;\r\n }",
"public interface LoginPresenter {\n void onCreate();\n}",
"public abstract void releasePresenter();",
"private void initMVP() {\n mainPresenter = new MainPresenter(this, getActivity());\n }",
"interface CreateProductPresenter {\n void create(Uri uri, String title, String description);\n}",
"public Parent creatPanel() {\r\n\t\t\r\n\t\thlavniPanel = new BorderPane();\r\n\t\thlavniPanel.setCenter(creatGameDesk());\r\n\t\thlavniPanel.setTop(createMenuBar());\r\n\t\t\r\n\t\thlavniPanel.setBackground(new Background(new BackgroundFill(Color.BURLYWOOD, CornerRadii.EMPTY, Insets.EMPTY)));\r\n\t\thlavniPanel.setPadding(new Insets(8));\r\n\t\treturn hlavniPanel;\r\n\t}",
"public interface BrowserView extends MVPView {\n void showProgress();\n\n void showContent();\n\n void onConnected();\n\n void onDisconnected();\n}",
"public interface DetailsPresenter {\n\n void init();\n\n void getEvents();\n}",
"public interface BasePresenter {\n\n void start();\n\n void destroy();\n\n}",
"public DataAdhocBrowser cloneAsAdhocBrowser(IDataAccessor parent)\n\t{\n\t if (parent == null)\n\t {\n\t parent = getAccessor();\n\t }\n\t else\n\t {\n\t // plausibility check\n\t if (!parent.getApplication().equals(getAccessor().getApplication()))\n\t {\n\t throw new RuntimeException(\"Illegal accessor with different application definition\");\n\t }\n\t }\n\t \n\t IAdhocBrowserDefinition adhocBrowserDef = parent.getApplication().createAdhocBrowserDefinition( this.definition);\n\t DataBrowser adhocBrowser = new DataAdhocBrowser((DataAccessor) parent, adhocBrowserDef);\n\t adhocBrowser.filldirection = this.filldirection;\n\t adhocBrowser.relationSet = this.relationSet;\n\t adhocBrowser.relationGraph = this.relationGraph;\n\t adhocBrowser.lastSearchConstraints = this.lastSearchConstraints;\n\t adhocBrowser.lastSortStrategy = this.lastSortStrategy;\n\t \n\t return (DataAdhocBrowser) adhocBrowser;\n\t}",
"private void createTopPanel(){\n computerPaquetView = new ViewDeckVisible(true);\n this.getContentPane().add(computerPaquetView);\n }",
"public interface BasePresenter {\n\n void start();\n}",
"public interface BasePresenter {\n\n void start();\n}",
"public interface BasePresenter {\n\n void start();\n}",
"public LoginPresenter(MainView mainView)\n {\n this.mainView = mainView;\n }",
"public interface BasePresenter {\n void start();\n}"
] | [
"0.73346686",
"0.69333094",
"0.672486",
"0.65776885",
"0.65400267",
"0.63549757",
"0.625509",
"0.6239311",
"0.61420846",
"0.6122961",
"0.60518986",
"0.5893047",
"0.58592206",
"0.58549327",
"0.5820745",
"0.5798563",
"0.57244354",
"0.57033104",
"0.5697192",
"0.5696701",
"0.56914115",
"0.56548226",
"0.56538975",
"0.56504613",
"0.5649855",
"0.564322",
"0.56335926",
"0.5620948",
"0.5619412",
"0.5597838",
"0.55924743",
"0.55684906",
"0.5568296",
"0.5560118",
"0.5552603",
"0.554881",
"0.554881",
"0.55473745",
"0.55177945",
"0.5480933",
"0.54761916",
"0.5472463",
"0.5472463",
"0.5469393",
"0.546376",
"0.5457843",
"0.54576355",
"0.5456794",
"0.5452297",
"0.5440917",
"0.5410342",
"0.53908527",
"0.5385647",
"0.5364896",
"0.53630155",
"0.53527105",
"0.53430486",
"0.5324927",
"0.53126556",
"0.5300544",
"0.52986765",
"0.5281187",
"0.52767634",
"0.527619",
"0.5271784",
"0.526848",
"0.5265775",
"0.52593356",
"0.525198",
"0.5246505",
"0.52419525",
"0.5240953",
"0.52327555",
"0.52313477",
"0.52261543",
"0.52238023",
"0.52098125",
"0.519412",
"0.51937664",
"0.5185575",
"0.5174513",
"0.51744175",
"0.515893",
"0.51535404",
"0.51418215",
"0.51415163",
"0.51279384",
"0.5121105",
"0.5110333",
"0.51098645",
"0.5107148",
"0.5106561",
"0.5105125",
"0.5098133",
"0.5091586",
"0.50884044",
"0.50884044",
"0.50884044",
"0.508507",
"0.5081109"
] | 0.8967654 | 0 |
Test of sub method, of class MathHelper. | @Test
public void testSub() {
System.out.println("sub");
int a = 2;
int b = 1;
MathHepler instance = new MathHepler();
int expResult = 1;
int result = instance.sub(a, b);
assertEquals(expResult, result);
// TODO review the generated test code and remove the default call to fail.
// fail("The test case is a prototype.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n\tpublic void calculateTest(){\n\t\tAssertions.assertThat(calculate(\"5*5\")).isEqualTo(25);\n\t}",
"@Test\n void testCalculations() {\n double addition = calculator.add(10, 2);\n double subtraction = calculator.sub(10, 2);\n double multiplication = calculator.mul(10, 2);\n double division = calculator.div(10, 2);\n\n //Then\n assertEquals(12, addition);\n assertEquals(8, subtraction);\n assertEquals(20, multiplication);\n assertEquals(5, division);\n }",
"public void doMath();",
"private static void equationsTest() {\n }",
"@Test\n void area_square_test_1(){\n double area = calc.areaSquare(10);\n assert area == 100;\n }",
"@Test\n public void testCalculerValeurLot() {\n double superficie = 456.0;\n double prixMin = 4.32;\n double expResult = 1969.95;\n double result = CalculAgricole.calculerValeurLot(superficie, prixMin);\n assertEquals(\"Montant pour la Valeur du Lot n'était pas correct.\", expResult, result, 0);\n }",
"@Test\n public void test() throws Exception {\n// diversifiedRankingxPM2()\n diversifiedRankingxQuAD();\n }",
"public double utility();",
"@Test\n public void testQuersumme() {\n System.out.println(\"quersumme\");\n int zahl = 1234567890;\n AbstractMethod instance = new AbstractMethodImpl();\n int expResult = 45;\n int result = instance.quersumme(zahl);\n assertEquals(expResult, result);\n\n }",
"@Override\n public double callJavaMath(String methodName, Object[] args) {\n\treturn 0;\n }",
"@Test\r\n\tpublic void testSum() { //testing the adding method\r\n\t\tnum1 = 2; \r\n\t\tnum2 = 8;\r\n\t\tresult = calculate.sum(num1, num2); //result stores the method of add\r\n\t\texpected = 10;\r\n\t\t\r\n\t\tassertEquals(expected,result); //compares add to the expected, if no match then error \r\n\t}",
"@Test\n public void testModulus7() {\n System.out.println(\"modulus7\");\n int number = 8;\n AbstractMethod instance = new AbstractMethodImpl();\n int expResult = 6;\n int result = instance.modulus7(number);\n assertEquals(expResult, result);\n\n }",
"@Test\n public void shouldMulTwoNumbers()\n {\n assertEquals(\"2 * 3 should be 6\", 6, Multiplication.mul(2, 3));\n }",
"@Test\n public void testCalculateMoviePrice2D() {\n\n String roomFormatForMovie = \"2D\";\n float moviePrice = 6.5F;\n CalculateMoviePrice instance = new CalculateMoviePrice();\n float expResult = 5.0F;\n float result = instance.calculateMoviePrice(roomFormatForMovie, moviePrice);\n assertEquals(expResult, result, 0.0);\n System.out.println(\"calculateMoviePrice2D : \"+expResult);\n // TODO review the generated test code and remove the default call to fail.\n if (result != expResult) {\n fail(\"The test case is a prototype.\");\n }\n }",
"@Test\n\tvoid testBasicCalculatorII() {\n\t\tassertEquals(7, new BasicCalculatorII().calculate(\"3+2*2\"));\n\t\tassertEquals(1, new BasicCalculatorII().calculate(\" 3/2 \"));\n\t\tassertEquals(5, new BasicCalculatorII().calculate(\" 3+5 / 2 \"));\n\t}",
"@Test\n\tpublic void testGetSessieDuur(){\n\t\tdouble expResult = 1;\n\t\tassertTrue(expResult == instance.getSessieDuur());\n\t}",
"@Test\n public void testIterierteQuersumme() {\n System.out.println(\"iterierteQuersumme\");\n int zahl = 125;\n AbstractMethod instance = new AbstractMethodImpl();\n int expResult = 8;\n int result = instance.iterierteQuersumme(zahl);\n assertEquals(expResult, result);\n\n }",
"@Test\n public void integral_isCorrect() {\n }",
"@Test public void operationTest(){\n assertEquals(calculator.squareOf(8),64);\n assertEquals(calculator.elementOf(9),3);\n assertEquals(calculator.factorial(5),120);\n assertEquals(calculator.isPrimeNumber(2),true);\n assertEquals(calculator.isPrimeNumber(13),true);\n assertEquals(calculator.isPrimeNumber(9),false);\n // assertNotEquals(calculator.factorial(4),10);\n }",
"@Test\n public void testCircleCircum() {\n System.out.println(\"circleCircum\");\n int radius = 5;\n double expResult = 31.42;\n double result = JavaApplication1.circleCircum(radius);\n assertEquals(expResult, result, 0.0);\n }",
"private Double check_mathOperator(Double result) {\n \r\n switch(mathOperator){\r\n case '/':\r\n result =totalFirst/totalLast;\r\n break;\r\n case 'x':\r\n result =totalFirst*totalLast;\r\n break;\r\n case '-':\r\n result =totalFirst-totalLast;\r\n break;\r\n case '+':\r\n result =totalFirst+totalLast;\r\n break;\r\n \r\n }\r\n return result;\r\n }",
"@Test\n public void testSubtra() {\n System.out.println(\"subtra\");\n float num1 = 0.0F;\n float num2 = 0.0F;\n float expResult = 0.0F;\n float result = Calculadora_teste.subtra(num1, num2);\n assertEquals(expResult, result, 0.0);\n \n }",
"@Test\n public void testDivideWithRemainder() {\n System.out.println(\"divideWithRemainder\");\n int a = 0;\n Calculator instance = new Calculator();\n int expResult = 0;\n int result = instance.divideWithRemainder(a);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"@Test\n public void test() {\n Assert.assertEquals(0.83648556F, Problem232.solve(/* change signature to provide required inputs */));\n }",
"public abstract double calcular();",
"@Test\n public void testCalcularValorDeVenda() {\n System.out.println(\"CalcularValorDeVenda\");\n Telemovel instance = new Telemovel(\"Samsung Galaxy S20\",1500);\n double expResult = 1545;\n double result = instance.CalcularValorDeVenda();\n assertEquals(expResult, result, 0.0);\n \n }",
"@Test\n public void addTest() {\n double expected = 5.5;\n double actual = calculatorApp.add();\n Assert.assertThat(\"Addition function in CalculatorApp: Expected != Real\", actual, is(expected));\n }",
"@Test\r\n public void testCalcularPosicionInvertida() {\r\n System.out.println(\"calcularPosicionInvertida\");\r\n int saltos = 41;\r\n int inicio = 8;\r\n int expResult = 5;\r\n int result = Cifrado.calcularPosicionInvertida(saltos, inicio);\r\n assertEquals(expResult, result);\r\n \r\n }",
"public abstract void squareRootThis();",
"@Test\n public void testCalculation() {\n int expResult = 321;\n game.calculation(180);\n int result = Integer.valueOf(game.getRemainigScore());\n assertEquals(\"testCalculation: \",expResult, result);\n }",
"@Test\n public void testMultiplicar() {\n\tSystem.out.println(\"multiplicar\");\n\tdouble valor1 = 0.0;\n\tdouble valor2 = 0.0;\n\tCalculadora instance = new Calculadora();\n\tdouble expResult = 0.0;\n\tdouble result = instance.multiplicar(valor1, valor2);\n\tassertEquals(expResult, result, 0.0);\n\t// TODO review the generated test code and remove the default call to fail.\n\tfail(\"The test case is a prototype.\");\n }",
"@Test\n public void testSalaire() {\n Assert.assertTrue(e.calculSalaire() == 15 * 20 + e.getSalaire());\n }",
"@Test\n public void testDivisao() {\n System.out.println(\"divisao\");\n float num1 = 0;\n float num2 = 0;\n float expResult = 0;\n float result = Calculadora_teste.divisao(num1, num2);\n assertEquals(expResult, result, 0);\n }",
"protected abstract double operation(double val);",
"@Test\n public void testCalculerMontantService() {\n double expResult = 0.0;\n double result = CalculAgricole.calculerMontantServices();\n assertEquals(\"Montant pour las droits du passage n'était pas correct.\", expResult, result, 0);\n }",
"@Test\n\tvoid divide() {\n\t\tfloat result = calculator.divide(12, 4);\n\t\tassertEquals(3,result);\n\t}",
"@Test\n\tpublic void testGetTariefBehandeling(){\n\t\tdouble expResult = 89.50;\n\t\tassertTrue(expResult == instance.getTariefBehandeling());\n\t}",
"@Test\r\n public void testCalculate_salary() {\r\n assertEquals(2, s.calculate_salary(1, 1));\r\n }",
"@Test\n public void testCalculerMoyenne() {\n\n System.out.println(\"calculerMoyenne\");\n Date date1 = new DateTime(2013, 1, 1, 0, 0).toDate();\n Date date2 = new DateTime(2013, 1, 6, 0, 0).toDate();\n\n POJOCompteItem instance = genererInstanceTest();\n try {\n instance.compte();\n } catch (Exception ex) {\n Logger.getLogger(POJOCompteItemTest.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n Integer expResult = null;\n Float result = instance.calculerMoyenne(date1, date2);\n\n if (!result.equals(new Float(2.6))) {\n fail(\"le résultat est 2.6\");\n }\n// assertEquals(expResult, result);\n System.out.println(\"MOY : \" + result);\n\n try {\n instance.calculerMoyenne(null, null);\n fail(\"devait lever une exeception\");\n } catch (Exception e) {\n }\n }",
"@Test\n public void testGetSalesPrice() {\n System.out.println(\"getSalesPrice\");\n BikePart instance = new BikePart();\n double expResult = 8.0;\n double result = instance.getSalesPrice();\n assertEquals(expResult, result, 0.0);\n\n }",
"@Test\r\n public void testGetDivide() {\r\n System.out.println(\"getDivide\");\r\n int x = 0;\r\n int y = 0;\r\n Calculate instance = new Calculate();\r\n int expResult = 0;\r\n int result = instance.getDivide(x, y);\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }",
"@Test\n public void test21() throws Throwable {\n Complex complex0 = new Complex((-1392.0), (-1392.0));\n Complex complex1 = complex0.sinh();\n Complex complex2 = complex0.exp();\n Complex complex3 = complex0.conjugate();\n Complex complex4 = complex0.tan();\n Complex complex5 = complex1.divide(complex3);\n double double0 = complex4.abs();\n double double1 = complex4.getArgument();\n boolean boolean0 = complex4.equals(complex2);\n }",
"@Test\r\n public void testSum() {\r\n int expResult = 5050;\r\n int result = Main.sum();\r\n \r\n assertEquals(expResult, result);\r\n }",
"@Test\n\tpublic void testMultiplica2Enteros() {\n\t\tdouble resultado= Producto.multiplica2enteros(10, 10);\n\t\tdouble esperado= 100;\n\t\t\n\t\tassertEquals(esperado, resultado);\n\t}",
"@Test\n public void testMultiplic() {\n System.out.println(\"multiplic\");\n float num1 = 0.0F;\n float num2 = 0.0F;\n float expResult = 0.0F;\n float result = Calculadora_teste.multiplic(num1, num2);\n assertEquals(expResult, result, 0.0);\n \n }",
"@RepeatedTest(20)\n void subTest(){\n assertEquals(f.sub(f), new Float(decimal-decimal));\n assertEquals(f.sub(g), new Float(decimal-random));\n assertEquals(f.sub(i), new Float(decimal-seed));\n assertEquals(f.sub(bi), new Float(decimal-bi.toInt(bi.getBinary())));\n assertEquals(i.sub(f), new Float(seed-decimal));\n assertEquals(i.sub(i), new Int(seed-seed));\n assertEquals(i.sub(bi), new Int(seed-bi.toInt(bi.getBinary())));\n\n //nulls\n //Bool - ITypes\n assertEquals(bot.sub(st),Null);\n assertEquals(bof.sub(st),Null);\n assertEquals(bot.sub(bot),Null);\n assertEquals(bof.sub(bot), Null);\n assertEquals(bot.sub(f), Null);\n assertEquals(bof.sub(i), Null);\n assertEquals(bot.sub(bi), Null);\n //Float - ITypes \\ {Numbers}\n assertEquals(f.sub(st), Null);\n assertEquals(f.sub(bot), Null);\n assertEquals(f.sub(bof), Null);\n //Int - ITypes \\ {Numbers}\n assertEquals(i.sub(st), Null);\n assertEquals(i.sub(bot),Null);\n assertEquals(i.sub(bof), Null);\n //Binary - ITypes \\ {Int, Binary}\n assertEquals(bi.sub(st), Null);\n assertEquals(bi.sub(bot), Null);\n assertEquals(bi.sub(f), Null);\n //NullType subtractions\n assertEquals(Null.sub(st), Null);\n assertEquals(Null.sub(bof), Null);\n assertEquals(Null.sub(f), Null);\n assertEquals(Null.sub(i), Null);\n assertEquals(Null.sub(bi), Null);\n assertEquals(Null.sub(Null), Null);\n assertEquals(st.sub(Null), Null);\n assertEquals(bot.sub(Null), Null);\n assertEquals(f.sub(Null), Null);\n assertEquals(i.sub(Null), Null);\n assertEquals(bi.sub(Null), Null);\n }",
"@Test\n public void testMesurerDistanceCoordonnees() {\n System.out.println(\"MesurerDistanceCoordonnees\");\n double lat1 = 0.0;\n double lon1 = 0.0;\n double lat2 = 0.0;\n double lon2 = 0.0;\n double expResult = 0.0;\n double result = Utils.MesurerDistanceCoordonnees(lat1, lon1, lat2, lon2);\n assertEquals(expResult, result, 0.0);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"@Test\n public void testModulus10() {\n System.out.println(\"modulus10\");\n int pz = 7;\n AbstractMethod instance = new AbstractMethodImpl();\n int expResult = 3;\n int result = instance.modulus10(pz);\n assertEquals(expResult, result);\n pz = 5;\n expResult = 5;\n result = instance.modulus10(pz);\n assertEquals(expResult, result);\n\n pz = 17;\n expResult = 3;\n result = instance.modulus10(pz);\n assertEquals(expResult, result);\n\n }",
"@Test\n public void testSumActualAddedModifiedSizeSquared()\n {\n assertEquals(this.linealRegressionCalculator.sumActualAddedModifiedSizeSquared(), 7604693.0, 0.01);\n }",
"@Test\n public void testCalculateRPNCustom() throws Exception {\n String[] expression = {\"3\",\"4\",\"+\",\"8\",\"3\",\"-\",\"+\",\"10\",\"2\",\"/\", \"3\", \"+\", \"*\", \"15\",\"/\"};\n double result = solver.calculateRPNCustom(expression);\n\n assertThat(result, is(6.4));\n }",
"@Test\n void studentMCQTotalScoreTest(){\n Student student = new Student(\"Lim\");\n student.setNumCorrectAns(8); // Set Total Number Question(s) Answered Correctly\n student.setNumQuestionAns(10); // Set Total Number Question(s) Answered Correctly\n\n\n double expectedResult = 80; // Input for testing\n // Calculate total score and set it\n student.setCalculatedScore(student.getNumCorrectAns(), student.getNumQuestionAns());\n System.out.println(\"Test Case #5\");\n System.out.println(\"\\tExpected Result: \" + expectedResult); // print expected result\n double actualResult = student.getTotalScore(); // Actual Result\n System.out.println(\"\\tActual Result: \" + actualResult); // Print actual result\n assertEquals(expectedResult, actualResult); // Compare the expected result (True) & Actual Result\n }",
"@Test\r\n public void testAppartentMagnitude() {\r\n System.out.println(\"appartentMagnitude\");\r\n \r\n // Test case one.\r\n System.out.println(\"Test case #1\"); \r\n \r\n double magnitude = 12;\r\n double distance = 200;\r\n \r\n SceneControl instance = new SceneControl();\r\n \r\n double expResult = 0.0003;\r\n double result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, 0.0001);\r\n \r\n // Test case two.\r\n System.out.println(\"Test case #2\"); \r\n \r\n magnitude = 13;\r\n distance = -50;\r\n \r\n expResult = -999999;\r\n result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, 0.0001);\r\n \r\n // Test case three.\r\n System.out.println(\"Test case #3\"); \r\n \r\n magnitude = 56;\r\n distance = 20;\r\n \r\n expResult = -999999;\r\n result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, -999999);\r\n \r\n // Test case four.\r\n System.out.println(\"Test case #4\"); \r\n \r\n magnitude = 56;\r\n distance = 20;\r\n \r\n expResult = -999999;\r\n result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, 0.0001);\r\n \r\n // Test case five.\r\n System.out.println(\"Test case #5\"); \r\n \r\n magnitude = 14;\r\n distance = 0;\r\n \r\n expResult = -999999;\r\n result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, 0.0001);\r\n \r\n // Test case six.\r\n System.out.println(\"Test case #6\"); \r\n \r\n magnitude = -50;\r\n distance = 12;\r\n \r\n expResult = -0.3472;\r\n result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, 0.0001);\r\n \r\n // Test case seven.\r\n System.out.println(\"Test case #7\"); \r\n \r\n magnitude = 50;\r\n distance = 20;\r\n \r\n expResult = 0.125;\r\n result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, 0.0001);\r\n \r\n // Test case eight.\r\n System.out.println(\"Test case #8\"); \r\n \r\n magnitude = 13;\r\n distance = 1;\r\n \r\n expResult = 13;\r\n result = instance.appartentMagnitude(magnitude, distance);\r\n assertEquals(expResult, result, 0.0001);\r\n \r\n }",
"@Test\n public void testModulus11() {\n System.out.println(\"modulus11\");\n int pz = 11;\n AbstractMethod instance = new AbstractMethodImpl();\n int expResult = 0;\n int result = instance.modulus11(pz);\n assertEquals(expResult, result);\n\n try {\n pz = 12;\n expResult = 1;\n result = instance.modulus11(pz);\n fail(\"not InvalidException\");\n assertEquals(expResult, result);\n } catch (InvalidException ex) {\n\n }\n\n }",
"@DisplayName(\"Testing the are of circle\") //u'll get this name in the console instead of method name\n\t@Test\n\tvoid testAreaOfCircle() {\n\t\tdouble expected = 12.56;\n\t\tdouble actual = mathUtils.areaOfCircle(2);\n\t\tassertEquals(expected, actual,\"message \");\n\t}",
"@Test\n public void testSumEstimatedProxySizeActualDevelopmentTime()\n {\n assertEquals(this.linealRegressionCalculator.sumEstimatedProxySizeActualDevelopmentTime(), 411628.6, 0.01); \n }",
"@Test\r\n\tpublic void testProduct() {\n\t\tnum1 = 10;\r\n\t\tnum2 = 2;\r\n\t\tresult = calculate.product(num1, num2); //result of the divide is stored\r\n\t\texpected = 5;\r\n\t\t\r\n\t\tassertEquals(expected,result);// compares the expected to the divide, if they are not the same an error occurs\r\n\t}",
"@Test\n public void testSoma() {\n System.out.println(\"soma\");\n float num1 = 0.0F;\n float num2 = 0.0F;\n float expResult = 0.0F;\n float result = Calculadora_teste.soma(num1, num2);\n assertEquals(expResult, result, 0.0);\n \n }",
"@Test\n public void testCalculerDroitPassage() {\n int nbrDoitPassage = 3;\n double valeurLot = 1000;\n double expResult = 350;\n double result = CalculAgricole.calculerMontantDroitsPassage(nbrDoitPassage, valeurLot);\n assertEquals(\"Montant pour las droits du passage n'était pas correct.\", expResult, result, 0);\n\n }",
"public static double useOtherOperators(boolean shouldMult, String subToEval){\n\t\tif (shouldMult){\n\t\t\treturn Exponent.evalExpo(subToEval); //check for exponents\n\t\t} else {\n\t\t\treturn 1/Exponent.evalExpo(subToEval); //check for exponents\n\t\t}\n\t}",
"protected abstract Object doCalculations();",
"@Test\n public void pruebaCalculCamiseta() {\n System.out.println(\"prueba Calcul Camiseta\");\n Camiseta camisetaTest = new Camiseta(1);\n assertEquals(190, (camisetaTest.calculCamiseta(1)),0) ;\n \n Camiseta camisetaTestDos = new Camiseta(2);\n assertEquals(1481.2, (camisetaTestDos.calculCamiseta(7)),0) ;\n \n Camiseta camisetaTestTres = new Camiseta(3);\n assertEquals(1178, (camisetaTestTres.calculCamiseta(4)),0) ;\n \n \n }",
"@Test\n\tpublic void testSquare() {\n\t\tdouble tmpRndVal = 0.0;\n\t\tdouble expResult = 0.0;\n\t\t\n\t\t//testing with negative numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = doubleRandomNegativeNumbers();\n\t\t\texpResult = Math.sqrt(tmpRndVal);\n\t\t\tassertEquals(ac.square(tmpRndVal), expResult, 0);\n\t\t}\n\t\t\n\t\t//testing with positive numbers\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\ttmpRndVal = doubleRandomPositiveNumbers(); \n\t\t\texpResult = Math.sqrt(tmpRndVal);\n\t\t\tassertEquals(ac.square(tmpRndVal), expResult, 0);\n\t\t}\n\t\t\n\t\t//testing with zero\n\t\tdouble zero = 0.0;\n\t\t\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\texpResult = Math.sqrt(zero);\n\t\t\tassertEquals(ac.square(zero), expResult, 0);\n\t\t}\n\t\t\n\t}",
"@Test\r\n public void testCalcItemToPounds() {\r\n System.out.println(\"calcItemToPounds\");\r\n \r\n /**********************\r\n * Test case #1\r\n *********************/\r\n System.out.println(\"\\tTest case #1\");\r\n \r\n //input values for test case 1\r\n int numOfItems = 2;\r\n String items = \"egg\";\r\n \r\n //create instance of InventoryControl class\r\n calcItemToPounds instance = new calcItemToPounds();\r\n \r\n double expResult = 0.44; //expected output returned value\r\n \r\n //call function to run test\r\n double result = instance.calcItemToPounds(numOfItems, items);\r\n \r\n // compare expected return value with actual value returned\r\n assertEquals(expResult, result, 0.001);\r\n System.out.println(result);\r\n \r\n /**********************\r\n * Test case #2\r\n *********************/\r\n System.out.println(\"\\tTest case #2\");\r\n \r\n //input values for test case 2\r\n numOfItems = -1;\r\n items = \"egg\";\r\n \r\n expResult = -1; //expected output returned value\r\n \r\n //call function to run test\r\n result = instance.calcItemToPounds(numOfItems, items);\r\n \r\n // compare expected return value with actual value returned\r\n assertEquals(expResult, result, 0.001);\r\n System.out.println(result);\r\n \r\n /**********************\r\n * Test case #3\r\n *********************/\r\n System.out.println(\"\\tTest case #3\");\r\n \r\n //input values for test case 3\r\n numOfItems = 4;\r\n items = \"EGG\";\r\n \r\n expResult = -1; //expected output returned value\r\n \r\n //call function to run test\r\n result = instance.calcItemToPounds(numOfItems, items);\r\n \r\n // compare expected return value with actual value returned\r\n assertEquals(expResult, result, 0.001);\r\n System.out.println(result);\r\n \r\n /**********************\r\n * Test case #4\r\n *********************/\r\n System.out.println(\"\\tTest case #4\");\r\n \r\n //input values for test case 4\r\n numOfItems = 5;\r\n items = \"egg\";\r\n \r\n expResult = -1; //expected output returned value\r\n \r\n //call function to run test\r\n result = instance.calcItemToPounds(numOfItems, items);\r\n \r\n // compare expected return value with actual value returned\r\n assertEquals(expResult, result, 0.001);\r\n System.out.println(result);\r\n \r\n /**********************\r\n * Test case #5\r\n *********************/\r\n System.out.println(\"\\tTest case #5\");\r\n \r\n //input values for test case 5\r\n numOfItems = 0;\r\n items = \"egg\";\r\n \r\n expResult = 0; //expected output returned value\r\n \r\n //call function to run test\r\n result = instance.calcItemToPounds(numOfItems, items);\r\n \r\n // compare expected return value with actual value returned\r\n assertEquals(expResult, result, 0.001);\r\n System.out.println(result);\r\n \r\n /**********************\r\n * Test case #6\r\n *********************/\r\n System.out.println(\"\\tTest case #6\");\r\n \r\n //input values for test case 6\r\n numOfItems = 0; // only accept integer values won't accept .25\r\n items = \"egg\";\r\n \r\n expResult = 0; //expected output returned value\r\n \r\n //call function to run test\r\n result = instance.calcItemToPounds(numOfItems, items);\r\n \r\n // compare expected return value with actual value returned\r\n assertEquals(expResult, result, 0.001);\r\n System.out.println(result);\r\n \r\n /**********************\r\n * Test case #7\r\n *********************/\r\n System.out.println(\"\\tTest case #7\");\r\n \r\n //input values for test case 7\r\n numOfItems = 4;\r\n items = \"egg\";\r\n \r\n expResult = 0.88; //expected output returned value\r\n \r\n //call function to run test\r\n result = instance.calcItemToPounds(numOfItems, items);\r\n \r\n // compare expected return value with actual value returned\r\n assertEquals(expResult, result, 0.001);\r\n System.out.println(result);\r\n }",
"@Test\n\tpublic void testMultiplica2Reales() {\n\t\tdouble resultado= Producto.multiplica2reales(7.2, 8.2);\n\t\tdouble esperado= 59.04;\n\t\t\n\t\tassertEquals(esperado, resultado);\n\t}",
"@Test\r\n public void testCalculateNDM() {\r\n System.out.println(\"calculateNDM\");\r\n NDM instance = null;\r\n Double expResult = null;\r\n //Double result = instance.calculateNDM();\r\n //assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n //fail(\"The test case is a prototype.\");\r\n }",
"public TestForInverseSqrt() {\n }",
"@Test\n public void testMediaGlobal() {\n System.out.println(\"mediaGlobal\");\n int[] serieTemp = new int[1];\n int qtdlinhas = 1;\n double expResult = 0.0;\n double result = ProjetoV1.mediaGlobal(serieTemp, qtdlinhas);\n assertEquals(expResult, result, 0.0);\n\n }",
"double test(double a){\n System.out.println(\"double a: \"+a);\n return a*a;\n }",
"@Test\n public void testGetInteres() {\n System.out.println(\"getInteres\");\n double expResult = 0.07;\n double result = detalleAhorro.getInteres();\n assertEquals(expResult, result, 0.0);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }",
"@Test\n public void testSumActualDevelopmentTimeSquared()\n {\n assertEquals(this.linealRegressionCalculator.sumActualDevelopmentTimeSquared(), 71267.12, 0.01);\n }",
"@Test\r\n public void testGetSum() {\r\n System.out.println(\"getSum\");\r\n int x = 0;\r\n int y = 0;\r\n Calculate instance = new Calculate();\r\n int expResult = 0;\r\n int result = instance.getSum(x, y);\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }",
"@Test\n public void testImprimirStatistics()\n {\n //this.linealRegressionCalculator.printStatistics();\n }",
"@Test\n public void testCheckPositive() {\n Helper.checkPositive(1, \"obj\", \"method\", LogManager.getLog());\n }",
"@Test\n public void test02() throws Throwable {\n Complex complex0 = new Complex(77.38859, 77.38859);\n Complex complex1 = complex0.negate();\n Complex complex2 = complex1.sqrt();\n Complex complex3 = complex0.sqrt1z();\n double double0 = complex1.getReal();\n Complex complex4 = complex0.tan();\n Complex complex5 = complex2.negate();\n }",
"@Test //expected exception assertThrows.\n\tvoid testDivide() throws Exception {\n\t\tassertEquals(2, mathUtils.divide(4,2));\n\t}",
"@Test\n public void test23() throws Throwable {\n double double0 = UnivariateRealSolverUtils.midpoint((-1052.8959089), (-1052.8959089));\n assertEquals((-1052.8959089), double0, 0.01D);\n }",
"@Test\r\n public void testGetPostagePrice() {\r\n System.out.println(\"getPostagePrice\");\r\n \r\n double expResult = 0.0;\r\n double result = instance.getPostagePrice();\r\n assertEquals(expResult, result, 0.0);\r\n \r\n \r\n }",
"@Test\n public void testRaizQuadrada() {\n\tSystem.out.println(\"raizQuadrada\");\n\tdouble valor1 = 0.0;\n\tCalculadora instance = new Calculadora();\n\tdouble expResult = 0.0;\n\tdouble result = instance.raizQuadrada(valor1);\n\tassertEquals(expResult, result, 0.0);\n\t// TODO review the generated test code and remove the default call to fail.\n\tfail(\"The test case is a prototype.\");\n }",
"private static void LessonInstanceVsStatic() {\n System.out.println(MathHelper.E);\n System.out.println(MathHelper.PI);\n System.out.println(MathHelper.square(5));\n //Three helper methods for StringHelper\n System.out.println(StringHelper.removeLeadingAndTrailingSpaces(\" Hello \"));\n System.out.println(StringHelper.removeAllSpace(\" He ll o !\"));\n System.out.println(StringHelper.yelling(\"hello\"));\n //Three helper methods for MathHelper\n System.out.println(MathHelper.cubed(5));\n System.out.println(MathHelper.areaOfRectangle(2,3));\n System.out.println(MathHelper.perimeterOfRectangle(4, 5));\n\n }",
"@Test\r\n public void testCalcularPosicion() {\r\n System.out.println(\"calcularPosicion\");\r\n int saltos = 41;\r\n int inicio = 8;\r\n int expResult = 11;\r\n int result = Cifrado.calcularPosicion(saltos, inicio);\r\n assertEquals(expResult, result);\r\n \r\n }",
"@Test\n public void testSumActualAddedModifiedSize()\n {\n assertEquals(this.linealRegressionCalculator.sumActualAddedModifiedSize(), 6389.0, 0.01);\n }",
"@Test\n\tpublic void getTest() {\n\t\tassertEquals(2, x.getNumerator());\n\t\tassertEquals(10, y.getDenominator());\n\t\tassertEquals(\"2/20\", x.toString());\n\t}",
"@Test\r\n public void testGetMultiple() {\r\n System.out.println(\"getMultiple\");\r\n int x = 0;\r\n int y = 0;\r\n Calculate instance = new Calculate();\r\n int expResult = 0;\r\n int result = instance.getMultiple(x, y);\r\n assertEquals(expResult, result);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }",
"@Test\n public void testModulo() {\n System.out.println(\"modulo\");\n int x = 0;\n int y = 0;\n int expResult = 0;\n int result = utilsHill.modulo(x, y);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"@Test(priority=4)\n\n\tpublic void divisionTest() {\n\n\t\tandroidCalculator = new AndroidCalculator(driver);\n\n\t\tandroidCalculator.inputLeftAndRightFields(\"20\", \"10\");\n\t\tandroidCalculator.division();\n\n\t\tAssert.assertEquals(androidCalculator.verifyResult(), 20/10);\n\t}",
"@Test\n public void testUseMathMode() {\n assertEquals(\":(\", \":(\");\n }",
"@RepeatedTest(20)\n void multTest(){\n assertEquals(f.mult(f), new Float(decimal*decimal));\n assertEquals(f.mult(g), new Float(decimal*random));\n assertEquals(f.mult(g), g.mult(f));\n assertEquals(f.mult(i), new Float(decimal*seed));\n assertEquals(f.mult(bi), new Float(decimal*bi.toInt(bi.getBinary())));\n assertEquals(i.mult(f), new Float(seed*decimal));\n assertEquals(i.mult(i), new Int(seed*seed));\n assertEquals(i.mult(j), new Int(seed*random));\n assertEquals(i.mult(j), j.mult(i));\n assertEquals(i.mult(bi), new Int(seed*bi.toInt(bi.getBinary())));\n\n //nulls\n //Bool * ITypes\n assertEquals(bot.mult(st),Null);\n assertEquals(bof.mult(st),Null);\n assertEquals(bot.mult(bot),Null);\n assertEquals(bof.mult(bot), Null);\n assertEquals(bot.mult(f), Null);\n assertEquals(bof.mult(i), Null);\n assertEquals(bot.mult(bi), Null);\n //Float * ITypes \\ {Numbers}\n assertEquals(f.mult(st), Null);\n assertEquals(f.mult(bot), Null);\n assertEquals(f.mult(bof), Null);\n //Int * ITypes \\ {Numbers}\n assertEquals(i.mult(st), Null);\n assertEquals(i.mult(bot),Null);\n assertEquals(i.mult(bof), Null);\n //Binary * ITypes \\ {Int, Binary}\n assertEquals(bi.mult(st), Null);\n assertEquals(bi.mult(bot), Null);\n assertEquals(bi.mult(f), Null);\n //NullType multiplications\n assertEquals(Null.mult(st), Null);\n assertEquals(Null.mult(bof), Null);\n assertEquals(Null.mult(f), Null);\n assertEquals(Null.mult(i), Null);\n assertEquals(Null.mult(bi), Null);\n assertEquals(Null.mult(Null), Null);\n assertEquals(st.mult(Null), Null);\n assertEquals(bot.mult(Null), Null);\n assertEquals(f.mult(Null), Null);\n assertEquals(i.mult(Null), Null);\n assertEquals(bi.mult(Null), Null);\n }",
"abstract void calculate(double a);",
"@Test\n public void testRaiseSalary() {\n System.out.println(\"raiseSalary\");\n double salaryAdj = 50.0;\n double expResult = 6050.0;\n double result = salary + salaryAdj;\n assertEquals(expResult, result, salary);\n }",
"@Test\n public void multiplyBy9_checkTotal_shouldBe0() {\n Calculator calculator = new Calculator();\n\n // Act - multiply by 9\n calculator.multiplyBy(9);\n\n // Assert - check that the new total is 0\n Assert.assertEquals(0, calculator.getTotal());\n }",
"@Test\n public void testGetRPMLow() {\n System.out.println(\"getRPMLow\");\n Regime instance = r1;\n double expResult = 1000.0;\n double result = instance.getRPMLow();\n assertEquals(expResult, result, 0.0);\n }",
"@Test\n public void testGetPrice()\n {\n System.out.println(\"getPrice\");\n PipeTypeFour instance = new PipeTypeFour(1,39, PipeGrade.THREE, false);\n \n \n Double expResult = 0.35 * getVol(39,1);\n double temp = expResult;\n //Colour\n expResult += temp * 1.17;\n //Insulation\n expResult += temp * 1.14;\n System.out.println(\"Expecting: \" + expResult);\n Double result = instance.getPrice();\n assertEquals(expResult, result);\n\n }",
"@Test\n public void testDividir() {\n\tSystem.out.println(\"dividir\");\n\tdouble valor1 = 0.0;\n\tdouble valor2 = 0.0;\n\tCalculadora instance = new Calculadora();\n\tdouble expResult = 0.0;\n\tdouble result = instance.dividir(valor1, valor2);\n\tassertEquals(expResult, result, 0.0);\n\t// TODO review the generated test code and remove the default call to fail.\n\tfail(\"The test case is a prototype.\");\n }",
"@Test\n public void testSumPlanAddedModifiedSizeSquared()\n {\n assertEquals(this.linealRegressionCalculator.sumPlanAddedModifiedSizeSquared(), 3741346.0, 0.01);\n }",
"@Test\n public void testGetMoveSpeedMultiplier() {\n assertEquals(1, proj.getMoveSpeedMultiplier(), 0.001);\n }",
"@Test\n @Tag(\"Math\")\n void testAdd() {\n int expected = 2;\n int result = utils.add(1,1);\n assertEquals(expected,result,\"this method adds the two integers and return integer\");\n }",
"@Test\n public void testMultiplyAll() {\n System.out.println(\"multiplyAll\");\n int multiplier = 0;\n int[] numbers = null;\n int[] expResult = null;\n int[] result = ArrayExerciseB.multiplyAll(multiplier, numbers);\n assertArrayEquals(expResult, result);\n }",
"@Test\n public void sumOfMultiplesBelow_isCorrect_test1() {\n int actual = sut.sumOfMultiplesBelow(10, 3, 5);\n assertThat(actual, equalTo(23));\n }",
"@Test\n public void test_IsOxideCorr() {\n System.out.println(\"Testing MeasuredRatioModel's isOxideCorr()\");\n MeasuredRatioModel instance = new MeasuredRatioModel();\n boolean expResult = false;\n boolean result = instance.isOxideCorr();\n assertEquals(expResult, result);\n instance = new MeasuredRatioModel(\"Specific\",new BigDecimal(\"213\"),\"ABS\",new BigDecimal(\"0.4324\"),true,true);\n result = instance.isOxideCorr();\n expResult=true;\n assertEquals(expResult, result);\n }",
"@Test\n public void testCheckIsPowerOfTwoNormal_1() {\n assertTrue(checkerNumber.checkIsPowerOfTwo(1024));\n }"
] | [
"0.68739116",
"0.68200165",
"0.6759694",
"0.65192956",
"0.6403572",
"0.6377728",
"0.63585466",
"0.63467383",
"0.6280009",
"0.62736785",
"0.6270913",
"0.6261985",
"0.6252756",
"0.6236719",
"0.62332016",
"0.62006176",
"0.618655",
"0.6174184",
"0.6167622",
"0.61671317",
"0.6162229",
"0.61545926",
"0.6153895",
"0.612903",
"0.6109743",
"0.60862905",
"0.6066296",
"0.60655814",
"0.6064315",
"0.60583967",
"0.6040219",
"0.6032591",
"0.6032536",
"0.60321546",
"0.6030116",
"0.6015782",
"0.59941965",
"0.59742975",
"0.595759",
"0.5955526",
"0.59546906",
"0.5953587",
"0.59526455",
"0.59483004",
"0.59314567",
"0.5929872",
"0.59238803",
"0.5912058",
"0.5897827",
"0.5896502",
"0.5894649",
"0.58939755",
"0.58846736",
"0.5879664",
"0.587766",
"0.5870005",
"0.58530927",
"0.5833671",
"0.5829527",
"0.5824723",
"0.58043087",
"0.5800332",
"0.5797706",
"0.57903266",
"0.5786552",
"0.57772917",
"0.57759947",
"0.57719314",
"0.5769626",
"0.5766457",
"0.5758966",
"0.5757426",
"0.57571876",
"0.57523227",
"0.5751385",
"0.5749881",
"0.5746362",
"0.5737854",
"0.57365847",
"0.5736126",
"0.573133",
"0.5722878",
"0.5720578",
"0.57156634",
"0.56993634",
"0.56991524",
"0.56942606",
"0.56903636",
"0.5686941",
"0.56776816",
"0.5670821",
"0.56612486",
"0.5657995",
"0.5646879",
"0.56468534",
"0.56425047",
"0.5629102",
"0.562721",
"0.56240475",
"0.5617787"
] | 0.5959509 | 38 |
TODO Autogenerated method stub | @Override
public void onClick(View v) {
switch (v.getId()) {
case R.id.sign_email:
{
Intent intent = new Intent(MainLoginActivity.this,SignEmailActivity.class);
startActivity(intent);
break;
}
case R.id.sign_fb:
{
//onClickLogin();
Intent intent = new Intent(MainLoginActivity.this,ModifyUserActivity.class);
intent.putExtra("fblogin", true);
startActivity(intent);
break;
}
case R.id.login_txt:
{
Intent intent = new Intent(MainLoginActivity.this,LoginEmailActivity.class);
startActivity(intent);
break;
}
default:
break;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
Session.getActiveSession().onActivityResult(this, requestCode, resultCode, data);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected void onPause() {
super.onPause();
Session.getActiveSession().removeCallback(statusCallback);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected void onResume() {
super.onResume();
Session.getActiveSession().addCallback(statusCallback);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
protected void onDestroy() {
super.onDestroy();
} | {
"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 |
Check if an existing view is being reused, otherwise inflate the view | @NonNull
@Override
public View getView(int position, View convertView, @NonNull ViewGroup parent) {
if (convertView == null) {
convertView = LayoutInflater.from(getContext()).inflate(R.layout.list_item_alarm, parent, false);
}
final RepeatingAlarm alarm = getItem(position);
TextView alarmTitleTV = convertView.findViewById(R.id.alarm_title);
TextView alarmDescriptionTV = convertView.findViewById(R.id.alarm_description);
TextView startTimeTV = convertView.findViewById(R.id.start_time);
TextView intervalTV = convertView.findViewById(R.id.interval);
CheckBox enableDisableCB = convertView.findViewById(R.id.enable_disable);
View removeBTN = convertView.findViewById(R.id.alarm_remove);
alarmTitleTV.setText(alarm.getTitle());
alarmDescriptionTV.setText(alarm.getDescription());
startTimeTV.setText(alarm.getHumanReadableTime());
if (TimeUnit.MILLISECONDS.toMinutes(alarm.getInterval()) < 60) {
intervalTV.setText(TimeUnit.MILLISECONDS.toMinutes(alarm.getInterval()) + "m");
} else if (TimeUnit.MILLISECONDS.toHours(alarm.getInterval()) <= 24) {
intervalTV.setText(TimeUnit.MILLISECONDS.toHours(alarm.getInterval()) + "h");
} else {
intervalTV.setText(TimeUnit.MILLISECONDS.toDays(alarm.getInterval()) + "d");
}
enableDisableCB.setChecked(alarm.isActive());
enableDisableCB.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {
@Override
public void onCheckedChanged(CompoundButton compoundButton, boolean b) {
if (b) {
RepeatingAlarmManager.getInstance().activateAlarm(MainActivity.this, alarm.getId());
} else {
RepeatingAlarmManager.getInstance().deactivateAlarm(MainActivity.this, alarm.getId());
}
refreshData();
}
});
removeBTN.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
RepeatingAlarmManager.getInstance().removeAlarm(MainActivity.this, alarm.getId());
refreshData();
}
});
convertView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
Toast.makeText(MainActivity.this, "alarm id:" + alarm.getId(), Toast.LENGTH_SHORT).show();
}
});
return convertView;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void recycleCheck(){\n getScreenRect();\n\n //ok...seriously, I have no idea why I need to wrap it in post()\n //but if I don't, it won't be able to setHtml() again (the second time)\n //TODO investigate what the fuck is going on\n post(new Runnable() {\n @Override\n public void run() {\n for (int i = 0, l = overlay.getChildCount(); i < l; i++) {\n //TODO check whether it is visible inside the view bound instead of inside the screen bound\n View v = overlay.getChildAt(i);\n v.getLocationOnScreen(coordinate);\n\n viewRect.set(coordinate[0], coordinate[1], coordinate[0] + v.getMeasuredWidth(), coordinate[1] + v.getMeasuredHeight());\n\n boolean isVisible = viewRect.intersect(screenRect);\n Integer index = (Integer) v.getTag(R.id.htmltextview_viewholder_index);\n Integer type = (Integer) v.getTag(R.id.htmltextview_viewholder_type);\n if (index == null || type == null){\n //WTF?\n continue;\n }\n\n Container container = null;\n switch (type){\n case VIEWHOLDER_TYPE_IMG:\n default:\n container = imgContainerMap.get(index);\n break;\n }\n if (isVisible){\n if (container.visible){\n //fine\n }else{\n //was invisible, make it visible\n container.attachChild();\n container.visible = true;\n }\n }else{\n if (container.visible){\n //was visible, recycle it\n container.detachChild();\n container.visible = false;\n }else{\n //fine\n }\n }\n }\n }\n });\n }",
"private void isPopulateView() {\n if (!isPopulate) {\n llHeader.setVisibility(View.GONE);\n CoordinatorLayout.LayoutParams relativeParams = new CoordinatorLayout.LayoutParams(CoordinatorLayout.LayoutParams.MATCH_PARENT, CoordinatorLayout.LayoutParams.WRAP_CONTENT);\n relativeParams.setMargins(0, 0, 0, 0);\n rlMain.setLayoutParams(relativeParams);\n }\n }",
"public boolean getViewMissing() {\n return view == null;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\n\t\tif (view != null) {\n\t\t\tLog.i(\"222222\", \"11111111\");\n\t\t\tViewGroup parent = (ViewGroup) view.getParent();\n\t\t\tif (parent != null)\n\t\t\t\tparent.removeView(view);\n\t\t}\n\t\ttry {\n\t\t\tview = inflater.inflate(R.layout.f_mine, container, false);\n\t\t\tinitView();\n\t\t} catch (InflateException e) {\n\n\t\t}\n\n\t\treturn view;\n\t}",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n String status = getItem(position);\n // Check if an existing view is being reused, otherwise inflate the view\n // Lookup view for data population\n // Populate the data into the template view using the data object\n\n //if (!wodata.status.equals(null))\n\n // Return the completed view to render on screen\n return convertView;\n }",
"public void refreshView(){\n\t\tView v = getView();\n\t\tif(v != null){\n\t\t\tv.invalidate();\n\t\t}\n\t}",
"private boolean imageViewReused(LoadDataHolder loadDataHolder) {\n String url = relationsMap.get(loadDataHolder.getImageView());\n // Check is url exist in relationsMap and equals to url from holder\n return url == null || !url.equals(loadDataHolder.getUrl());\n }",
"private View getCachedView()\n\t{\n\t\tif (_cachedItemViews.size() != 0)\n\t\t{\n\t\t\treturn _cachedItemViews.removeFirst();\n\t\t}\n\t\treturn null;\n\t}",
"private View getWorkingView(final View convertView) {\n\t\tView workingView = null;\n\n\t\tif(convertView == null) {\n\t\t\tfinal Context context = getContext();\n\t\t\tfinal LayoutInflater inflater = (LayoutInflater)context.getSystemService\n\t\t (Context.LAYOUT_INFLATER_SERVICE);\n\n\t\t\tworkingView = inflater.inflate(checkOptionLayoutResource, null);\n\t\t} else {\n\t\t\tworkingView = convertView;\n\t\t}\n\n\t\treturn workingView;\n\t}",
"private void refreshView() {\n if (!wasInvalidatedBefore) {\n wasInvalidatedBefore = true;\n invalidate();\n }\n }",
"protected View getCachedView(){\n\t\tif (mCachedItemViews.size() != 0) {\n\t\t\tView v;\n\t\t\tdo{\n\t v = mCachedItemViews.removeFirst().get();\n\t\t\t}\n while(v == null && mCachedItemViews.size() != 0);\n\t\t\treturn v;\n }\n return null;\n\t}",
"public void reuse() {}",
"@Override\n\tpublic boolean updateView(View contentView) {\n\t\treturn false;\n\t}",
"@Override\n public View onCreateView(\n LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState\n ) {\n return inflater.inflate(R.layout.select_game, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final Context contextThemeWrapper = new ContextThemeWrapper(getActivity(), R.style.AppTheme_Nav);\n\n // clone the inflater using the ContextThemeWrapper\n LayoutInflater localInflater = inflater.cloneInContext(contextThemeWrapper);\n View view = localInflater.inflate(R.layout.fragment_master_list, container, false);\n Log.v(\"Is view null\", Boolean.toString(view == null));\n initializeView(view);\n addButtonListener(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n\t{\n \t\tif (v != null) \n \t\t{\n \t ViewGroup parent = (ViewGroup) v.getParent();\n \t if (parent != null)\n \t parent.removeView(v);\n \t }\n \t\t\n \t try \n \t {\n \t v = inflater.inflate(R.layout.tab3_fragment, container, false);\n \t } \n \t catch (InflateException e)\n \t {\n \t /* map is already there, just return view as it is */\n \t \te.printStackTrace();\n \t }\n \t return v;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater,\n\t\t\t@Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n\t\tView view = inflater.inflate(R.layout.one, null);\n\t\treturn view;\n\t}",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n \tthis.setRetainInstance(true);\n \treturn super.onCreateView(inflater, container, savedInstanceState);\n }",
"@Override\n\t\tpublic boolean OnRepeat(View view, int... param) {\n\t\t\treturn false;\n\t\t}",
"@Override\n\t\tpublic boolean OnRepeat(View view, int... param) {\n\t\t\treturn false;\n\t\t}",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tLogUtil.d(TAG, \"onCreateView---------\");\n\t\tview = inflater.inflate(getContentViewId(),container,false);\n\t\tunbinder = ButterKnife.bind(this,view);\n\t\tinitView(savedInstanceState);\n\t\treturn view;\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n activity = (InitializeDineOrderActivity) getActivity();\n View view = inflater.inflate(R.layout.fragment_items_added_success, container, false);\n unbinder = ButterKnife.bind(this, view);\n //animate(imageView);\n return view;\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = getThisView(inflater,container);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (view == null) {\n view = inflater.inflate(R.layout.fragment_last_askitem, container, false);\n }\n initViews();\n return view;\n }",
"@Override\n\tprotected View initView(LayoutInflater arg0, ViewGroup arg1, Bundle arg2) {\n\t\treturn arg0.inflate(R.layout.fragment_find, arg1, false);\n\t}",
"protected abstract void onInflated(View view);",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tLog.d(\"CookFragment\", \"onCreateView\");\n\t\treturn inflater.inflate(R.layout.pull_to_refresh, container, false);\n\t}",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\tViewGroup p = (ViewGroup) mMainView.getParent();\r\n\t\tif (p != null) {\r\n\t\t\tp.removeAllViewsInLayout();\r\n\t\t}\r\n\t\treturn mMainView;\r\n\t}",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\tViewGroup p = (ViewGroup) mMainView.getParent();\r\n\t\tif (p != null) {\r\n\t\t\tp.removeAllViewsInLayout();\r\n\t\t}\r\n\t\treturn mMainView;\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_new_game, container, false);\n\n mUnbinder = ButterKnife.bind(this, rootView);\n\n mButtonContinue.setVisibility(MainActivity.isContinueVisible ? View.VISIBLE : View.GONE);\n\n return rootView;\n }",
"private View getCachedView() {\n if (mCachedItemViews.size() != 0) {\n return mCachedItemViews.removeFirst();\n }\n return null;\n }",
"public boolean wantsView(T aView, View aView2) { return aView.getContent()==null; }",
"public boolean wantsView(T aView, View aView2) { return aView.getContent()==null; }",
"@Nullable\n @Override\n @CallSuper\n public View onCreateView(@NonNull final LayoutInflater inflater, @Nullable final ViewGroup container, @Nullable final Bundle savedInstanceState) {\n View view = getView();\n if (view == null) {\n view = inflater.inflate(getContentLayout(), container, false);\n }\n unbinder = ButterKnife.bind(this, view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_map_second, container, false);\n unbinder = ButterKnife.bind(this, view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_ongoing, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n ctx = getActivity();\n View view = inflater.inflate(getLayoutID(),null);\n mPreenter = createPresenter();\n loading = new MyProgressLoading(ctx, R.style.DialogStyle);\n sp = ctx.getSharedPreferences(SpUtiles.SP_Mode,Context.MODE_PRIVATE);\n HideUtil.init(getActivity());\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n initListener();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_data_visible, container, false);\n unbinder = ButterKnife.bind(this, view);\n return view;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.live_layout, null);\r\n\t}",
"@Override\n public boolean isViewFromObject(View view, Object object) {\n return view == (RelativeLayout) object;\n }",
"@Override\n public View onCreateView( LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState ) {\n return inflater.inflate( R.layout.fragment_turn_over, container, false );\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n Log.v(\"MeInfoEdit\",\"onCreateView\");\n if(view==null){\n view =inflater.inflate(R.layout.fragment_me_info_edit, container, false);\n }\n ((MainActivity)getActivity()).unBindDrawer();\n ViewGroup.LayoutParams params = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);\n swipLayout=new SwipLayout(getContext());\n swipLayout.setLayoutParams(params);\n swipLayout.setBackgroundColor(Color.TRANSPARENT);\n swipLayout.removeAllViews();\n swipLayout.addView(view);\n if(CoreApplication.newInstance().getRoot()!=null){\n Log.v(\"MeinfoEdit\",\"rootView not null\");\n }\n swipLayout.setParentView(getTargetFragment().getView()).setFragment(MeInfoEdit.this);\n return swipLayout;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.xxh_gamelayout3, container, false);\n\t}",
"static public View inflateLayout(int Presid,View PlayoutView) //~1410I~\r\n { //~1410I~\r\n if (Dump.Y) Dump.println(\"AView:inflateLayout2 res=\"+Integer.toHexString(Presid)+\",view=\"+PlayoutView.toString());//~@@@@R~\r\n \tAG.setCurrentView(Presid,PlayoutView); //~1410I~\r\n return PlayoutView; //~1410I~\r\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tViewGroup viewgproup = (ViewGroup) mView.getParent();\n\t\tif (viewgproup != null) {\n\t\t\tviewgproup.removeAllViewsInLayout();\n\t\t}\n\t\treturn mView;\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.layout_true_false_row, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater,\n @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n layout = inflater.inflate(R.layout.fragment_checkme_update, container, false);\n initUI();\n new GetPatchsThread(checkmeInfo, wantLanguage, updatePatch).start();\n return layout;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.main, container,false);\n\n\t\t//Update this view's content\n\t\tupdate();\n\n\t\t//Return this view to the adapter\n\t\treturn view;\n\t}",
"private boolean isFirstTime() {\n SharedPreferences preferences = getActivity().getPreferences(MODE_PRIVATE);\n boolean ranBefore = preferences.getBoolean(\"RanBefore\", false);\n if (!ranBefore) {\n\n SharedPreferences.Editor editor = preferences.edit();\n editor.putBoolean(\"RanBefore\", true);\n editor.apply();\n mBind.topLayout.setVisibility(View.VISIBLE);\n mBind.topLayout.setOnTouchListener(new View.OnTouchListener() {\n\n @Override\n public boolean onTouch(View v, MotionEvent event) {\n mBind.topLayout.setVisibility(View.INVISIBLE);\n return false;\n }\n\n });\n }\n return ranBefore;\n\n }",
"@Override\n protected void onFinishInflate() {\n super.onFinishInflate();\n Log.d(SecondView.class.getSimpleName(), String.valueOf(System.currentTimeMillis()));\n ButterKnife.inject(this, this);\n secondPresenter.takeView(this);\n }",
"private void inflateView() {\n\t\tLog.v(T, \"inflateView\");\n\t\tif (!isInEditMode()) {\n\t\t\tString inflaterService = Context.LAYOUT_INFLATER_SERVICE;\n\n\t\t\tLayoutInflater layoutInflater = (LayoutInflater) getContext()\n\t\t\t\t\t.getSystemService(inflaterService);\n\t\t\tlayoutInflater.inflate(R.layout.dms_coordinate, this, true);\n\n\t\t\t// Get child control references\n\t\t\teditDegrees = (EditText) findViewById(R.id.editDegrees);\n\t\t\teditMinutes = (EditText) findViewById(R.id.editMinutes);\n\t\t\teditSeconds = (EditText) findViewById(R.id.editSeconds);\n\t\t}\n\t}",
"@Override\n\tprotected int getViewId() {\n\t\treturn R.layout.layout_square_live;\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_favorite, container, false);\n database = AppDatabase.getInstance(getActivity().getApplicationContext());\n\n tvNotFound = view.findViewById(R.id.tv_no_favorite_found);\n tvNotFound.setVisibility(View.INVISIBLE);\n\n recyclerView = view.findViewById(R.id.rv_tv_show);\n recyclerView.setLayoutManager(new GridLayoutManager(getActivity(), 2));\n loadData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n if (mInflate == null) {\n mInflate = inflater.inflate(R.layout.fragment_fa_xian, container, false);\n init();\n }\n //缓存的rootView需要判断是否已经被加过parent, 如果有parent需要从parent删除,要不然会发生这个rootview已经有parent的错误。\n ViewGroup parent = (ViewGroup) mInflate.getParent();\n if (parent != null) {\n parent.removeView(mInflate);\n }\n return mInflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view= inflater.inflate(R.layout.fragment_fragment__branches__ecet, container, false);\n recyclerView = view.findViewById(R.id.recyclebranch);\n\n p=view.findViewById(R.id.progress);\n retry=view.findViewById(R.id.retry);\n r=(SwipeRefreshLayout)view.findViewById(R.id.refreshcollege);\n\n recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));\n\n retry.setVisibility(View.INVISIBLE);\n\n r.setColorSchemeResources(R.color.cutdown);\n r.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n @Override\n public void onRefresh() {\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n start(view);\n r.setRefreshing(false);\n }\n },2000);\n }\n });\n\n start(view);\n\n\n return view;\n }",
"private void initView(Context context) {\n\t\tLinearLayout.LayoutParams params = new LinearLayout.LayoutParams(LayoutParams.MATCH_PARENT, 0);\n\t\tmContainer = (LinearLayout)LayoutInflater.from(context).inflate(R.layout.pullable_refresh, null);\n\t\taddView(mContainer, params);\n\t\tsetGravity(Gravity.BOTTOM);\n\t\t\n\t\trefreshArrowView = (ImageView)findViewById(R.id.pull_down_arrow);\n\t\trefreshingView = (ImageView)findViewById(R.id.pull_down_refreshing_view);\n\t\trefreshStateTextView = (TextView)findViewById(R.id.pull_down_state_text);\n\t\t\n\t\trotateAnimation = (RotateAnimation)AnimationUtils.loadAnimation(context, R.anim.reverse_anim);\n\t\trefreshingAnimation = (RotateAnimation)AnimationUtils.loadAnimation(context, R.anim.rotating);\n\t\tLinearInterpolator lir = new LinearInterpolator();\n\t\trotateAnimation.setInterpolator(lir);\n\t\trefreshingAnimation.setInterpolator(lir);\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n theView = inflater.inflate(R.layout.what_case_fragment, container, false);\n\n theView.findViewById(R.id.buttonNominative).setOnClickListener(this);\n theView.findViewById(R.id.buttonAccusative).setOnClickListener(this);\n theView.findViewById(R.id.buttonGenitive).setOnClickListener(this);\n theView.findViewById(R.id.buttonDative).setOnClickListener(this);\n theView.findViewById(R.id.buttonInstrumental).setOnClickListener(this);\n theView.findViewById(R.id.buttonPrepositional).setOnClickListener(this);\n\n if (foundTarget) {\n foundTarget = false;\n setNewWord();\n } else {\n setWord();\n }\n\n return theView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_p1_one, container, false);\n unbinder = ButterKnife.bind(this, v);\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n MainActivity activity = (MainActivity) getActivity();\n countryLocation = activity.country();\n\n\n return inflater.inflate(R.layout.fragment_shuffle, container, false);\n\n }",
"public void onFinishInflate() {\n super.onFinishInflate();\n if (!isInEditMode()) {\n this.mAdjustRelockTimePadLockPresenter = new AdjustRelockTimePadLockPresenter(this);\n ButterKnife.inject((View) this);\n }\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n convertView = inflater.inflate(R.layout.fragment_homecircles, container, false);\n init();\n return convertView;\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n Fabric.with(getContext(), new Crashlytics());\r\n View view = inflater.inflate(R.layout.fragment_open_ticket_general_enquiries_department, container, false);\r\n unbinder = ButterKnife.bind(this, view);\r\n\r\n\r\n intialize();\r\n return view;\r\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tcurrentView = inflater.inflate(R.layout.inspect_history_fragment_page_item, container, false);\n\t\tinitial(currentView);\n\t\treturn currentView;\n\t}",
"protected View inflateRow(ViewHolder holder){\n View row = null;\n switch (type)\n {\n case TYPE_TEXT_USER:\n row = inflater.inflate(textUserRowResId, null);\n holder.readStatus = (ImageSwitcher) row.findViewById(R.id.read_status);\n holder.readStatus.setFactory(new ViewSwitcher.ViewFactory() {\n @Override\n public View makeView() {\n ImageView imageView = new ImageView(mActivity.getApplicationContext());\n imageView.setScaleType(ImageView.ScaleType.CENTER);\n return imageView;\n }\n });\n holder.readStatus.setInAnimation(AnimationUtils.loadAnimation(mActivity.getApplicationContext(),\n android.R.anim.fade_in));\n holder.readStatus.setOutAnimation(AnimationUtils.loadAnimation(mActivity.getApplicationContext(),\n android.R.anim.fade_out));\n holder.txtContent = (TextView) row.findViewById(R.id.txt_content);\n\n break;\n\n case TYPE_TEXT_FRIEND:\n\n row = inflater.inflate(textFriendRowResId, null);\n\n holder.txtContent = (TextView) row.findViewById(R.id.txt_content);\n\n break;\n\n case TYPE_IMAGE_USER:\n row = inflater.inflate(imageUserRowResId, null);\n holder.readStatus = (ImageSwitcher) row.findViewById(R.id.read_status);\n\n holder.readStatus.setFactory(new ViewSwitcher.ViewFactory() {\n @Override\n public View makeView() {\n ImageView imageView = new ImageView(mActivity.getApplicationContext());\n imageView.setScaleType(ImageView.ScaleType.CENTER);\n return imageView;\n }\n });\n holder.readStatus.setInAnimation(AnimationUtils.loadAnimation(mActivity.getApplicationContext(),\n android.R.anim.fade_in));\n holder.readStatus.setOutAnimation(AnimationUtils.loadAnimation(mActivity.getApplicationContext(),\n android.R.anim.fade_out));\n holder.progressBar = (ProgressBar) row.findViewById(R.id.chat_sdk_progress_bar);\n holder.image = (ChatBubbleImageView) row.findViewById(R.id.chat_sdk_image);\n\n break;\n\n case TYPE_IMAGE_FRIEND:\n row = inflater.inflate(imageFriendRowResId, null);\n\n holder.progressBar = (ProgressBar) row.findViewById(R.id.chat_sdk_progress_bar);\n holder.image = (ChatBubbleImageView) row.findViewById(R.id.chat_sdk_image);\n break;\n\n case TYPE_LOCATION_USER:\n row = inflater.inflate(locationUserResId, null);\n holder.readStatus = (ImageSwitcher) row.findViewById(R.id.read_status);\n holder.readStatus.setFactory(new ViewSwitcher.ViewFactory() {\n @Override\n public View makeView() {\n ImageView imageView = new ImageView(mActivity.getApplicationContext());\n imageView.setScaleType(ImageView.ScaleType.CENTER);\n return imageView;\n }\n });\n holder.readStatus.setInAnimation(AnimationUtils.loadAnimation(mActivity.getApplicationContext(),\n android.R.anim.fade_in));\n holder.readStatus.setOutAnimation(AnimationUtils.loadAnimation(mActivity.getApplicationContext(),\n android.R.anim.fade_out));\n holder.progressBar = (ProgressBar) row.findViewById(R.id.chat_sdk_progress_bar);\n holder.image = (ChatBubbleImageView) row.findViewById(R.id.chat_sdk_image);\n\n break;\n\n case TYPE_LOCATION_FRIEND:\n row = inflater.inflate(locationFriendRowResId, null);\n\n holder.progressBar = (ProgressBar) row.findViewById(R.id.chat_sdk_progress_bar);\n holder.image = (ChatBubbleImageView) row.findViewById(R.id.chat_sdk_image);\n\n break;\n }\n\n return row;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n\n\n view = inflater.inflate(LAYOUT, container, false);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n if (view == null) {\n view = inflater.inflate(R.layout.fragment_bao_yang_scx, container, false);\n unbinder = ButterKnife.bind(this, view);\n init();\n }\n return view;\n }",
"private void checkSearchViewExists() {\n onView(withId(R.id.searchView)).check(matches(isDisplayed()));\n }",
"private void initViews() {\n\n if (blockListAdapter != null) {\n blockListAdapter = null;\n }\n\n swipeRefreshLayout.setColorSchemeResources(\n R.color.witkey_orange,\n R.color.witkey_orange,\n R.color.witkey_orange);\n\n swipeRefreshLayout.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n @Override\n public void onRefresh() {\n firstNetworkCall();\n }\n });\n\n rv_swipe_refresh_tv.setColorSchemeResources(\n R.color.witkey_orange,\n R.color.witkey_orange,\n R.color.witkey_orange);\n\n rv_swipe_refresh_tv.setOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {\n @Override\n public void onRefresh() {\n firstNetworkCall();\n }\n });\n\n noResultRefreshTextView.setOnClickListener(this);\n\n if (swipeRefreshLayout != null) {\n swipeRefreshLayout.post(new Runnable() {\n @Override\n public void run() {\n swipeRefreshLayout.setRefreshing(true);\n firstNetworkCall();\n }\n });\n }\n\n btnBack.setOnClickListener(this);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.layoutview3, container, false);\n }",
"protected void findAndCacheViews(View view) {\n\t SpeakerItemViews views = new SpeakerItemViews();\n\t views.headerView = view.findViewById(R.id.header);\n\t views.headerTextView = (TextView) view.findViewById(R.id.header_text);\n\t views.dividerView = view.findViewById(R.id.session_divider);\n\t views.nameView = (TextView) view.findViewById(R.id.speaker_name);\n\t views.companyView = (TextView) view.findViewById(R.id.speaker_company);\n\t views.starButton = (CheckBox) view.findViewById(R.id.star_button);\n\t view.setTag(views);\n\t }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_latest, container, false);\n\n articlesRecycle = view.findViewById(R.id.articlesRecycle);\n emptyView = view.findViewById(R.id.emptyView);\n\n getNews();\n\n\n\n return view;\n\n\n }",
"@Override\n\tpublic View getCurrView(View convertView) {\n\t\tif(curr_content!=null){\n\t\t\tconvertView=getPageView(convertView,curr_content);\n\t\t}\n\t\treturn convertView;\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recently_viewed, container, false);\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\t// cityIntent = new Intent(AppContext.curActivity,\n\t\t// EventSearchInitialActivity.class);\n\t\tif (null == contentView) {\n\t\t\tloader = OriginalImageAsyncLoader.getInstance();\n\t\t\tinitRequestModel();\n\t\t\tcontentView = inflater.inflate(R.layout.frag_venue, container,\n\t\t\t\t\tfalse);\n\t\t\tvHeader = inflater.inflate(R.layout.header_hot_venue, null);\n\t\t\tvHeader.setVisibility(View.INVISIBLE);\n\t\t\tinitView();\n\t\t\tinitDate();\n\t\t\tvHeader.setVisibility(View.VISIBLE);\n\t\t} else {\n\t\t\t((ViewGroup) contentView.getParent()).removeView(contentView);\n\t\t}\n\t\tif (pagerAdapter != null) {\n\t\t\tpagerAdapter.notifyDataSetChanged();\n\t\t}\n\t\tif (null != mAdapter) {\n\t\t\tmAdapter.notifyDataSetChanged();\n\t\t}\n\t\treturn contentView;\n\t}",
"private boolean isFirstView(int viewIndex){\r\n\t\treturn viewIndex == 0;\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if(container == null)\n return null;\n\n Boolean isNew = getArguments().getBoolean(\"isNew\");\n View view = inflater.inflate(R.layout.fragment_diary_detail, container, false);\n loadEntry(view, isNew);\n\n return view;\n }",
"@Override\n public void invalidateChildRegion(SlidingPaneLayout slidingPaneLayout, View view) {\n if (this.mGetDisplayList != null && this.mRecreateDisplayList != null) {\n try {\n this.mRecreateDisplayList.setBoolean((Object)view, true);\n this.mGetDisplayList.invoke((Object)view, null);\n }\n catch (Exception var3_3) {\n Log.e((String)\"SlidingPaneLayout\", (String)\"Error refreshing display list state\", (Throwable)var3_3);\n }\n super.invalidateChildRegion(slidingPaneLayout, view);\n return;\n }\n view.invalidate();\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_game_over, container, false);\n\n winningTeam = (TextView)view.findViewById(R.id.winnerText);\n\n return view;\n }",
"public void initView() {\n ((TextView) _$_findCachedViewById(R.id.tvCancelResv)).setOnClickListener(new MyResvDetailActivity$initView$1(this));\n getResvDetail();\n }",
"public boolean onPreDraw() {\n\t\t\t\t//Remove the listener after the 1 frame\n\t\t\t\tobserver.removeOnPreDrawListener(this);\n\t\t\t\tboolean firstAnimation = true;\n\t\t\t\tint firstVisiblePosition = listview.getFirstVisiblePosition();\n\t\t\t\t//Cycle through all current children of the list frame\n\t\t\t\tfor (int i = 0; i < listview.getChildCount(); ++i) {\n\t\t\t\t\tfinal View child = listview.getChildAt(i);\n\t\t\t\t\tint position = firstVisiblePosition + i;\n\t\t\t\t\tlong itemId = mAdapter.getItemId(position);\n\t\t\t\t\tInteger startTop = mItemIdTopMap.get(itemId);\n\t\t\t\t\t//Where is the child now, get the top position\n\t\t\t\t\tint top = child.getTop();\n\t\t\t\t\tif (startTop != null) { //This means the view used to be somewhere else in the container\n\t\t\t\t\t\t//If the child was somewhere else in the container, run an animation to move it\n\t\t\t\t\t\tif (startTop != top) {\n\t\t\t\t\t\t\t//Set a Y Value and animate to it\n\t\t\t\t\t\t\tint delta = startTop - top;\n\t\t\t\t\t\t\tchild.setTranslationY(delta);\n\t\t\t\t\t\t\tchild.animate().setDuration(MOVE_DURATION).translationY(0);\n\t\t\t\t\t\t\t//If this is the first time it's been run, restore values\n\t\t\t\t\t\t\tif (firstAnimation) {\n\t\t\t\t\t\t\t\tchild.animate().withEndAction(new Runnable() {\n\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\tmBackgroundContainer.hideBackground();\n\t\t\t\t\t\t\t\t\t\tmSwiping = false;\n\t\t\t\t\t\t\t\t\t\tmListView.setEnabled(true);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tfirstAnimation = false;\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// Animate new views along with the others. The catch is that they did not\n\t\t\t\t\t\t// exist in the start state, so we must calculate their starting position\n\t\t\t\t\t\t// based on neighboring views.\n\t\t\t\t\t\tint childHeight = child.getHeight() + listview.getDividerHeight();\n\t\t\t\t\t\tstartTop = top + (i > 0 ? childHeight : -childHeight);\n\t\t\t\t\t\tint delta = startTop - top;\n\t\t\t\t\t\tchild.setTranslationY(delta); //Again, set Y value to where it is going\n\t\t\t\t\t\tchild.animate().setDuration(MOVE_DURATION).translationY(0);\n\t\t\t\t\t\tif (firstAnimation) {\n\t\t\t\t\t\t\tchild.animate().withEndAction(new Runnable() {\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\tmBackgroundContainer.hideBackground();\n\t\t\t\t\t\t\t\t\tmSwiping = false;\n\t\t\t\t\t\t\t\t\tmListView.setEnabled(true);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\tfirstAnimation = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//When finished, clear the item IDs associated with positions\n\t\t\t\tmItemIdTopMap.clear();\n\t\t\t\treturn true;\n\t\t\t}",
"@Override\r\n\t\tpublic View newView(Context arg0, Cursor arg1, ViewGroup arg2) {\n\t\t\t\t LayoutInflater inflater = LayoutInflater.from(arg2.getContext());\r\n\t\t\t View retView = inflater.inflate(R.layout.report_listitems, arg2, false);\r\n\t\t\t int j=i%2;\r\n\t\t\t retView.setBackgroundColor(colors[j]);\r\n\t\t\t i++;\r\n\t\t\t bindView(retView,arg0,arg1);\r\n\t\t\t return retView;\r\n\t\t\t \r\n\t\t}",
"public boolean hasBindView() {\n return mBindViewId != -1;\n }",
"@NonNull\n View buildView(@NonNull LayoutInflater inflater, @NonNull ViewGroup parent);",
"@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 intialFragment();\n // return inflater.inflate(R.layout.fragment_old_ordered, container, false);\n oldOrderedBinding = DataBindingUtil.inflate(\n inflater, R.layout.fragment_orederd_recycler, container, false);\n View view = oldOrderedBinding.getRoot();\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_activity_summary, container, false);\n\n // Transaction party\n FragmentManager fragmentManager = getFragmentManager();\n FragmentTransaction ft = fragmentManager.beginTransaction();\n\n if(fragmentManager.findFragmentById(R.id.frame1)!=null) {\n ft.remove(fragmentManager.findFragmentById(R.id.frame1));\n }\n Fragment fragment = new SummaryFragment();\n ft.replace(R.id.frame1, fragment).commit();\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_a, container, false);\n findView(view);\n\n Log.i(TAG, \"onCreateView\");\n return view;\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 }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_gap_fill, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n return view;\n }",
"@Override\r\n public boolean isViewFromObject(View view, Object object) {\n return view == ((View)object);\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_last_map, container, false);\n }",
"public final void onBindView(View view) {\n AppMethodBeat.m2504i(107165);\n super.onBindView(view);\n ImageView imageView = (ImageView) view.findViewById(2131822184);\n if (imageView != null) {\n if (this.drawable != null) {\n imageView.setImageDrawable(this.drawable);\n imageView.setVisibility(0);\n } else if (this.f4433ZV != 0) {\n imageView.setImageResource(this.f4433ZV);\n imageView.setVisibility(0);\n } else {\n imageView.setVisibility(8);\n }\n }\n LinearLayout linearLayout = (LinearLayout) view.findViewById(2131822347);\n if (this.height != -1) {\n linearLayout.setMinimumHeight(this.height);\n }\n TextView textView = (TextView) view.findViewById(2131822348);\n if (textView != null) {\n textView.setVisibility(this.qlf);\n textView.setText(this.pnJ);\n if (this.qle != -1) {\n textView.setBackgroundDrawable(C1338a.m2864g(this.context, this.qle));\n }\n }\n this.yBG = (ImageView) view.findViewById(2131822349);\n this.yBG.setVisibility(this.yBD);\n this.yBH = (ViewGroup) view.findViewById(2131822351);\n this.yBH.setVisibility(this.yBE);\n this.yBI = (TextView) view.findViewById(16908310);\n textView = (TextView) view.findViewById(2131826062);\n if (C5046bo.isNullOrNil(this.yBJ)) {\n textView.setVisibility(8);\n AppMethodBeat.m2505o(107165);\n return;\n }\n textView.setVisibility(0);\n textView.setText(this.yBJ);\n AppMethodBeat.m2505o(107165);\n }",
"@Override\n public View getView(final int position, View mViews, ViewGroup parent) {\n LayoutInflater mInflater = (LayoutInflater)\n searchPollCommentsAdapterContext.getSystemService(Activity.LAYOUT_INFLATER_SERVICE);\n mCampaignCommentsPollView=mViews;\n // The old view to reuse, if possible.If convertView is NOT null, we can simple re-use the convertView as the new View.\n // It will happen when a new row appear and a old row in the other end roll out.\n if (mCampaignCommentsPollView == null) {\n /* create a new view of my layout and inflate it in the row */\n mCampaignCommentsPollView = mInflater.inflate(searchPollCommentsLayoutId, parent, false);\n holder = new ViewHolder();\n holder.campaignImageSearch = (ImageView) mCampaignCommentsPollView.findViewById(R.id.imgProfile);\n holder.userNameSearch = (TextView) mCampaignCommentsPollView.findViewById(R.id.txtProfileName);\n holder.searchComments = (TextView) mCampaignCommentsPollView.findViewById(R.id.txtChatDetails);\n holder.imgMore = (ImageView) mCampaignCommentsPollView.findViewById(R.id.imgMore);\n holder.txtCommentTime=(TextView)mCampaignCommentsPollView.findViewById(R.id.txtCommentTime);\n mCampaignCommentsPollView.setTag(holder);\n } else {\n holder = (ViewHolder) mCampaignCommentsPollView.getTag();\n }\n //Geting the particular object from the response based on the position\n searchPollCommentsData = getItem(position);\n //If the user id matches from the response then the edit icon will be visible\n //else edit icon wont be visivble\n if (searchPollCommentsData.getUserId().equals(MApplication.getString(searchPollCommentsAdapterContext, Constants.USER_ID))) {\n holder.imgMore.setVisibility(View.VISIBLE);\n } else {\n holder.imgMore.setVisibility(View.INVISIBLE);\n }\n //Getting the user profiel image\n searchPollCommentsUserProfile = searchPollCommentsData.getUserInfo().getUserProfileImg();\n Utils.loadImageWithGlideProfileRounderCorner(searchPollCommentsAdapterContext,searchPollCommentsUserProfile,holder.campaignImageSearch,R.drawable.placeholder_image);\n //Getting the user name from the response\n holder.userNameSearch.setText(searchPollCommentsData.getUserInfo().getUserName());\n //Getting the COMMENTS and setting in the text view\n holder.searchComments.setText(MApplication.getDecodedString(searchPollCommentsData.getComments()));\n //comment time\n holder.txtCommentTime.setText(MApplication.getHours(searchPollCommentsData.getUpdatedAt()));\n //Interface definition for a callback to be invoked when a view is clicked.\n holder.imgMore.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n //Clcik position\n int clickPosition = position;\n //Geting the particular object from the response based on the position\n searchPollCommentsData = getItem(clickPosition);\n //Comments from the response\n String comments = MApplication.getDecodedString(searchPollCommentsData.getComments());\n //COMMENTS id from the response\n String commentId = MApplication.getDecodedString(searchPollCommentsData.getId());\n //Custom dialog to edit and delete the comment\n customCampaignPollCustomDialog(searchPollCommentsAdapterContext, comments, clickPosition, commentId);\n }\n });\n //returning the views\n return mCampaignCommentsPollView;\n }",
"@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t\t{\n\t\t\t\tflag = (Page) getArguments().getSerializable(\"flag\");\n\t\t\t\tview = inflater.inflate(R.layout.activity_main, container, false);\n\t\t\t\tfillView();\n\t\t\t\treturn view;\n\t\t\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.game_zipe_observation, container, false);\n settingThingsUp(view);\n\n return view;\n }",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n HashMap<String, String> report = getItem(position);\n // Check if an existing view is being reused, otherwise inflate the view\n if (convertView == null) {\n convertView = LayoutInflater.from(getContext()).inflate(R.layout.fillup_line, parent, false);\n }\n // Lookup view for data population\n TextView vId = (TextView) convertView.findViewById(R.id.idFld);\n TextView rDate = (TextView) convertView.findViewById(R.id.dateFld);\n TextView vName = (TextView) convertView.findViewById(R.id.vehicleFld);\n TextView rMiles = (TextView) convertView.findViewById(R.id.milesFld);\n TextView rGallons = (TextView) convertView.findViewById(R.id.gallonsFld);\n TextView rCost = (TextView) convertView.findViewById(R.id.costFld);\n TextView rMileage = (TextView) convertView.findViewById(R.id.mileageFld);\n // Populate the data into the template view using the data object\n vId.setText(report.get(Fillup.KEY_ID));\n rDate.setText(report.get(Fillup.KEY_DATE));\n vName.setText(report.get(Fillup.KEY_VEHICLE_NAME));\n rMiles.setText(report.get(Fillup.KEY_MILES));\n rGallons.setText(report.get(Fillup.KEY_GALLONS));\n rCost.setText(report.get(Fillup.KEY_COST));\n rMileage.setText(report.get(Fillup.KEY_MILEAGE));\n\n // If the at Position >=1 and previous field date is same hide date\n if(position >= 1){\n HashMap<String, String> prevreport = getItem(position - 1);\n String current = report.get(Fillup.KEY_DATE);\n String prev = prevreport.get(Fillup.KEY_DATE);\n if(current.equals(prev)){\n rDate.setVisibility(View.GONE);\n }\n }\n\n // Return the completed view to render on screen\n return convertView;\n }",
"final View obtainView(final int position, final View optScrap) {\n View view = mRecycler.getTransientStateView(position);\n if (view != null) {\n return view;\n }\n\n // Reuse optScrap if it's of the right type (and not null)\n final int optType = optScrap != null\n ? ((LayoutParams) optScrap.getLayoutParams()).viewType : -1;\n final int positionViewType = mAdapter.getItemViewType(position);\n final View scrap = optType == positionViewType\n ? optScrap : mRecycler.getScrapView(positionViewType);\n\n view = mAdapter.getView(position, scrap, this);\n\n if (view != scrap && scrap != null) {\n // The adapter didn't use it; put it back.\n mRecycler.addScrap(scrap);\n }\n\n ViewGroup.LayoutParams lp = view.getLayoutParams();\n\n if (view.getParent() != this) {\n if (lp == null) {\n lp = generateDefaultLayoutParams();\n view.setLayoutParams(lp);\n } else if (!checkLayoutParams(lp)) {\n lp = generateLayoutParams(lp);\n view.setLayoutParams(lp);\n }\n }\n\n final LayoutParams sglp = (LayoutParams) lp;\n sglp.position = position;\n sglp.viewType = positionViewType;\n\n return view;\n }",
"@SuppressLint(\"ResourceAsColor\")\r\n\tprivate void initView() {\n\t\tfriendOneBtn = (Button)getActivity().findViewById(R.id.friend_one_btn);\r\n\t\tfriendTwoBtn = (Button) getActivity().findViewById(R.id.friend_two_btn);\r\n\t\tcursorImage = (ImageView)getActivity().findViewById(R.id.cursor);\r\n\t\t// 进入添加好友页\r\n\t\tfriendOneBtn.setOnClickListener(listener);\r\n\t\tfriendTwoBtn.setOnClickListener(listener);\r\n\t\t\r\n\t\tunreadLabel = (TextView) getActivity().findViewById(R.id.unread_msg_number);\r\n unreadAddressLable = (TextView) getActivity().findViewById(R.id.unread_address_number);\r\n ImageView addContactView = (ImageView) getView().findViewById(R.id.iv_new_contact);\r\n\t\t// 进入添加好友页\r\n\t\taddContactView.setOnClickListener(new OnClickListener() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tstartActivity(new Intent(getActivity(), AddContactActivity.class));\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"public static View getView(Context context, int resourceId, View view) {\n\t\tLayoutInflater inflater = LayoutInflater.from(context);\n\t\tif (view != null) {\n\t\t\treturn view;\n\t\t}\n\t\tif (resourceId != INVALID) {\n\t\t\tview = inflater.inflate(resourceId, null);\n\t\t}\n\t\treturn view;\n\t}",
"public void reloadView() {\n container.revalidate();\n container.repaint();\n }",
"@Override\n public View newView(final Context context, Cursor cursor, ViewGroup parent) {\n View view = LayoutInflater.from(context).inflate(R.layout.activity_item, parent, false);\n Button positiveButton = (Button) view.findViewById(R.id.add_time);\n positiveButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Object o = v.getTag();\n if (o == null || !(o instanceof ViewObjectTag)) {\n Toast.makeText(context, \"Cannot update time\", Toast.LENGTH_SHORT).show();\n }\n\n int id = ((ViewObjectTag) o).activityId;\n new IncrementActivityTimeAsyncTask(mDbHelper, id, 10)\n .executeOnExecutor(mBackgroundExecutor);\n if (mRefreshFuture == null || mRefreshFuture.isDone()) {\n mRefreshFuture = mBackgroundExecutor.schedule(\n mRefreshCursorRunnable, 2000, TimeUnit.MILLISECONDS);\n }\n }\n });\n\n Button negativebutton = (Button) view.findViewById(R.id.subtract_time);\n negativebutton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Object o = v.getTag();\n if (o == null || !(o instanceof ViewObjectTag)) {\n Toast.makeText(context, \"Cannot update time\", Toast.LENGTH_SHORT).show();\n }\n int id = ((ViewObjectTag) o).activityId;\n new IncrementActivityTimeAsyncTask(mDbHelper, id, -10).executeOnExecutor(\n mBackgroundExecutor);\n if (mRefreshFuture == null || mRefreshFuture.isDone()) {\n mRefreshFuture = mBackgroundExecutor.schedule(\n mRefreshCursorRunnable, 2000, TimeUnit.MILLISECONDS);\n }\n }\n });\n return view;\n }"
] | [
"0.60222584",
"0.5850514",
"0.5832009",
"0.5829044",
"0.5664403",
"0.56624573",
"0.56332695",
"0.56060505",
"0.55725324",
"0.55563074",
"0.55493295",
"0.5544281",
"0.5521305",
"0.5513848",
"0.54887444",
"0.5472579",
"0.5471834",
"0.5454597",
"0.54529613",
"0.54529613",
"0.5452039",
"0.5451709",
"0.5443096",
"0.54386187",
"0.5431744",
"0.5431003",
"0.54309106",
"0.5426969",
"0.5426969",
"0.54261625",
"0.54232466",
"0.542153",
"0.542153",
"0.54117763",
"0.538901",
"0.53870755",
"0.5382446",
"0.53653413",
"0.5358025",
"0.534662",
"0.53385323",
"0.5333132",
"0.5327868",
"0.5316838",
"0.5313995",
"0.53062606",
"0.5302373",
"0.530218",
"0.52998495",
"0.5295462",
"0.52945846",
"0.52768785",
"0.5270727",
"0.52613705",
"0.52580655",
"0.524198",
"0.5241689",
"0.5225379",
"0.52188706",
"0.5216603",
"0.5213092",
"0.5206305",
"0.52037275",
"0.5203444",
"0.51905155",
"0.5183048",
"0.51808906",
"0.5174191",
"0.516394",
"0.5161918",
"0.515657",
"0.5154357",
"0.51468396",
"0.51457196",
"0.5144727",
"0.5142726",
"0.5138909",
"0.513734",
"0.5129475",
"0.51275903",
"0.51274556",
"0.5126534",
"0.51248384",
"0.51234394",
"0.5117545",
"0.51139534",
"0.5112508",
"0.51064324",
"0.5099337",
"0.50951123",
"0.5094",
"0.5093562",
"0.5089939",
"0.5084195",
"0.5077917",
"0.50749356",
"0.5073927",
"0.5067891",
"0.50635",
"0.5062957",
"0.50610405"
] | 0.0 | -1 |
/////////// Patient // /////////// | public abstract List<Patient> getAllPatientNode(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void careForPatient(Patient patient);",
"Reference getPatient();",
"@SystemAPI\n\tPatient getPatient();",
"PatientInfo getPatientInfo(int patientId);",
"public Patient (){\r\n }",
"public Patient (String patientID) {\n this.patientID = patientID;\n this.associatedDoctor = new ArrayList<>();\n }",
"public Patient() {\n\t\t\n\t}",
"void AddPatiant(Patient p) throws Exception;",
"public String getPatientId()\n {\n return patientId;\n }",
"public Patient() {\r\n\r\n\t}",
"public Patient() {\n }",
"public String getPatientName()\n {\n return patientName;\n }",
"public String getPatientId(){\n\t\treturn patientId;\n\t}",
"void showPatients() {\n\t\t\t\n\t}",
"java.lang.String getPatientId();",
"public void setPatientName(String patientName)\n {\n this.patientName = patientName;\n }",
"public void readPatient() {\n\t\tBufferedReader br;\n\t\tString s;\n\t\ttry {\n\t\t\tbr = new BufferedReader(new FileReader(\"patients.txt\"));\n\n\t\t\twhile ((s = br.readLine()) != null) {\n\t\t\t\tString[] fields = s.split(\", \");\n\n\t\t\t\tString ssn = fields[0];\n\t\t\t\tString name = fields[1];\n\t\t\t\tString address = fields[2];\n\t\t\t\tString phoneNum = fields[3];\n\t\t\t\tString insurance = fields[4];\n\t\t\t\tString currentMeds = fields[5];\n\t\t\t\tPatient patient = new Patient(ssn, name, address, phoneNum, insurance, currentMeds);\n\t\t\t\tpat.add(patient);\n\t\t\t}\n\t\t\tbr.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t}",
"public String getPatientName(){\n\t\treturn patientName;\n\t}",
"public void setPatientId(String patientId)\n {\n this.patientId = patientId;\n }",
"public java.lang.String getPatientID(){\n return localPatientID;\n }",
"public java.lang.String getPatientID(){\n return localPatientID;\n }",
"public String getPatientName() {\n return patientName;\n }",
"public Patient(String n, String type){\n name =\"Brendan\";\n pid = \"01723-X72312-7123\";\n birthDate = new Date();\n nationalID = n;\n sex =\"Female\";\n mothersName = \"Mary\";\n fathersName = \"John\";\n enrolledSchema = new Schema();\n doctype = 1;\n }",
"public PatientVO getPatientVO()\n {\n return patientVO;\n }",
"public int getPatientID() {\r\n\t\treturn patientID;\r\n\t}",
"@GET(PATIENT_PATH)\n\tPatient getCurrentPatient();",
"@Override\n\tpublic void showPatientDetails() {\n\t\tif (UtilityClinic.patFile == null) {\n\t\t\ttry {\n\t\t\t\tutil.accessExistingPatJson();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\tSystem.out.println(\"File not found\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tutil.readFromPatJson(UtilityClinic.patFile);\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"S.No Patient's name ID Mobile Age\");\n\t\tfor (int i = 1; i <= UtilityClinic.patJson.size(); i++) {\n\t\t\tJSONObject jsnobj = (JSONObject) UtilityClinic.patJson.get(i - 1);\n\t\t\tSystem.out.print(\" \" + i + \" \" + jsnobj.get(\"Patient's name\") + \" \" + jsnobj.get(\"Patient's ID\")\n\t\t\t\t\t+ \" \" + jsnobj.get(\"Mobile\") + \" \" + jsnobj.get(\"Age\") + \"\\n\");\n\t\t}\n\t\tSystem.out.println();\n\t}",
"public void setPatientName(String patientName){\n\t\tthis.patientName = patientName;\n\t}",
"public String getPatientId() {\n\t\treturn patientId;\n\t}",
"public void registerPatientMethod1(Patient p);",
"protected void recordPatientVisit() {\r\n\r\n\t\t// obtain unique android id for the device\r\n\t\tString android_device_id = Secure.getString(getApplicationContext().getContentResolver(),\r\n Secure.ANDROID_ID); \r\n\t\t\r\n\t\t// add the patient record to the DB\r\n\t\tgetSupportingLifeService().createPatientAssessment(getPatientAssessment(), android_device_id);\r\n\t}",
"public void setPatientId(String patientId){\n\t\tthis.patientId = patientId;\n\t}",
"private void setThePatient() {\n String ppsn = mPPSN.getText().toString();\n thePatient.set_id(ppsn.substring(ppsn.indexOf(\":\")+1).trim());\n\n String name = mName.getText().toString();\n thePatient.setName(name.substring(name.indexOf(\":\")+1).trim());\n\n String illness = mCondition.getText().toString();\n thePatient.setIllness(illness.substring(illness.indexOf(\":\")+1).trim());\n\n Address a = new Address();\n String addressLine1 = mAddressLine1.getText().toString();\n a.setAddressLine1(addressLine1.substring(addressLine1.indexOf(\":\")+1).trim());\n\n String addressLine2 = mAddressLine2.getText().toString();\n a.setAddressLine2(addressLine2.substring(addressLine2.indexOf(\":\")+1).trim());\n\n String city = mCity.getText().toString();\n a.setCity(city.substring(city.indexOf(\":\")+1).trim());\n\n String county = mCounty.getText().toString();\n a.setCounty(county.substring(county.indexOf(\":\")+1).trim());\n\n String country = mCountry.getText().toString();\n a.setCountry(country.substring(country.indexOf(\":\")+1).trim());\n\n String postcode = mPostCode.getText().toString();\n a.setPostCode(postcode.substring(postcode.indexOf(\":\")+1).trim());\n\n thePatient.setAddress(a);\n }",
"public Patient() {\n this(DSL.name(\"patient\"), null);\n }",
"public void setPatientId(int patientId) {\n\t\t\t\n\t\tthis.patientId=patientId;\t\t\n\t}",
"public int getPatientId() {\n\t\t\n\t\treturn this.patientId;\n\t}",
"public Reference patient() {\n return getObject(Reference.class, FhirPropertyNames.PROPERTY_PATIENT);\n }",
"public void showPatientList()\r\n\t{\n\t\tfor(int i=0; i<nextPatientLocation; i++)\r\n\t\t{\r\n\t\t\tString currentPositionPatientData = arrayPatients[i].toString();\r\n\t\t\tSystem.out.println(\"Patient \" + i + \" is \" + currentPositionPatientData);\r\n\t\t}\r\n\t}",
"public Patient(String myLast, String myFirst, int age) {\n this.lastname = myLast;\n this.firstname = myFirst;\n this.age = age;\n }",
"public Patient(String userID, String fullName, String address, String telephone){\n super(userID, fullName, address, telephone);\n }",
"public Patient() {\n\t\tsuper();\n\t\t/*\n\t\t * TODO initialize lists\n\t\t */\n\t\ttreatments = Collections.emptyList();\n\t}",
"public Patient getSelectedPatient(){\n return (Patient)DoctorCreatePerscriptionPatientSelector.getSelectedItem();\n }",
"@Override\n\tpublic void addPatients(String name, int id, Long mobilenumber, int age) {\n\t\t\n\t}",
"public Patient(Name alias) {\n this(alias, PATIENT);\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 }",
"private Patient setPatientIdentifier(Patient patient){\n\t\tUUID u = new UUID(1,0);\n\t\ttry{\n\t\t\tUUID randomUUID = u.randomUUID();\n\t\t\tPatientIdentifier pi = new PatientIdentifier();\n\t\t\tpi.setIdentifier(randomUUID.toString());\n\t\t\tpatient.addIdentifier(pi);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn patient;\n\t}",
"public Patient(String alias) {\n this(DSL.name(alias), PATIENT);\n }",
"public void setPatientID(java.lang.String param){\n \n this.localPatientID=param;\n \n\n }",
"public void setPatientID(java.lang.String param){\n \n this.localPatientID=param;\n \n\n }",
"public void setPatientID(int patientID) {\n\t\tthis.patientID = patientID;\n\t}",
"@Override\r\n\tpublic void patientDisease() {\n\t\t\r\n\t\tSystem.out.println(\"Here I have attached the patients information\");\r\n\t\t\r\n\t}",
"public String getPatientPhone() {\n return patientPhone;\n }",
"private void populatePatientData() {\n\n // Set the activity title\n setTitle(mPatient.getName());\n\n int urgency = mPatient.getUrgency();\n String urgencyFormat;\n if (urgency <= 1)\n urgencyFormat = \"Non-urgent (%d)\";\n else if (urgency == 2)\n urgencyFormat = \"Less urgent (%d)\";\n else\n urgencyFormat = \"Urgent (%d)\";\n setText(mUrgencyView, getString(R.string.urgency), String.format(urgencyFormat, urgency));\n\n // Populate the Vital Signs section with the patient's temperature, blood pressure, and heart rate.\n String[] patientVitalSignsLabels = getResources().getStringArray(R.array.patient_vital_signs_labels);\n\n VitalSigns vitalSigns = mPatient.getLatestVitalSigns();\n String temperature, bloodPressure, heartRate;\n if (vitalSigns != null) {\n temperature = String.format(\"%.1f\", vitalSigns.getTemperature());\n bloodPressure = String.format(\"%.0f / %.0f\", vitalSigns.getSystolicBloodPressure(), vitalSigns.getDiastolicBloodPressure());\n heartRate = String.format(\"%.0f\", vitalSigns.getHeartRate());\n } else {\n temperature = getString(R.string.none_recorded);\n bloodPressure = getString(R.string.none_recorded);\n heartRate = getString(R.string.none_recorded);\n }\n\n setText(mTemperatureView, patientVitalSignsLabels[0], temperature);\n setText(mBloodPressureView, patientVitalSignsLabels[1], bloodPressure);\n setText(mHeartRateView, patientVitalSignsLabels[2], heartRate);\n\n // Populate the Info section with the patient's name, birth date, health card number, arrival time and symptoms.\n String[] patientInfoLabels = getResources().getStringArray(R.array.patient_info_labels);\n\n String formattedBirthDate = dateFormat.format(mPatient.getBirthDate().getTime());\n String formattedArrivalTime = dateTimeFormat.format(mPatient.getArrivalTime().getTime());\n\n setText(mNameView, patientInfoLabels[0], mPatient.getName());\n setText(mBirthDateView, patientInfoLabels[1], formattedBirthDate);\n setText(mHealthCardNumberView, patientInfoLabels[2], mPatient.getHealthCardNumber());\n setText(mArrivalTimeView, patientInfoLabels[3], formattedArrivalTime);\n\n // Populate the Symptoms section\n String symptoms = mPatient.getLatestSymptoms();\n TextView symptomsTextView = (TextView) mSymptomsView.findViewById(android.R.id.text1);\n if (symptoms != null)\n symptomsTextView.setText(symptoms);\n else\n symptomsTextView.setText(getString(R.string.none_recorded));\n\n // Populate the prescriptions section\n List<String> prescription = mPatient.getLatestPrescription();\n if (prescription != null)\n setText(mPrescriptionsView, prescription.get(0), prescription.get(1));\n else {\n String placeholder = getString(R.string.none_recorded);\n setText(mPrescriptionsView, placeholder, placeholder);\n }\n\n SimpleDateFormat timeDateFormat = new SimpleDateFormat(\"h:mma, EEE, MMM d, yyyy\");\n String fLastSeenByDoctor;\n if (mPatient.hasBeenSeenByDoctor()) {\n Calendar lastSeenByDoctor = mPatient.getLastSeenByDoctor();\n fLastSeenByDoctor = timeDateFormat.format(lastSeenByDoctor.getTime());\n } else\n fLastSeenByDoctor = getString(R.string.none_recorded);\n TextView doctorTextView = (TextView) mDoctorView.findViewById(android.R.id.text1);\n doctorTextView.setText(fLastSeenByDoctor);\n }",
"@GET(PATIENT_BY_ID_PATH)\n\tPatient getPatient(\n\t\t\t@Path(PATIENT_ID_PARAM) long patientId);",
"public Patient(String id, String givenName, String familyName){\n this.id = id;\n this.givenName = givenName;\n this.familyName = familyName;\n }",
"public List<Patient> listAllPatient() {\n\t\treturn null;\n\t}",
"public Patient(String iD, String givenName, String surName)\n {\n super(iD, givenName, surName); \n }",
"public void cleanPatient(Patient patient);",
"@GET\n @Path(\"patients/{ipp}\")\n @Produces(\"application/json\")\n public Patient getPatient(@PathParam(\"ipp\") int IPP) {\n return serv.getPatientByIPP(IPP);\n }",
"public Patient(String firstName, String lastName, String birthdate, String gender,\n\t\t\tString address1, String address2, String city, String state, String zipcode, String country,\n\t\t\tString insuranceProvider, String insuranceNumber) {\n this.patientID = -1;\n this.firstName = firstName;\n this.lastName = lastName;\n this.birthdate = birthdate;\n this.gender = gender;\n this.address1 = address1;\n this.address2 = address2;\n this.city = city;\n this.state = state;\n this.zipcode = zipcode;\n this.country = country;\n this.insuranceProvider = insuranceProvider;\n this.insuranceNumber = insuranceNumber;\n }",
"private void getPatient (String id) throws MqttException {\n MqttMessage message = new MqttMessage(new Gson().toJson(dao.getPatient(id)).getBytes());\n message.setQos(0);\n publishThread(\"patient\", message, UniMed.mqttClient);\n }",
"public ArrayList<Patient> getPatients() {\n return this.patients;\n }",
"@Override\n public Patient findByPatientName(String patient) {\n return null;\n }",
"@POST\n @Path(\"patients\")\n @Consumes(MediaType.APPLICATION_JSON)\n @Produces(\"application/json\")\n public Patient newPatient(Patient pat){\n serv.editPatient(pat);\n return pat;\n }",
"public java.lang.String getPatientName() {\r\n return localPatientName;\r\n }",
"public static Patient makePatient(String[] pt) {\n\n\t\tPatient output = new Patient(pt[1], pt[2], pt[0], 0);\n\t\tString[] staff = pt[4].split(\",\");\n\t\tfor (String member : staff)\n\t\t\toutput.addMedicalStaff(new MedicalStaff(member));\n\n\t\t@SuppressWarnings(\"unused\") // Medication currently disabled\n\t\tString[] meds = pt[5].split(\",\");\n\t\t// for (String med : meds)\n\t\t// output.addMedication(new Medication(med));\n\n\t\tString address = pt[6];\n\t\toutput.getContactInfo().addAddress(address);\n\t\tString[] phoneNumbers = pt[7].split(\",\");\n\t\tfor (String number : phoneNumbers)\n\t\t\toutput.getContactInfo().addPhone(number);\n\t\tString email = pt[8];\n\t\toutput.getContactInfo().addEmail(email);\n\t\tString[] pets = pt[9].split(\",\");\n\t\tfor (String pet : pets)\n\t\t\toutput.getPreferences().addPet(new Pet(pet, null, false));\n\t\tString[] allergies = pt[10].split(\",\");\n\t\tfor (String allergy : allergies)\n\t\t\toutput.getPreferences().addAllergy(allergy);\n\t\tString[] dietaryNeeds = pt[11].split(\",\");\n\t\tfor (String diet : dietaryNeeds)\n\t\t\toutput.getPreferences().addDietaryRestrictions(diet);\n\t\treturn output;\n\t}",
"Patient save(Patient patient);",
"public void requirePatientId() {\n hasPatientIdParam = true;\n }",
"public Long addPatient(long pid, String name, Date dob, int age) throws PatientExn;",
"List<Patient> findAllPatients();",
"public void insertPatient(Patient p) {\n String query = \"INSERT INTO PATIENTS(patient_id, name, gender, birth, dpi, phone, weight, blood, email, password) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)\";\n try (PreparedStatement pst = this.transaction.prepareStatement(query)) {\n pst.setInt(1, p.getPatientId());\n pst.setString(2, p.getName());\n pst.setBoolean(3, p.isGender());\n pst.setDate(4, p.getBirth());\n pst.setString(5, p.getDpi());\n pst.setString(6, p.getPhone());\n pst.setDouble(7, p.getWeight());\n pst.setString(8, p.getBlood());\n pst.setString(9, p.getEmail());\n pst.setString(10, p.getPass());\n pst.executeUpdate();\n } catch (SQLException ex) {\n ex.printStackTrace(System.out);\n }\n }",
"public MedicalRecord getMedicalRecord(String patient, String index){\n int i = Integer.parseInt(index);\n if(database.containsKey(patient)){\n if(database.get(patient).size() > i){\n return database.get(patient).get(i);\n } else{\n System.out.println(\"No such Medical Records found for \" + patient);\n }\n } else {\n System.out.println(patient + \" Not found in database\");\n }\n return null;\n }",
"List<Patient> findPatients(Employee nurse_id);",
"private void getPatientInfo(String patientId){\n mFirestore.collection(\"users\")\n .document(patientId)\n .addSnapshotListener(new EventListener<DocumentSnapshot>() {\n @Override\n public void onEvent(@Nullable DocumentSnapshot snapshot,\n @Nullable FirebaseFirestoreException e) {\n if (e != null) {\n Log.w(TAG, \"Listen failed.\", e);\n return;\n }\n\n String source = snapshot != null && snapshot.getMetadata().hasPendingWrites()\n ? \"Local\" : \"Server\";\n\n if (snapshot != null && snapshot.exists()) {\n Log.d(TAG, source + \" data: \" + snapshot.getData());\n\n User existingPatient = localUser.getPatientById(snapshot.getId());\n if(existingPatient!=null){\n localUser.changeExistingPatient(existingPatient, setPatientData(snapshot));\n } else {\n localUser.addPatient(setPatientData(snapshot));\n }\n\n // TODO add PatientChangeListener\n //localUser.getIUserDataChangeListener().onUserDataChanged(null);\n\n } else {\n Log.d(TAG, source + \" data: null\");\n }\n }\n });\n }",
"private void savePatientToDatabase(Patient patient){\n DatabaseAdapter cateDB = new DatabaseAdapter(AddPatientActivity.this);\n try {\n cateDB.openDatabaseForRead();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n patient.printPatient();\n cateDB.insertPatient(patient);\n\n cateDB.closeDatabase();\n }",
"List<MedicalRecord> getAllPatientMedicalRecords(HttpSession session, int patientId);",
"@Override\n public Patient editPatient(Patient patient) {\n return patientRepository.save(patient);\n }",
"public ArrayList<MedicalRecord> getPatientRecords(String patient) {\n if (database.containsKey(patient)) {\n return database.get(patient);\n } else {\n System.out.println(\"No such patient found\");\n return null;\n }\n }",
"public Patient getPatientByID(int pid) {\r\n\t\tPatient patient=null;\r\n\t\ttry {\r\n\t\t\tString query= \"SELECT * FROM patients WHERE id = ? \";\r\n\t\t\tPreparedStatement pStatement= super.getConnection().prepareStatement(query);\r\n\t\t\tpStatement.setInt(1, pid);\r\n\t\t\tResultSet results= pStatement.executeQuery();\r\n\t\t\twhile(results.next()) {\r\n\t\t\t\t//Patient table\r\n\t\t\t\tint idPatient= results.getInt(1);\r\n\t\t\t\tString fname= results.getString(2);\r\n\t\t\t\tString lname= results.getString(3);\r\n\t\t\t\tString gender= results.getString(4);\r\n\t\t\t\tint age= results.getInt(5);\r\n\t\t\t\tString phone= results.getString(6);\r\n\t\t\t\tString villege= results.getString(7);\r\n\t\t\t\tString commune= results.getString(8);\r\n\t\t\t\tString city= results.getString(9);\r\n\t\t\t\tString province= results.getString(10);\r\n\t\t\t\tString country= results.getString(11);\r\n\t\t\t\tAddress address= new Address(villege, commune, city, province, country);\r\n\t\t\t\tString type= results.getString(12);\r\n\t\t\t\t\r\n\t\t\t\tpatient= new Patient(idPatient, fname, lname, gender, age, phone, address, type);\r\n\t\t\t\tSystem.out.println(\"Get Patients succeed From DatabasePatient\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\t\r\n\t\treturn patient;\r\n\t}",
"void dischargePatient(int id);",
"private void storePatient(final Patient patient) {\n\n\t\ttry {\n\t\t\tpatients.put(patient.getIdentifierFirstRep().getValue(), patient);\n\t\t\t// if storing is successful the notify the listeners that listens on\n\t\t\t// any patient => patient/*\n\n\t\t\tfinal String bundleToString = currentPatientsAsJsonString();\n\n\t\t\tbroadcaster\n\t\t\t\t\t.broadcast(new OutboundEvent.Builder().name(\"patients\").data(String.class, bundleToString).build());\n\n\t\t} catch (final Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"Patient update(Patient patient);",
"void updatePatientInfo(PatientInfo patientInfo);",
"public PatientExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public Patient(int patientID, String firstName, String lastName, String birthdate,\n\t\t\tString gender, String address1, String address2, String city, String state, String zipcode,\n\t\t\tString country, String insuranceProvider, String insuranceNumber) {\n\t\tthis.patientID = patientID;\n\t\tthis.firstName = firstName;\n\t\tthis.lastName = lastName;\n\t\tthis.birthdate = birthdate;\n\t\tthis.gender = gender;\n\t\tthis.address1 = address1;\n\t\tthis.address2 = address2;\n\t\tthis.city = city;\n\t\tthis.state = state;\n\t\tthis.zipcode = zipcode;\n\t\tthis.country = country;\n\t\tthis.insuranceProvider = insuranceProvider;\n\t\tthis.insuranceNumber = insuranceNumber;\n\t}",
"public int getNumberOfPatients() {\n return numberOfPatients;\n }",
"public Patient(String iD, String addLine1, String city, String postcode, String givenName, String surName, String sex, int age, String password) {\n super(iD, givenName, surName, sex, age, password);\n this.addLine1 = addLine1;\n this.city = city;\n this.postcode = postcode;\n }",
"public List<Patient> getPatients() {\n List<Patient> patients = new ArrayList<>();\n String query = \"SELECT * FROM PATIENTS\";\n try (PreparedStatement ps = this.transaction.prepareStatement(query); ResultSet rs = ps.executeQuery()) {\n while (rs.next()) {\n patients.add(new Patient(rs));\n }\n } catch (SQLException ex) {\n ex.printStackTrace(System.out);\n }\n\n return patients;\n }",
"private void getAllPatients () throws MqttException {\n MqttMessage message = new MqttMessage(new Gson().toJson(dao.getAllPatients()).getBytes());\n message.setQos(0);\n publishThread(\"patient\", message, UniMed.mqttClient);\n }",
"public String getPatientResponses(){\n \treturn patientResponses;\n }",
"public Patient getName(Patient patient){\n\t\tSet<PersonName> s=patient.getNames();\n\t\tPersonName p = PersonName.newInstance(patient.getPersonName());\n\t\tp.setGivenName(generatePatientName());\n\t\tp.setMiddleName(generatePatientName());\n\t\tp.setFamilyName(generatePatientName());\n\t\tObject ob[]=s.toArray();\n\t\tfor (int i = 0; i < ob.length; i++) {\n\t\t\tPersonName p1=(PersonName)ob[i];\n\t\t\tpatient.removeName(p1);\n\t\t}\n\t\ts.clear();\n\t\ts.add(p);\n\t\tpatient.setNames(s);\n\t\treturn patient;\n\n\t}",
"private void loadPatient() {\n patient = PatientsDatabaseAccessObject.getInstance().getPatients();\n table.getItems().clear();\n for (int i = 0; i < patient.size(); ++i) {\n table.getItems().add(patient.get(i));\n }\n table.refresh();\n }",
"public PatientList()\r\n\t{\r\n\t\treadPatientListFromFile();\r\n\t\t//showPatientList();\r\n\t}",
"public boolean createPatient(Patient patient,PatientRecord patientRecord) {\r\n\t\tboolean isCreated= false;\r\n\t\tString[] row= new String[9];\r\n\t\ttry {\r\n\t\t\tString query = \"INSERT INTO patients VALUES (?,?,?,?,?,?,?,?,?,?,?,?)\";\r\n\t\t\tPreparedStatement pStatement= super.getConnection().prepareStatement(query);\r\n\t\t\tpStatement.setInt(1, patient.getId());\r\n\t\t\tpStatement.setString(2, patient.getFirstName());\r\n\t\t\tpStatement.setString(3, patient.getLastName());\r\n\t\t\tpStatement.setString(4, patient.getGender());\r\n\t\t\tpStatement.setInt(5, patient.getAge());\r\n\t\t\tpStatement.setString(6, patient.getPhone());\r\n\t\t\tpStatement.setString(7, patient.getAddress().getVillege());\r\n\t\t\tpStatement.setString(8, patient.getAddress().getCommune());\r\n\t\t\tpStatement.setString(9, patient.getAddress().getCity());\r\n\t\t\tpStatement.setString(10, patient.getAddress().getProvince());\r\n\t\t\tpStatement.setString(11, patient.getAddress().getCountry());\r\n\t\t\tpStatement.setString(12, patient.getType());\r\n\t\t\t\r\n\t\t\tif(pStatement.executeUpdate() > 0) {\r\n\t\t\t\tpatientID.add(patient.getId());\r\n\t\t\t\trow[0]= patient.getId()+\"\";\r\n\t\t\t\trow[1]= patient.getFirstName();\r\n\t\t\t\trow[2]= patient.getLastName();\r\n\t\t\t\trow[3]= patient.getGender();\r\n\t\t\t\trow[4]= patient.getAge()+\"\";\r\n\t\t\t\trow[5]= patientRecord.getDate()+\"\";\r\n\t\t\t\trow[6]= patient.getPhone();\r\n\t\t\t\tmodelPatient.addRow(row);\r\n\t\t\t\tisCreated= true;\r\n\t\t\t\tSystem.out.println(\"You have insert a patient record\");\r\n\t\t\t\t\r\n\t\t\t};\r\n\t\t}catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\treturn isCreated;\r\n\t}",
"public Patient(String iD, String password) {\n super(iD, password);\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 }",
"public Patient(String id, String givenName, String familyName, LocalDate birthDate, Gender gender, Address address)\n {\n this.id = id;\n this.givenName = givenName;\n this.familyName = familyName;\n this.birthDate = birthDate;\n this.gender = gender;\n this.address = address;\n }",
"@Override\n public PatientCaseDto getByPatient(Long patientId) {\n return null;\n }",
"protected void contructPatientInstance() {\r\n\t\tResources resources = getApplicationContext().getResources();\r\n\t\r\n \t// constuct the patient instance\r\n try {\r\n \tsetPatientAssessment((new PatientHandlerUtils()).populateCcmPatientDetails(resources, getReviewItems()));\t\r\n\t\t} catch (ParseException e) {\r\n\t\t\tLoggerUtils.i(LOG_TAG, \"Parse Exception thrown whilst constructing patient instance\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private Patient setRandomPatientNames(Patient patient){\n\t\tpatient = getName(patient);\n\t\treturn patient;\n\t}",
"@Override\n\tpublic List<Patient> listOfPatients() {\n\t\treturn null;\n\t}"
] | [
"0.7341118",
"0.7321984",
"0.72638464",
"0.7157185",
"0.7143585",
"0.71035165",
"0.7080928",
"0.707499",
"0.7065065",
"0.7039853",
"0.70183563",
"0.6965732",
"0.69533664",
"0.6907993",
"0.6900269",
"0.6898404",
"0.68904364",
"0.6854546",
"0.6844634",
"0.6836077",
"0.6836077",
"0.68070745",
"0.6801675",
"0.67889434",
"0.6760502",
"0.6714268",
"0.67017114",
"0.66857284",
"0.6670396",
"0.66681796",
"0.6651706",
"0.6611738",
"0.66028833",
"0.6602128",
"0.65990746",
"0.6569304",
"0.65648025",
"0.6532389",
"0.64995235",
"0.6485338",
"0.64812154",
"0.6470847",
"0.6454102",
"0.6438296",
"0.6422489",
"0.6403338",
"0.63880527",
"0.63737696",
"0.63737696",
"0.63716775",
"0.6365814",
"0.6361325",
"0.6346347",
"0.6335567",
"0.6321009",
"0.63042474",
"0.6302607",
"0.6299624",
"0.6289351",
"0.628222",
"0.62704366",
"0.6263829",
"0.62607694",
"0.6241648",
"0.62302977",
"0.6202983",
"0.6190885",
"0.61907905",
"0.61898905",
"0.61861295",
"0.61854225",
"0.6183763",
"0.6179096",
"0.6178191",
"0.6167794",
"0.615573",
"0.6151898",
"0.61509717",
"0.61453205",
"0.61425996",
"0.6139645",
"0.61216927",
"0.6108955",
"0.6108779",
"0.61022717",
"0.60982263",
"0.6097743",
"0.60915613",
"0.60853034",
"0.60819024",
"0.6081228",
"0.60809827",
"0.6079388",
"0.60793555",
"0.6074007",
"0.6072152",
"0.60690784",
"0.60675615",
"0.60666317",
"0.60665387",
"0.6057351"
] | 0.0 | -1 |
get List of overlapping Appointment objects with startTime and endTime | public abstract List getAllOverlapAppt(String provider, Date startTime,
Date endTime); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isOverlapping(int appointmentId, String start, String end) throws Exception {\n\n //A Fetcher object for getting the appointments from the database. I discovered an error where the Fetcher and\n //DateAndTime class call each other back and forth in a never-ending loop if I declare them outside the methods\n //ie as global variables.\n Fetcher fetcher = new Fetcher();\n //A list of appointments that have been fetched from the database. Used for extracting start/end times\n ObservableList<Appointment> appointments = FXCollections.observableArrayList();\n fetcher.fetchAppointments(appointments);\n\n //Convert the provided start/end strings to LocalDateTime variables\n LocalDateTime startTime = LocalDateTime.parse(start, dateTimeFormatter);\n LocalDateTime endTime = LocalDateTime.parse(end, dateTimeFormatter);\n\n //Loop through the entire appointments list and set each start/end time to a LocalDateTime variable to be\n //compared.\n for(int i = 0; i < appointments.size(); i++){\n\n //If the appointment ID matches an existing ID in the database, continue to the next iteration.\n if(appointments.get(i).getAppointmentId() == appointmentId){\n continue;\n }\n\n //Create LocalDateTimes from start/end strings from the current appointment.\n LocalDateTime appointmentStart = LocalDateTime.parse(appointments.get(i).getStart(), dateTimeFormatter);\n LocalDateTime appointmentEnd = LocalDateTime.parse(appointments.get(i).getEnd(), dateTimeFormatter);\n\n //If the start time is greater than or equal to an existing appointment start time AND the end time is less\n //than that appointment's end time, the appointments overlap and return true.\n if(startTime.equals(appointmentStart) || (startTime.isAfter(appointmentStart) && startTime.isBefore(appointmentEnd)) ) {\n return true;\n }\n\n //If the end time is equal to an existing appointment end OR the end time is after an existing appointment\n //start time AND before the existing appointment end time, they overlap and return true.\n if(endTime.equals(appointmentEnd) || (endTime.isAfter(appointmentStart) && endTime.isBefore(appointmentEnd))){\n return true;\n }\n }\n\n //If none of the conditions apply, the appointments do not overlap and return false.\n return false;\n\n\n }",
"public static boolean CheckOverlap(int Customer_ID, LocalDate date, LocalTime start, LocalTime end, int Appointment_ID) {\n\n ObservableList<Appointment> AList = DBAppointments.GetAllAppointment();\n ObservableList<Appointment> FList = AList.filtered(A -> {\n if (A.getAppointment_ID() != Appointment_ID /*&& A.getCustomerid() == Customer_ID*/) {\n return true;\n\n }\n return false;\n });\n\n LocalDateTime ps = LocalDateTime.of(date, start);\n LocalDateTime pe = LocalDateTime.of(date, end);\n for (Appointment a : FList) {\n LocalDateTime as = LocalDateTime.of(a.getDate(), a.getStartTime());\n LocalDateTime ae = LocalDateTime.of(a.getDate(), a.getEndTime());\n\n if ((as.isAfter(ps) || as.isEqual(ps)) && as.isBefore(pe)) {\n return true;\n }\n if (ae.isAfter(ps) && (ae.isBefore(pe) || ae.isEqual(pe))) {\n return true;\n }\n if ((as.isBefore(ps) || as.isEqual(ps)) && (ae.isAfter(pe) || ae.isEqual(pe))) {\n return true;\n }\n }\n\n return false;\n }",
"public static boolean appointmentOverlap(Timestamp startTimestamp, Timestamp endTimestamp) {\n updateAppointmentList();\n ObservableList<Appointment> appointmentList = AppointmentList.getAppointmentList();\n for (Appointment appointment: appointmentList) {\n Timestamp existingStartTimestamp = appointment.getStartTimestamp();\n Timestamp existingEndTimestamp = appointment.getEndTimestamp();\n // Check various scenarios for where overlap would occur and return true if any occur\n if (startTimestamp.after(existingStartTimestamp) && startTimestamp.before(existingEndTimestamp)) {\n return true;\n }\n if (endTimestamp.after(existingStartTimestamp) && endTimestamp.before(existingEndTimestamp)) {\n return true;\n }\n if (startTimestamp.after(existingStartTimestamp) && endTimestamp.before(existingEndTimestamp)) {\n return true;\n }\n if (startTimestamp.before(existingStartTimestamp) && endTimestamp.after(existingEndTimestamp)) {\n return true;\n }\n if (startTimestamp.equals(existingStartTimestamp)) {\n return true;\n }\n if (endTimestamp.equals(existingEndTimestamp)) {\n return true;\n }\n }\n // If none of the above scenarios occur, return false\n return false;\n }",
"public List<ScheduledInterview> getInRange(Instant minTime, Instant maxTime) {\n TimeRange range = new TimeRange(minTime, maxTime);\n List<ScheduledInterview> scheduledInterviewsInRange = new ArrayList<>();\n List<ScheduledInterview> scheduledInterviews = new ArrayList<ScheduledInterview>(data.values());\n for (ScheduledInterview scheduledInterview : scheduledInterviews) {\n if (range.contains(scheduledInterview.when())) {\n scheduledInterviewsInRange.add(scheduledInterview);\n }\n }\n scheduledInterviewsInRange.sort(\n (ScheduledInterview s1, ScheduledInterview s2) -> {\n if (s1.when().start().equals(s2.when().start())) {\n return 0;\n }\n if (s1.when().start().isBefore(s2.when().start())) {\n return -1;\n }\n return 1;\n });\n return scheduledInterviewsInRange;\n }",
"public final List<Appointment> getAppointmentsBetween(Interval interval) {\n List<Appointment> appts = new ArrayList<>();\n\n this.appointments.stream().filter(a -> {\n return interval.intersects(a.getInterval());\n }).forEachOrdered(a -> {\n appts.add(a);\n });\n\n return appts;\n }",
"private boolean isAppointmentExist(String day, String startTime, String endTime){\n String[] start = startTime.split(\":\");\n String[] end = endTime.split(\":\");\n\n //Set the 2 hours\n int hourStart = Integer.parseInt(start[0]);\n int hourEnd = Integer.parseInt(end[0]);\n\n //Set the minutes\n int minuteStart = Integer.parseInt(start[1]);\n int minuteEnd = Integer.parseInt(end[1]);\n\n int dayID = getDay(day).getDayID();\n\n for(Appointment Appointment: appointments){\n\n int dayIDApp = Appointment.getDay_id();\n\n Log.d(\"BUGDATABASEHANDLER\",\"Day:\" + dayID + \" day 2 : \" + dayIDApp);\n\n //If the same day, make sure it doesnt overlap\n if(dayID == dayIDApp){\n int hourStartApp = Appointment.getStartHour();\n int hourEndApp = Appointment.getEndHour();\n\n int minuteStartApp = Appointment.getStartMinute();\n int minuteEndApp = Appointment.getEndTimeMinute();\n\n if(hourStart == hourStartApp && minuteStart >= minuteStartApp)\n return(false);\n if(hourEnd == hourEndApp && minuteEnd <= minuteEndApp){\n return(false);\n }\n //If the new hour is between the hourStart and hourEnd of existing availability\n if(hourStart < hourEndApp && hourStart > hourStartApp)\n return(false);\n //If the new hour is between the hourStart and hourEnd of existing availability\n if(hourEnd > hourStartApp && hourEnd < hourEndApp)\n return(false);\n //If the new end is the same as the start but the minute overlap\n if(hourEnd == hourStartApp && minuteStartApp <= minuteEnd)\n return(false);\n\n if(hourStart == hourEndApp && minuteEndApp >= minuteStart)\n return(false);\n\n }\n }\n\n return(true);\n }",
"public boolean validateOverlap(ObservableList<Appointment> test){\n LocalDateTime A = startLDT;\n LocalDateTime Z = endLDT;\n\n for(Appointment appt : test){\n if(appt.getId() == selectedRow.getId()){\n continue;\n }\n LocalDateTime S = LocalDateTime.parse(appt.getStart(), formatter);\n LocalDateTime E = LocalDateTime.parse(appt.getEnd(), formatter);\n //case 1 - when the start is in the window\n if((A.isAfter(S) || A.isEqual(S)) && A.isBefore(E)){\n return false;\n }\n //case 2 - when the end is in the window\n if(Z.isAfter(S) && (Z.isBefore(E) || Z.isEqual(E))){\n return false;\n }\n //case 3 - when the start and end are outside of the window\n if(((A.isBefore(S) || A.isEqual(S)) && (Z.isAfter(E) || Z.isEqual(E)))){\n return false;\n }\n }\n return true;\n }",
"public boolean isOverlapped(ArrayList<Schedule> schedules,\n DateTime startTime, DateTime endTime){\n for (int i = 0; i < schedules.size(); i++) {\n Schedule curSchedule = schedules.get(i);\n if (curSchedule == null)\n continue;\n if (!(startTime.isAfter(curSchedule.getEndTime().minusMinutes(1)) ||\n endTime.isBefore(curSchedule.getStartTime().plusMinutes(1))))\n return true;\n }\n return false;\n }",
"public final List<Appointment> getAppointmentsFor(LocalDate date) {\n List<Appointment> appts = new ArrayList<>();\n\n this.appointments.stream().filter(a -> {\n LocalDate startDate = a.getInterval().getStartDate();\n LocalDate endDate = a.getInterval().getEndDate();\n return startDate.equals(date) || endDate.equals(date);\n }).forEachOrdered(a -> {\n appts.add(a);\n });\n\n return appts;\n }",
"@Override\n public List<Revenue> revenuesForTime(long startTime, long endTime) {\n List<Revenue> revenues = revenueRepository.findAll();\n List<Revenue> foundRevenues = new ArrayList<>();\n for(Revenue revenue : revenues){\n if(revenue.getTimestamp() == startTime || revenue.getTimestamp() == endTime){\n foundRevenues.add(revenue);\n continue;\n }\n if(revenue.getTimestamp() > startTime && revenue.getTimestamp() < endTime ){\n foundRevenues.add(revenue);\n }\n }\n return foundRevenues;\n }",
"private ArrayList<int[]> getOverlapping(ArrayList<int[]> list, int start, int end) {\n ArrayList<int[]> result=new ArrayList<int[]>();\n for (int[] seg:list) {\n if (!(start>seg[1] || end<seg[0])) result.add(seg);\n }\n return result;\n }",
"public List<ScheduledInterview> getForPositionWithoutShadowInRange(\n Job position, Instant minTime, Instant maxTime) {\n List<ScheduledInterview> interviewsInRange = getInRange(minTime, maxTime);\n Set<ScheduledInterview> notValidInterviews = new HashSet<ScheduledInterview>();\n for (ScheduledInterview interview : interviewsInRange) {\n if (!interview.position().equals(position) || !interview.shadowId().equals(\"\")) {\n notValidInterviews.add(interview);\n }\n }\n interviewsInRange.removeAll(notValidInterviews);\n return interviewsInRange;\n }",
"ObservableList<Appointment> getFilteredAppointmentList();",
"private List<WavefrontEvent> filterEvents(List<WavefrontEvent> wavefrontEvents, Long startTime, Long endTime) {\n List<WavefrontEvent> filterEvents = wavefrontEvents.stream()\n .filter(event -> event.getEnd() >= startTime && event.getEnd() <= endTime).collect(Collectors.toList());\n log.debug(\"{} events were found out of time bound, startTime: {} and endTime: {}\",\n wavefrontEvents.size() - filterEvents.size(), startTime, endTime);\n return filterEvents;\n }",
"@Override\n public List<ScheduledInterview> getScheduledInterviewsInRangeForUser(\n String userId, Instant minTime, Instant maxTime) {\n TimeRange range = new TimeRange(minTime, maxTime);\n List<ScheduledInterview> scheduledInterviews = getForPerson(userId);\n List<ScheduledInterview> scheduledInterviewsInRange = new ArrayList<ScheduledInterview>();\n for (ScheduledInterview scheduledInterview : scheduledInterviews) {\n if (range.contains(scheduledInterview.when())) {\n scheduledInterviewsInRange.add(scheduledInterview);\n }\n }\n return scheduledInterviewsInRange;\n }",
"@Test\r\n public void testReflexivityOverlappingTimePeriods(){\n DateTime startAvailability1 = new DateTime(2021, 7, 9, 10, 30);\r\n DateTime endAvailability1 = new DateTime(2021, 7, 9, 11, 30);\r\n DateTime startAvailability2 = new DateTime(2021, 7, 9, 11, 0);\r\n DateTime endAvailability2 = new DateTime(2021, 7, 9, 12, 0);\r\n Availability availability1 = new Availability(new HashSet<>(Arrays.asList(\"online\", \"in-person\")), startAvailability1, endAvailability1);\r\n Availability availability2 = new Availability(new HashSet<>(Arrays.asList(\"online\", \"in-person\")), startAvailability2, endAvailability2);\r\n assertTrue(availability1.overlapsWithTimePeriod(availability2));\r\n assertTrue(availability2.overlapsWithTimePeriod(availability1));\r\n }",
"List<Appointment> getCurrentlyAppointment();",
"boolean overlap(Reservation other);",
"public Iterator<Appointment> appointments()\n {\n return this.agenda.iterator();\n }",
"public boolean checkOverlappingTimes(LocalDateTime startA, LocalDateTime endA,\n LocalDateTime startB, LocalDateTime endB){\n return (endB == null || startA == null || !startA.isAfter(endB))\n && (endA == null || startB == null || !endA.isBefore(startB));\n }",
"private boolean overlaps(ThingTimeTriple a, ThingTimeTriple b)\r\n/* 227: */ {\r\n/* 228:189 */ return (a.from < b.to) && (a.to > b.from);\r\n/* 229: */ }",
"List<BookingSlot> getSlotsByDateTime(LocalDateTime dateTime);",
"public Iterator<Appointment> appointments() {\n return appointments.iterator();\n }",
"public TaskList incoming(Date from, Date to) {\n ArrayTaskList incomingTasks = new ArrayTaskList();\n for (int i = 0; i < size(); i++) {\n if (getTask(i).nextTimeAfter(from) != null && getTask(i).nextTimeAfter(from).compareTo(to) <= 0) {\n incomingTasks.add(getTask(i));\n }\n }\n return incomingTasks;\n }",
"public List<Appointment> getAppointmentByStatus(AppointmentStatus a){\n List<Appointment> appList = new ArrayList();\n try{\n appointments.stream().filter((app) -> (app.getStatus()==a)).forEachOrdered((app) -> {\n appList.add(app);\n });\n return appList;\n }\n catch(Exception e){\n return appList;\n }\n }",
"public List<Appointment> getAppointments(){\n return appointments;\n }",
"public Collection<TimeRange> query(Collection<Event> events, MeetingRequest request) {\n if(request.getAttendees().isEmpty()){\n return Arrays.asList(TimeRange.WHOLE_DAY);\n }\n // nobody has time to meet for more than a day\n if(request.getDuration() > TimeRange.WHOLE_DAY.duration()){\n return Arrays.asList();\n }\n // if there're no already existing events, whole day is available, \n if(events.isEmpty()){\n return Arrays.asList(TimeRange.WHOLE_DAY);\n }\n\n Collection<String> listOfAttendees = request.getAttendees();\n List<TimeRange> unavailableTimes = getUnavailableTimesForAttendees(events, listOfAttendees);\n\n return getAvailableTimes(unavailableTimes, request.getDuration());\n }",
"private boolean isTimeOverlap(Item t) {\n\t\treturn t.getEndDate().equals(event.getEndDate());\n\t}",
"@Query(\"select a from Appointment a where a.patient.id = ?1 and a.endMoment <= CURRENT_TIMESTAMP order by a.startMoment desc\")\n\tCollection<Appointment> findAllNotActiveByPatient(int patientId);",
"public ArrayList<Event> getCalendarEventsBetween(Calendar startingDate, Calendar endingDate)\n {\n ArrayList<Event> list = new ArrayList<>();\n\n for(int i = 0; i < events.size(); i++)\n {\n Calendar eventCalendar = events.get(i).getCalendar();\n\n if(isSame(startingDate, eventCalendar) || isSame(endingDate, eventCalendar) ||\n (eventCalendar.before(endingDate) && eventCalendar.after(startingDate)))\n {\n list.add(events.get(i));\n }\n }\n return list;\n }",
"public static List<StringMeeting> calendarMatching(\n List<StringMeeting> calendar1,\n StringMeeting dailyBounds1,\n List<StringMeeting> calendar2,\n StringMeeting dailyBounds2,\n int meetingDuration) {\n\n\n List<Meeting> updatedCaleandr1 = updateCalendar(calendar1, dailyBounds1);\n System.out.println(updatedCaleandr1);\n List<Meeting> updatedCaleandr2 = updateCalendar(calendar2, dailyBounds2);\n\n\n\n List<Meeting> mergedCalendar = mergeCalendars(updatedCaleandr1, updatedCaleandr2);\n mergedCalendar.forEach(k-> System.out.println(k.toString()));\n List<Meeting> flattencalendr = flattenCalenedars(mergedCalendar);\n// flattencalendr.forEach(k-> System.out.println(k.toString()));\n System.out.println();\n\n return getMatchingAvailabilities(flattencalendr, meetingDuration);\n }",
"@Override\n\tpublic List<Appointment> getAllAppointments() {\n\t\t\t\tList<Appointment> appointmentsList = new ArrayList<Appointment>();\n\t\t\t\ttry {\n\t\t\t\t\tappointmentsList = ar.findAll();\n\t\t\t\t}catch(Exception e) {\n\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\tappointmentsList = null;\n\t\t\t\t}\n\t\t\t\treturn appointmentsList ;\n\t}",
"public ArrayList<notOverlapping> getNotOverlappingSessionList(){\n \n ArrayList<notOverlapping> sessionList= new ArrayList<notOverlapping>(); \n Connection connection=getConnection();\n \n String query= \"SELECT `NotOverlappingSessionId`, `SessionId`, `Subject` FROM `notoverlappingsessions`\";\n Statement st;\n ResultSet rs;\n\n try{\n st = connection.createStatement();\n rs= st.executeQuery(query);\n notOverlapping session;\n while(rs.next()){\n session = new notOverlapping(rs.getInt(\"NotOverlappingSessionId\"),rs.getInt(\"SessionId\"),rs.getString(\"Subject\"));\n sessionList.add(session);\n \n }\n }catch(Exception e){\n e.printStackTrace();\n }\n return sessionList; \n }",
"public Collection<TimeRange> getAvailableTimes(List<TimeRange> unavailableTimes, long requestDuration) {\n int startTime = TimeRange.START_OF_DAY;\n Collections.sort(unavailableTimes, TimeRange.ORDER_BY_START);\n Collection<TimeRange> availableTimes = new ArrayList<>();\n \n for(TimeRange unavailableTime : unavailableTimes) {\n if(startTime < unavailableTime.start()) {\n TimeRange availableTime = TimeRange.fromStartEnd(startTime, unavailableTime.start(), false);\n if(availableTime.duration() >= requestDuration){\n availableTimes.add(availableTime);\n }\n }\n if(unavailableTime.end() > startTime){\n startTime = unavailableTime.end();\n }\n }\n\n if(startTime != TimeRange.END_OF_DAY+1){\n availableTimes.add(TimeRange.fromStartEnd(startTime, TimeRange.END_OF_DAY, true));\n }\n \n return availableTimes;\n }",
"public ObservableList<Appointment> getAppointmentList() {\n ObservableList<Appointment> appointmentList = FXCollections.observableArrayList();\n Iterator it = followup.entrySet().iterator();\n while (it.hasNext()) {\n HashMap.Entry pair = (HashMap.Entry) it.next();\n appointmentList.add(new Appointment(\"[F] \" + pair.getKey(), (int) pair.getValue()));\n }\n it = reminders.entrySet().iterator();\n while (it.hasNext()) {\n HashMap.Entry pair = (HashMap.Entry) it.next();\n appointmentList.add(new Appointment(\"[R] \" + pair.getKey(), (int) pair.getValue()));\n }\n\n return appointmentList;\n }",
"@Query(\"select a from Appointment a where a.schedule.doctor.id = ?1 and a.endMoment <= CURRENT_TIMESTAMP order by a.startMoment desc\")\n\tCollection<Appointment> findAllNotActiveByDoctor(int doctorId);",
"ObservableList<EndTime> getEndTimeList();",
"public static boolean areInstantsOverlapping(Instant externalStart, Instant externalEnd, Instant calendarStart,\n\t\t\tInstant calendarEnd) {\n\n\t\tif ((externalStart.isAfter(calendarStart) || externalStart.equals(calendarStart))\n\t\t\t\t&& (externalStart.isBefore(calendarEnd))) {\n\t\t\treturn true;\n\t\t}\n\n\t\tif ((externalEnd.isAfter(calendarStart))\n\t\t\t\t&& (externalEnd.isBefore(calendarEnd) || externalEnd.equals(calendarStart))) {\n\t\t\treturn true;\n\t\t}\n\n\t\tif ((externalStart.isBefore(calendarStart) || externalStart.equals(calendarStart))\n\t\t\t\t&& (externalEnd.isAfter(calendarEnd) || externalEnd.equals(calendarEnd))) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public ArrayList<Appointment> getAppointmentRequests()\n {\n AppointmentListSingleton appointments = AppointmentListSingleton.getInstance();\n \n return appointments.getStateList(Appointment.AppointmentState.REQUESTED);\n }",
"public List<MeteringDataSec> findWithinTimeRange(final Instant startTime, final Instant untilTime) {\n\t\tInstant until = untilTime == null ? startTime.plus(5, ChronoUnit.MINUTES) : untilTime;\n\n\t\tList<MeteringDataSec> matches = meteringDataRepository.findWithinTimeRange(Timestamp.from(startTime), Timestamp.from(until));\n\t\tif (!matches.isEmpty()) {\n\t\t\tLOG.info(\"findWithinTimeRange found {} entries starting with: {}\", matches.size(), matches.get(0).getCreationTime());\n\t\t}\n\n\t\treturn matches;\n\t}",
"com.microsoft.schemas.crm._2011.contracts.ArrayOfAppointmentsToIgnore getAppointmentsToIgnore();",
"public List<Appointment> getAllDetailsRecp();",
"public List<TimeSheet> getTimeSheetsBetweenTwoDateForAllEmp(LocalDate startDate, LocalDate endDate) {\n log.info(\"Inside TimeSheetService#getTimeSheetByPid Method\");\n return timeSheetRepository.getTimeSheets(startDate, endDate);\n }",
"public List<InflectionPoint> getInflectionPoints(long start, long end) {\n List<InflectionPoint> results = new ArrayList<InflectionPoint>();\n for (InflectionPoint inflectionPoint : inflectionPoints) {\n if (inflectionPoint.utcDateTime <= start) {\n results.add(new InflectionPoint(start, inflectionPoint.offset));\n break;\n } else if (inflectionPoint.utcDateTime < end) {\n results.add(new InflectionPoint(inflectionPoint.utcDateTime,\n inflectionPoint.offset));\n }\n }\n return results;\n }",
"public List<TaskMaster> retrieveTasksForIntervalById(long userId, Calendar startTime, Calendar endTime);",
"public TimeIntervalCollection getSatisfiedIntervalIntersection() {\n Preconditions.checkNotNull(analysisInterval);\n TimeIntervalCollection allSatisfiedIntervals = new TimeIntervalCollection();\n if (results.isEmpty()) {\n return allSatisfiedIntervals;\n }\n\n allSatisfiedIntervals.add(analysisInterval);\n for (AccessQueryConstraintResult result : results.values()) {\n allSatisfiedIntervals = allSatisfiedIntervals.intersect(result.getSatisfiedIntervals());\n }\n\n return allSatisfiedIntervals;\n }",
"public boolean overlaps (DayPeriod other) {\n\t\tif (getDate().isEqual(other.getDate()))\n\t\t\treturn getStartTime().isBefore(other.getEndTime()) && other.getStartTime().isBefore(getEndTime());\n\t\treturn false;\n\t}",
"public java.util.List<CsclAppointeeMaster> findAll(int start, int end);",
"@Test\n public void findOverlap() {\n\n int[] A = new int[] {1,3,5,7,10};\n int[] B = new int[] {-2,2,5,6,7,11};\n\n List<Integer> overlap = new ArrayList<Integer>();\n overlap.add(5);\n overlap.add(7);\n\n Assert.assertEquals(overlap,Computation.findOverlap(A,B));\n\n }",
"public ArrayList<Appointment> getAllAppointments() {\n ArrayList<Appointment> array_list = new ArrayList<Appointment>();\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor res = db.rawQuery( \"SELECT * FROM bus_table \", null );\n\n res.moveToFirst();\n\n while(res.isAfterLast() == false){\n Integer id = res.getInt(res.getColumnIndex(\"ID\"));\n String Busfrom = res.getString(res.getColumnIndex(\"BUSFROM\"));\n String Busto = res.getString(res.getColumnIndex(\"BUSTO\"));\n String BusTime = res.getString(res.getColumnIndex(\"BUSTIME\"));\n String BusPrice = res.getString(res.getColumnIndex(\"BUSTICKET\"));\n String BusSeats = res.getString(res.getColumnIndex(\"BUSSEATS\"));\n Appointment appointment = new Appointment(id, Busfrom, Busto, BusTime, BusPrice,BusSeats);\n array_list.add(appointment);\n res.moveToNext();\n }\n return array_list;\n }",
"public List<Timetable> getListSearch(String from, String to) throws Exception;",
"private boolean overlapsWithBreak(TimeSpan timeSpan)\n\t{\n\t\tif(timeSpan.getStartTime().toLocalTime().isAfter(getBreakTime().getStartTime()) && timeSpan.getStartTime().toLocalTime().isBefore(getBreakTime().getEndTime())) {\n\t\t\treturn true;\n\t\t}\n\t\tif(timeSpan.getEndTime().toLocalTime().isAfter(getBreakTime().getStartTime()) && timeSpan.getEndTime().toLocalTime().isBefore(getBreakTime().getEndTime())) {\n\t\t\treturn true;\n\t\t}\n\t\tif(timeSpan.getStartTime().toLocalTime().isBefore(getBreakTime().getStartTime()) && timeSpan.getEndTime().toLocalTime().isAfter(getBreakTime().getEndTime())) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"@Override\n\tpublic List<Appointment> getUpcomingAppointments() {\n\t\treturn mobileDao.getUpcomingAppointments();\n\t}",
"public static ArrayList<Date> events(Task task, Date start, Date end){\n ArrayList<Date> dates = new ArrayList<>();\n for (Date i = task.nextTimeAfter(start); !end.before(i); i = task.nextTimeAfter(i))\n dates.add(i);\n return dates;\n }",
"public ArrayList<ConsumptionInstance> generateConsumptionInstances(long start_time, long end_time) {\n GregorianCalendar c = (GregorianCalendar) this.start_date.clone();\n ArrayList<ConsumptionInstance> result = new ArrayList<>();\n Collections.sort(this.timings);\n\n while(c.getTimeInMillis() < end_time + Utility.MILLIS_IN_DAY) {\n for (TimeOfDay t : timings) {\n c.set(Calendar.HOUR_OF_DAY, Integer.valueOf(t.getHour()));\n c.set(Calendar.MINUTE, Integer.valueOf(t.getMinute()));\n long millis = c.getTimeInMillis();\n\n if (start_time <= millis && millis < end_time) {\n ConsumptionInstance ci = new ConsumptionInstance(this.id, (GregorianCalendar) c.clone(),\n this.drug);\n if (deleted.contains(millis)) {\n ci.setDeleted(true);\n }\n result.add(ci);\n }\n }\n c.add(Calendar.DAY_OF_MONTH, this.interval);\n }\n\n return result;\n }",
"public List<FrameFaceRects> getFaceRects(long startTime, long endTime) {\n if(frameDataMap == null){\n return Collections.emptyList();\n }\n List<FrameFaceRects> result = new ArrayList<>();\n final int size = frameDataMap.size();\n for (int i = 0; i < size ; i++) {\n long key = CommonUtils.timeToFrame(frameDataMap.keyAt(i), TimeUnit.SECONDS);\n if(key >= startTime && key <= endTime){\n FrameFaceRects faceRects = frameDataMap.valueAt(i).getFaceRects();\n if(faceRects != null) {\n result.add(faceRects);\n }\n }\n }\n return result;\n }",
"public List<TimeRange> getUnavailableTimesForAttendees(Collection<Event> events, Collection<String> listOfAttendees){\n List<TimeRange> unavailableTimes = new ArrayList<>();\n for(String attendee : listOfAttendees) {\n for(Event event : events) {\n Set<String> eventAttendees = event.getAttendees();\n if(eventAttendees.contains(attendee)) {\n unavailableTimes.add(event.getWhen());\n }\n }\n }\n return unavailableTimes;\n }",
"public DBResult getEarliestArrivalTimes(int sourceId, Set<Short> routeIds, Set<Integer> businessDay, long fromTime,\n long toTime) throws SQLException {\n String sql = String.format(QUERY_EARLIEST_ARRIVAL_TIMES_HETERO, preparePlaceHolders(routeIds.size()),\n preparePlaceHolders(businessDay.size()));\n PreparedStatement statement = connection.prepareStatement(sql);\n statement = connection.prepareStatement(sql);\n statement.setInt(1, sourceId);\n int idx = setValues(2, statement, routeIds.toArray());\n statement.setLong(idx++, fromTime);\n statement.setLong(idx++, toTime);\n idx = setValues(idx, statement, businessDay.toArray());\n statement.setLong(idx, toTime);\n return new DBResult(statement, statement.executeQuery());\n }",
"public ArrayList<P> getAdvertisingPacketsBetween(long startTimestamp, long endTimestamp) {\n return AdvertisingPacketUtil.getAdvertisingPacketsBetween(new ArrayList<>(advertisingPackets), startTimestamp, endTimestamp);\n }",
"public List<P> getListProgramsBetweenTimes(LocalDateTime startTargetTime, LocalDateTime endTargetTime) {\n\t\treturn getJavaRDDProgramsBetweenTimes(startTargetTime, endTargetTime).collect();\n\t}",
"@Override\n\tpublic ArrayList<VODRecord> getVideoList(InviteUtils client, String startTime, String endTime) {\n\t\tArrayList<VODRecord> mList = new ArrayList<VODRecord>();\n\t\t\n\t\t\n\t\t\n\t\treturn super.getVideoList(client, startTime, endTime);\n\t}",
"private static boolean intersect(\n\t\tDateTime start1, DateTime end1,\n\t\tDateTime start2, DateTime end2)\n\t{\n\t\tif (DateTime.op_LessThanOrEqual(end2, start1) || DateTime.op_LessThanOrEqual(end1, start2))\n\t\t\treturn false;\n\n\t\treturn true;\n\t}",
"public List<TimeSlotInfo> searchForTimeSlots(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;",
"Collection<CalendarEvent> getActiveEvents(long when)\n{\n List<CalendarEvent> rslt = new ArrayList<CalendarEvent>();\n try {\n getAllEvents(when);\n rslt.addAll(cal_events);\n }\n catch (Exception e) {\n BasisLogger.logE(\"GOOGLECAL: problem getting events\",e);\n }\n return rslt;\n}",
"@Override\n public List<LocalTime> getAvailableTimesForServiceAndDate(final com.wellybean.gersgarage.model.Service service, LocalDate date) {\n\n LocalTime garageOpening = LocalTime.of(9,0);\n LocalTime garageClosing = LocalTime.of(17, 0);\n\n // List of all slots set as available\n List<LocalTime> listAvailableTimes = new ArrayList<>();\n for(LocalTime slot = garageOpening; slot.isBefore(garageClosing); slot = slot.plusHours(1)) {\n listAvailableTimes.add(slot);\n }\n\n Optional<List<Booking>> optionalBookingList = bookingService.getAllBookingsForDate(date);\n\n // This removes slots that are occupied by bookings on the same day\n if(optionalBookingList.isPresent()) {\n List<Booking> bookingsList = optionalBookingList.get();\n for(Booking booking : bookingsList) {\n int bookingDurationInHours = booking.getService().getDurationInMinutes() / 60;\n // Loops through all slots used by the booking and removes them from list of available slots\n for(LocalTime bookingTime = booking.getTime();\n bookingTime.isBefore(booking.getTime().plusHours(bookingDurationInHours));\n bookingTime = bookingTime.plusHours(1)) {\n\n listAvailableTimes.remove(bookingTime);\n }\n }\n }\n\n int serviceDurationInHours = service.getDurationInMinutes() / 60;\n\n // To avoid concurrent modification of list\n List<LocalTime> listAvailableTimesCopy = new ArrayList<>(listAvailableTimes);\n\n // This removes slots that are available but that are not enough to finish the service. Example: 09:00 is\n // available but 10:00 is not. For a service that takes two hours, the 09:00 slot should be removed.\n for(LocalTime slot : listAvailableTimesCopy) {\n boolean isSlotAvailable = true;\n // Loops through the next slots within the duration of the service\n for(LocalTime nextSlot = slot.plusHours(1); nextSlot.isBefore(slot.plusHours(serviceDurationInHours)); nextSlot = nextSlot.plusHours(1)) {\n if(!listAvailableTimes.contains(nextSlot)) {\n isSlotAvailable = false;\n break;\n }\n }\n if(!isSlotAvailable) {\n listAvailableTimes.remove(slot);\n }\n }\n\n return listAvailableTimes;\n }",
"Appointment(String description, String beginTime , String endTime){\n ShortDateFormat = new SimpleDateFormat(\"MM/dd/yyyy hh:mm a\", Locale.ENGLISH);\n //Check for bad data\n try{\n if(beginTime.contains(\"\\\"\")||endTime.contains(\"\\\"\"))\n throw new IllegalArgumentException(\"Date and time cannot contain quotes \");\n\n String[] tempStart = beginTime.split(\" \");\n String[] tempEnd= endTime.split(\" \");\n\n if(!tempStart[0].matches(\"(0?[1-9]|1[012])/(0?[1-9]|[12][0-9]|3[01])/((19|20)\\\\d\\\\d)\")||!tempEnd[0].matches(\"(0?[1-9]|1[012])/(0?[1-9]|[12][0-9]|3[01])/((19|20)\\\\d\\\\d)\")) {\n throw new IllegalArgumentException(\"Invalid Date Format\");\n }\n\n if(!tempStart[1].matches(\"([01]?[0-9]|2[0-3]):[0-5][0-9]\")||!tempEnd[1].matches(\"([01]?[0-9]|2[0-3]):[0-5][0-9]\"))\n throw new IllegalArgumentException(\"Time format must follow mm:hh (12 hour time)\");\n\n if(!tempStart[2].matches(\"(am|pm|AM|PM)\")&&!tempEnd[2].matches(\"(am|pm|AM|PM)\"))\n throw new IllegalArgumentException(\"Time must include am/pm\");\n }\n catch(IllegalArgumentException ex){\n System.out.println(ex.getMessage());\n System.exit(1);\n }\n\n setDate(beginTime,endTime);\n this.description = description;\n\n }",
"public java.util.List<Reference> appointment() {\n return getList(Reference.class, FhirPropertyNames.PROPERTY_APPOINTMENT);\n }",
"@Headers({\n \"Content-Type:application/json; charset=utf-8\"\n })\n @GET(\"entity/applications\")\n Call<List<Application>> getApplications(\n @Query(\"startTimestamp\") Long startTimestamp, @Query(\"endTimestamp\") Long endTimestamp, @Query(\"relativeTime\") String relativeTime, @Query(\"tag\") List<String> tag, @Query(\"entity\") List<String> entity\n );",
"public ObservableList<Appointment> getAppointmentsByContact(int contactId) throws SQLException {\r\n ObservableList<Appointment> matchedAppointments = FXCollections.observableArrayList();\r\n String statement = \"SELECT * FROM appointments WHERE Contact_ID = \" + contactId;\r\n ResultSet rs = conn.prepareStatement(statement).executeQuery();\r\n while (rs.next()) {\r\n Appointment a = new Appointment();\r\n a.setAppointmentId(rs.getInt(\"Appointment_ID\"));\r\n a.setTitle(rs.getString(\"Title\"));\r\n a.setType(rs.getString(\"Type\"));\r\n a.setDescription(rs.getString(\"Description\"));\r\n a.setStartTime(rs.getTimestamp(\"Start\").toLocalDateTime().atZone(ZoneId.systemDefault()));\r\n a.setEndTime(rs.getTimestamp(\"End\").toLocalDateTime().atZone(ZoneId.systemDefault()));\r\n a.setCustomer(SchedulingData.findCustomer(rs.getInt(\"Customer_ID\")));\r\n //SchedulingData.findCustomer(rs.getInt(\"Customer_ID\"))\r\n //rs.getTimestamp(\"Start\").toLocalDateTime().atZone(userZone)\r\n matchedAppointments.add(a);\r\n }\r\n return matchedAppointments;\r\n\r\n }",
"LiveData<List<Task>> getSortedTasks(LocalDate startDate,\r\n LocalDate endDate);",
"@RequestMapping(path = \"/\", method = RequestMethod.GET)\n\tList<Appointment> findAll() {\n\t\treturn appointmentService.findAll();\n\t}",
"public ArrayList<BoardGame> filterByTime(ArrayList<BoardGame> list) {\n int time = extractInt(playTime);\n ArrayList<BoardGame> tempList = new ArrayList<>();\n for (BoardGame game: list) {\n //Debug print out\n Log.i(\"FILTER TIME\", \"Game: \" + game.getName() + \" Min Time: \" + game.getMinPlayTime() +\n \" Max Time: \" + game.getMaxPlayTime() + \" Target Time: \" + time);\n if((game.getMinPlayTime() <= time && game.getMaxPlayTime() >= time) || game.getMaxPlayTime() <= time) {\n addGameToList(tempList, game);\n }\n }\n return tempList;\n }",
"public List<PartitionedThermostatEvent> listAlgoProcessedEventsByThermostatAndTimeRange(Integer thermostatId, Calendar startTime, Calendar endTime) {\n\n String ql = \"SELECT te FROM PartitionedThermostatEvent te WHERE te.type=1 AND te.thermostatId = :thermostatId AND te.status = :status AND te.id.eventSysTime BETWEEN :startTime AND :endTime\";\n Map<String, Object> paramVals = new HashMap<String, Object>();\n paramVals.put(\"status\", ThermostatEventAttributeDef.Status.PROCESSED.status());\n paramVals.put(\"thermostatId\", thermostatId);\n paramVals.put(\"startTime\", startTime);\n paramVals.put(\"endTime\", endTime);\n\n List<PartitionedThermostatEvent> thermostatEvents = listByQuery(ql, paramVals);\n return thermostatEvents;\n }",
"@Override\n\tpublic List<AppointmentDto> getAllAppointmentHavingPitch() {\n\t\t// TODO Auto-generated method stub\n\t\ttry{\n\t\t\treturn jdbcTemplate.query(FETCH_ALL_HAVING_PITCH, (rs, rownnum)->{\n\t\t\t\treturn new AppointmentDto(rs.getInt(\"appointmentId\"), rs.getTime(\"startTime\"), rs.getTime(\"endTime\"), rs.getDate(\"date\"), rs.getInt(\"physicianId\"), rs.getInt(\"userId\"), rs.getInt(\"productId\"), rs.getString(\"confirmationStatus\"), rs.getString(\"zip\"), rs.getString(\"cancellationReason\"), rs.getString(\"additionalNotes\"), rs.getBoolean(\"hasMeetingUpdate\"),rs.getBoolean(\"hasMeetingExperienceFromSR\"),rs.getBoolean(\"hasMeetingExperienceFromPH\"), rs.getBoolean(\"hasPitch\"));\n\t\t\t});\n\t\t}catch(DataAccessException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"public ItemCollection<Appointment> getConflictingMeetings()\n\t\t\tthrows ServiceLocalException {\n\t\treturn (ItemCollection<Appointment>) this.getPropertyBag()\n\t\t\t\t.getObjectFromPropertyDefinition(\n\t\t\t\t\t\tAppointmentSchema.ConflictingMeetings);\n\t}",
"protected boolean addAppointment(Appointment a) {\n IPeriod otherPeriod = a.getPeriod();\n for (Appointment currAppointment : appointments) {\n IPeriod currPeriod = currAppointment.getPeriod();\n if (currPeriod.intersectionWith(otherPeriod) != null) {\n return false;\n }\n }\n appointments.add(a);\n return true;\n }",
"public JavaRDD<P> getJavaRDDProgramsBetweenTimes(LocalDateTime startTargetTime, LocalDateTime endTargetTime) {\n\t\treturn tvPrograms.filter(program -> startTargetTime.isBefore(program.endTime()) && endTargetTime.isAfter(program.startTime()));\n\t}",
"public void setupAppointments() {\n\n\t\t// // remember for animation\n\t\t// final List<AbstractClusteredDayAppointmentPane>\n\t\t// lOldClusteredDayAppointmentPanes = new\n\t\t// ArrayList<AbstractClusteredDayAppointmentPane>(\n\t\t// clusteredAppointmentPanes);\n\t\t// final List<WholedayAppointmentPane> lOldWholedayAppointmentPanes =\n\t\t// new ArrayList<WholedayAppointmentPane>(\n\t\t// wholedayAppointmentPanes);\n\t\t//\n\t\t// // clear\n\t\t// clusteredAppointmentPanes.clear();\n\t\t// wholedayAppointmentPanes.clear();\n\t\t// if (calendarObjectProperty.get() == null) {\n\t\t// return;\n\t\t// }\n\t\t//\n\t\t// // scan all appointments and filter the ones for this day\n\t\t// for (Agenda.Appointment lAppointment : getSkinnable().appointments())\n\t\t// {\n\t\t//\n\t\t// // different panes depending on the appointment time\n\t\t// if (lAppointment.isWholeDay()) {\n\t\t//\n\t\t// // if appointment falls on the same date as this day pane\n\t\t// if (isSameDay(calendarObjectProperty.get(),\n\t\t// lAppointment.getStartTime())) {\n\t\t// WholedayAppointmentPane lAppointmentPane = new\n\t\t// WholedayAppointmentPane(\n\t\t// lAppointment, this);\n\t\t// wholedayAppointmentPanes.add(lAppointmentPane);\n\t\t// lAppointmentPane.setId(lAppointmentPane.getClass()\n\t\t// .getSimpleName() + wholedayAppointmentPanes.size());\n\t\t// }\n\t\t// } else if (lAppointment.getEndTime() == null) {\n\t\t//\n\t\t// // an not-wholeday appointment without an enddate is a task\n\t\t// if (isSameDay(calendarObjectProperty.get(),\n\t\t// lAppointment.getStartTime())) {\n\t\t// TaskAppointmentPane lAppointmentPane = new TaskAppointmentPane(\n\t\t// lAppointment, this);\n\t\t// clusteredAppointmentPanes.add(lAppointmentPane);\n\t\t// lAppointmentPane\n\t\t// .setId(lAppointmentPane.getClass().getSimpleName()\n\t\t// + clusteredAppointmentPanes.size());\n\t\t// }\n\t\t// } else {\n\t\t// // appointments may span multiple days, but the appointment pane\n\t\t// // will clamp the start and end date\n\t\t// RegularAppointmentPane lAppointmentPane = new RegularAppointmentPane(\n\t\t// lAppointment, this);\n\t\t//\n\t\t// // check if the appointment falls in the same day as this day\n\t\t// // pane\n\t\t// if (isSameDay(calendarObjectProperty.get(),\n\t\t// lAppointmentPane.start)\n\t\t// && isSameDay(calendarObjectProperty.get(),\n\t\t// lAppointmentPane.end)) {\n\t\t// clusteredAppointmentPanes.add(lAppointmentPane);\n\t\t// lAppointmentPane\n\t\t// .setId(lAppointmentPane.getClass().getSimpleName()\n\t\t// + clusteredAppointmentPanes.size());\n\t\t// }\n\t\t// }\n\t\t// }\n\t\t//\n\t\t// // sort on start time and then decreasing duration\n\t\t// Collections.sort(clusteredAppointmentPanes,\n\t\t// new Comparator<AbstractDayAppointmentPane>() {\n\t\t// @Override\n\t\t// public int compare(AbstractDayAppointmentPane o1,\n\t\t// AbstractDayAppointmentPane o2) {\n\t\t// if (o1.startAsString.equals(o2.startAsString) == false) {\n\t\t// return o1.startAsString.compareTo(o2.startAsString);\n\t\t// }\n\t\t// return o1.durationInMS > o2.durationInMS ? -1 : 1;\n\t\t// }\n\t\t// });\n\t\t//\n\t\t// // start placing appointments in the tracks\n\t\t// AbstractClusteredDayAppointmentPane lClusterOwner = null;\n\t\t// for (AbstractClusteredDayAppointmentPane lAppointmentPane :\n\t\t// clusteredAppointmentPanes) {\n\t\t// // if there is no cluster owner\n\t\t// if (lClusterOwner == null) {\n\t\t//\n\t\t// // than the current becomes an owner\n\t\t// // only create a minimal cluster, because it will be setup fully\n\t\t// // in the code below\n\t\t// lClusterOwner = lAppointmentPane;\n\t\t// lClusterOwner.clusterTracks = new\n\t\t// ArrayList<List<AbstractClusteredDayAppointmentPane>>();\n\t\t// }\n\t\t//\n\t\t// // in which track should it be added\n\t\t// int lTrackNr = determineTrackWhereAppointmentCanBeAdded(\n\t\t// lClusterOwner.clusterTracks, lAppointmentPane);\n\t\t// // if it can be added to track 0, then we have a \"situation\". Track\n\t\t// // 0 could mean\n\t\t// // - we must start a new cluster\n\t\t// // - the appointment is still linked to the running cluster by means\n\t\t// // of a linking appointment in the higher tracks\n\t\t// if (lTrackNr == 0) {\n\t\t//\n\t\t// // So let's see if there is a linking appointment higher up\n\t\t// boolean lOverlaps = false;\n\t\t// for (int i = 1; i < lClusterOwner.clusterTracks.size()\n\t\t// && lOverlaps == false; i++) {\n\t\t// lOverlaps =\n\t\t// checkIfTheAppointmentOverlapsAnAppointmentAlreadyInThisTrack(\n\t\t// lClusterOwner.clusterTracks, i, lAppointmentPane);\n\t\t// }\n\t\t//\n\t\t// // if it does not overlap, we start a new cluster\n\t\t// if (lOverlaps == false) {\n\t\t// lClusterOwner = lAppointmentPane;\n\t\t// lClusterOwner.clusterMembers = new\n\t\t// ArrayList<AbstractClusteredDayAppointmentPane>();\n\t\t// lClusterOwner.clusterTracks = new\n\t\t// ArrayList<List<AbstractClusteredDayAppointmentPane>>();\n\t\t// lClusterOwner.clusterTracks\n\t\t// .add(new ArrayList<AbstractClusteredDayAppointmentPane>());\n\t\t// }\n\t\t// }\n\t\t//\n\t\t// // add it to the track (and setup all other cluster data)\n\t\t// lClusterOwner.clusterMembers.add(lAppointmentPane);\n\t\t// lClusterOwner.clusterTracks.get(lTrackNr).add(lAppointmentPane);\n\t\t// lAppointmentPane.clusterOwner = lClusterOwner;\n\t\t// lAppointmentPane.clusterTrackIdx = lTrackNr;\n\t\t// // for debug System.out.println(\"----\"); for (int i = 0; i <\n\t\t// // lClusterOwner.clusterTracks.size(); i++) { System.out.println(i +\n\t\t// // \": \" + lClusterOwner.clusterTracks.get(i) ); }\n\t\t// // System.out.println(\"----\");\n\t\t// }\n\t\t//\n\t\t// // laying out the appointments is fairly complex, so we use listeners\n\t\t// // and a relayout method instead of binding\n\t\t// relayout();\n\t\t//\n\t\t// // and swap the appointments; old ones out, new ones in\n\t\t// // TODO: animation? we could move the old appointments to the\n\t\t// equivalent\n\t\t// // positions on the drag pane, then animate them to their new\n\t\t// positions,\n\t\t// // remove the old, and insert the new ones.\n\t\t// // however, this needs to be cross-days, so it cannot be done here\n\t\t// (this\n\t\t// // is only one day), but after the complete setupAppointments()\n\t\t// getChildren().removeAll(lOldClusteredDayAppointmentPanes);\n\t\t// getChildren().removeAll(lOldWholedayAppointmentPanes);\n\t\t// getChildren().addAll(wholedayAppointmentPanes);\n\t\t// getChildren().addAll(clusteredAppointmentPanes);\n\t\t//\n\t\t// // we're done, now have the header updated\n\t\t// dayHeaderPane.setupAppointments();\n\t}",
"@Test\r\n public void testGetOverlappingTimeCells() {\r\n assertEquals(9, cellToInsert.getOverlappingTimeCells(listToCompare).size());\r\n }",
"Pair<DateTime, DateTime> getSegmentBounds(ReadableInstant instant) {\n LocalDate date = new DateTime(instant).toLocalDate(); // a day in the local time zone\n DateTime[] fenceposts = getSegmentFenceposts(date);\n for (int i = 0; i + 1 < fenceposts.length; i++) {\n if (!instant.isBefore(fenceposts[i]) && instant.isBefore(fenceposts[i + 1])) {\n return new Pair<>(fenceposts[i], fenceposts[i + 1]);\n }\n }\n return null; // should never get here because start <= instant < stop\n }",
"ConferenceScheduleBuilderService createEventsFromStartToLunch();",
"@Transactional\r\n\tpublic List<Room> getReservedFromTo(LocalDate from, LocalDate to){\r\n\t\treturn this.roomRepository.findByReservationsIn(\r\n\t\t\t\tthis.reservationService.getFromTo(from, to));\r\n\t}",
"public List<CreditBookingResponse<?>> getScheduledBookingsByUuuid(String uuid, Long startTime, Long endTime) {\n\t\tList<CreditBookingResponse<?>> result = new ArrayList<CreditBookingResponse<?>>();\n\t\ttry {\n\t\t\t//LocalDate fromDate = SessionUtil.convertToLocalDate(startTime);\n\t\t\tLocalDate fromDate = Instant.ofEpochSecond(startTime ).atZone(ZoneId.systemDefault()).toLocalDate();\n\t\t\tLocalDate toDate = Instant.ofEpochSecond(endTime ).atZone(ZoneId.systemDefault()).toLocalDate();\n\n\t\t\tList<CreditBookingEntity> bookingEntities = new ArrayList<CreditBookingEntity>();\n\t\t\tBasicUserEntity user = userRepo.findOneByUuid(uuid).get();\n\t\t\tif (user.getUserType().equalsIgnoreCase(\"PT\")) {\n\t\t\t\tbookingEntities = creditBookingRepo.getPTScheduledBookings(fromDate, toDate, uuid);\n\t\t\t} else {\n\t\t\t\tbookingEntities = creditBookingRepo.getEUScheduledBookings(fromDate, toDate, uuid);\n\t\t\t}\n\n\t\t\tfor (CreditBookingEntity creditBookingEntity : bookingEntities) {\n\t\t\t\tswitch (creditBookingEntity.getBookingType()) {\n\t\t\t\tcase CLASS:\n\t\t\t\t\tCreditBookingResponse<CreditClassBookingResponse> classBookingResponse = new CreditBookingResponse<CreditClassBookingResponse>();\n\t\t\t\t\tCreditClassBookingResponse classBooking = new CreditClassBookingResponse(creditBookingEntity);\n\t\t\t\t\tclassBookingResponse.setServiceType(BookingServiceType.CLASS);\n\t\t\t\t\tclassBookingResponse.setBookingData(classBooking);\n\n\t\t\t\t\tresult.add(classBookingResponse);\n\t\t\t\t\tbreak;\n\t\t\t\tcase ETICKET:\n\t\t\t\t\tCreditBookingResponse<CreditETicketBookingResponse> eticketBookingResponse = new CreditBookingResponse<CreditETicketBookingResponse>();\n\t\t\t\t\tCreditETicketBookingResponse eticketBooking = new CreditETicketBookingResponse(creditBookingEntity);\n\t\t\t\t\teticketBookingResponse.setServiceType(BookingServiceType.ETICKET);\n\t\t\t\t\teticketBookingResponse.setBookingData(eticketBooking);\n\n\t\t\t\t\tresult.add(eticketBookingResponse);\n\t\t\t\t\tbreak;\n\t\t\t\tcase SESSION:\n\t\t\t\t\tBasicUserInfo userInfo = null;\n\t\t\t\t\tBasicUserInfo trainerInfo = null;\n\t\t\t\t\tCreditSessionBookingEntity session = creditBookingEntity.getSessions().get(0);\n\t\t\t\t\tBasicUserEntity userEntity = userRepo.findOneByUuid(session.getUserUuid()).get();\n\t\t\t\t\tif (userEntity != null) {\n\t\t\t\t\t\tuserInfo = BasicUserInfo.convertFromEntity(userEntity);\n\t\t\t\t\t}\n\t\t\t\t\tBasicUserEntity trainerEntity = userRepo.findOneByUuid(session.getPtUuid()).get();\n\t\t\t\t\tif (trainerEntity != null) {\n\t\t\t\t\t\ttrainerInfo = BasicUserInfo.convertFromEntity(trainerEntity);\n\t\t\t\t\t}\n\t\t\t\t\tCreditSessionBookingResponseDTO sessionBookingDTO = new CreditSessionBookingResponseDTO(\n\t\t\t\t\t\t\tcreditBookingEntity, userInfo, trainerInfo);\n\t\t\t\t\tCreditBookingResponse<CreditSessionBookingResponseDTO> sessionBookingResponse = new CreditBookingResponse<CreditSessionBookingResponseDTO>();\n\t\t\t\t\tsessionBookingResponse.setServiceType(BookingServiceType.SESSION);\n\t\t\t\t\tsessionBookingResponse.setBookingData(sessionBookingDTO);\n\n\t\t\t\t\tresult.add(sessionBookingResponse);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tthrow e;\n\t\t}\n\n\t\treturn result;\n\t}",
"public ArrayList<CalendarMeeting> getMeetings(Date dtFrom, Date dtTo)\r\n \tthrows IllegalStateException, JiBXException, IOException {\r\n\r\n\tif (null==sSecurityToken) throw new IllegalStateException(\"Not connected to calendar service\");\r\n\r\n\tCalendarResponse oResponse = CalendarResponse.get(sBaseURL+\"?command=getMeetings&token=\"+sSecurityToken+\"&startdate=\"+oFmt.format(dtFrom)+\"&enddate=\"+oFmt.format(dtTo));\r\n \r\n iErrCode = oResponse.code;\r\n sErrMsg = oResponse.error;\r\n\r\n if (iErrCode==0) {\r\n return oResponse.oMeetings;\r\n } else {\r\n return null;\r\n }\r\n }",
"public List<PartitionedThermostatEvent> listByThermostatAndEventSysTimeRange(Integer thermostatId, Calendar startTime, Calendar endTime) {\n\n String ql = \"SELECT te FROM PartitionedThermostatEvent te WHERE te.thermostatId = :thermostatId AND te.id.eventSysTime BETWEEN :startTime AND :endTime order by te.id.eventSysTime asc\";\n Map<String, Object> paramVals = new HashMap<String, Object>();\n paramVals.put(\"thermostatId\", thermostatId);\n paramVals.put(\"startTime\", startTime);\n paramVals.put(\"endTime\", endTime);\n\n List<PartitionedThermostatEvent> thermostatEvents = listByQuery(ql, paramVals);\n return thermostatEvents;\n }",
"List<Appointment> getAppointmentByCustomerNumber(long customerNumber);",
"@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}",
"public boolean checkOverlap(LocalTime thisTimeFrom, LocalTime thisTimeTo,\n LocalTime thatTimeFrom, LocalTime thatTimeTo ) {\n\n return compareTimeRangeInclusiveStart(thisTimeFrom, thatTimeFrom, thatTimeTo) ||\n compareTimeRangeInclusiveEnd(thisTimeTo, thatTimeFrom, thatTimeTo) ||\n compareTimeRangeInclusiveStart(thatTimeFrom, thisTimeFrom, thisTimeTo) ||\n compareTimeRangeInclusiveEnd(thatTimeTo, thisTimeFrom, thisTimeTo);\n }",
"@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<Guide> findByTime(LocalDateTime start, LocalDateTime end) {\n\t\tStringBuilder query = new StringBuilder(\n\t\t\t\t\"FROM Guide WHERE id NOT IN (SELECT guide FROM Excursion AS XS WHERE (XS.start BETWEEN \"\n\t\t\t\t\t\t+ \":startDate AND :endDate) OR (XS.end BETWEEN :startDate AND :endDate))\");\n\t\tQuery result = sessionFactory.getCurrentSession().createQuery(query.toString());\n\t\tresult.setTimestamp(\"startDate\", Timestamp.valueOf(start));\n\t\tresult.setTimestamp(\"endDate\", Timestamp.valueOf(end));\n\n\t\treturn result.list();\n\t}",
"@Override\n public int compareTo(AbstractAppointment o) {\n try {\n if (this.beginTime == null) {\n throw new NullPointerException(\"No start time to compare\");\n }\n if (o.getBeginTime() == null) {\n throw new NullPointerException(\"No begin time to compare\");\n }\n long diff = this.beginTime.getTime()-o.getBeginTime().getTime();\n\n if (diff > 0) {\n return 1;\n }\n if (diff < 0) {\n return -1;\n }\n if (diff == 0) {\n long enddiff = this.endTime.getTime()-o.getEndTime().getTime();\n\n if(enddiff >0){\n return 1;\n }\n if(enddiff<0){\n return -1;\n }\n if(enddiff == 0){\n int descriptiondiff = this.description.compareTo(o.getDescription());\n if(descriptiondiff >0){\n return 1;\n }\n if(descriptiondiff<0){\n return -1;\n }\n }\n }\n }\n catch(Exception ex){\n System.out.println(ex.getMessage());\n System.exit(1);\n }\n return 0;\n }",
"public ItemCollection<Appointment> getAdjacentMeetings()\n\t\t\tthrows ServiceLocalException {\n\t\treturn (ItemCollection<Appointment>) this.getPropertyBag()\n\t\t\t\t.getObjectFromPropertyDefinition(\n\t\t\t\t\t\tAppointmentSchema.AdjacentMeetings);\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic JSONCalendar availableHouses(String startDate, String endDate) {\n\t\t// Create a new list with house ID'sz\n\t\tList<String> houseIDs = new ArrayList<>();\n\t\tList<Calendar> dates = null;\n\t\tList<String> housed = null;\n\t\tList<Calendar> d = null;\n\t\tJSONCalendar ca = new JSONCalendar();\n\t\tEntityManager em = JPAResource.factory.createEntityManager();\n\t\tEntityTransaction tx = em.getTransaction();\n\t\ttx.begin();\n\t\t\n\t\t// Find the houses id's\n\t\t\n\t\tQuery q1 = em.createQuery(\"SELECT h.houseID from House h\");\n\t\t// It has all the houseIDs\n\t\thoused = q1.getResultList();\n\t\t//System.out.println(housed);\n\t\t\n\t\tQuery q = em.createNamedQuery(\"Calendar.findAll\");\n\t\tdates = q.getResultList();\n\t\t\n\t\tfor( int i = 0; i < housed.size(); i++ ) {\n\t\t\t// Select all the dates for every house\n\t\t\tint k = 0;\n\t\t\tQuery q2 = em.createQuery(\"SELECT c from Calendar c WHERE c.houseID = :id AND c.date >= :startDate AND c.date < :endDate\");\n\t\t\tq2.setParameter(\"id\", housed.get(i));\n\t\t\tq2.setParameter(\"startDate\", startDate);\n\t\t\tq2.setParameter(\"endDate\", endDate);\n\t\t\td = q2.getResultList();\n\t\t\t\n\t\t\tlong idHouse = 0;\n\t\t\tfor(int j = 0; j < d.size(); j++) {\n\t\t\t\t//System.out.println(d.get(j).getHouseID());\n\t\t\t\tidHouse = d.get(j).getHouseID();\n\t\t\t\tif(d.get(j).getAvailable() == true) {\n\t\t\t\t\tk++;\n\t\t\t\t\t// System.out.println(k);\n\t\t\t\t}\n\t\t\t\t// Find out if the houses are available these days\n\t\t\t\t\n\t\t\t}\n\t\t\tif(k == d.size() && k != 0) {\n\t\t\t\t// System.out.println(k);\n\t\t\t\thouseIDs.add(String.valueOf(idHouse));\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t// Select all the houses\n\t\t\n\t\tca.setResults(houseIDs);\n\t\tca.setNumDates(d.size());\n\t\t// System.out.println(startDate + \" \" + endDate);\n\t\t// System.out.println(houseIDs);\n\t\t\n\t\t\n\t\treturn ca;\n\t}",
"List<ECollisionType> getCollisions(Long id, Long lecturerId,\r\n\t\t\tList<Long> roomIds, Long cohortId, int numberOfAppointments,\r\n\t\t\tDate startDate, Date endDate);",
"public static int room_booking(int start, int end){\r\n\r\n\t\tint selected_room = -1;\r\n\t\t// booking_days list is to store all the days between start and end day\r\n\t\tList<Integer> booking_days = new ArrayList<>();\r\n\t\tfor(int i=start;i<=end; i++) {\r\n\t\t\tbooking_days.add(i);\r\n\t\t}\r\n\r\n\t\tfor(int roomNo : hotel_size) {\r\n\r\n\t\t\tif(room_bookings.keySet().contains(roomNo)) {\r\n\t\t\t\tfor (Map.Entry<Integer, Map<Integer,List<Integer>>> entry : room_bookings.entrySet()) {\r\n\r\n\t\t\t\t\tList<Integer> booked_days_for_a_room = new ArrayList<Integer>();\r\n\t\t\t\t\tif(roomNo == entry.getKey()) {\r\n\t\t\t\t\t\tentry.getValue().forEach((bookingId, dates)->{\r\n\t\t\t\t\t\t\tbooked_days_for_a_room.addAll(dates);\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\tList<Integer> check_elements = new ArrayList<Integer>();\r\n\t\t\t\t\t\tfor(int element : booking_days) {\r\n\t\t\t\t\t\t\tif(booked_days_for_a_room.contains(element)) {\r\n\t\t\t\t\t\t\t\tstatus = false;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tcheck_elements.add(element);\r\n\t\t\t\t\t\t\t\tselected_room = roomNo;\r\n\t\t\t\t\t\t\t\tstatus = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(status) {\r\n\t\t\t\t\t\t\tselected_room = roomNo;\r\n\t\t\t\t\t\t\treturn selected_room;\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\telse {\r\n\t\t\t\tselected_room = roomNo;\r\n\t\t\t\tstatus = true;\r\n\t\t\t\treturn selected_room;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn selected_room;\r\n\t}",
"public static ObservableList<Appointment> getAppointmentsForMonth (int id) {\n ObservableList<Appointment> appointments = FXCollections.observableArrayList();\n Appointment appointment;\n LocalDate begin = LocalDate.now();\n LocalDate end = LocalDate.now().plusMonths(1);\n try(Connection conn =DriverManager.getConnection(DB_URL, user, pass);\n Statement statement = conn.createStatement()) {\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM appointment WHERE customerId = '\" + id + \"' AND \" + \n \"start >= '\" + begin + \"' AND start <= '\" + end + \"'\" );\n \n while(resultSet.next()) {\n appointment = new Appointment(resultSet.getInt(\"appointmentId\"),resultSet.getInt(\"customerId\"), resultSet.getString(\"title\"),\n resultSet.getString(\"description\"), resultSet.getString(\"location\"),resultSet.getString(\"contact\"),resultSet.getString(\"url\"), \n resultSet.getTimestamp(\"start\"), resultSet.getTimestamp(\"end\"), resultSet.getDate(\"start\"), \n resultSet.getDate(\"end\"),resultSet.getString(\"createdby\"));\n appointments.add(appointment);\n }\n statement.close();\n return appointments;\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n return null;\n }\n }",
"public boolean checkDoubleBooking(LocalDateTime start, LocalDateTime end, ArrayList<String> eventIds){\n for (String id: eventIds){\n if (checkOverlappingTimes(getEvent(id).getStartTime(), getEvent(id).getEndTime(),\n start, end)){\n return false;\n }}\n return true;\n }",
"public List<FlightSchedule> getFlightsAvailables(ScheduleRepository scheduleFinderService, String from, String to,\n\t\t\tLocalDateTime startDateTime, LocalDateTime endDateTime) {\n\t\tList<FlightSchedule> flightsAvailables = new ArrayList<FlightSchedule>();\n\t\tint day = 0;\n\t\tint month = 0;\n\t\tint year = startDateTime.getYear();\n\t\tLocalDateTime departureDateTime, arrivalDateTime;\n\t\tFlightSchedule flightResult;\n\t\tList<Schedule> schedules = getSchedules(scheduleFinderService, from, to, startDateTime, endDateTime);\n\t\tif (!schedules.isEmpty()) {\n\t\t\tList<DayFlight> flightsDays = schedules.stream().flatMap(schedule -> schedule.getDays().stream()).collect(Collectors.toList());\n\t\t\tList<DayFlight> flightsOfDay = flightsDays.stream().filter(getDay(startDateTime)).collect(Collectors.toList());\n\t\t\tList<Flight> flights = flightsOfDay.stream().flatMap(flight -> flight.getFlights().stream()).collect(Collectors.toList());\n\t\t\tmonth = startDateTime.getMonthValue();\n\t\t\tday = startDateTime.getDayOfMonth();\n\t\t\tfor (Flight flight : flights) {\n\t\t\t\tdepartureDateTime = createLocalDateTime(year, month, day, flight.getDepartureTime());\n\t\t\t\tarrivalDateTime = createLocalDateTime(year, month, day, flight.getArrivalTime());\n\t\t\t\tif (validFlight(startDateTime, endDateTime, departureDateTime, arrivalDateTime)) {\n\t\t\t\t\tlog.info(String.format(\"Create Fligt Result: from %s, to %s, departureTime %s, arrivalTime %s\",\n\t\t\t\t\t\t\tfrom, to, departureDateTime, arrivalDateTime));\n\t\t\t\t\tflightResult = createFlightResult(from, to, departureDateTime, arrivalDateTime);\n\t\t\t\t\tflightsAvailables.add(flightResult);\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\treturn flightsAvailables;\n\t}",
"public ArrayList<Booking> getBookings(int time,String date){\n ArrayList<Booking>Hours=new ArrayList<>();\n for(int i=0;i<Schedule.size();++i){\n Booking temp=Schedule.get(i); \n String Day=temp.getDate();\n int Datevalue=Integer.parseInt(Day.substring(8,10));\n int Value=Integer.parseInt(date);\n if(time<10) {\n if (temp.getTime().substring(0, 2).equals(\"0\"+time) && Datevalue==Value){\n Hours.add(temp);\n }\n }\n else{\n if (temp.getTime().substring(0, 2).equals(\"\"+time) && Datevalue==Value){\n Hours.add(temp);\n }\n }\n }\n return Hours;\n }",
"private boolean isAvailabilityExist(String day, String startTime, String endTime){\n String full = day + \" at \" + startTime + \" to \" + endTime;\n\n String[] start = startTime.split(\":\");\n String[] end = endTime.split(\":\");\n\n //Set the 2 hours\n int hourStart = Integer.parseInt(start[0]);\n int hourEnd = Integer.parseInt(end[0]);\n\n //Set the minutes\n int minuteStart = Integer.parseInt(start[1]);\n int minuteEnd = Integer.parseInt(end[1]);\n\n int dayID = getDay(day).getDayID();\n\n for(Availability av : availabilities){\n int dayIDAV = av.getDayID();\n if(dayID == dayIDAV){\n //Set the 2 hours\n int hourStartAV = av.getStartHour();\n int hourEndAV = av.getEndHour();\n\n //Set the minutes\n int minuteStartAV = av.getStartMinute();\n int minuteEndAV = av.getEndTimeMinute();\n\n if(hourStart<hourStartAV)\n return(false);\n\n if(hourEnd>hourEndAV)\n return(false);\n\n if(hourEnd == hourEndAV && minuteEnd > minuteEndAV)\n return(false);\n\n if(hourStart == hourStartAV && minuteStart<minuteStartAV)\n return(false);\n }\n }\n return(true);\n }",
"public List<Events> getAllSystemEventsListForAll();"
] | [
"0.67447144",
"0.6594304",
"0.6586965",
"0.65855354",
"0.63492525",
"0.61526227",
"0.61166716",
"0.60735446",
"0.6039628",
"0.6034247",
"0.5999819",
"0.5975913",
"0.5940502",
"0.5878511",
"0.5854547",
"0.5815437",
"0.574711",
"0.57284504",
"0.5707132",
"0.5688552",
"0.56537753",
"0.5643503",
"0.55957854",
"0.5577193",
"0.55543214",
"0.5545304",
"0.5504477",
"0.5504217",
"0.549593",
"0.54922473",
"0.545569",
"0.54470944",
"0.5433754",
"0.54223454",
"0.5410423",
"0.537997",
"0.5360943",
"0.534556",
"0.53237075",
"0.5317859",
"0.53067017",
"0.53048575",
"0.5303645",
"0.526766",
"0.5253726",
"0.5238871",
"0.52350056",
"0.5234397",
"0.5232785",
"0.5225074",
"0.52203894",
"0.521338",
"0.5206768",
"0.51909626",
"0.516654",
"0.5153513",
"0.5153467",
"0.5127361",
"0.51272213",
"0.511475",
"0.5113778",
"0.51117134",
"0.51036924",
"0.5076857",
"0.5076531",
"0.5052854",
"0.50489694",
"0.5018451",
"0.5014463",
"0.50124687",
"0.5006987",
"0.5005655",
"0.50049585",
"0.5004246",
"0.50021505",
"0.49941596",
"0.49932343",
"0.4988017",
"0.4986866",
"0.49847755",
"0.4980689",
"0.49649417",
"0.4961437",
"0.49470276",
"0.49463958",
"0.49444082",
"0.49401626",
"0.4931583",
"0.4928203",
"0.4924991",
"0.49245155",
"0.49236017",
"0.49211153",
"0.4912521",
"0.49121436",
"0.49100986",
"0.4906612",
"0.48962483",
"0.48960876",
"0.4894612"
] | 0.778819 | 0 |
Created by administor on 2017/3/24. | public interface TerminalService {
public List<Terminalinfo> findByPageTerminal(int page, int pagesize);
public int countTerminal();
public List<Terminalinfo> findByPageTerminal2(HashMap<String, Object> map);
public int countTerminal2(HashMap<String, Object> map);
int insert(Terminalinfo record);
int deleteByPrimaryKey(Long id);
Terminalinfo selectByPrimaryKey(Long id);
int updateByPrimaryKeySelective(Terminalinfo record);
List<Terminalinfo> selectByexample();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"public final void mo51373a() {\n }",
"@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\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\n public void init() {\n\n }",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\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\tpublic void gravarBd() {\n\t\t\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"public void mo38117a() {\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n void init() {\n }",
"@Override\n public void init() {\n }",
"private void poetries() {\n\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n public void memoria() {\n \n }",
"private Rekenhulp()\n\t{\n\t}",
"public void mo4359a() {\n }",
"protected MetadataUGWD() {/* intentionally empty block */}",
"@Override\r\n\tpublic void rozmnozovat() {\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 init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n protected void init() {\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"private TMCourse() {\n\t}",
"private void init() {\n\n\t}",
"@Override\n public void init() {}",
"Petunia() {\r\n\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n public int describeContents() { return 0; }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public Pitonyak_09_02() {\r\n }",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\r\n\tpublic 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}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"private Singletion3() {}",
"@Override\n\tpublic void sacrifier() {\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\n public void initialize() {\n \n }",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\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() {\n\r\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n public void initialize() { \n }",
"@Override\n\tpublic void create () {\n\n\t}",
"private UsineJoueur() {}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"private MetallicityUtils() {\n\t\t\n\t}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n\tpublic void init() {\n\t}",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"public contrustor(){\r\n\t}",
"public void mo6081a() {\n }",
"@Override\n\tprotected void initialize() {\n\t}"
] | [
"0.6154425",
"0.608715",
"0.5817451",
"0.5815394",
"0.5791697",
"0.5757692",
"0.5746178",
"0.5746178",
"0.57171726",
"0.56809443",
"0.56666183",
"0.5632002",
"0.56144136",
"0.5606974",
"0.5596434",
"0.5596434",
"0.5596434",
"0.5596434",
"0.5596434",
"0.5596434",
"0.5592898",
"0.5579754",
"0.5578924",
"0.5559791",
"0.55507785",
"0.55372524",
"0.55358636",
"0.5534371",
"0.55341417",
"0.55290145",
"0.55271685",
"0.55196154",
"0.55165106",
"0.55151606",
"0.5512437",
"0.550835",
"0.5505115",
"0.5495261",
"0.54917216",
"0.54917216",
"0.5478724",
"0.5478724",
"0.5478724",
"0.5478724",
"0.5478724",
"0.5463965",
"0.5463726",
"0.5461385",
"0.5461385",
"0.54595584",
"0.54570305",
"0.5451571",
"0.5445982",
"0.5443562",
"0.5435029",
"0.5429071",
"0.54262114",
"0.5425678",
"0.5418517",
"0.5418517",
"0.54152775",
"0.5412463",
"0.5412463",
"0.5412463",
"0.54092747",
"0.54092747",
"0.54092747",
"0.54066336",
"0.5399622",
"0.53984636",
"0.53815067",
"0.53815067",
"0.53815067",
"0.53815067",
"0.53815067",
"0.53815067",
"0.53815067",
"0.5378725",
"0.5375485",
"0.53675205",
"0.53675205",
"0.53675205",
"0.53647614",
"0.5342635",
"0.53375447",
"0.53304124",
"0.53274256",
"0.5323106",
"0.5323106",
"0.5323106",
"0.53229535",
"0.5319807",
"0.53192705",
"0.5309099",
"0.53081435",
"0.53040093",
"0.5297736",
"0.529527",
"0.5293167",
"0.52901137",
"0.52896166"
] | 0.0 | -1 |
Convert centimeters to inches | public double getHeight() {
return this.height * 0.393701;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static double cmToInches(double cms)\n {\n return cms * CM_PER_INCH;\n }",
"public static double millimetersToInches(double millimeters) {\n return millimeters / 25.4;\n }",
"public static double inchesToCms(double inch)\n {\n return inch * INCH_PER_CM;\n }",
"public static final float pointsToInches(float value) {\n\t return value / 72f;\n\t}",
"private int toFeet(int inches) {\n return (int) Math.round(inches / 12.0);\n }",
"public static double inchesToMillimeters(double inches) {\n return inches * 25.4;\n }",
"protected static float toInches(int type, float value) {\n \t\tswitch (type) {\n \t\tcase CSSPrimitiveValue.CSS_CM:\n \t\t\treturn (value / 2.54f);\n \t\tcase CSSPrimitiveValue.CSS_MM:\n \t\t\treturn (value / 25.4f);\n \t\tcase CSSPrimitiveValue.CSS_IN:\n \t\t\treturn value;\n \t\tcase CSSPrimitiveValue.CSS_PT:\n \t\t\treturn (value / 72);\n \t\tcase CSSPrimitiveValue.CSS_PC:\n \t\t\treturn (value / 6);\n \t\tdefault:\n \t\t\tthrow new DOMException(DOMException.INVALID_ACCESS_ERR, \"\");\n \t\t}\n \t}",
"public static int lengthInInches(int feet, int inches){\n return inches = (12*feet)+inches;\n }",
"public static final float millimetersToInches(float value) {\n\t return value / 25.4f;\n\t}",
"public float centimetresToGridUnits(float cm);",
"public static final float inchesToPoints(float value) {\n\t return value * 72f;\n\t}",
"protected static float toCentimeters(int type, float value) {\n \t\tswitch (type) {\n \t\tcase CSSPrimitiveValue.CSS_CM:\n \t\t\treturn value;\n \t\tcase CSSPrimitiveValue.CSS_MM:\n \t\t\treturn (value / 10);\n \t\tcase CSSPrimitiveValue.CSS_IN:\n \t\t\treturn (value * 2.54f);\n \t\tcase CSSPrimitiveValue.CSS_PT:\n \t\t\treturn (value * 2.54f / 72);\n \t\tcase CSSPrimitiveValue.CSS_PC:\n \t\t\treturn (value * 2.54f / 6);\n \t\tdefault:\n \t\t\tthrow new DOMException(DOMException.INVALID_ACCESS_ERR, \"\");\n \t\t}\n \t}",
"public String getHeightInFeetAndInches() {\n int foot = getHeight() / INCHES_PER_FOOT;\n int inches = getHeight() % INCHES_PER_FOOT;\n String result;\n if (inches == 0)\n result = String.format(\"%d feet\", foot);\n else if (inches == 1)\n result = String.format(\"%d feet %d inch\", foot, inches);\n else\n result = String.format(\"%d feet %d inches\", foot, inches);\n return result;\n }",
"public static final float inchesToMillimeters(float value) {\n\t return value * 25.4f;\n\t}",
"private static int inchesToTicks(double inches) {\r\n\r\n double neededRevolutions = (inches - 2) / 11.75;\r\n int ticks = (int) (neededRevolutions * 1120);\r\n return ticks;\r\n }",
"private String convertFeetToInches(String description) {\n String regex = \"(\\\\d+) to (\\\\d+) feet|up to (\\\\d+) (feet|foot)\";\n Pattern pattern = Pattern.compile(regex);\n Matcher matcher = pattern.matcher(description);\n if (matcher.find()) {\n if (matcher.group(1) != null) {\n int lower = Integer.parseInt(matcher.group(1)) * 12;\n int upper = Integer.parseInt(matcher.group(2)) * 12;\n return description.replace(matcher.group(0), lower + \" to \" + upper + \" inches\");\n }\n int upper = Integer.parseInt(matcher.group(3)) * 12;\n return description.replace(matcher.group(0), \"up to \" + upper + \" inches\");\n }\n return description;\n }",
"public static void main(String[] args) {\n\n double meters = convertInchesToMeters(1000.0);\n DecimalFormat df = new DecimalFormat(\"#.##\");\n\n System.out.println(\"1000.0 inches is \"+df.format(meters));\n\n }",
"public static double meterToInch(final double meter) {\n return meter / METERS_PER_INCH;\n }",
"public static double feetPerSecondToCentiMetresPerSecond(double num) { return (num*30.48); }",
"public static double inchToMeter(final double inch) {\n return inch * METERS_PER_INCH;\n }",
"public static double FeetToCentimeter(double f){\n return f*929;\n }",
"public static double feetToMeters(double foot){\r\n\t\t\r\n\t\tdouble meter = 0.305 * foot;\r\n\t\t\r\n\t\treturn meter;\r\n\t}",
"public static double squareMillimetersToSquareCentimeters(double num){ return (num/100); }",
"public static double meterToCentimeter(final double meter) {\n return meter / METERS_PER_CENTIMETER;\n }",
"public float gridUnitsToCentimetres(float gridUnits);",
"@SuppressWarnings(\"resource\")\r\n\tpublic static void main(String[] args) {\r\n\t\tScanner input = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Please input an amount in Inches to convert to Meters: \");\r\n\t\tdouble inch = input.nextDouble();\r\n\t\tdouble meters = inch * 0.0254;\r\n\t\tSystem.out.println(inch+\" inch is \"+meters+\" in Meters.\");\r\n\t\t\r\n\t}",
"private static double celsiusToFahrenheit(double c){\n\n return ((c*9)/5)+52;\n\n }",
"public static double centiToMeter(double num) { return (num/Math.pow(10,2)); }",
"public static void main(String[] args) {\n\t\tfloat cm = 12.5f;\r\n\t\tfloat inch = 0.3937f * cm;\r\n\t\tSystem.out.printf(\"a. %.2f cm = %.2f inch\\n\", cm, inch);\r\n\r\n\t\t// b. inch to cm\r\n\t\tinch = 4.92f;\r\n\t\tcm = inch / 0.3937f;\r\n\t\tSystem.out.printf(\"b. %.2f inch = %.2f cm\\n\", inch, cm);\r\n\r\n\t\t// c. feet to meter\r\n\t\tfloat feet = 4.92f;\r\n\t\tfloat meter = feet / 3.2808f;\r\n\t\tSystem.out.printf(\"c. %.2f feet = %.2f meter\\n\", feet, meter);\r\n\r\n\t\t// d. meter to feet\r\n\t\tmeter = 1.50f;\r\n\t\tfeet = meter * 3.2808f;\r\n\t\tSystem.out.printf(\"d. %.2f meter = %.2f feet\\n\", meter, feet);\r\n\r\n\t\t// e. pound to kg\r\n\t\tfloat lb = 158.73f;\r\n\t\tfloat kg = lb / 2.2046f;\r\n\t\tSystem.out.printf(\"e. %.2f lb = %.2f kg\\n\", lb, kg);\r\n\r\n\t\t// f. kg to pound\r\n\t\tkg = 72.00f;\r\n\t\tlb = kg * 2.2046f;\r\n\t\tSystem.out.printf(\"f. %.2f kg = %.2f lb\\n\", kg, lb);\r\n\r\n\t\t// g. km to mile\r\n\t\tfloat km = 42.35f;\r\n\t\tfloat mile = km * 0.62137f;\r\n\t\tSystem.out.printf(\"g. %.2f km = %.2f mile\\n\", km, mile);\r\n\r\n\t\t// h. mile to km\r\n\t\tmile = 26.32f;\r\n\t\tkm = mile / 0.62137f;\r\n\t\tSystem.out.printf(\"h. %.2f mile = %.2f km\\n\", mile, km);\r\n\r\n\t\t// i. km/h to mile/h\r\n\t\tkm = 42.35f;\r\n\t\tmile = km * 0.62137f;\r\n\t\tSystem.out.printf(\"i. %.2f km/h = %.2f mile/h\\n\", km, mile);\r\n\r\n\t\t// j. mile/h to km/h\r\n\t\tmile = 26.32f;\r\n\t\tkm = mile / 0.62137f;\r\n\t\tSystem.out.printf(\"j. %.2f mile/h = %.2f km/h\\n\", mile, km);\r\n\t}",
"public void setWidthCM(float centimeters){\n\t\tthis.setWidth(centimeters*0.3937f);\n\t}",
"public static void main(String[] args) {\n \n \n Scanner scan = new Scanner(System.in);\n \n System.out.println(\" Enter a number of inches pls!\");\n int num1 = scan.nextInt();\n \n System.out.println(num1 + \"in is \" + (num1 / 12) + \"ft converted!\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n }",
"public static double convertToFt(int in)\r\n {\n\r\n final int INCHES_PER_FOOT = 12;\r\n\r\n double feet = in / (double)INCHES_PER_FOOT;\r\n\r\n return feet;\r\n }",
"public static void main(String[] args) {\n\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\t\r\n\t\tSystem.out.println(\"Teclea el numero de cm que deseas convertir a metros\");\r\n\t\tdouble metros =sc.nextDouble();\r\n\t\t\r\n\t\tdouble centimetros =metros*100;\r\n\t\t\r\n\t\tSystem.out.println(\"El numero total de centimetros son : \"+centimetros+\" \");\r\n\t}",
"public static double kiloMetresPerHourToCentiMetresPerSecond(double num) { return (num*27.7778); }",
"public final double encoderTicksToInches(double ticks) {\n return WHEEL_RADIUS * 2 * Math.PI * GEAR_RATIO * ticks / TICKS_PER_REV;\n }",
"Inch createInch();",
"public static void main(String[] args) {\n\n\n System.out.println(\"Please input a value for inch:\");\n Scanner scanner = new Scanner(System.in);\n int inchValue = scanner.nextInt();\n double meterValue = 0.0254 * inchValue;\n System.out.println((double)inchValue + \" inch is \" + meterValue + \" meters\");\n }",
"private String convertCelsiusToFahrenheit(double c) {\n double f = (c * (9.0 / 5.0)) + 32.0;\n DecimalFormat numberFormat = new DecimalFormat(\"#.0\");\n return numberFormat.format(f);\n }",
"public void setWidthInch(float inches){\n\t\tthis.setWidth(inches);\n\t}",
"public static double cToF(double celsius){\n return (celsius*1.8) + 32;\n }",
"public static double milesPerHourToCentiMetresPerSecond(double num) { return (num*44.704); }",
"private static void displayConversion(double celsius, double fahrenheit) {\n String celsiusOutput = String.format(\"%.2f\", celsius);\n String fahrenheitOutput = String.format(\"%.2f\", fahrenheit);\n System.out.println(\"\\n\" + celsiusOutput + \" degrees Celsius is equal to \" + fahrenheitOutput + \" degrees Fahrenheit.\");\n }",
"public static double centimeterToMeter(final double centimeter) {\n return centimeter * METERS_PER_CENTIMETER;\n }",
"public static double metresPerSecondToCentiMetresPerSecond(double num) { return (num*100); }",
"void FahtoCel() {\n\t\tSystem.out.println(\"Your converted celcius degrees is: \" + fahrenheit + \" degrees celcius.\");\t// prints out converted degrees, with fahrenheit = conversion.fahrenheit\r\n\t}",
"public static double MeterToFeet(double m){\n return m*10.76;\n }",
"public static double convertKeltoCel(double temp){\r\n return temp - 273;\r\n }",
"public static void main(String[] args) {\n System.out.print(\"Enter a degree in C to be converted to F: \");\n Scanner input = new Scanner(System.in);\n double celcius = input.nextDouble();\n double fahrenheit = (celcius * (9.0 / 5)) + 32;\n System.out.println(celcius + \" C is \" + fahrenheit + \" F\");\n }",
"public static void main(String[] args) {\n\t\tint meter = 2;\n\t\tSystem.out.println(meterToCM(meter));\n\t\tint feet = 2;\n\t\tSystem.out.println(feetToInch(feet));\n\t\tdouble fah = fToC(89);\n\n\t\tSystem.out.println(fah);\n\n\t\tint cel = (int) fToC(89);\n\n\t\tSystem.out.println(cel);\n\t}",
"public static double centiMetresPerSecondToMetrePerSecond(double num) { return (num/100); }",
"public static double squareInchesToSquareMilliMeters(double num){ return squareCentimetersToSquareMillimeters(squareInchesToSquareCentiMeters(num)); }",
"public static String printConversion(double kilometersPerHour) {\n\t\t\t// TODO Write an implementation for this method declaration\n\t\t\tString result;\n\t\t\tdouble milesPerHour;\n\t\t\tlong iPart;\n\t\t\tdouble fPart;\n\t\t\tlong output = 0;\n\t\t\tif(kilometersPerHour < 0) {\n\t\t\t\tresult = \"Invalid Value\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\tmilesPerHour = 0.62137 * kilometersPerHour;\n\t\t\t\tiPart = (long) milesPerHour;\n\t\t\t\tfPart = milesPerHour - iPart;\n\t\t\t\tif(fPart > 0 && fPart < 0.5) {\n\t\t\t\t\toutput = iPart;\n\t\t\t\t}\n\t\t\t\telse if(fPart > 0.5 && fPart <=0.99d) {\n\t\t\t\t\toutput = iPart+1;\n\t\t\t\t}\n\t\t\t\tresult = Double.toString(kilometersPerHour) + \" km/h\" + \" = \" + Long.toString(output) + \" mi/h\";\t\t\t\t\n\t\t\t}\n\n\t\t\treturn result;\n\t\t}",
"public static double convertmiTOkm (double mi) {\n\tdouble km=mi*1.60934;\n\treturn km;\n}",
"private KilometersPerHour() {}",
"EDataType getPerCent();",
"public static double celsiusToFahrenheit(double c) {\n\t\tif (c < 0)\n\t\t\treturn c;\n\n\t\treturn ((c * 9) / 5 + 32);\n\t}",
"public static double poundsPerSquareInchToAtmosphere(double num) { return (num/14.696); }",
"public static double convertCeltoKel(double temp){\r\n return temp + 273;\r\n }",
"private static Double convertToMeters(Double Ins) {\n double meters;\n meters = Ins / 39.37;\n return meters;\n }",
"@NonNull\n public Integer getSpacingInInches() {\n return spacingInInches;\n }",
"public static double convertFahtoCel(double temp){\r\n return ((temp - 32) * 5) / 9;\r\n }",
"public static Vector2 getInchZero() {\n float zeroInInchesX = (REAL_ZERO.x * CALIBRATED_INCH_WIDTH) / Overlay.fieldManager.getPixelWidth();\n float zeroInInchesY = (REAL_ZERO.y * CALIBRATED_INCH_HEIGHT) / Overlay.fieldManager.getPixelHeight();\n\n return new Vector2(zeroInInchesX, zeroInInchesY);\n }",
"private static int intFeetToTicks(double feet) {\n return (int) (feetToTicks(feet));\n }",
"public double getRangeInches()\n {\n if (isRangeValid())\n {\n\n double currentInches = ((AnalogInput)m_echoChannel).getVoltage() * m_conversionToInches;\n\n m_oldDistance = currentInches;\n }\n\n return m_oldDistance;\n }",
"public static void printconversion(double kilometersperhour) {\n\n if (kilometersperhour < 0) {\n System.out.println(\"invalid value\");\n } else {\n long milesperhour = tomilesperhour(kilometersperhour);\n System.out.println(kilometersperhour + \" km/h = \" + milesperhour + \" mi/h \");\n\n }\n }",
"public static double metersToFeet(double meter){\r\n\t\t\r\n\t\tdouble foot = Math.round((meter / 0.305)*1000.0)/1000.0;\r\n\t\t\r\n\t\treturn foot;\r\n\t}",
"public static double meterToFoot(final double meter) {\n return meter / METERS_PER_FOOT;\n }",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n System.out.print(\"Insert Celsius: \");\n float celsius = scanner.nextFloat();\n\n System.out.println();\n System.out.print(\"Convert from celsius to fahrenheit: \");\n float fahrenheit = ((9*celsius)/5) + 32;\n System.out.print(fahrenheit);\n }",
"void CeltoFah() {\n\t\tSystem.out.println(\"Your converted celcius degrees is: \" + celcius + \" degrees fahrenheit.\");\t// prints out converted degrees, with celcius = converioin.celcius\r\n\t}",
"public double getWidthInInches()\n {\n return width;\n }",
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\r\n\t System.out.print(\"Enter the miles to be converted to kilometers: \");\r\n\t int m = scanner.nextInt();\r\n\t scanner.close();\r\n\t Scanner scaner = new Scanner(System.in);\r\n\t System.out.print(\"Enter the centimeters to be converted to meter: \");\r\n\t int c = scanner.nextInt();\r\n\t scaner.close();\r\n\t\r\n\t\r\n\r\nfor(int i=0; i <= 1 ; i++)\r\n{\r\n switch(i){\r\ncase 1:\r\n\tdouble k;\r\n\tk=1.609*m;\r\n\tSystem.out.println(+m+ \" miles is equal to \" +k+ \"kilometers\");\r\ncase 2:\r\n\tdouble mt;\r\n\tmt=0.01*c;\r\n\tSystem.out.println(+c+ \" centimeters is equal to \" +mt+ \"meters\");\r\n\t\r\n\r\n}}}",
"public static double celsius2Fahrenheit(double celsius) {\n return 9/5.0 * celsius + 32;\n }",
"public float convertUnitToEm(float ptSize, int units) {\n return (units * ptSize) / upem;\n }",
"public static double fahrenheitToCelsius(double f) {\n\t\tif (f < 0)\n\t\t\treturn f;\n\n\t\treturn ((f - 32) * 5 / 9);\n\t}",
"private static double feetToTicks(double feet) {\n return feet / Config.DRIVE_ENCODER_DPP;\n }",
"public double getRangeInches(){\r\n\t\t return uSensor.getRangeInches();\r\n\t\t}",
"public static double squareCentimetersToSquareMillimeters(double num) { return (num*100); }",
"public Number getTotalAlocInch() {\n return (Number)getAttributeInternal(TOTALALOCINCH);\n }",
"private static double calculateFahrenheit(double celsius) {\n double farenheit = (9.0 / 5.0) * celsius + 32.0;\n\n return farenheit;\n }",
"@WebMethod(operationName = \"ConvCentAFahr\")\n public double ConvCentAFahr (@WebParam(name = \"gCent\") double gCent){\n return 9.0 / 5.0 * gCent + 32.0;\n }",
"public void ex() {\n int inches = 86; \n int pie = 12; //1 pie = 12 inches \n //Operaciones para obtener la cantidad de pies e inches\n int cant = inches / pie; \n int res = inches % pie;\n //Muestra de resultados\n System.out.println(inches + \" pulgadas es equivalente a\\n \" + \n cant + \" pies \\n \" + res + \" pulgadas \");\n }",
"public static final float pointsToMillimeters(float value) {\n\t return inchesToMillimeters(pointsToInches(value));\n\t}",
"public static long toMilesPerHour(double kilometersPerHour) {\n\t\t\tdouble milesPerHour = 0;\n\t\t\tlong output = 0;\n\t\t\tlong iPart;\n\t\t\tdouble fPart;\n\t\t\tif(kilometersPerHour < 0){\n\t\t\t\toutput = -1;\n\t\t\t\t\n\t\t\t}\n\t\t\telse if(kilometersPerHour > 0){\n\t\t\t\tmilesPerHour = kilometersPerHour * 0.62137;\n\t\t\t\tiPart = (long) milesPerHour;\n\t\t\t\tfPart = milesPerHour - iPart;\n\t\t\t\tif(fPart > 0 && fPart < 0.5) {\n\t\t\t\t\toutput = iPart;\n\t\t\t\t}\n\t\t\t\telse if(fPart > 0.5 && fPart <= 0.99d){\n\t\t\t\t\toutput = iPart+1;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t//System.out.println(kilometersPerHour + \" \" + output);\n\n\t\t\t\n\t\t\treturn output;\n\t\t}",
"public int getAsCents(){\n return (dollars*100 + cents);\n }",
"public static void f_kilometers_to_miles(){\n Scanner keyboard = new Scanner(System.in);\r\n\r\n System.out.println(\"Input the value in km: \");\r\n double km = keyboard.nextDouble();\r\n\r\n while (km < 1){\r\n System.err.println(\"Error: invalid value\");\r\n\r\n System.out.println(\"Input the value in km: \");\r\n km = keyboard.nextDouble();\r\n }\r\n\r\n double miles = km * 0.621371;\r\n\r\n System.out.println(\"The conversion is: \"+ miles+ \" miles\");\r\n\r\n\r\n }",
"double fFromC(double c) {\n return (c * 9 / 5) + 32;\n }",
"public static void f_miles_to_kilometers(){\n Scanner keyboard = new Scanner(System.in);\r\n\r\n System.out.println(\"Input the value in miles: \");\r\n double miles = keyboard.nextDouble();\r\n\r\n while (miles < 1){\r\n System.err.println(\"Error: invalid value\");\r\n\r\n System.out.println(\"Input the value in miles: \");\r\n miles = keyboard.nextDouble();\r\n }\r\n\r\n double km = miles * 1.60934;\r\n\r\n System.out.println(\"The conversion is: \"+ km+ \" km\");\r\n\r\n }",
"public int getLengthInCentiMeters()\r\n\t{\r\n\t\treturn length;\r\n\t}",
"public double toMetersPerSecond(){\n\t\tdouble mps = mph * 1609.34/3600;\n\t\treturn mps;\n\t}",
"public double getCelsius(){\n return ((fahrenheit-32)*(5.0/9));\n }",
"private String getUnits(Unit units, int value) {\n if (units == Unit.FEET) {\n if (value == 1) return \" foot\";\n return \" feet\";\n }\n if (value == 1) return \" inch\";\n return \" inches\";\n }",
"public static double fahrenheitToCelsius(double fahrenheit){\n \n //declare variable for converted temperature\n double convertedTemperature = ((5.0 / 9) * (fahrenheit - 32));\n \n //return value of converted temperature\n return convertedTemperature; \n }",
"public static final float millimetersToPoints(float value) {\n\t return inchesToPoints(millimetersToInches(value));\n\t}",
"public static Double convertMpsToKmh(double mps) {\n\t\treturn mps * 60 * 60 / 1000;\n\t}",
"public static double footToMeter(final double foot) {\n return foot * METERS_PER_FOOT;\n }",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\t\r\n\t\tSystem.out.println(\"Bitte Lšnge in Inch eingeben:\");\r\n\t\t\r\n\t\t//wait for input (length)\r\n\t\tdouble length = sc.nextDouble();\r\n\t\t\r\n\t\t//calculate length from Inch to cm\r\n\t\tSystem.out.println(\"\\n enstpricht:\" + length*2.5 + \" cm\");\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n int cents = new Scanner(System.in).nextInt();\n double convertedCents = cents*131;\n int wholeDollars = (int) (convertedCents/100);\n int wholeCents = (int) (convertedCents%100);\n\n System.out.printf(\"%03d.%03d\",wholeDollars, wholeCents);\n\n }",
"public static void main(String[] args) {\n\t\t final double CM_PER_INCH = 2.54; \n\t\t double paperWidth = 8.5; \n\t\t double paperHeight = 11; \n\t\t System.out.println(\"Paper size in centimeters: \" + \n\t\t paperWidth * CM_PER_INCH + \" by \" + paperHeight * \n\t\t CM_PER_INCH); \n\t}",
"public static void main(String[] args) {\r\n\t\t\r\n\t\t\r\n\t\t//I'm just declaring all the variables I need right now so I don't need to later.\r\n\t\tdouble miles;\r\n\t\t\r\n\t\tdouble feet;\r\n\t\t\r\n\t\tdouble inches;\r\n\t\t\r\n\t\tdouble meters; \r\n\t\t\r\n\t\t//Here I am printing the prompt for the user to input values I will need to convert to meters\r\n\t\tSystem.out.println(\"Enter miles:\");\r\n\t\t\t\t\r\n\t\t\tScanner userInput = new Scanner (System.in);\r\n\t\t\tmiles = userInput.nextDouble();\r\n\t\t\t\r\n\t\t\r\n\t\tSystem.out.println(\"Enter feet:\");\r\n\t\t\r\n\t\t\tScanner userInput2 = new Scanner (System.in);\r\n\t\t\tfeet = userInput2.nextDouble();\r\n\t\t\t\r\n\t\t\t\r\n\t\tSystem.out.println(\"Enter inches:\");\r\n\t\t\r\n\t\t\tScanner userInput3 = new Scanner (System.in);\r\n\t\t\tinches = userInput3.nextDouble();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t/*this is where I am converting all my values to feet, which will then convert to\r\n\t\t\t\t * meters.\r\n\t\t\t\t * \r\n\t\t\t\t * I am declaring new variables to represent converted values and also\r\n\t\t\t\t */\r\n\t\t\t\tdouble convertedMiles;\r\n\t\t\t\tconvertedMiles = miles*5280;\r\n\t\t\t\r\n\t\t\t\tdouble convertedFeet;\r\n\t\t\t\tconvertedFeet = feet*1;\r\n\t\t\t\r\n\t\t\t\tdouble convertedInches;\r\n\t\t\t\tconvertedInches = inches/12;\r\n\t\t\t\t\r\n\t\t//this statement is where I add together all my converted values to reach my total in feet\r\n\t\t//and then I divide by 3.3 to get to my meters, as specified in the directions\r\n\t\tmeters = (convertedMiles + convertedFeet + convertedInches)/3.3;\r\n\t\t\r\n\t\t//This statement declares a new variable that will convert from meters to a rounded version\r\n\t\t//so that I can have a variable that is rounded to the nearest tenth.\r\n\t\tdouble metersRounded = (double)Math.round((meters)*10)/10;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(miles + \" mile(s), \" + feet + \" foot(or feet) \" + inches + \r\n\t\t\t\t\t\t \" inch(es) = \" + metersRounded + \" meter(s).\");\r\n\t\t\r\n\t\tuserInput.close();\r\n\t\tuserInput2.close();\r\n\t\tuserInput3.close();\r\n\t\t\r\n\t\t\r\n\r\n\t}",
"public void setTotalAlocInch(Number value) {\n setAttributeInternal(TOTALALOCINCH, value);\n }",
"private String convertFahrenheitToCelsius(double f) {\n double c = (f - 32.0) * (5.0 / 9.0);\n DecimalFormat numberFormat = new DecimalFormat(\"#.0\");\n return numberFormat.format(c);\n }"
] | [
"0.7691239",
"0.7376223",
"0.7305217",
"0.7246744",
"0.71212417",
"0.7087092",
"0.70612764",
"0.70015174",
"0.69343376",
"0.6892266",
"0.662828",
"0.661742",
"0.6543083",
"0.6486869",
"0.6460835",
"0.645124",
"0.63175446",
"0.631048",
"0.6291068",
"0.62080693",
"0.6204717",
"0.61886847",
"0.61756533",
"0.6151981",
"0.6101718",
"0.6080995",
"0.6078472",
"0.6056224",
"0.59833074",
"0.5973481",
"0.5960098",
"0.5950469",
"0.59464014",
"0.59111094",
"0.5895621",
"0.5866374",
"0.5855649",
"0.5803569",
"0.57842195",
"0.57601225",
"0.5754132",
"0.5737147",
"0.5707841",
"0.5672962",
"0.5669179",
"0.5633335",
"0.5632731",
"0.5609269",
"0.5582941",
"0.55551654",
"0.55543125",
"0.55510515",
"0.55348206",
"0.5506599",
"0.5506352",
"0.5492622",
"0.54765445",
"0.5473156",
"0.54715484",
"0.54699856",
"0.5419015",
"0.541534",
"0.5399419",
"0.53895",
"0.53760785",
"0.53616256",
"0.5351489",
"0.53409326",
"0.533442",
"0.533267",
"0.5327727",
"0.5314945",
"0.5313077",
"0.5304582",
"0.52665186",
"0.52661824",
"0.52638316",
"0.52553743",
"0.5246873",
"0.5242233",
"0.5227447",
"0.52218795",
"0.5219305",
"0.52189744",
"0.5217509",
"0.5214652",
"0.5211121",
"0.52055484",
"0.51992464",
"0.5188464",
"0.5181448",
"0.517008",
"0.51590735",
"0.5151069",
"0.513691",
"0.5116283",
"0.5109785",
"0.51053244",
"0.509546",
"0.5084116",
"0.5083499"
] | 0.0 | -1 |
Convert kilograms to pounds | public double getWeight() {
return this.weight * 2.20462;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static Double convertToKilograms(Double pounds) {\n double kilos;\n kilos = pounds / 2.2046;\n return kilos;\n }",
"protected double toPounds(double weightOunces){\n\t\treturn 0.0625 * weightOunces;\n\t}",
"public float convertToPoundIfRequired(float weight){\r\n\t\t\tif(this == KILOGRAM){\r\n\t\t\t\treturn kilogramToPound(weight);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\treturn weight;\r\n\t\t\t}\r\n\t\t}",
"public double teaspoonsToKilograms(double teaspoons){\n return teaspoons * 0.004928922;\n }",
"public float convertFromPoundIfRequired(float weight){\r\n\t\t\tif(this == KILOGRAM){\r\n\t\t\t\treturn poundToKilogram(weight);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\treturn weight;\r\n\t\t\t}\r\n\t\t}",
"public static double convertkgTOlb (double kg) {\n\tdouble lb=kg*2.2046;\n\treturn lb;\n}",
"static public double toKilogramPerMeterSqr(double x) {\n return (x * ToSI.GRAM) / (ToSI.CM * ToSI.CM);\n }",
"public static double kgAgramo(double n1){\n double gramo;\n gramo=n1*1000;\n return gramo; \n }",
"private String calculateL100Km() {\n double distance = parser(getTextFromEditText(R.id.distanceEdit));\n double fuel = parser(getTextFromEditText(R.id.fuelEdit));\n double value = (fuel * 100) / distance;\n return rounder(value);\n }",
"public String toString() {\n\t\tif(scale=='K'||scale=='k'){\r\n\t\t\treturn String.format(\"%.2f %s\"+\"ilograms\", wValue, scale);\r\n\t\t} else {\r\n\t\t\tscale=Character.toUpperCase(scale);\r\n\t\t\treturn String.format(\"%.2f %s\"+\"ounds\", wValue, scale);\r\n\t\t}\r\n\t}",
"private String toKbs(String kbsString) {\n return new StringBuilder().append(Integer.valueOf(kbsString) / 1).append(\" Kb/s\")\n .toString();\n }",
"public String MaToKa(double ma) {\n // ka = ma/1000000\n double ka = ma/1000000;\n return check_after_decimal_point(ka);\n }",
"public static double caratsToMilligrams(double num) { return (num*200); }",
"public static double convertToKilos(double Number, double kiloConversion) {\n\t\treturn Number * kiloConversion;\n\t}",
"public static double convertToKilos(double Number, double kiloConversion) {\n\t\treturn Number * kiloConversion;\n\t}",
"public void setWeight(long kilograms) {\n setWeight(kilograms * POUNDS_PER_KG);\n }",
"public static double convertToPounds(double Number, double poundConversion) {\n\t\treturn Number / poundConversion;\n\t}",
"public static double convertmiTOkm (double mi) {\n\tdouble km=mi*1.60934;\n\treturn km;\n}",
"public static double poundsPerSquareInchToAtmosphere(double num) { return (num/14.696); }",
"public float convertToKilogramIdRequired(float weight){\r\n\t\t\tswitch(this){\r\n\t\t\tcase POUND:\r\n\t\t\t\treturn poundToKilogram(weight);\r\n\t\t\tcase KILOGRAM:\r\n\t\t\t}\r\n\t\t\treturn weight;\r\n\t\t}",
"public static double wattsToKiloWatts(double num) { return (num/Math.pow(10,3)); }",
"public void toiGianPhanSo(){\n int x = timUSCLN(tuSo,mauSo);\n\n tuSo/=x;\n mauSo/=x;\n }",
"public String CaToKa(double ca) {\n // ka = ca/100000\n double ka = ca/100000;\n return check_after_decimal_point(ka);\n }",
"public String AToKa(double a) {\n // ka = a/1000\n double ka = a/1000;\n return check_after_decimal_point(ka);\n }",
"public String KaToMa(double ka) {\n // ma = 1000000*ka\n double ma = 1000000*ka;\n return check_after_decimal_point(ma);\n }",
"public double teaspoonsToMilligrams(double teaspoons){\n return teaspoons * 5687.50;\n }",
"public String perkalian(int bil1, int bil2) {\n return (int)functions.kali_old(bil1, bil2) + \"\";\n }",
"@Override\r\n public void convert(int wa) {\n hasil1 = wa / menit;\r\n String wat = Integer.toString(hasil1);\r\n hasil = wat + \" Menit \";\r\n }",
"public String KaToHa(double ka) {\n // ha = 10*ka\n double ha = 10*ka;\n return check_after_decimal_point(ha);\n }",
"public static String printConversion(double kilometersPerHour) {\n\t\t\t// TODO Write an implementation for this method declaration\n\t\t\tString result;\n\t\t\tdouble milesPerHour;\n\t\t\tlong iPart;\n\t\t\tdouble fPart;\n\t\t\tlong output = 0;\n\t\t\tif(kilometersPerHour < 0) {\n\t\t\t\tresult = \"Invalid Value\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\tmilesPerHour = 0.62137 * kilometersPerHour;\n\t\t\t\tiPart = (long) milesPerHour;\n\t\t\t\tfPart = milesPerHour - iPart;\n\t\t\t\tif(fPart > 0 && fPart < 0.5) {\n\t\t\t\t\toutput = iPart;\n\t\t\t\t}\n\t\t\t\telse if(fPart > 0.5 && fPart <=0.99d) {\n\t\t\t\t\toutput = iPart+1;\n\t\t\t\t}\n\t\t\t\tresult = Double.toString(kilometersPerHour) + \" km/h\" + \" = \" + Long.toString(output) + \" mi/h\";\t\t\t\t\n\t\t\t}\n\n\t\t\treturn result;\n\t\t}",
"protected int convertToPence(PriceModel number) {\n return (number.getPounds() * ConstantUtil.PENCE_IN_POUND) + (number.getShillings() * ConstantUtil.PENCE_IN_SHILLING) + number.getPence();\n }",
"public static void main(String[] args) {\n\t\tfloat cm = 12.5f;\r\n\t\tfloat inch = 0.3937f * cm;\r\n\t\tSystem.out.printf(\"a. %.2f cm = %.2f inch\\n\", cm, inch);\r\n\r\n\t\t// b. inch to cm\r\n\t\tinch = 4.92f;\r\n\t\tcm = inch / 0.3937f;\r\n\t\tSystem.out.printf(\"b. %.2f inch = %.2f cm\\n\", inch, cm);\r\n\r\n\t\t// c. feet to meter\r\n\t\tfloat feet = 4.92f;\r\n\t\tfloat meter = feet / 3.2808f;\r\n\t\tSystem.out.printf(\"c. %.2f feet = %.2f meter\\n\", feet, meter);\r\n\r\n\t\t// d. meter to feet\r\n\t\tmeter = 1.50f;\r\n\t\tfeet = meter * 3.2808f;\r\n\t\tSystem.out.printf(\"d. %.2f meter = %.2f feet\\n\", meter, feet);\r\n\r\n\t\t// e. pound to kg\r\n\t\tfloat lb = 158.73f;\r\n\t\tfloat kg = lb / 2.2046f;\r\n\t\tSystem.out.printf(\"e. %.2f lb = %.2f kg\\n\", lb, kg);\r\n\r\n\t\t// f. kg to pound\r\n\t\tkg = 72.00f;\r\n\t\tlb = kg * 2.2046f;\r\n\t\tSystem.out.printf(\"f. %.2f kg = %.2f lb\\n\", kg, lb);\r\n\r\n\t\t// g. km to mile\r\n\t\tfloat km = 42.35f;\r\n\t\tfloat mile = km * 0.62137f;\r\n\t\tSystem.out.printf(\"g. %.2f km = %.2f mile\\n\", km, mile);\r\n\r\n\t\t// h. mile to km\r\n\t\tmile = 26.32f;\r\n\t\tkm = mile / 0.62137f;\r\n\t\tSystem.out.printf(\"h. %.2f mile = %.2f km\\n\", mile, km);\r\n\r\n\t\t// i. km/h to mile/h\r\n\t\tkm = 42.35f;\r\n\t\tmile = km * 0.62137f;\r\n\t\tSystem.out.printf(\"i. %.2f km/h = %.2f mile/h\\n\", km, mile);\r\n\r\n\t\t// j. mile/h to km/h\r\n\t\tmile = 26.32f;\r\n\t\tkm = mile / 0.62137f;\r\n\t\tSystem.out.printf(\"j. %.2f mile/h = %.2f km/h\\n\", mile, km);\r\n\t}",
"public String KaToA(double ka) {\n // a = 1000*ka\n double a = 1000*ka;\n return check_after_decimal_point(a);\n }",
"java.lang.String getPkpfe1000();",
"private void convertInput(double input) {\n\n if (input != 0) {\n // Set standard value in meters based on selected unit\n switch (selectedUnit) {\n case \"km\":\n standard = input / 0.001;\n break;\n case \"m\":\n standard = input;\n break;\n case \"cm\":\n standard = input / 100;\n break;\n case \"mm\":\n standard = input / 1000;\n break;\n case \"μm\":\n standard = input / 1000000;\n break;\n case \"nm\":\n standard = input / 1000000000;\n break;\n case \"mi\":\n standard = input / 0.000621371;\n break;\n case \"yd\":\n standard = input / 1.09361;\n break;\n case \"ft\":\n standard = input / 3.28084;\n break;\n case \"in\":\n standard = input / 39.3701;\n break;\n default:\n standard = input;\n break;\n }\n //km\n kmTextView.setText(numberFormatter(standard * 0.001));\n //m\n mTextView.setText(numberFormatter(standard * 1));\n //cm\n cmTextView.setText(numberFormatter(standard * 100));\n //mm\n mmTextView.setText(numberFormatter(standard * 1000));\n //um\n umTextView.setText(numberFormatter(standard * 1000000));\n //nm\n nmTextView.setText(numberFormatter(standard * 1000000000));\n //mi\n miTextView.setText(numberFormatter(standard * 0.000621371));\n //yd\n ydTextView.setText(numberFormatter(standard * 1.09361));\n //ft\n ftTextView.setText(numberFormatter(standard * 3.28084));\n //in\n inTextView.setText(numberFormatter(standard * 39.3701));\n } else {\n //km\n kmTextView.setText(\"\");\n //m\n mTextView.setText(\"\");\n //cm\n cmTextView.setText(\"\");\n //mm\n mmTextView.setText(\"\");\n //um\n umTextView.setText(\"\");\n //nm\n nmTextView.setText(\"\");\n //mi\n miTextView.setText(\"\");\n //yd\n ydTextView.setText(\"\");\n //ft\n ftTextView.setText(\"\");\n //in\n inTextView.setText(\"\");\n }\n }",
"public double toMetersPerSecond(){\n\t\tdouble mps = mph * 1609.34/3600;\n\t\treturn mps;\n\t}",
"protected String pricePerUnit(double price, double quantity, int spinnerItem) {\n\t\tString result = \"\";\r\n\r\n\t\tif (quantity == 0) {\r\n\t\t\tToast.makeText(getApplicationContext(), \"Cantitatea nu poate fi 0!\", Toast.LENGTH_LONG).show();\r\n\t\t\treturn result;\r\n\t\t}\r\n\r\n\t\tswitch (spinnerItem) {\r\n\t\t\tcase 0:\r\n\t\t\t\t//u. -> price per unit\r\n\t\t\t\tresult = formatDoubleAsString(price / quantity) + \" lei/unit.\";\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 1:\r\n\t\t\t\t//g -> price per kg\r\n\t\t\t\tresult = formatDoubleAsString((price * 1000) / quantity) + \" lei/kg\";\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 2:\r\n\t\t\t\t//kg -> price per kg\r\n\t\t\t\tresult = formatDoubleAsString(price / quantity) + \" lei/kg\";\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 3:\r\n\t\t\t\t//ml -> price per l\r\n\t\t\t\tresult = formatDoubleAsString((price * 1000) / quantity) + \" lei/l\";\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tcase 4:\r\n\t\t\t\t//l -> price per l\r\n\t\t\t\tresult = formatDoubleAsString(price / quantity) + \" lei/l\";\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}",
"public String HaToKa(double ha) {\n // ka = ha/10\n double ka = ha/10;\n return check_after_decimal_point(ka);\n }",
"public String DaToKa(double da) {\n // ka = da/10000\n double ka = da/10000;\n return check_after_decimal_point(ka);\n }",
"public String kalkulatu() {\n\t\tString emaitza = \"\";\n\t\tDouble d = 0.0;\n\t\ttry {\n\t\t\td = Double.parseDouble(et_sarrera.getText().toString());\n\t\t} catch (NumberFormatException e) {\n\t\t\tet_sarrera.setText(\"0\");\n\t\t}\n\t\tif (st_in.compareTo(\"m\") == 0) {\n\t\t\tif (st_out.compareTo(\"km\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1000.0);\n\t\t\t} else if (st_out.compareTo(\"m\") == 0) {\n\t\t\t\temaitza = String.valueOf(d);\n\t\t\t} else if (st_out.compareTo(\"cm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 100.0);\n\t\t\t} else if (st_out.compareTo(\"mm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1000.0);\n\t\t\t} else if (st_out.compareTo(\"ml\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1609.344);\n\t\t\t} else if (st_out.compareTo(\"inch\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 0.0254);\n\t\t\t}\n\t\t} else if (st_in.compareTo(\"km\") == 0) {\n\t\t\tif (st_out.compareTo(\"km\") == 0) {\n\t\t\t\temaitza = String.valueOf(d);\n\t\t\t} else if (st_out.compareTo(\"m\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 1000.0);\n\t\t\t} else if (st_out.compareTo(\"cm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 100000.0);\n\t\t\t} else if (st_out.compareTo(\"mm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 1000000.0);\n\t\t\t} else if (st_out.compareTo(\"ml\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1.609344);\n\t\t\t} else if (st_out.compareTo(\"inch\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 0.0000254);\n\t\t\t}\n\t\t} else if (st_in.compareTo(\"cm\") == 0) {\n\t\t\tif (st_out.compareTo(\"km\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 100000.0);\n\t\t\t} else if (st_out.compareTo(\"m\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 100.0);\n\t\t\t} else if (st_out.compareTo(\"cm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d);\n\t\t\t} else if (st_out.compareTo(\"mm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 10.0);\n\t\t\t} else if (st_out.compareTo(\"ml\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 160934.4);\n\t\t\t} else if (st_out.compareTo(\"inch\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 2.54);\n\t\t\t}\n\t\t} else if (st_in.compareTo(\"mm\") == 0) {\n\t\t\tif (st_out.compareTo(\"km\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1000000.0);\n\t\t\t} else if (st_out.compareTo(\"m\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1000.0);\n\t\t\t} else if (st_out.compareTo(\"cm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 10.0);\n\t\t\t} else if (st_out.compareTo(\"mm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d);\n\t\t\t} else if (st_out.compareTo(\"ml\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 1609344);\n\t\t\t} else if (st_out.compareTo(\"inch\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 25.4);\n\t\t\t}\n\t\t} else if (st_in.compareTo(\"ml\") == 0) {\n\t\t\tif (st_out.compareTo(\"km\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 1.609344);\n\t\t\t} else if (st_out.compareTo(\"m\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 1609.344);\n\t\t\t} else if (st_out.compareTo(\"cm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 160934.4);\n\t\t\t} else if (st_out.compareTo(\"ml\") == 0) {\n\t\t\t\temaitza = String.valueOf(d);\n\t\t\t} else if (st_out.compareTo(\"mm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 1609344);\n\t\t\t} else if (st_out.compareTo(\"inch\") == 0) {\n\t\t\t\temaitza = String.valueOf(d / 0.000015782828);\n\t\t\t}\n\t\t} else if (st_in.compareTo(\"inch\") == 0) {\n\t\t\tif (st_out.compareTo(\"km\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 0.0000254);\n\t\t\t} else if (st_out.compareTo(\"m\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 0.0254);\n\t\t\t} else if (st_out.compareTo(\"cm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 2.54);\n\t\t\t} else if (st_out.compareTo(\"mm\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 25.4);\n\t\t\t} else if (st_out.compareTo(\"ml\") == 0) {\n\t\t\t\temaitza = String.valueOf(d * 0.000015782828);\n\t\t\t} else if (st_out.compareTo(\"inch\") == 0) {\n\t\t\t\temaitza = String.valueOf(d);\n\t\t\t}\n\t\t}\n\t\treturn emaitza;\n\t}",
"public static void f_miles_to_kilometers(){\n Scanner keyboard = new Scanner(System.in);\r\n\r\n System.out.println(\"Input the value in miles: \");\r\n double miles = keyboard.nextDouble();\r\n\r\n while (miles < 1){\r\n System.err.println(\"Error: invalid value\");\r\n\r\n System.out.println(\"Input the value in miles: \");\r\n miles = keyboard.nextDouble();\r\n }\r\n\r\n double km = miles * 1.60934;\r\n\r\n System.out.println(\"The conversion is: \"+ km+ \" km\");\r\n\r\n }",
"private static String numberToProse(int n) {\n if(n == 0)\n return \"zero\";\n\n if(n < 10)\n return intToWord(n);\n\n StringBuilder sb = new StringBuilder();\n\n // check the tens place\n if(n % 100 < 10)\n sb.insert(0, intToWord(n % 10));\n else if(n % 100 < 20)\n sb.insert(0, teenWord(n % 100));\n else\n sb.insert(0, tensPlaceWord((n % 100) / 10) + \" \" + intToWord(n % 10));\n\n n /= 100;\n\n // add the hundred place\n if(n > 0 && sb.length() != 0)\n sb.insert(0, intToWord(n % 10) + \" hundred and \");\n else if (n > 0)\n sb.insert(0, intToWord(n % 10) + \" hundred \");\n\n if(sb.toString().equals(\" hundred \"))\n sb = new StringBuilder(\"\");\n\n n /= 10;\n\n // the thousand spot\n if(n > 0)\n sb.insert(0, intToWord(n) + \" thousand \");\n\n return sb.toString();\n }",
"public String pemangkatan(double bil1, double bil2) {\n return functions.pangkat(bil1, bil2) + \"\";\n }",
"public static void f_kilometers_to_miles(){\n Scanner keyboard = new Scanner(System.in);\r\n\r\n System.out.println(\"Input the value in km: \");\r\n double km = keyboard.nextDouble();\r\n\r\n while (km < 1){\r\n System.err.println(\"Error: invalid value\");\r\n\r\n System.out.println(\"Input the value in km: \");\r\n km = keyboard.nextDouble();\r\n }\r\n\r\n double miles = km * 0.621371;\r\n\r\n System.out.println(\"The conversion is: \"+ miles+ \" miles\");\r\n\r\n\r\n }",
"public static double inchesToMillimeters(double inches) {\n return inches * 25.4;\n }",
"BigDecimal getVolume();",
"public double Convert(String from, String to, double input) {\n\n\t\tdouble deno = valuesMap.get(from);\n\t\tdouble nume = valuesMap.get(to);\n\t\tdouble ret = (nume / deno) * input;\n\t\treturn ret;\n\t}",
"public static void main(String[] args) {\n int myInt = 5;\n float myFloatValue = 5f / 3f;\n double myDoubleValue = 5d / 3f;\n System.out.println(\"my Int \" + myInt);\n System.out.println(\"my Int \" + myFloatValue);\n System.out.println(\"my Int \" + myDoubleValue);\n\n\n double numPounds = 200d;\n double converKil0 = numPounds * 0.45359237d;\n System.out.println(converKil0);\n\n double pi =3.14;\n }",
"public static double convertFahtoKel(double temp){\r\n return ((temp - 32) * 5) / 9 + 273;\r\n }",
"public static float pu2mw(float pwr) {return pwr*100F;}",
"public void calcular(View view) {\n int quilos = Integer.valueOf(editTextQuantidade.getText().toString());\n int total = (quilos *1000)/500;\n \n String message = \"Com \" + quilos + \"kg de chocolate da para fazer \" + total + \" ovos de 500g.\";\n textViewTotal.setText(message);\n }",
"public double convert(double amount, Unit u);",
"public static double footPoundsToElectronVolts(double num) { return (num*8.462*Math.exp(18)); }",
"private static float volumeToGain(int volume) {\n return (float) ((86.0206/100)*volume-80);\n }",
"public static double letterToMultiplier(final char value) {\n\t\tfinal double multiplier;\n\t\tswitch (value) {\n\t\tcase 'Z':\n\t\t\tmultiplier = 0.001;\n\t\t\tbreak;\n\t\tcase 'Y':\n\t\tcase 'R':\n\t\t\tmultiplier = 0.01;\n\t\t\tbreak;\n\t\tcase 'X':\n\t\tcase 'S':\n\t\t\tmultiplier = 0.1;\n\t\t\tbreak;\n\t\tcase 'A':\n\t\t\tmultiplier = 1.0;\n\t\t\tbreak;\n\t\tcase 'B':\n\t\tcase 'H':\n\t\t\tmultiplier = 10.;\n\t\t\tbreak;\n\t\tcase 'C':\n\t\t\tmultiplier = 100.;\n\t\t\tbreak;\n\t\tcase 'D':\n\t\t\tmultiplier = 1000.;\n\t\t\tbreak;\n\t\tcase 'E':\n\t\t\tmultiplier = 10000.;\n\t\t\tbreak;\n\t\tcase 'F':\n\t\t\tmultiplier = 100000.;\n\t\t\tbreak;\n\t\tdefault:\n\t\t\t// Unknown\n\t\t\tmultiplier = 0.0;\n\t\t\tbreak;\n\t\t}\n\t\treturn multiplier;\n\t}",
"private String soundConversion() {\n int reading = (record[18] & 255) + ((record[21] & 0x0C) << 6);\n return (reading * 100) / 1024 + \"\";\n }",
"public static Double convertMpsToKmh(double mps) {\n\t\treturn mps * 60 * 60 / 1000;\n\t}",
"private static String convertToFormat(int number) {\n int cents = number%100;\n number /= 100;\n return \"$\" + String.valueOf(number) + \".\" + String.valueOf(cents);\n }",
"public static double kmtoml(double km) {\n return km / mila;\n\n }",
"public String DaaToKa(double daa) {\n // ka = daa/100\n double ka = daa/100;\n return check_after_decimal_point(ka);\n }",
"@Override\r\n\tpublic Map<Character, Double> SetUnitPrice() {\r\n\t\tPricePerUnit.put('A', 1.25);\r\n\t\tPricePerUnit.put('B', 4.25);\r\n\t\tPricePerUnit.put('C', 1.00);\r\n\t\tPricePerUnit.put('D', 0.75);\r\n\t\treturn PricePerUnit;\r\n\t}",
"public static void printMegaByteAndKiloBytes (int kiloBytes) {\n int megabytes = 1024;\n int calculatedKiloBytes = kiloBytes / megabytes;\n\n if (kiloBytes < 0){\n System.out.println(\"Invalid Value\");\n } else {\n\n //Calculate the megabytes and remaining kilobytes\n int remainKilo = kiloBytes % 1024;\n\n\n //Format XX KB = YY MB and ZZ KB\n System.out.println(kiloBytes + \" KB = \" + calculatedKiloBytes + \" MB and \"\n + remainKilo + \" KB\");\n\n }\n\n\n }",
"public long getWeightKg() {\n return (long) (getWeight() / POUNDS_PER_KG);\n }",
"public static double convertCeltoKel(double temp){\r\n return temp + 273;\r\n }",
"public double convert(double input, int from, int to) {\n \t\tdouble sqMMeter;\n \n \t\tif (from == 0) {// Squaremillimeters\n \t\t\tsqMMeter = input;\n \t\t} else if (from == 1) { // Squarecentimeters\n \t\t\tsqMMeter = input * 100;\n \t\t} else if (from == 2) {// Squarefeet\n \t\t\tsqMMeter = input * 92903;\n \t\t} else if (from == 3) { // Squareinches\n \t\t\tsqMMeter = input * 645.2;\n \t\t} else { // Squareyards\n \t\t\tsqMMeter = input * 836127;\n \t\t}\n \n \t\t\n \t\tif (to == 0) {// Squaremillimeters\n\t\t\treturn input;\n \t\t} else if (to == 1) { // Squarecentimeters\n\t\t\treturn input / 100;\n \t\t} else if (to == 2) {// Squarefeet\n\t\t\treturn input / 92903;\n \t\t} else if (to == 3) { // Squareinches\n\t\t\treturn input / 645.2;\n \t\t} else { // Squareyards\n\t\t\treturn input / 836127;\n \t\t}\n \t}",
"public static double getKilometer(double number) {\n\t\tdouble asKilometer = 0;\n\n\t\tasKilometer = number * 1.6;\n\n\t\treturn asKilometer;\n\t}",
"public ArrayList<String> Mass(String from, float amount, String[] units) {\n\t\tfrom = findFrom(from);\n\t\tif (from.equals(\"gram\")) {\n\t\t\tArrayList<String> kaduvil = new ArrayList<String>();\n\t\t\tkaduvil.add(\"\" + amount + \" \" + units[0] );\n\t\t\tkaduvil.add(\"\" + amount / 1000 + \" \" + units[1] );\n\t\t\tkaduvil.add(\"\" + amount / 453.59237f + \" \" + units[2] );\n\t\t\treturn kaduvil;\n\t\t} else {\n\t\t\tif (from.equals(\"pounds\")) {\n\t\t\t\treturn Mass(\"gram\", amount * 453.59237f, units);\n\t\t\t} else {\n\t\t\t\treturn Mass(\"gram\", amount * 1000, units);\n\t\t\t}\n\t\t}\n\t}",
"public static double convertToFt(int in)\r\n {\n\r\n final int INCHES_PER_FOOT = 12;\r\n\r\n double feet = in / (double)INCHES_PER_FOOT;\r\n\r\n return feet;\r\n }",
"public static String decimal2Roman(int number) {\n\t\t//<write your code here>\n\t}",
"public static float weight(char c)\n\t{\n\tswitch(c)\n\t\t{\n case 'A': \n case 'T':\n case 'U': \n case 'G': \n case 'C': \n case 'a':\n case 't':\n case 'u': \n case 'g': \n case 'c': return 1f;\n\n case 'w': \n case 'W': \n\n case 's': \n case 'S': \n\n case 'y': \n case 'Y': \n\n case 'r': \n case 'R':\n\n case 'k':\n case 'K': \n\n case 'm': \n case 'M': return 0.5f;\n\n case 'b': \n case 'd': \n case 'h': \n case 'v': \n case 'B': \n case 'D': \n case 'H': \n case 'V': return 0.25f;\n\n case 'N':\n case 'n':\n\t\tdefault: return 0.f;\n\t\t}\n\t}",
"public static double inchesToCms(double inch)\n {\n return inch * INCH_PER_CM;\n }",
"public String KaToDa(double ka) {\n // da = 10000*ka\n double da = 10000*ka;\n return check_after_decimal_point(da);\n }",
"private String getResultUnit() {\n switch (mCalculationType) {\n case CONSUMPTION_L_100_KM:\n return \"l/100 km\";\n case CONSUMPTION_KM_L:\n return \"km/l\";\n case CONSUMPTION_MPG:\n return \"mpg\";\n default:\n return \"\";\n }\n }",
"public String KaToDaa(double ka) {\n // dal = 100*ka\n double daa = 100*ka;\n return check_after_decimal_point(daa);\n }",
"public String centsToDollar() {\n return partieEntier + \".\" +\n String.format(\"%02d\", partieFractionnaire) + \"$\";\n }",
"static double convert(double in) {\n return (in * 0.254);\n }",
"public int rubleToDollar(int value) {\n return value / DOLLAR;\n }",
"abstract String convertEnglishNumber(String number);",
"public static void main(String[] args) {\n int myIntValue = 5 / 2;\n float myFloatValue = 5f / 3f;\n //float myFloatValue = 5.4f; //f designates # as a float\n //float myFloatValue = (float) 5.4; ''casting''\n //defining literal values - double pi = 3_000_00.141592d; or double pi = 3.141592d\n double myDoubleValue = 5d / 3d;\n System.out.println(\"myIntValue = \" + myIntValue);\n System.out.println(\"myFloatValue = \" + myFloatValue);\n System.out.println(\"myDoubleValue = \" + myDoubleValue);\n\n /**Challenge - Convert a given # of pounds - lbs to kilograms kg\n * 1. Create a variable to store the # of lbs\n * 2. Calculate the # of kg's for the # above & store in a variable.\n * 3. Print out the results.\n * Notes: 1 lb = 0.45359237 kg\n */\n double myValueLbs = 145.5d; //variable to store lbs\n double myValueKgs = 0.45359237d;\n double myKgsConverted = myValueLbs * myValueKgs;\n System.out.println(\"Weight is myWeightValue \" + myKgsConverted);\n }",
"public static double convertToGrams(double Number, double gramConversion) {\n\t\treturn Number * gramConversion;\n\t}",
"public static double convertToGrams(double Number, double gramConversion) {\n\t\treturn Number * gramConversion;\n\t}",
"public String KaToCa(double ka) {\n // ca = 100000*ka\n double ca = 100000*ka;\n return check_after_decimal_point(ca);\n }",
"private String latitudeConversion() {\n int lat = record[1];\n if (lat >= 0) {\n lat = lat & 255;\n }\n lat = (lat << 8) + (record[0] & 255);\n float flat = Float.parseFloat((\"\" + lat + \".\" + (((record[3] & 255) << 8) + (record[2] & 255))));\n int degs = (int) flat / 100;\n float min = flat - degs * 100;\n String retVal = \"\" + (degs + min / 60);\n\n if (retVal.compareTo(\"200.0\") == 0) {\n return \"\";\n } else {\n return retVal;\n }\n }",
"public static double millimetersToInches(double millimeters) {\n return millimeters / 25.4;\n }",
"private void weightConverter(){\n poundWeight.setOnFocusChangeListener(new View.OnFocusChangeListener() {\n @Override\n public void onFocusChange(View v, boolean hasFocus) {\n if (hasFocus) {\n poundWeight.setHint(\" \");\n }\n }\n });\n\n //change the hint based of slider position\n xmlSwitch.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n if (isChecked) {\n switchCheck = true;\n poundWeight.setHint(\"Pounds\");\n } else {\n switchCheck = false;\n poundWeight.setHint(\"Kilograms\");\n }\n }\n });\n\n // calculate either pounds or kgs based on slider position\n submit1.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n\n if (view != null) {\n InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);\n imm.hideSoftInputFromWindow(view.getWindowToken(), 0);\n }\n\n if(!switchCheck) {\n\n poundCalc = Double.valueOf( poundWeight.getText().toString());\n\n convertedWeight = poundCalc * 2.20462;\n\n lastDigit = (int) convertedWeight; // get the last digit as well as the decimals\n\n // show the picture of the weight\n image.setVisibility(View.VISIBLE);\n\n result.setText((df.format(lastDigit)) + \"Lb\" + \"\\n\");\n result.setTextSize(80);\n\n }\n else{\n\n poundCalc = Double.valueOf(poundWeight.getText().toString());\n\n convertedWeight = poundCalc / 2.20462;\n\n lastDigit = (int) convertedWeight; // get the last digit as well as the decimals\n\n // show the picture of the weight\n image.setVisibility(View.VISIBLE);\n\n result.setText((df.format(lastDigit)) + \"Kg\" + \"\\n\");\n result.setTextSize(80);\n }\n\n }\n });\n\n }",
"public static void main(String[] args) {\n \n \n Scanner scan = new Scanner(System.in);\n \n System.out.println(\" Enter a number of inches pls!\");\n int num1 = scan.nextInt();\n \n System.out.println(num1 + \"in is \" + (num1 / 12) + \"ft converted!\");\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n }",
"public void convert(View v){\n EditText etUSD = findViewById(R.id.etUSD);\n EditText etLKR = findViewById(R.id.etLKR);\n\n //Get text From usd TextField\n String text= etUSD.getText().toString();\n //Convert Text To Double\n double usd = Double.parseDouble(text);\n\n // Convert to LKR\n double lkr = usd*195;\n //convert double to string\n String lkrText = String.valueOf(lkr);\n\n //Set lkrTest Value to Test Field\n etLKR.setText(lkrText);\n\n\n\n }",
"public static void printconversion(double kilometersperhour) {\n\n if (kilometersperhour < 0) {\n System.out.println(\"invalid value\");\n } else {\n long milesperhour = tomilesperhour(kilometersperhour);\n System.out.println(kilometersperhour + \" km/h = \" + milesperhour + \" mi/h \");\n\n }\n }",
"public String convertAmount(long num) {\n String sign = \"\";\n if (num == 0){\n return \"zero\"; \n }\n else if (num < 0) {\n // if number negative, making it as positive number and saving the sign in the variable\n num = -num;\n sign = \"Negative\";\n }\n \n String inWords = \"\";\n int place = 0;\n \n // do this for every set of 3 digits from right till your left with northing\n do {\n // get the right most 3 numbers \n long n = num % 1000;\n // check if it not 0\n if (n != 0){\n // call the changeUptoThousand for the 3 digit number\n String s = changeUptoThousand((int) n);\n // add the appropriate word from thousand \n inWords = s + specialdigitNames[place] + inWords;\n }\n place++;\n //change the number leaving the right most 3 digits whic are processed above\n num /= 1000;\n } \n while (num > 0);\n // add the sign and the number\n return (sign + inWords).trim();\n }",
"public static String getConvertUptoHundreds(int number) {\r\n\t String current;\r\n\t \r\n\t if (number % 100 < 20){\r\n\t current = NumberPrinterConstant.NUMBERS[number % 100];\r\n\t number /= 100;\r\n\t }\r\n\t else {\r\n\t current = NumberPrinterConstant.NUMBERS[number % 10];\r\n\t number /= 10;\r\n\t \r\n\t current = NumberPrinterConstant.TENS[number % 10] + current;\r\n\t number /= 10;\r\n\t }\r\n\t if (number == 0) return current;\r\n\t return NumberPrinterConstant.NUMBERS[number] + NumberPrinterConstant.HUNDRED + current;\r\n\t }",
"public static double inchToMeter(final double inch) {\n return inch * METERS_PER_INCH;\n }",
"public static String cashInWords (Double cash) {\n String s = \"\";\n int cashInCents = (BigDecimal.valueOf(cash).movePointRight(2)).intValue();\n int hrivna = cash.intValue();\n int cop = cashInCents%100;\n if (hrivna/1000000>=1) s+=ch999(hrivna / 1000000, \"million \");\n if (hrivna%1000000/1000>=1) s+=ch999(hrivna % 1000000 / 1000, \"thousand \");\n if (hrivna%1000000%1000>=1) s+=ch999(hrivna % 1000000 % 1000, \"\");\n if (hrivna>0) s+=\"hryvnas \";\n if (hrivna>0&&cop>0) s+=\"and \";\n if (cop>0) s+=ch999(cop, \"cop.\");\n\n return s;\n }",
"public void setWeight(double pounds) {\n if (pounds >= 80 && pounds <= 280)\n this.weight = pounds;\n }",
"public double getGuppyVolumeRequirementInLitres() {\n double volumeNeededInML = 0.0;\n Iterator<Guppy> it = guppiesInPool.iterator();\n\n while (it.hasNext()) { /*get volume in mL for each guppy*/\n Guppy currentGuppy = it.next();\n volumeNeededInML += currentGuppy.getVolumeNeeded();\n }\n return volumeNeededInML / ML_TO_L_CONVERSION; /*convert to litres*/\n }",
"static public double toGramPerCmSqr(double x) {\n return (x * FromSI.GRAM) / (FromSI.CM * FromSI.CM);\n }",
"public static void main(String[] args) {\n int myIntValue = 5 / 3;\r\n float myFloatValue = 5f / 3f;\r\n double myDoubleValue = 5d / 3f;\r\n\r\n System.out.println(\"myIntValue = \" + myIntValue);\r\n System.out.println(\"myFloatValue = \" + myFloatValue);\r\n System.out.println(\"myDoubleValue = \" + myDoubleValue);\r\n\r\n // challenge\r\n\r\n double myPounds = 200d;\r\n double myTotalKg = 0.45359237 * myPounds;\r\n System.out.println(myTotalKg);\r\n\r\n }",
"public String getFormattedPrice() {\n NumberFormat ukFormat = NumberFormat.getCurrencyInstance(Locale.UK);\n ukFormat.setMinimumFractionDigits(2);\n ukFormat.setMaximumFractionDigits(2);\n BigDecimal result = new BigDecimal(\"0.00\");\n if (baseSize != null) {\n result = baseSize.getPrice();\n Double multiplier = baseSize.getMultiplier();\n for (ToppingEntity topping : toppings) {\n topping.setMultiplier(multiplier);\n result = result.add(topping.getPrice());\n }\n }\n return ukFormat.format(result.doubleValue());\n }",
"public int dollarToRuble(int value) {\n return value * DOLLAR;\n }",
"public int euroToRuble(int value) {\n return value * EURO;\n }",
"public static String milToStandard(int milTime){\n\n String output;\n int tempHours = milTime / 100;\n String ampm;\n if(tempHours - 12 < 0){\n if(tempHours == 0){tempHours = 12;}\n ampm = \"AM\";\n }\n else{\n tempHours = tempHours - 12;\n if(tempHours == 0){tempHours = 12;}\n ampm = \"PM\";\n }\n output = tempHours+\":\";\n int tempMins = milTime % 100;\n if(tempMins < 10){ output = output + \"0\" + tempMins + ampm;}\n else{ output = output + tempMins + ampm;}\n\n return output;\n\n }",
"@Override\r\n\tpublic double convert(double number) {\n\t\tfinal double value=0.08333;\r\n\t\treturn number*value;\r\n\t}"
] | [
"0.8356926",
"0.69880646",
"0.63949484",
"0.6315854",
"0.62080437",
"0.60171735",
"0.5914137",
"0.5899393",
"0.5863306",
"0.58019674",
"0.57990324",
"0.57833076",
"0.5746524",
"0.5689889",
"0.5689889",
"0.56754154",
"0.56245536",
"0.561527",
"0.5597566",
"0.55777586",
"0.5571969",
"0.5549726",
"0.54969656",
"0.5489511",
"0.54865927",
"0.54755783",
"0.5473663",
"0.5467099",
"0.54667896",
"0.54495704",
"0.5368682",
"0.5358133",
"0.53435594",
"0.53161323",
"0.53098303",
"0.5308583",
"0.53071344",
"0.5293478",
"0.5289833",
"0.52897245",
"0.52086604",
"0.519977",
"0.51969045",
"0.51933986",
"0.5183093",
"0.5164923",
"0.5143808",
"0.51399505",
"0.51342684",
"0.51339006",
"0.5130355",
"0.5123017",
"0.51107115",
"0.51095587",
"0.5104186",
"0.51023376",
"0.5097198",
"0.50848293",
"0.5079662",
"0.50704825",
"0.5053583",
"0.50535077",
"0.50486916",
"0.5045506",
"0.5041248",
"0.5033632",
"0.503303",
"0.50313914",
"0.50024956",
"0.49935585",
"0.49909714",
"0.4990725",
"0.49906904",
"0.49824432",
"0.4982018",
"0.49786043",
"0.4976154",
"0.49603263",
"0.4940326",
"0.49297747",
"0.49297747",
"0.4924931",
"0.4924331",
"0.4918249",
"0.49175254",
"0.49012297",
"0.49007127",
"0.48974204",
"0.48862845",
"0.48827258",
"0.48722798",
"0.48650116",
"0.48636517",
"0.48636487",
"0.4863212",
"0.4857814",
"0.4856718",
"0.48551938",
"0.4844396",
"0.48379934",
"0.48360598"
] | 0.0 | -1 |
Get do atributo bloco. | public int getBloco() {
return bloco;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Attributes getAttributes();",
"public String getMetodoObtemSqlite(AtributoEntidade atributo) {\n\t\treturn getMetodoObtemSqlite(atributo.getTipo());\n\t}",
"java.lang.String getAttribute();",
"String getAttribute();",
"public String getattribut() \n\t{\n\t\treturn attribut;\n\t}",
"public abstract java.lang.String getAcma_descripcion();",
"String getEtiqueta();",
"public MapeadorAtributos getMapeadorAtributos();",
"Attribute getAttribute();",
"public String getEtiqueta()\n/* 27: */ {\n/* 28:41 */ return this.etiqueta;\n/* 29: */ }",
"Map<String, String> getAttributes();",
"com.google.protobuf.ByteString getAttributeBytes();",
"IAttributes getAttributes();",
"Map<String, Object> getAttributes();",
"Map<String, Object> getAttributes();",
"Map<String, Object> getAttributes();",
"Pair<String, String> getAdditionalAttribute();",
"private String getCustomAttributes() {\n StringBuilder sb = new StringBuilder();\n\n customAttribute.forEach((key, value) -> {\n sb.append(key).append(\"='\").append(value).append(\"' \");\n });\n\n return sb.toString().trim();\n }",
"public int getAnio() { return this.anio; }",
"Atributo createAtributo();",
"Object getAttribute(int attribute);",
"public abstract java.lang.String getAcma_valor();",
"@Override//sobrescribir metodo\n public String getDescripcion(){\n return hamburguesa.getDescripcion()+\" + lechuga\";//retorna descripcion del oobj hamburguesa y le agrega +lechuga\n }",
"public String getAtributoSom(String idSom, String atributo) throws AtributoInvalidoException, AtributoInexistenteException, PostException {\r\n\t\treturn gerenciaSons.getAtributoSom(idSom, atributo);\r\n\t}",
"public int getAnio(){\r\n \r\n \r\n return this.anio;\r\n \r\n }",
"public int getAtt(){ \r\n return att;\r\n }",
"public ListaAttributi getExtra() {\r\n return this.extra;\r\n }",
"public int getTipoAtaque(){return tipoAtaque;}",
"public String getIcao() { return Icao; }",
"public String getIdtipobulto()\n {\n return (String)getAttributeInternal(IDTIPOBULTO);\n }",
"public Set<String> Atributos()\n {\n return this.repositorio.keySet();\n }",
"public int getAno(){\n return ano;\n }",
"java.lang.String getAdresa();",
"public String getAttr() {\n return attr;\n }",
"public abstract Map<String, Object> getAttributes();",
"private byte attributes() {\n return (byte) buffer.getShort(ATTRIBUTES_OFFSET);\n }",
"public String getStringAttribute();",
"public java.lang.String getCodigo_agencia();",
"public String balar() {\r\n return this.SONIDO;\r\n }",
"public Object attribute(String name) {\n return Classes.getFieldValue(this, name);\n }",
"public Map<String, Object> getAttrs();",
"public List<Attribute> buscarTodas() {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n Query query = em.createQuery(\"from Attribute As a\");\r\n return query.getResultList();\r\n }",
"public String attribute() {\n return this.attribute;\n }",
"String attributeToGetter(String name);",
"public Map<String, String> getAttributes();",
"public String getAttributeValue(int id) {\n Attribute attr = super.findById(id, false);\n if (attr != null ) {\n return attr.getValue();\n } else {\n return \"unknown attribute\";\n }\n }",
"final private com.org.multigear.mginterface.engine.Configuration.Attr getAttr(final String name) {\r\n\t\tfor(final Attr attr : mAttributes) {\r\n\t\t\tif(attr.Name.equals(name))\r\n\t\t\t\treturn attr;\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"private String getAttrValue(Object name) {\n\t return (String)this.mAtts.get(name);//.toString();\n\t}",
"public Object getProperty(String attName);",
"public List<TLAttribute> getAttributes();",
"public String getApodo(){\n\t\treturn apodo;\n\t}",
"String getControllingAttributeName();",
"RakudoObject get_attribute(ThreadContext tc, RakudoObject object, RakudoObject classHandle, String name);",
"public Map<String, Object> getAttributes();",
"public Map<String, Object> getAttributes();",
"public org.omg.uml.foundation.core.Attribute getAttribute();",
"public String getTipo(){\r\n return Tipo;\r\n }",
"public String getAzione() {\n return azione;\n }",
"public String getNombreLibro()\n {\n return nombre;\n }",
"public NodoCaracter getArbolRaiz() {\n return inicio;\n }",
"Objet getObjetAlloue();",
"public String getnome()\n {\n return this.nome;\n }",
"public GenericAttribute getAttribute () {\n return attribute;\n }",
"public String getApellido(){\n return this.apellido;\n }",
"Object getAttribute(String name);",
"Object getAttribute(String name);",
"Object getAttribute(String name);",
"@Override\n\t@Field(offset=214, length=8, paddingChar=' ', align=Align.LEFT)\n\tpublic String getMotivoOcorrencia() {\n\t\treturn super.getMotivoOcorrencia();\n\t}",
"public abstract java.lang.String getAcma_cierre();",
"public Object getAttribute(String name);",
"@Override\n\tpublic String getObjetivo() {\n\t\treturn model.getObjetivo();\n\t}",
"public abstract ImportAttributes getAttributes();",
"public String obtenerDescripcionAtaque(){\n\treturn descripcionAtaque;\n }",
"public String getDescricao();",
"BalloonAttributes getAttributes();",
"public String getNome(){\r\n return this.nome;\r\n }",
"public String getComentario () {\n return comentario;\n }",
"public String getNivel()\r\n/* 249: */ {\r\n/* 250:278 */ return this.nivel;\r\n/* 251: */ }",
"public String getAttribute(String name);",
"public String getRazaN(){\n return razaP1.nombre1();\n }",
"public String getLasagna(){\n return \"ID: \"+this.ID+\"\\nNombre: \"+this.nombre+\"\\nTipo: \"+this.tipo+\"\\nPrecio: \"+this.precio; //Devuelve todos los datos de la lasagna\n }",
"public String getNome(){\n return this.nome;\n }",
"public abstract Map getAttributes();",
"public Byte getByteAttribute();",
"public int getAnnoCorso() {\r\n return this.annoCorso;\r\n }",
"ArrayList getAttributes();",
"public int getArmadura(){return armadura;}",
"public String getNome () { return this.nome; }",
"@Override // Métodos que fazem a anulação\n\tpublic void getBonificação() {\n\t\t\n\t}",
"public Integer getIntegerAttribute();",
"public String getARo() {\r\n return aRo;\r\n }",
"public int getVelocidadBala() {\n return velocidadBala;\n }",
"public String getTelefono(){\n return telefono;\n }",
"public String getnombre(){\n return nombre;\n }",
"String getExtra();",
"public abstract java.lang.String getApellido();",
"public java.lang.String getBloqueado(){\n return localBloqueado;\n }",
"@Override\n\tpublic String getComunidadAutonoma() {\n\t\treturn model.getComunidadAutonoma();\n\t}",
"private Attributes getAttributes()\r\n\t{\r\n\t return attributes;\r\n\t}",
"public String getMarca(){\n return marca;\n }"
] | [
"0.6331066",
"0.6305742",
"0.61470336",
"0.6143391",
"0.6112528",
"0.60927665",
"0.6023578",
"0.59916",
"0.5967461",
"0.596067",
"0.59139806",
"0.5909268",
"0.5871308",
"0.5868795",
"0.5868795",
"0.5868795",
"0.5865793",
"0.5810796",
"0.57767314",
"0.57685155",
"0.57582843",
"0.5751586",
"0.5746291",
"0.5735131",
"0.5728703",
"0.5728335",
"0.57233536",
"0.57156515",
"0.5710875",
"0.5698447",
"0.5689911",
"0.5672852",
"0.5670939",
"0.5665919",
"0.5658043",
"0.5655275",
"0.56349313",
"0.5632984",
"0.56310445",
"0.56179446",
"0.5613827",
"0.560772",
"0.5598697",
"0.5598314",
"0.559557",
"0.558264",
"0.5575337",
"0.5569298",
"0.5562937",
"0.5554857",
"0.5548273",
"0.554769",
"0.554358",
"0.55402",
"0.55402",
"0.5535042",
"0.5530428",
"0.5529422",
"0.552297",
"0.55216986",
"0.551444",
"0.55140823",
"0.55137074",
"0.55108577",
"0.5507535",
"0.5507535",
"0.5507535",
"0.5504553",
"0.55027664",
"0.55024034",
"0.5498567",
"0.5490587",
"0.54841185",
"0.54754686",
"0.54681164",
"0.5459624",
"0.54545456",
"0.5454337",
"0.5449699",
"0.5448787",
"0.54469603",
"0.5446846",
"0.543904",
"0.5435171",
"0.5432488",
"0.5425729",
"0.542412",
"0.54155767",
"0.5415315",
"0.54122454",
"0.5406239",
"0.53976685",
"0.5389715",
"0.53892547",
"0.53871846",
"0.5385808",
"0.53837806",
"0.5382628",
"0.5369728",
"0.5368927"
] | 0.5614175 | 40 |
Get do atributo nome. | public String getNome() {
return nome;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String nome() {\n\t\treturn this.nome;\n\t}",
"public String getNome()\r\n\t{\r\n\t\treturn nome;\r\n\t}",
"public String getNome()\r\n\t{\r\n\t\treturn nome;\r\n\t}",
"public String getNome() {\r\n return nome;\r\n }",
"public String getNome() {\r\n return nome;\r\n }",
"String getNome();",
"public String getNome(){\n\t\treturn nome;\n\t}",
"public String getNome() {\n return nome;\n }",
"public String getNome() {\n return nome;\n }",
"public String getNome() {\n return nome;\n }",
"public String getNome() {\n return nome;\n }",
"public String getNome() {\n return nome;\n }",
"public String getNome() {\n return nome;\n }",
"public String getNome() {\n\t\treturn this.nome;\r\n\t}",
"public String getNome() {\n return this.nome;\n }",
"public String getNome();",
"public String getNome() {\n\t\treturn nome;\n\t}",
"public String getNome() {\n\t\treturn nome;\n\t}",
"public String getNome() {\n\t\treturn nome;\n\t}",
"public String getNome() {\n\t\treturn nome;\n\t}",
"public String getNome() {\n\t\treturn nome;\n\t}",
"public String getNome() {\n\t\treturn nome;\n\t}",
"public String getNome() {\n\t\treturn nome;\n\t}",
"public String getNome() {\n\t\treturn nome;\n\t}",
"public String getNome() {\n\t\treturn nome;\n\t}",
"public String getNome() {\n\t\treturn this.nome;\n\t}",
"public String getNome() {\n\t\treturn this.nome;\n\t}",
"public String getNome()\n {\n return this.nome;\n }",
"public Object getNome() {\n\t\treturn null;\n\t}",
"public String getNome(){\r\n return nome;\r\n }",
"public String getnome()\n {\n return this.nome;\n }",
"public String getNome () { return this.nome; }",
"public String getNome(){\r\n return this.nome;\r\n }",
"@Override\n\t\t\tpublic String toString() {\n\t\t\t\treturn nome;\n\t\t\t}",
"public String getNome(){\n return this.nome;\n }",
"public String getNomeAmigo() {\n\t\treturn nomeAmigo;\n\t}",
"@Override\n\t@Field(offset=149, length=30, paddingChar=' ', align=Align.RIGHT)\n\tpublic String getNomeSacado() {\n\t\treturn super.getNomeSacado();\n\t}",
"String getUltimoNome();",
"@Override\n\tpublic String getNome() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String getNome() {\n\t\treturn null;\n\t}",
"public String getName() {\n return aao.getName();\n }",
"public String getCognomeNome() {\n\t\treturn this.cognome + \" \" + this.nome;\n\t}",
"String getPrimeiroNome();",
"public String getName() {\n return this.id + \", \" + this.nom + \" \" + this.prenom + \", \" + this.cin;\n }",
"public String getNome(){\n return preferencias.getString(CHAVE_NOME, null);\n }",
"public String getNom();",
"@Override\n\tpublic String getName() {\n\t\treturn (String) attributes.get(\"name\");\n\t}",
"public String getNomeAluno() {\n\t\treturn nomeAluno;\n\t}",
"public String getName(){\n\n //returns the value of the name field\n return this.name;\n }",
"@Override\n\tpublic String getName() {\n\t\treturn nombre;\n\t}",
"public String lerNome() {\n\t\treturn JOptionPane.showInputDialog(\"Digite seu Nome:\");\n\t\t// janela de entrada\n\t}",
"@Override\n public String getNom() {\n return nom;\n }",
"public String getNomeArquivo(){\n \n return nomeArquivo;\n }",
"public String getNom(){\n\t\treturn this.nom;\n\t}",
"public String getNomor() {\n return this.nomor;\n }",
"PropertyName getName();",
"public String getNomeAzienda() {\r\n\t\treturn nomeAzienda;\r\n\t}",
"public String getnombre(){\n return nombre;\n }",
"public String getNom() {\r\n return nom;\r\n }",
"public String getNom () {\n return nom;\n }",
"public String getNombre() {\n return this._nombre;\n }",
"public String getNom() {\r\n return nom;\r\n }",
"public String getNom() {\n\treturn this.nom;\n }",
"public String getNom() {\n\treturn this.nom;\n }",
"public String getName() {return this.name.getText();}",
"@AutoEscape\n\tpublic String getNomDistrito();",
"public String getNom() {\r\n return nom;\r\n }",
"public String getNom() {\r\n return nom;\r\n }",
"public String getNombre(){\n\treturn this.nombre;\n }",
"public String getName() { return (String)get(\"Name\"); }",
"public String getNombre() {\n return this.nombre;\n }",
"public void setNome(String nome) {\r\n this.nome = nome;\r\n }",
"public void setNome(String nome) {\r\n this.nome = nome;\r\n }",
"String getAttributeName(Object attr);",
"public String getNombre() {\r\n return nombre;\r\n }",
"public String getNombre() {\r\n return nombre;\r\n }",
"public String getNombre() {\r\n return nombre;\r\n }",
"public String getNombre() {\r\n return nombre;\r\n }",
"public String getNombre() {\r\n return nombre;\r\n }",
"public String getNombre() {\r\n return nombre;\r\n }",
"String getPropertyName();",
"public String getNombre()\r\n {\r\n return nombre;\r\n }",
"public String getNom() {\n return nom;\n }",
"public String getNom() {\n return nom;\n }",
"public String getNom() {\n return nom;\n }",
"public String getNom() {\n return nom;\n }",
"public String getNom() {\n return nom;\n }",
"public String getNom() {\n return nom;\n }",
"public String getNom() {\n return nom;\n }",
"String getName() ;",
"public String getNome() {\n\t\treturn this.disciplina;\n\t}",
"@Override\n\tpublic String getNombre() {\n\t\treturn nombre;\n\t}",
"public static String getBiblioNombre() {\n\t\treturn \"nombre\";\n\t}",
"public java.lang.String getNombre()\r\n {\r\n return this.nombre;\r\n }",
"public String getNombre () {\n return nombre;\n }",
"public String getMetodoObtemSqlite(AtributoEntidade atributo) {\n\t\treturn getMetodoObtemSqlite(atributo.getTipo());\n\t}",
"public String getNom() {\n\t\treturn this.nom;\r\n\t\t}",
"public void setNome(String nome) {\n this.nome = nome;\n }",
"public void setNome(String nome) {\n this.nome = nome;\n }"
] | [
"0.72566915",
"0.72546786",
"0.72546786",
"0.7225827",
"0.7225827",
"0.7215542",
"0.7169959",
"0.7135779",
"0.7135779",
"0.7135779",
"0.7135779",
"0.7135779",
"0.7135779",
"0.71015894",
"0.709411",
"0.7092648",
"0.70561177",
"0.70561177",
"0.70561177",
"0.70561177",
"0.70561177",
"0.70561177",
"0.70561177",
"0.70561177",
"0.70561177",
"0.700969",
"0.700969",
"0.69720834",
"0.6931606",
"0.68928194",
"0.68895745",
"0.6849357",
"0.6815367",
"0.6794809",
"0.676397",
"0.6758561",
"0.6729727",
"0.6714877",
"0.6703847",
"0.6703847",
"0.6683375",
"0.66503376",
"0.66310763",
"0.6610975",
"0.6608673",
"0.65728813",
"0.65671045",
"0.6566789",
"0.6509442",
"0.64898515",
"0.6464649",
"0.64239866",
"0.6403506",
"0.64028883",
"0.63915056",
"0.63878334",
"0.63850117",
"0.6381344",
"0.6378502",
"0.63667685",
"0.6349084",
"0.6348649",
"0.63369787",
"0.63369787",
"0.6331578",
"0.63281095",
"0.6325895",
"0.6325895",
"0.6323607",
"0.63189924",
"0.6291002",
"0.62746054",
"0.62746054",
"0.62687707",
"0.62682",
"0.62682",
"0.62682",
"0.62682",
"0.62682",
"0.62682",
"0.62612206",
"0.6260039",
"0.6258217",
"0.6258217",
"0.6258217",
"0.6258217",
"0.6258217",
"0.6258217",
"0.6258217",
"0.6257976",
"0.6253807",
"0.6251214",
"0.6251197",
"0.624912",
"0.6246911",
"0.6246032",
"0.6244663",
"0.6243574",
"0.6243574"
] | 0.71255857 | 14 |
dummy implementation do nothing | @Override
protected void onHubRequest(Tuple input) throws Exception {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void dummyTest(){}",
"public static void dummyTest(){}",
"public void doNothing(){\n\t}",
"public static void doNothing(){\n\t}",
"public void doit() {\n // Do nothing\n }",
"public void testDummy() {\n }",
"public void testDummy() {\n }",
"public void testDummy()\n {\n }",
"public void smell() {\n\t\t\n\t}",
"private Helper() {\r\n // do nothing\r\n }",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"public void nullstill();",
"T noHook();",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tpublic void just() {\n\t\t\r\n\t}",
"protected static Tool doNothing() {\n return DoNothingTool.INSTANCE;\n }",
"@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}",
"default boolean isSpecial() { return false; }",
"public final void mo51373a() {\n }",
"private stendhal() {\n\t}",
"private final void i() {\n }",
"protected void nop() throws Exception {\n reply_ok();\n }",
"@Override\n public void visit(NoOpNode noOpNode) {\n }",
"protected void h() {}",
"private void test() {\n\n\t}",
"protected void initialize() {\n \t// literally do nothing\n }",
"@Override\n public int f() {\n return 0;\n }",
"public abstract void makeEmpty();",
"@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}",
"public Fun_yet_extremely_useless()\n {\n\n }",
"@Override public void action() {\n //Do Nothing\n assert(checkRep());\n }",
"@Override\r\n\tpublic void simulate() {\n\t\t\r\n\t}",
"private Default()\n {}",
"public void swrap() throws NoUnusedObjectExeption;",
"public abstract void mo56925d();",
"public DummyTrxLogic() {\r\n }",
"public abstract void mo70713b();",
"@Override\n\tprotected Object run() {\n\t\treturn null;\n\t}",
"@Override\n public void perish() {\n \n }",
"public void clear() {\n/* 41 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@SuppressWarnings(\"PMD.EmptyMethodInAbstractClassShouldBeAbstract\")\n protected void prepareForSetAnswer() {\n // Default implementation does nothing.\n }",
"public abstract Object mo26777y();",
"protected Doodler() {\n\t}",
"public abstract void mo42329d();",
"@Override\n\tpublic void some() {\n\t\t\n\t}",
"public void zero();",
"public void testDummy() {\n \t\tassertTrue(true);\r\n \t}",
"@Override\r\npublic int method() {\n\treturn 0;\r\n}",
"public void testBlah() {\n // nothing\n }",
"@Override\n public void reset() \n {\n\n }",
"@Override\n public void test() {\n \n }",
"@Override\r\n\t\t\tpublic void reset() {\n\t\t\t\t\r\n\t\t\t}",
"protected void doManaged() {\n // default is no-op\n }",
"public void testDummy() {\n\t\tassertTrue(true);\n\t}",
"protected TestBench() {}",
"@Override\n public Object preProcess() {\n return null;\n }",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tno();\n\t\t\t\t}",
"public None()\n {\n \n }",
"public abstract void mo6549b();",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"private test5() {\r\n\t\r\n\t}",
"@Override\n\t\tprotected void reset()\n\t\t{\n\t\t}",
"public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }",
"@Override\n public Void visitUnknown(TypeMirror t, Void p) {\n return defaultAction(t, p);\n }",
"public abstract void mo35054b();",
"private PrintUtilities()\n {\n // Do nothing.\n }",
"@Override\n\tpublic void test() {\n\t\t\n\t}",
"public final /* bridge */ /* synthetic */ void mo43566a() {\n super.mo43566a();\n }",
"@Override\n\tpublic void doIt() {\n\t\t\n\t}",
"@Override\r\n\tpublic void reset()\r\n\t{\r\n\t}",
"@Override\n public void reset() {\n }",
"@Override\n public void func_104112_b() {\n \n }",
"void unavailable();",
"void unavailable();",
"@Override\n\tpublic void dosomething() {\n\t\t\n\t}",
"public void wild(){\n\t}",
"public static PacketSource makeDummy() {\n\treturn new DummySource();\n }",
"private DiscretePotentialOperations() {\r\n\t}",
"public abstract void mo27386d();",
"@Override\r\n\tpublic void reset() {\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"void doDummyComputation() {\n\t\tlong dummyValue = 0;\n\t\t// We use a random number and a subsequent check to avoid smart\n\t\t// compilers\n\t\tRandom rand = new Random();\n\t\tint seed = rand.nextInt(10) + 1;\n\t\tfor (int i = 0; i < 10000000; i++) {\n\t\t\tdummyValue = 10 + ((31 * (dummyValue + seed)) % 1234567);\n\t\t}\n\t\tif (dummyValue < 10) {\n\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\"This never happens, but let's pretend the value matters to avoid this being complied away.\");\n\t\t}\n\t\ttry {\n\t\t\tThread.sleep(50);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public DummyTestResult() {\n this.testContext = null;\n }",
"@Override\n protected void prot() {\n }",
"@Override\n\t\t\tpublic String run() {\n\t\t\t\treturn null;\n\t\t\t}",
"@Override\n\tpublic void reset() {\n\t}",
"@Override\n\tpublic void realFun() {\n\n\t}",
"@Override\n\tpublic boolean test() {\n\t\treturn false;\n\t}",
"@Override\n public void reset() {\n\n }",
"public void noReturn() {\n\t\tSystem.out.println(\"noReturn method will not returing any thing\");\n\t}",
"private Mocks() { }",
"void bypass();",
"private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}",
"private void Nice(){\n }",
"@Override\n\tpublic void reset() {\n\t\t\n\t}",
"@Override\n\tpublic void reset() {\n\t\t\n\t}",
"protected CodeStub() {\n entry = new Label();\n continuation = new Label();\n }"
] | [
"0.7298949",
"0.7298949",
"0.7265471",
"0.70656544",
"0.6671524",
"0.6546154",
"0.6478657",
"0.64328635",
"0.6235061",
"0.62333435",
"0.62195814",
"0.616767",
"0.6160684",
"0.6112396",
"0.6063163",
"0.60586023",
"0.60532",
"0.60100365",
"0.60083914",
"0.60034335",
"0.60026014",
"0.59937775",
"0.597276",
"0.5971575",
"0.5970117",
"0.59575963",
"0.5954244",
"0.59524953",
"0.59498054",
"0.59378904",
"0.5914654",
"0.59079444",
"0.5907523",
"0.59010565",
"0.58864546",
"0.58826685",
"0.5880907",
"0.58804345",
"0.5877878",
"0.58703434",
"0.5869601",
"0.5865606",
"0.5863582",
"0.5861796",
"0.5859153",
"0.5858736",
"0.58578986",
"0.585445",
"0.58460677",
"0.5843541",
"0.5841599",
"0.5841161",
"0.58409303",
"0.58408517",
"0.58404404",
"0.5838378",
"0.5838133",
"0.58344316",
"0.5831543",
"0.5826143",
"0.5821466",
"0.5821466",
"0.5821466",
"0.5821466",
"0.5819665",
"0.58195174",
"0.58182615",
"0.58165693",
"0.581593",
"0.5807956",
"0.5803876",
"0.58034134",
"0.57988006",
"0.5797296",
"0.57905984",
"0.5782047",
"0.5778543",
"0.5778543",
"0.5777844",
"0.57772046",
"0.5770565",
"0.57648456",
"0.5762575",
"0.5758314",
"0.57534224",
"0.5748022",
"0.5745753",
"0.5744874",
"0.57441306",
"0.574171",
"0.5740143",
"0.573973",
"0.5738405",
"0.57382786",
"0.5732078",
"0.5728532",
"0.57276726",
"0.5727509",
"0.5726424",
"0.5726424",
"0.5724455"
] | 0.0 | -1 |
dummy implementation do nothing | @Override
protected void onRequestTimeout(Tuple request) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void dummyTest(){}",
"public static void dummyTest(){}",
"public void doNothing(){\n\t}",
"public static void doNothing(){\n\t}",
"public void doit() {\n // Do nothing\n }",
"public void testDummy() {\n }",
"public void testDummy() {\n }",
"public void testDummy()\n {\n }",
"public void smell() {\n\t\t\n\t}",
"private Helper() {\r\n // do nothing\r\n }",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"public void nullstill();",
"T noHook();",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tpublic void just() {\n\t\t\r\n\t}",
"protected static Tool doNothing() {\n return DoNothingTool.INSTANCE;\n }",
"@Override\n\tpublic void insertDummyData() {\n\t\t\n\t}",
"default boolean isSpecial() { return false; }",
"public final void mo51373a() {\n }",
"private stendhal() {\n\t}",
"private final void i() {\n }",
"protected void nop() throws Exception {\n reply_ok();\n }",
"@Override\n public void visit(NoOpNode noOpNode) {\n }",
"protected void h() {}",
"private void test() {\n\n\t}",
"protected void initialize() {\n \t// literally do nothing\n }",
"@Override\n public int f() {\n return 0;\n }",
"public abstract void makeEmpty();",
"@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}",
"public Fun_yet_extremely_useless()\n {\n\n }",
"@Override public void action() {\n //Do Nothing\n assert(checkRep());\n }",
"@Override\r\n\tpublic void simulate() {\n\t\t\r\n\t}",
"private Default()\n {}",
"public void swrap() throws NoUnusedObjectExeption;",
"public abstract void mo56925d();",
"public DummyTrxLogic() {\r\n }",
"public abstract void mo70713b();",
"@Override\n\tprotected Object run() {\n\t\treturn null;\n\t}",
"@Override\n public void perish() {\n \n }",
"public void clear() {\n/* 41 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@SuppressWarnings(\"PMD.EmptyMethodInAbstractClassShouldBeAbstract\")\n protected void prepareForSetAnswer() {\n // Default implementation does nothing.\n }",
"public abstract Object mo26777y();",
"protected Doodler() {\n\t}",
"public abstract void mo42329d();",
"@Override\n\tpublic void some() {\n\t\t\n\t}",
"public void zero();",
"public void testDummy() {\n \t\tassertTrue(true);\r\n \t}",
"@Override\r\npublic int method() {\n\treturn 0;\r\n}",
"public void testBlah() {\n // nothing\n }",
"@Override\n public void reset() \n {\n\n }",
"@Override\n public void test() {\n \n }",
"@Override\r\n\t\t\tpublic void reset() {\n\t\t\t\t\r\n\t\t\t}",
"protected void doManaged() {\n // default is no-op\n }",
"public void testDummy() {\n\t\tassertTrue(true);\n\t}",
"protected TestBench() {}",
"@Override\n public Object preProcess() {\n return null;\n }",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tno();\n\t\t\t\t}",
"public None()\n {\n \n }",
"public abstract void mo6549b();",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void reset() {\n\t\t\t\t\n\t\t\t}",
"private test5() {\r\n\t\r\n\t}",
"@Override\n\t\tprotected void reset()\n\t\t{\n\t\t}",
"public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }",
"@Override\n public Void visitUnknown(TypeMirror t, Void p) {\n return defaultAction(t, p);\n }",
"public abstract void mo35054b();",
"private PrintUtilities()\n {\n // Do nothing.\n }",
"@Override\n\tpublic void test() {\n\t\t\n\t}",
"public final /* bridge */ /* synthetic */ void mo43566a() {\n super.mo43566a();\n }",
"@Override\n\tpublic void doIt() {\n\t\t\n\t}",
"@Override\r\n\tpublic void reset()\r\n\t{\r\n\t}",
"@Override\n public void reset() {\n }",
"@Override\n public void func_104112_b() {\n \n }",
"void unavailable();",
"void unavailable();",
"@Override\n\tpublic void dosomething() {\n\t\t\n\t}",
"public void wild(){\n\t}",
"public static PacketSource makeDummy() {\n\treturn new DummySource();\n }",
"private DiscretePotentialOperations() {\r\n\t}",
"public abstract void mo27386d();",
"@Override\r\n\tpublic void reset() {\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"void doDummyComputation() {\n\t\tlong dummyValue = 0;\n\t\t// We use a random number and a subsequent check to avoid smart\n\t\t// compilers\n\t\tRandom rand = new Random();\n\t\tint seed = rand.nextInt(10) + 1;\n\t\tfor (int i = 0; i < 10000000; i++) {\n\t\t\tdummyValue = 10 + ((31 * (dummyValue + seed)) % 1234567);\n\t\t}\n\t\tif (dummyValue < 10) {\n\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\"This never happens, but let's pretend the value matters to avoid this being complied away.\");\n\t\t}\n\t\ttry {\n\t\t\tThread.sleep(50);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public DummyTestResult() {\n this.testContext = null;\n }",
"@Override\n protected void prot() {\n }",
"@Override\n\t\t\tpublic String run() {\n\t\t\t\treturn null;\n\t\t\t}",
"@Override\n\tpublic void reset() {\n\t}",
"@Override\n\tpublic void realFun() {\n\n\t}",
"@Override\n\tpublic boolean test() {\n\t\treturn false;\n\t}",
"@Override\n public void reset() {\n\n }",
"public void noReturn() {\n\t\tSystem.out.println(\"noReturn method will not returing any thing\");\n\t}",
"private Mocks() { }",
"void bypass();",
"private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}",
"private void Nice(){\n }",
"@Override\n\tpublic void reset() {\n\t\t\n\t}",
"@Override\n\tpublic void reset() {\n\t\t\n\t}",
"protected CodeStub() {\n entry = new Label();\n continuation = new Label();\n }"
] | [
"0.7298949",
"0.7298949",
"0.7265471",
"0.70656544",
"0.6671524",
"0.6546154",
"0.6478657",
"0.64328635",
"0.6235061",
"0.62333435",
"0.62195814",
"0.616767",
"0.6160684",
"0.6112396",
"0.6063163",
"0.60586023",
"0.60532",
"0.60100365",
"0.60083914",
"0.60034335",
"0.60026014",
"0.59937775",
"0.597276",
"0.5971575",
"0.5970117",
"0.59575963",
"0.5954244",
"0.59524953",
"0.59498054",
"0.59378904",
"0.5914654",
"0.59079444",
"0.5907523",
"0.59010565",
"0.58864546",
"0.58826685",
"0.5880907",
"0.58804345",
"0.5877878",
"0.58703434",
"0.5869601",
"0.5865606",
"0.5863582",
"0.5861796",
"0.5859153",
"0.5858736",
"0.58578986",
"0.585445",
"0.58460677",
"0.5843541",
"0.5841599",
"0.5841161",
"0.58409303",
"0.58408517",
"0.58404404",
"0.5838378",
"0.5838133",
"0.58344316",
"0.5831543",
"0.5826143",
"0.5821466",
"0.5821466",
"0.5821466",
"0.5821466",
"0.5819665",
"0.58195174",
"0.58182615",
"0.58165693",
"0.581593",
"0.5807956",
"0.5803876",
"0.58034134",
"0.57988006",
"0.5797296",
"0.57905984",
"0.5782047",
"0.5778543",
"0.5778543",
"0.5777844",
"0.57772046",
"0.5770565",
"0.57648456",
"0.5762575",
"0.5758314",
"0.57534224",
"0.5748022",
"0.5745753",
"0.5744874",
"0.57441306",
"0.574171",
"0.5740143",
"0.573973",
"0.5738405",
"0.57382786",
"0.5732078",
"0.5728532",
"0.57276726",
"0.5727509",
"0.5726424",
"0.5726424",
"0.5724455"
] | 0.0 | -1 |
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 |
Method is for generating the graph and creating the html file | public void summaryReport() {
String strTimeStamp = new SimpleDateFormat("yyyy-MM-dd-HH-mm-ss").format(new Date());
String reportPath = new File("Report").getAbsolutePath();
int stepPassed = 0;
int stepFailed = 0;
String cssData = "";
try {
String cssPath = new File("Report\\Style\\style.css").getAbsolutePath();
bufferedReader = new BufferedReader(new FileReader(cssPath));
StringBuilder stringBuilder = new StringBuilder();
String line = bufferedReader.readLine();
while (line != null) {
stringBuilder.append(line);
stringBuilder.append(System.lineSeparator());
line = bufferedReader.readLine();
}
cssData = stringBuilder.toString();
} catch (Exception ex) {
Log.error("Exception occure in reading file" + ex.getMessage());
ex.printStackTrace();
} finally {
try {
bufferedReader.close();
} catch (IOException e) {
Log.error("Exception occure in reading file");
e.printStackTrace();
}
}
File HTMLDir = new File(reportPath + "\\HTMLReport");
if (!HTMLDir.exists()) {
try {
HTMLDir.mkdir();
} catch (SecurityException ex) {
Log.error("Error in creating HTMLReport directory" + ex.getMessage());
// log.error("Error in creating Detail directory");
}
}
String htmlname = HTMLDir + "\\" + strTimeStamp + ".html";
String logoPath = new File("Report\\Style\\logo.png").getAbsolutePath();
for (ReportBean reportValue : GlobalVariables.getReportList()) {
if (reportValue.getStatus().equalsIgnoreCase("Failed")) {
stepFailed++;
} else if (reportValue.getStatus().equalsIgnoreCase("Passed")) {
stepPassed++;
}
}
strBufferReportAppend = new StringBuffer();
try {
bufferedWriter = new BufferedWriter(new FileWriter(htmlname));
} catch (IOException e) {
Log.error("Error in wrinting the file" + e.getMessage());
// TODO Auto-generated catch block
e.printStackTrace();
}
strBufferReportAppend.append(
"<html><head><script type=\"text/javascript\" src=\"https://www.gstatic.com/charts/loader.js\"></script>");
strBufferReportAppend.append("<script src=\"https://www.google.com/jsapi\"></script>");
strBufferReportAppend.append("<style>" + cssData);
strBufferReportAppend.append("</style>");
strBufferReportAppend.append("</head><body>");
strBufferReportAppend.append("<table class=\"width100\">");
strBufferReportAppend.append("<tr><td>");
strBufferReportAppend.append("<table class=\"width100\">");
strBufferReportAppend.append("<tr><td><img src=file:\\\\" + logoPath + "></td>" + "<td class=\"headertext\">"
+ reportHeader + "</td>");
strBufferReportAppend.append("</tr></table><hr></hr>");
strBufferReportAppend.append("</td></tr>");
strBufferReportAppend.append("<tr><td>");
strBufferReportAppend.append("<table class=\"width100\">");
strBufferReportAppend.append("<tr><td class=\"width50\">");
strBufferReportAppend.append("<table cellpadding=3 cellspacing=1>");
strBufferReportAppend
.append("<tr><td class=\"width50 bold\">Execution Start Time</td><td class=\"width50 bold\">"
+ GlobalVariables.getStrStartTime() + "</td></tr>");
strBufferReportAppend
.append("<tr><td class=\"width50 bold\">Execution End Time</td><td class=\"width50 bold\">"
+ GlobalVariables.getStrEndTime() + "</td></tr>");
strBufferReportAppend
.append("<tr><td class=\"width50 bold\">Total TestSteps Executed</td><td class=\"width50 bold\">"
+ (stepFailed + stepPassed) + "</td></tr>");
strBufferReportAppend.append(
"<tr><td class=\"width50 green\">Passed</td><td class=\"width50 green\">" + stepPassed + "</td></tr>");
strBufferReportAppend.append(
"<tr><td class=\"width50 red\">Failed</td><td class=\"width50 red\">" + stepFailed + "</td></tr>");
strBufferReportAppend.append("</table></td>");
strBufferReportAppend.append("<td class=\"width50\">");
strBufferReportAppend.append("<table>");
strBufferReportAppend.append("<tr><td class=\"width25\">");
strBufferReportAppend.append("</td>");
strBufferReportAppend.append("<td class=\"width25\">");
strBufferReportAppend.append("<script type=\"text/javascript\">");
strBufferReportAppend.append("google.charts.load('current', {'packages':['corechart']});");
strBufferReportAppend.append("google.charts.setOnLoadCallback(drawDetailsChart);");
strBufferReportAppend.append("function drawDetailsChart() {");
strBufferReportAppend.append("var data = new google.visualization.DataTable();");
strBufferReportAppend.append("data.addColumn('string', 'Test Execution Detail Graph');");
strBufferReportAppend.append("data.addColumn('number', 'Count');");
strBufferReportAppend.append("data.addRows([");
strBufferReportAppend.append("['Passed'," + stepPassed + "],");
strBufferReportAppend.append("['Failed'," + stepFailed + "]]);");
strBufferReportAppend
.append("var options = {'title':'Test Step Details Graph',colors: ['#12C909', '#C3100A'],pieHole: 0.3,");
strBufferReportAppend.append("'width':300,");
strBufferReportAppend.append("'height':170};");
strBufferReportAppend
.append("var chart = new google.visualization.PieChart(document.getElementById('detailsChart_div'));");
strBufferReportAppend.append("chart.draw(data, options); } </script>");
strBufferReportAppend.append("<div id=\"detailsChart_div\"></div>");
strBufferReportAppend.append("</td></tr></table>");
strBufferReportAppend.append("</td></tr></table><hr></hr></td></tr>");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public RenderGraph(){\n \n \t\tString[] a = this.tibbr_url.split(\"//\");\n \t\tString[] url = a[1].split(\".t\"); // assumes the URL is *.tibbr.*\n \n \t\t//String date = new SimpleDateFormat(\"dd-MM-yyyy\").format(new Date());\n \t\t//filename = b[0]+ \"_graph_\" +date+ \".csv\";\n \t\tfilename = url[0]+ \"_graph.csv\";\n \n \t}",
"private void createHTML(BufferedWriter writer) throws IOException {\r\n\t\tString startHead = \"<html><head>\" // I have used roberto font,Please\r\n\t\t\t\t\t\t\t\t\t\t\t// link the appropriate font\r\n\t\t\t\t+ \"<link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet'>\"\r\n\t\t\t\t+ \"<link href='https://fonts.googleapis.com/icon?family=Material+Icons' rel='stylesheet'>\"\r\n\t\t\t\t+ cssFileForHtml()\r\n\t\t\t\t+ \"</head><script src='https://d3js.org/d3.v4.min.js'></script><body style=' background-color: #F5F5F5'>\";\r\n\t\twriter.write(startHead);\r\n\t}",
"private String generateChart() {\r\n\t\tint passedTestCount = data.getNumberofTestPassed();\r\n\t\tint skippedTestCount = data.getNumberofTestSkipped();\r\n\t\tint failedTestCount = data.getNumberofTestFailed();\r\n\r\n\t\tString script = \"<script>var svg = d3.select('svg'),\"\r\n\t\t\t\t+ \"margin = {top: 30, right: 20, bottom: 20, left: 50},\"\r\n\t\t\t\t+ \"width = +svg.attr('width') - margin.left - margin.right,\"\r\n\t\t\t\t+ \"height = +svg.attr('height') - margin.top - margin.bottom;\"\r\n\t\t\t\t+ \"var x = d3.scaleBand().range([0, 450]),\"\r\n\t\t\t\t+ \"y = d3.scaleLinear().rangeRound([230, 0]);\"\r\n\t\t\t\t+ \"var g = svg.append('g').attr('transform', 'translate(' + margin.left + ',' + margin.top + ')');\"\r\n\t\t\t\t+\r\n\r\n\t\t\t\t\"var data = [{'name':'Pass','value':\"\r\n\t\t\t\t+ passedTestCount\r\n\t\t\t\t+ \"},{'name':'FaiL','value':\"\r\n\t\t\t\t+ failedTestCount\r\n\t\t\t\t+ \"},{'name':'Skip','value':\"\r\n\t\t\t\t+ skippedTestCount\r\n\t\t\t\t+ \"}];\"\r\n\t\t\t\t+\r\n\r\n\t\t\t\t\"var max = 0;\"\r\n\t\t\t\t+ \"var index = 0;\"\r\n\t\t\t\t+ \"for(index=0;index<data.length;index++) {\"\r\n\t\t\t\t+ \"if(max<data[index]['value']) {\"\r\n\t\t\t\t+ \"max = data[index]['value']; } }\"\r\n\t\t\t\t+ \"max = max%2 ==0? max : max +1;\"\r\n\t\t\t\t+ \"x.domain(data.map(function(d) { return d.name; }));\"\r\n\t\t\t\t+ \"y.domain([0, max]);\"\r\n\t\t\t\t+ \"g.append('g').attr('class', 'axis axis--x')\"\r\n\t\t\t\t+ \".attr('transform', 'translate(0,' + height + ')')\"\r\n\t\t\t\t+ \".call(d3.axisBottom(x)).attr('stroke', '#000000');\"\r\n\t\t\t\t+ \"g.append('g').attr('class', 'axis axis--y')\"\r\n\t\t\t\t+ \".call(d3.axisLeft(y).ticks(3)).attr('stroke', '#000000')\"\r\n\t\t\t\t+ \".append('text').attr('transform', 'rotate(-90)').attr('y', 6)\"\r\n\t\t\t\t+ \".attr('dy', '0.71em').attr('text-anchor', 'end');\"\r\n\t\t\t\t+ \"d3.selectAll('line').attr('stroke', '#000000');\"\r\n\t\t\t\t+ \"d3.selectAll('path').attr('stroke', '#000000');\"\r\n\t\t\t\t+ \"var temp=0;\"\r\n\t\t\t\t+ \"g.selectAll('.bar').data(data).enter().append('rect').attr('class', 'bar')\"\r\n\t\t\t\t+ \".attr('x', function(d) {return x(d.name)+50; })\"\r\n\t\t\t\t+ \".attr('y', function(d) { return y(d.value); })\"\r\n\t\t\t\t+ \".attr('width', 50)\"\r\n\t\t\t\t+ \".attr('height', function(d) { return height - y(d.value); }).attr('fill','#ff9900')\"\r\n\t\t\t\t+ \".attr('data-name',function(d){return d.name})\"\r\n\t\t\t\t+ \".attr('data-value',function(d){return d.value}).attr('height', 0).transition().duration(1000).delay(200).attr('height', function (d, i) {return height - y(d.value);});;</script>\";\r\n\t\treturn script;\r\n\t}",
"public void generateReport() {\n ReportGenerator rg = ui.getReportGenerator();\n if (rg == null || !rg.isVisible()) {\n ui.openReportGenerator();\n rg = ui.getReportGenerator();\n }\n Image img = getImage();\n if (img == null) {\n return;\n }\n rg.addImage(img, \"Plot\");\n }",
"private void generateOutputHTML() {\n\n\t\t\n\t\ttry {\n\t\t\tScanner in = new Scanner(new File(\"data/web/template.html\"));\n\t\t\tPrintStream out = new PrintStream(\"data/web/output\"+count+\".html\");\n\t\t\tSystem.setOut(out);\n\t\t\t\n\t\t\twhile (in.hasNext()) {\n\t\t\t\tString line = in.nextLine();\n\t\t\t\tSystem.out.print(line);\n\t\t\t\t\n\t\t\t\tif (line.equals(\"<title>\")) System.out.println(\"Path #\" +count);\n\t\t\t\t\n\t\t\t\n\t\t\t\tif (line.equals(\"<body>\")) { \t\t\t\t// this is where all the good stuff goes..\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"<div class='bodyHeader'>\");\n\t\t\t\t\tSystem.out.println(\"<p><strong>in order path for driver #\" +count+ \" \" + \"</strong></p>\");\n\t\t\t\t\tSystem.out.println(\"</div>\");\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"<br><br><hr class='hrStyle'/>\");\n\t\t\t\t\t\n\t\t\t\t\t// Creating info about the path in a table format\n\t\t\t\t\tSystem.out.println(\"<div class='pathInfo'>\");\n\t\t\t\t\tSystem.out.println(\"<table class='infoTable' cellpadding='3' cellspacing='10'>\");\n\t\t\t\t\tSystem.out.println(\"<tr><td>City: </td><td> \" + list.get(0).getCity()+ \" - \" + list.get(0).getState() + \"</td></tr>\");\n\t\t\t\t\tSystem.out.println(\"<tr><td>Number of stops: </td><td> \" + (list.size()-1) + \"</td></tr>\");\n\t\t\t\t\tSystem.out.println(\"<tr><td>Store: </td><td> \" + list.get(1).getName().toUpperCase()+ \"</td></tr>\");\n\t\t\t\t\tSystem.out.println(\"</table>\");\n\t\t\t\t\t\n//TODO: get starting address --- System.out.println(\"Starting address: \" + list.get(0).getAddress());\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"</div>\");\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tlist.remove(0);\n\t\t\t\t\t\n\t\t\t\t\t//create ordered table/list of path\n\t\t\t\t\tSystem.out.println(\"<div class='pathList'>\");\t\n\t\t\t\t\tSystem.out.println(\"<table class='pathTable' cellspacing='15'>\");\n\t\t\t\t\tSystem.out.println(\"<tr><th>Order</th><th>Address</th><th></th><th>Latitude , Longitude</th></tr>\");\n\t\t\t\t\tint i = 1;\n\t\t\t\t\tfor (Location c: list) {\n\t\t\t\t\t// creating table row for each stop in route\n\t\t\t\t\t\tSystem.out.println(\"<tr>\" + \"<td>\"+(i++)+\"</td>\" + c.toHTMLString() +\"</tr>\");\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"</ol>\");\n\t\t\t\t\tSystem.out.println(\"<br>\");\n\t\t\t\t\tSystem.out.println(\"</div>\");\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tin.close();\n\t\t\tout.close();\n\t\t\t\n\t\t\t//opening html file to the default browser in the system\n\t\t\tFile htmlFile = new File(\"data/web/output\"+count+\".html\");\n\t\t\tDesktop.getDesktop().browse(htmlFile.toURI());\n\t\t}\n\t\t\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(e.getLocalizedMessage());\n\t\t} \n\t}",
"@Override\r\n\tprotected void generateChart() throws Exception {\n\t\t\r\n\t}",
"private void generateGraphCode() {\n StringBuilder finalCode = new StringBuilder(\"digraph G{\\n\");\n for (int idx = 0; idx < jTabbedPane.getTabCount(); idx++) {\n WorkingPanel workingPanel = (WorkingPanel) jTabbedPane.getComponent(idx);\n finalCode.append(generateSubGraphCode(workingPanel.getConnections(), idx));\n }\n finalCode.append(\"\\n}\");\n JFrame generatedCodeFrame = new JFrame(\"Code Generator\");\n JTextArea codeDisplay = new JTextArea();\n generatedCodeFrame.add(codeDisplay);\n codeDisplay.append(finalCode.toString());\n generatedCodeFrame.setSize(400, 700);\n generatedCodeFrame.setVisible(true);\n }",
"String getHtml() {\n Map<String, Object> context = new HashMap<>();\n context.put(\"tileRows\", mTileRows);\n context.put(\"rows\", mRows);\n context.put(\"columns\", Lists.newArrayList(mColumnsByStartMillis.values()));\n context.put(\"numColumnsPerDay\", getSegmentStartTimes().length);\n context.put(\"nowColumnStart\", mNowColumn.start);\n context.put(\"nowDate\", mNow.toLocalDate());\n context.put(\"orders\", mOrders);\n context.put(\"dataCellsByConceptId\", getJsonDataDump());\n return renderTemplate(\"assets/chart.html\", context);\n }",
"public void writeXML(String xml){\n\t\ttry {\n\t\t\t\n\t\t\t\n\t\t\tDocumentBuilderFactory documentFactory = DocumentBuilderFactory.newInstance(); \n\t\t\tDocumentBuilder documentBuilder = documentFactory.newDocumentBuilder(); \n\t\t\t// define root elements \n\t\t\tDocument document = documentBuilder.newDocument(); \n\t\t\tElement rootElement = document.createElement(\"graph\"); \n\t\t\tdocument.appendChild(rootElement);\n\t\t\t\n\t\t\tfor(int i=0;i<Rel.getChildCount();i++){\n\t\t\t\tif(Rel.getChildAt(i).getTag() != null){\n\t\t\t\t\tif(Rel.getChildAt(i).getTag().toString().compareTo(\"node\") == 0){\n\t\t\t\t\t\tArtifact artifact = (Artifact) Rel.getChildAt(i);\n\t\t\t\t\t\tElement node = addElement(rootElement, \"node\", document);\n\t\t\t\t\t\tElement id = addAttribute(\"id\",artifact.getId()+\"\", document); //we create an attribute for a node\n\t\t\t\t\t\tnode.appendChild(id);//and then we attach it to the node\n\t\t\t\t\t\t\n\t\t\t\t\t\tArrayList <Artifact> fathers = artifact.getFathers();\n\t\t\t\t\t\tif(fathers != null){\n\t\t\t\t\t\t\taddElement(node, \"fathers\", document);//for complex attribute like array of fathers we add an element to the node\n\t\t\t\t\t\t\tfor(int j=0;j<fathers.size();j++){\n\t\t\t\t\t\t\t\tElement father = addAttribute(\"father\",fathers.get(j).getId()+\"\", document);//inside this element created in the node we add all its fathers as attributes\n\t\t\t\t\t\t\t\tnode.appendChild(father);\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\tArrayList <Artifact> sons = artifact.getSons();\n\t\t\t\t\t\tif(sons != null){\n\t\t\t\t\t\t\taddElement(node, \"sons\", document);//for complex attribute like array of sons we add an element to the node\n\t\t\t\t\t\t\tfor(int j=0;j<sons.size();j++){\n\t\t\t\t\t\t\t\tElement son = addAttribute(\"son\",sons.get(j).getId()+\"\", document);//inside this element created in the node we add all its sons as attributes\n\t\t\t\t\t\t\t\tnode.appendChild(son);\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\tElement label = addAttribute(\"label\", artifact.getText()+\"\", document);\n\t\t\t\t\t\tnode.appendChild(label);\n\t\t\t\t\t\t\n\t\t\t\t\t\tElement age = addAttribute(\"age\", artifact.getAge()+\"\", document);\n\t\t\t\t\t\tnode.appendChild(age);\n\t\t\t\t\t\t\n\t\t\t\t\t\tElement type = addAttribute(\"type\", artifact.getType()+\"\", document);\n\t\t\t\t\t\tnode.appendChild(type);\n\t\t\t\t\t\t\n\t\t\t\t\t\tElement information = addAttribute(\"information\", artifact.getInformation()+\"\", document);\n\t\t\t\t\t\tnode.appendChild(information);\n\t\t\t\t\t\t\n\t\t\t\t\t\tElement position = addAttribute(\"position\", artifact.getPosition()+\"\", document);\n\t\t\t\t\t\tnode.appendChild(position);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t// creating and writing to xml file \n\t\t\tTransformerFactory transformerFactory = TransformerFactory.newInstance(); \n\t\t\tTransformer transformer = transformerFactory.newTransformer(); \n\t\t\tDOMSource domSource = new DOMSource(document); \n\t\t\tStreamResult streamResult = new StreamResult(new File(xml)); \n\t\t\ttransformer.transform(domSource, streamResult);\n \n \n }catch(Exception e){\n \tLog.v(\"error writing xml\",e.toString());\n }\n\t\t\n\t\t\n\t}",
"public static void generateReport()\n\t{\n\t\tlong time=System.currentTimeMillis();\n\t\tString reportPath=System.getProperty(\"user.dir\")+\"//automationReport//Report\"+time+\".html\";\n\t\t\n\t\thtmlreporter=new ExtentHtmlReporter(reportPath);\n\t\textent=new ExtentReports();\n\t\textent.attachReporter(htmlreporter);\n\t\t\n\t\tString username=System.getProperty(\"user.name\");\n\t\tString osname=System.getProperty(\"os.name\");\n\t\tString browsername=CommonFunction.readPropertyFile(\"Browser\");\n\t\tString env=CommonFunction.readPropertyFile(\"Enviornment\");\n\t\t\n\t\t\n\t\textent.setSystemInfo(\"User Name\", username);\n\t\textent.setSystemInfo(\"OS Name\", osname);\n\t\textent.setSystemInfo(\"Browser Name\", browsername);\n\t\textent.setSystemInfo(\"Enviornment\", env);\n\t\t\n\t\t\n\t\thtmlreporter.config().setDocumentTitle(\"Automation Report\");\n\t\thtmlreporter.config().setTheme(Theme.STANDARD);\n\t\thtmlreporter.config().setChartVisibilityOnOpen(true);\n \n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public void createRevenueGraph()\n\t{\n\t\tASPManager mgr = getASPManager();\n\n\t\tint woGraphPoints;\n\t\tString costTyptemp;\n\t\tString costGraph_Ext;\n\t\tdouble woRevenueTemp; \n\t\tdouble strRevenueTemp;\n\t\tString sGraphTitle;\n\t\tString sLeftTitle; \n\n\t\tint noOfRows = itemset0.countRows(); \n\t\trevGraphInNewWind = false;\n\t\tint wono = sWorkOrderNoTree;\n\n\t\tString[] woCostType = new String[noOfRows]; \n\t\tdouble[] woRevenue = new double[noOfRows];\n\t\tdouble[] structureRevenue = new double[noOfRows];\n\n\t\titemset0.first();\n\n\t\tfor (int i = 0; i < noOfRows; i++)\n\t\t{\n\t\t\twoRevenue[i] = itemset0.getRow().getNumberValue(\"NACCUMULATEDREVENUESINGLE\");\n\t\t\twoCostType[i] = itemset0.getRow().getValue(\"SWOCOSTTYPE\");\n\t\t\tstructureRevenue[i] = itemset0.getRow().getNumberValue(\"NACCUMULATEDREVENUE\");\n\n\t\t\titemset0.forward(1);\n\t\t}\n\n\t\twoGraphPoints = 6;\n\n\t\tfor (int i = 0; i < noOfRows; i++)\n\t\t{\n\t\t\tif (woRevenue[i]>0 || structureRevenue[i]>0)\n\t\t\t\tgraphflagWo = 1;\n\t\t}\n\n\t\tsGraphTitle = mgr.translate(\"PCMWWORKORDERCOSTTABLESMWOREVTITLE: Work Order Revenue\");\n\t\tsLeftTitle = mgr.translate(\"PCMWWORKORDERCOSTTABLESMAMOUNTTR: Amount\");\n\n\t\trevGraphInNewWind = true;\n\n\t\tdrawGraphPic(wono,sGraphTitle,sLeftTitle,noOfRows,woCostType,woRevenue,structureRevenue); \n\t}",
"public static void exportRouteGraph() {\n try {\n var nodeRouteNr = new ArrayList<Integer>();\n var links = new ArrayList<Pair<Integer, Integer>>();\n\n int[] idx = {0};\n Files.lines(Path.of(Omnibus.class.getResource(\"segments.txt\").getFile())).forEach(line -> {\n String[] parts = line.split(\",\");\n int routeNr = Integer.parseInt(parts[0]) - 1;\n nodeRouteNr.add(routeNr);\n if (parts.length > 5) {\n String[] connections = parts[5].split(\";\");\n for (String c : connections)\n links.add(new Pair(idx[0], Integer.parseInt(c)));\n }\n ++idx[0];\n });\n\n\n File f = Paths.get(\"route-graph.graphml\").toFile();\n var out = new PrintStream(f);\n out.println(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\n out.println(\"<graphml xmlns=\\\"http://graphml.graphdrawing.org/xmlns\\\" xmlns:xsi=\\\"http://www.w3.org/2001/XMLSchema-instance\\\" xsi:schemaLocation=\\\"http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd\\\">\");\n out.println(\"<key attr.name=\\\"r\\\" attr.type=\\\"int\\\" for=\\\"node\\\" id=\\\"r\\\"/>\");\n out.println(\"<key attr.name=\\\"g\\\" attr.type=\\\"int\\\" for=\\\"node\\\" id=\\\"g\\\"/>\");\n out.println(\"<key attr.name=\\\"b\\\" attr.type=\\\"int\\\" for=\\\"node\\\" id=\\\"b\\\"/>\");\n out.println(\"<graph id=\\\"G\\\" edgedefault=\\\"directed\\\">\");\n for (int n = 0; n < nodeRouteNr.size(); ++n) {\n out.println(\"<node id=\\\"n\" + n + \"\\\">\");\n out.println(\"<data key=\\\"r\\\">\" + (COLOR[nodeRouteNr.get(n)]>>16) + \"</data>\");\n out.println(\"<data key=\\\"g\\\">\" + ((COLOR[nodeRouteNr.get(n)]>>8)&0xff) + \"</data>\");\n out.println(\"<data key=\\\"b\\\">\" + (COLOR[nodeRouteNr.get(n)]&0xff) + \"</data>\");\n out.println(\"</node>\");\n }\n int e = 0;\n for (var link : links)\n out.println(\"<edge id=\\\"e\" + (e++) + \"\\\" source=\\\"n\" + link.p + \"\\\" target=\\\"n\" + link.q + \"\\\"/>\");\n out.println(\"</graph>\");\n out.println(\"</graphml>\");\n out.close();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }",
"public void exportGraphForClade(String clade_name, String out_filepath){\n \t\tIndexHits<Node> foundNodes = findTaxNodeByName(clade_name);\n \t\tNode firstNode = null;\n \t\tif (foundNodes.size() < 1) {\n System.out.println(\"name '\" + clade_name + \"' not found. quitting.\");\n \t\t\treturn;\n \t\t} else if (foundNodes.size() > 1) {\n \t\t System.out.println(\"more than one node found for name '\" + clade_name + \"'not sure how to deal with this. quitting\");\n \t\t} else {\n \t\t for (Node n : foundNodes) {\n \t\t firstNode = n;\n \t\t }\n \t\t}\n \t\t//TraversalDescription CHILDOF_TRAVERSAL = Traversal.description().relationships(RelTypes.TAXCHILDOF,Direction.INCOMING );\n \t\tPrintWriter out_file;\n \t\ttry {\n \t\t\tout_file = new PrintWriter(new FileWriter(out_filepath));\n \t\t\tout_file.write(\"strict digraph {\\n\\trankdir = RL ;\\n\");\n \t\t\tHashMap<String, String> src2style = new HashMap<String, String>();\n \t\t\tHashMap<Node, String> nd2dot_name = new HashMap<Node, String>();\n \t\t\tint count = 0;\n \t\t\tfor (Node nd : firstNode.traverse(Traverser.Order.BREADTH_FIRST, \n \t\t\t\t\t\t\t\t\t\t\t StopEvaluator.END_OF_GRAPH,\n \t\t\t\t\t\t\t\t\t\t\t ReturnableEvaluator.ALL,\n \t\t\t\t\t\t\t\t\t\t\t RelTypes.TAXCHILDOF,\n \t\t\t\t\t\t\t\t\t\t\t Direction.INCOMING)) {\n \t\t\t\tfor(Relationship rel : nd.getRelationships(RelTypes.TAXCHILDOF,Direction.INCOMING)) {\n \t\t\t\t\tcount += 1;\n \t\t\t\t\tNode rel_start = rel.getStartNode();\n \t\t\t\t\tString rel_start_name = ((String) rel_start.getProperty(\"name\"));\n \t\t\t\t\tString rel_start_dot_name = nd2dot_name.get(rel_start);\n \t\t\t\t\tif (rel_start_dot_name == null){\n \t\t\t\t\t\trel_start_dot_name = \"n\" + (1 + nd2dot_name.size());\n \t\t\t\t\t\tnd2dot_name.put(rel_start, rel_start_dot_name);\n \t\t\t\t\t\tout_file.write(\"\\t\" + rel_start_dot_name + \" [label=\\\"\" + rel_start_name + \"\\\"] ;\\n\");\n \t\t\t\t\t}\n \t\t\t\t\tNode rel_end = rel.getEndNode();\n \t\t\t\t\tString rel_end_name = ((String) rel_end.getProperty(\"name\"));\n \t\t\t\t\tString rel_end_dot_name = nd2dot_name.get(rel_end);\n \t\t\t\t\tif (rel_end_dot_name == null){\n \t\t\t\t\t\trel_end_dot_name = \"n\" + (1 + nd2dot_name.size());\n \t\t\t\t\t\tnd2dot_name.put(rel_end, rel_end_dot_name);\n \t\t\t\t\t\tout_file.write(\"\\t\" + rel_end_dot_name + \" [label=\\\"\" + rel_end_name + \"\\\"] ;\\n\");\n \t\t\t\t\t}\n \t\t\t\t\tString rel_source = ((String) rel.getProperty(\"source\"));\n \t\t\t\t\tString edge_style = src2style.get(rel_source);\n \t\t\t\t\tif (edge_style == null) {\n \t\t\t\t\t\tedge_style = \"color=black\"; // @TMP\n \t\t\t\t\t\tsrc2style.put(rel_source, edge_style);\n \t\t\t\t\t}\n \t\t\t\t\tout_file.write(\"\\t\" + rel_start_dot_name + \" -> \" + rel_end_dot_name + \" [\" + edge_style + \"] ;\\n\");\n \t\t\t\t}\n \t\t\t}\n \t\t\tout_file.write(\"}\\n\");\n \t\t\tout_file.close();\n \t\t} catch (IOException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}",
"public void constructJSONGraph(String name){\n \t IndexHits<Node> foundNodes = findTaxNodeByName(name);\n Node firstNode = null;\n if (foundNodes.size() < 1){\n System.out.println(\"name '\" + name + \"' not found. quitting.\");\n return;\n } else if (foundNodes.size() > 1) {\n System.out.println(\"more than one node found for name '\" + name + \"'not sure how to deal with this. quitting\");\n } else {\n for (Node n : foundNodes)\n firstNode = n;\n }\n \t\tSystem.out.println(firstNode.getProperty(\"name\"));\n \t\tTraversalDescription CHILDOF_TRAVERSAL = Traversal.description()\n \t\t .relationships( RelTypes.TAXCHILDOF,Direction.INCOMING );\n \t\tHashMap<Node,Integer> nodenumbers = new HashMap<Node,Integer>();\n \t\tHashMap<Integer,Node> numbernodes = new HashMap<Integer,Node>();\n \t\tint count = 0;\n \t\tfor(Node friendnode: CHILDOF_TRAVERSAL.traverse(firstNode).nodes()){\n \t\t\tif (friendnode.hasRelationship(Direction.INCOMING)){\n \t\t\t\tnodenumbers.put(friendnode, count);\n \t\t\t\tnumbernodes.put(count,friendnode);\n \t\t\t\tcount += 1;\n \t\t\t}\n \t\t}\n \t\tPrintWriter outFile;\n \t\ttry {\n \t\t\toutFile = new PrintWriter(new FileWriter(\"graph_data.js\"));\n \t\t\toutFile.write(\"{\\\"nodes\\\":[\");\n \t\t\tfor(int i=0; i<count;i++){\n \t\t\t\tNode tnode = numbernodes.get(i);\n \t\t\t\toutFile.write(\"{\\\"name\\\":\\\"\"+tnode.getProperty(\"name\")+\"\");\n \t\t\t\toutFile.write(\"\\\",\\\"group\\\":\"+nodenumbers.get(tnode)+\"\");\n \t\t\t\toutFile.write(\"},\");\n \t\t\t}\n \t\t\toutFile.write(\"],\\\"links\\\":[\");\n \t\t\tfor(Node tnode: nodenumbers.keySet()){\n \t\t\t\tfor(Relationship trel : tnode.getRelationships(Direction.OUTGOING)){\n \t\t\t\t\toutFile.write(\"{\\\"source\\\":\"+nodenumbers.get(trel.getStartNode())+\"\");\n \t\t\t\t\toutFile.write(\",\\\"target\\\":\"+nodenumbers.get(trel.getEndNode())+\"\");\n \t\t\t\t\toutFile.write(\",\\\"value\\\":\"+1+\"\");\n \t\t\t\t\toutFile.write(\"},\");\n \t\t\t\t}\n \t\t\t}\n \t\t\toutFile.write(\"]\");\n \t\t\toutFile.write(\"}\\n\");\n \t\t\toutFile.close();\n \t\t} catch (IOException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}",
"private static Document generateXmlFile(LinkedHashMap<String, Integer> inputData, String elementInGraph, String graphName, String inputDurationType) throws ParserConfigurationException\r\n {\r\n DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder docBuilder = docFactory.newDocumentBuilder();\r\n Document doc = docBuilder.newDocument();\r\n \r\n Date date = new Date();\r\n long time = date.getTime();\r\n Timestamp ts = new Timestamp(time);\r\n \r\n //Nodo Radice export_results\r\n Element export_results = doc.createElement(\"export_results\");\r\n export_results.setAttribute(\"date\", \"\"+ts);\r\n doc.appendChild(export_results);\r\n \r\n //Figlo del nodo radice export_results\r\n Element graph = doc.createElement(\"graph\");\r\n graph.setAttribute(\"name\", graphName);\r\n export_results.appendChild(graph);\r\n \r\n //Popolo iterando sulla mappa i nodi interni del TAG graph\r\n for(String mapKey : inputData.keySet())\r\n {\r\n //System.out.println(\"Key: \" + mapKey + \" - - Value: \" + inputData.get(mapKey));\r\n \r\n Element singleElementInGraph = doc.createElement(elementInGraph);\r\n singleElementInGraph.setTextContent(Integer.toString(inputData.get(mapKey)));\r\n if(inputDurationType.equals(\"CHORD\") || inputDurationType.equals(\"REST\") || inputDurationType.equals(\"BOTH\"))\r\n {\r\n singleElementInGraph.setAttribute(\"den\", mapKey);\r\n singleElementInGraph.setAttribute(\"num\", \"1\"); \r\n }\r\n graph.appendChild(singleElementInGraph);\r\n }\r\n return doc;\r\n }",
"public boolean SaveFile(File file){\n FileWriter fw = null;\n try {\n \n if(file !=null){\n fw = new FileWriter(file.getAbsoluteFile());\n BufferedWriter bw = new BufferedWriter(fw);\n \n bw.write(\n \"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\" +\n \"<Visulisation>\\n\"\n \n );\n for(int pos = 0; pos<m_db.length;pos++){\n bw.write(\"<Data>\\n\");\n bw.write(\"<Date>\"+getDate()+\"</Date>\\n\");\n bw.write(\"<File>\"+m_db[pos].getFilePath()+\"</File>\\n\");\n bw.write(\"<RawData>\"+writeRawData(pos)+\"</RawData>\\n\");\n bw.write(\"</Data>\\n\");\n }\n for(int i =0; i<m_tp.GetNumOfCharts();i++){\n Chart c = m_tp.GetTab(i);\n System.out.print(\"c=000000 \"+c);\n ColourMap cm = c.GetColourMap();\n bw.write(\"<Chart>\\n\");\n \n bw.write(\"<ChartType>\"+c.GetChartType().toString()+\n \"</ChartType>\\n\");\n bw.write(\"<DataSetID>\"+c.GetData().getID()+\"</DataSetID>\\n\");\n bw.write(\"<XColumn>\"+c.GetXColumnPosition()+\"</XColumn>\\n\");\n bw.write(\"<YColumn>\"+c.GetYColumnPosition()+\"</YColumn>\\n\");\n bw.write(\"<ChartTitle>\"+c.GetTitle()+\"</ChartTitle>\\n\");\n bw.write(\"<Author>\"+c.GetAuthor()+\"</Author>\\n\");\n bw.write(\"<Desc>\"+c.GetDescription()+\"</Desc>\\n\");\n bw.write(\"<Schemme>\\n\");\n for(int j =0; j<cm.getNumberOfColours();j++){\n Color cl = cm.getColour(j);\n System.err.println(\"Color = \"+cl);\n String r = Integer.toString(cl.getRed());\n String g = Integer.toString(cl.getGreen());\n String b = Integer.toString(cl.getBlue());\n System.err.print(\"Red = \"+r+\" | \");\n System.err.print(\"Green = \"+g+\" | \");\n System.err.println(\"Blue = \"+b);\n bw.write(\"<Color>\");\n bw.write(r+\",\");\n bw.write(g+\",\");\n bw.write(b);\n bw.write(\"</Color>\\n\");\n \n }\n bw.write(\"</Schemme>\\n\");\n bw.write(\"</Chart>\\n\");\n }\n bw.write(\"</Visulisation>\");\n bw.close();\n \n \n return true;\n }else{\n System.err.println(\"DNF\");\n return false;\n }\n \n \n } catch (IOException ex) {\n System.err.print(ex);\n return false;\n }\n }",
"public static void generateAndSaveExampleGraph() {\n EuclidDirectedGraph graph1 = new EuclidDirectedGraph();\n //vertexes added and created edge\n BoundsGraphVertex ver1 = new BoundsGraphVertex(10, 10, \"source\");\n BoundsGraphVertex ver2 = new BoundsGraphVertex(10, 30, \"secondNode\");\n BoundsGraphVertex ver3 = new BoundsGraphVertex(10, 40, \"thirdNode\");\n BoundsGraphVertex ver4 = new BoundsGraphVertex(10, 50, \"sink\");\n BoundsGraphVertex ver5 = new BoundsGraphVertex(10, 60, \"fiveNode - loop from second\");\n BoundsGraphVertex ver6 = new BoundsGraphVertex(10, 70, \"sixNode - loop from five\");\n BoundsGraphVertex ver7 = new BoundsGraphVertex(10, 80, \"sevenNode - loop from six to third\");\n\n graph1.addNode(ver1);\n graph1.addNode(ver2);\n graph1.addNode(ver3);\n graph1.addNode(ver4);\n graph1.addNode(ver5);\n graph1.addNode(ver6);\n graph1.addNode(ver7);\n //use .addEuclidEdge to compute edge's length automatically\n graph1.addEuclidEdge(ver1, ver2);\n graph1.addEuclidEdge(ver2, ver3);\n graph1.addEuclidEdge(ver3, ver4);\n graph1.addEuclidEdge(ver2, ver5);\n graph1.addEuclidEdge(ver5, ver6);\n graph1.addEuclidEdge(ver6, ver7);\n graph1.addEuclidEdge(ver7, ver3);\n //created graph #2\n EuclidDirectedGraph graph2 = new EuclidDirectedGraph();\n try {\n //save into file from graph #1\n XMLSerializer.write(graph1, \"input.xml\", false);\n //read from file into graph #2\n graph2 = (EuclidDirectedGraph) XMLSerializer.read(\"input.xml\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void generateChart(){\n String[][] contents = retrieveFields();\n\n// String msg = \"test - \";\n// printCells(contents);\n\n String[] houseDisplay = new String[12];\n houseDisplay = new String[]{\"6\",\"4\",\"2\",\"1\",\"4\",\"6\",\"3\",\"5\",\"7/8\",\"\",\"5\",\"3\"};\n display(houseDisplay);\n }",
"void printGraph();",
"private void createGraph() {\n \t\t\n \t\t// Check capacity\n \t\tCytoscape.ensureCapacity(nodes.size(), edges.size());\n \n \t\t// Extract nodes\n \t\tnodeIDMap = new OpenIntIntHashMap(nodes.size());\n \t\tginy_nodes = new IntArrayList(nodes.size());\n \t\t// OpenIntIntHashMap gml_id2order = new OpenIntIntHashMap(nodes.size());\n \n \t\tfinal HashMap gml_id2order = new HashMap(nodes.size());\n \n \t\tSet nodeNameSet = new HashSet(nodes.size());\n \n \t\tnodeMap = new HashMap(nodes.size());\n \n \t\t// Add All Nodes to Network\n \t\tfor (int idx = 0; idx < nodes.size(); idx++) {\n \t\t\t\n \t\t\tif (taskMonitor != null) {\n \t\t\t\ttaskMonitor.setPercentCompleted(percentUtil.getGlobalPercent(1,\n \t\t\t\t\t\tidx, nodes.size()));\n \t\t\t}\n \n \t\t\t// Get a node object (NOT a giny node. XGMML node!)\n \t\t\tfinal cytoscape.generated2.Node curNode = (cytoscape.generated2.Node) nodes\n \t\t\t\t\t.get(idx);\n \t\t\tfinal String nodeType = curNode.getName();\n \t\t\tfinal String label = (String) curNode.getLabel();\n \n \t\t\treadAttributes(label, curNode.getAtt(), NODE);\n \n \t\t\tnodeMap.put(curNode.getId(), label);\n \n \t\t\tif (nodeType != null) {\n \t\t\t\tif (nodeType.equals(\"metaNode\")) {\n \t\t\t\t\tfinal Iterator it = curNode.getAtt().iterator();\n \t\t\t\t\twhile (it.hasNext()) {\n \t\t\t\t\t\tfinal Att curAttr = (Att) it.next();\n \t\t\t\t\t\tif (curAttr.getName().equals(\"metanodeChildren\")) {\n \t\t\t\t\t\t\tmetanodeMap.put(label, ((Graph) curAttr.getContent()\n \t\t\t\t\t\t\t\t\t.get(0)).getNodeOrEdge());\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\tif (nodeNameSet.add(curNode.getId())) {\n \t\t\t\tfinal Node node = (Node) Cytoscape.getCyNode(label, true);\n \n \t\t\t\tginy_nodes.add(node.getRootGraphIndex());\n \t\t\t\tnodeIDMap.put(idx, node.getRootGraphIndex());\n \n \t\t\t\t// gml_id2order.put(Integer.parseInt(curNode.getId()), idx);\n \n \t\t\t\tgml_id2order.put(curNode.getId(), Integer.toString(idx));\n \n \t\t\t\t// ((KeyValue) node_root_index_pairs.get(idx)).value = (new\n \t\t\t\t// Integer(\n \t\t\t\t// node.getRootGraphIndex()));\n \t\t\t} else {\n \t\t\t\tthrow new XGMMLException(\"XGMML id \" + nodes.get(idx)\n \t\t\t\t\t\t+ \" has a duplicated label: \" + label);\n \t\t\t\t// ((KeyValue)node_root_index_pairs.get(idx)).value = null;\n \t\t\t}\n \t\t}\n \t\tnodeNameSet = null;\n \n \t\t// Extract edges\n \t\tginy_edges = new IntArrayList(edges.size());\n \t\tSet edgeNameSet = new HashSet(edges.size());\n \n \t\tfinal CyAttributes edgeAttributes = Cytoscape.getEdgeAttributes();\n \n \t\t// Add All Edges to Network\n \t\tfor (int idx = 0; idx < edges.size(); idx++) {\n \n \t\t\tif (taskMonitor != null) {\n \t\t\t\ttaskMonitor.setPercentCompleted(percentUtil.getGlobalPercent(2,\n \t\t\t\t\t\tidx, edges.size()));\n \t\t\t}\n \t\t\tfinal cytoscape.generated2.Edge curEdge = (cytoscape.generated2.Edge) edges\n \t\t\t\t\t.get(idx);\n \n \t\t\tif (gml_id2order.containsKey(curEdge.getSource())\n \t\t\t\t\t&& gml_id2order.containsKey(curEdge.getTarget())) {\n \n \t\t\t\tString edgeName = curEdge.getLabel();\n \n \t\t\t\tif (edgeName == null) {\n \t\t\t\t\tedgeName = \"N/A\";\n \t\t\t\t}\n \n \t\t\t\tint duplicate_count = 1;\n \t\t\t\twhile (!edgeNameSet.add(edgeName)) {\n \t\t\t\t\tedgeName = edgeName + \"_\" + duplicate_count;\n \t\t\t\t\tduplicate_count += 1;\n \t\t\t\t}\n \n \t\t\t\tEdge edge = Cytoscape.getRootGraph().getEdge(edgeName);\n \n \t\t\t\tif (edge == null) {\n \n \t\t\t\t\tfinal String sourceName = (String) nodeMap.get(curEdge\n \t\t\t\t\t\t\t.getSource());\n \t\t\t\t\tfinal String targetName = (String) nodeMap.get(curEdge\n \t\t\t\t\t\t\t.getTarget());\n \n \t\t\t\t\tfinal Node node_1 = Cytoscape.getRootGraph().getNode(\n \t\t\t\t\t\t\tsourceName);\n \t\t\t\t\tfinal Node node_2 = Cytoscape.getRootGraph().getNode(\n \t\t\t\t\t\t\ttargetName);\n \n \t\t\t\t\tfinal Iterator it = curEdge.getAtt().iterator();\n \t\t\t\t\tAtt interaction = null;\n \t\t\t\t\tString itrValue = \"unknown\";\n \t\t\t\t\twhile (it.hasNext()) {\n \t\t\t\t\t\tinteraction = (Att) it.next();\n \t\t\t\t\t\tif (interaction.getName().equals(\"interaction\")) {\n \t\t\t\t\t\t\titrValue = interaction.getValue();\n \t\t\t\t\t\t\tif (itrValue == null) {\n \t\t\t\t\t\t\t\titrValue = \"unknown\";\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \n \t\t\t\t\tedge = Cytoscape.getCyEdge(node_1, node_2,\n \t\t\t\t\t\t\tSemantics.INTERACTION, itrValue, true);\n \n \t\t\t\t\t// Add interaction to CyAttributes\n \t\t\t\t\tedgeAttributes.setAttribute(edge.getIdentifier(),\n \t\t\t\t\t\t\tSemantics.INTERACTION, itrValue);\n \t\t\t\t}\n \n \t\t\t\t// Set correct ID, canonical name and interaction name\n \t\t\t\tedge.setIdentifier(edgeName);\n \n \t\t\t\treadAttributes(edgeName, curEdge.getAtt(), EDGE);\n \n \t\t\t\tginy_edges.add(edge.getRootGraphIndex());\n \t\t\t\t// ((KeyValue) edge_root_index_pairs.get(idx)).value = (new\n \t\t\t\t// Integer(\n \t\t\t\t// edge.getRootGraphIndex()));\n \t\t\t} else {\n \t\t\t\tthrow new XGMMLException(\n \t\t\t\t\t\t\"Non-existant source/target node for edge with gml (source,target): \"\n \t\t\t\t\t\t\t\t+ nodeMap.get(curEdge.getSource()) + \",\"\n \t\t\t\t\t\t\t\t+ nodeMap.get(curEdge.getTarget()));\n \t\t\t}\n \t\t}\n \t\tedgeNameSet = null;\n \n \t\tif (metanodeMap.size() != 0) {\n \t\t\tfinal Iterator it = metanodeMap.keySet().iterator();\n \t\t\twhile (it.hasNext()) {\n \t\t\t\tfinal String key = (String) it.next();\n \t\t\t\tcreateMetaNode(key, (List) metanodeMap.get(key));\n \t\t\t}\n \t\t}\n \t}",
"public void buildGraph(){\n\t}",
"private static Document generateXmlFile(LinkedHashMap<String, Integer> inputData, String elementInGraph, String graphName) throws ParserConfigurationException\r\n {\r\n DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder docBuilder = docFactory.newDocumentBuilder();\r\n Document doc = docBuilder.newDocument();\r\n \r\n Date date = new Date();\r\n long time = date.getTime();\r\n Timestamp ts = new Timestamp(time);\r\n \r\n //Nodo Radice export_results\r\n Element export_results = doc.createElement(\"export_results\");\r\n export_results.setAttribute(\"date\", \"\"+ts);\r\n doc.appendChild(export_results);\r\n \r\n //Figlo del nodo radice export_results\r\n Element graph = doc.createElement(\"graph\");\r\n graph.setAttribute(\"name\", graphName);\r\n export_results.appendChild(graph);\r\n \r\n //Popolo iterando sulla mappa i nodi interni del TAG graph\r\n for(String mapKey : inputData.keySet())\r\n {\r\n //System.out.println(\"Key: \" + mapKey + \" - - Value: \" + inputData.get(mapKey));\r\n \r\n Element singleElementInGraph = doc.createElement(elementInGraph);\r\n singleElementInGraph.setTextContent(Integer.toString(inputData.get(mapKey)));\r\n singleElementInGraph.setAttribute(\"type\", mapKey);\r\n graph.appendChild(singleElementInGraph);\r\n }\r\n return doc;\r\n }",
"private void createGraphs() {\n initialGraphCreation.accept(caller, listener);\n graphCustomization.accept(caller, listener);\n caller.generateAndAdd(params.getNumCallerEvents(), callerAddToGraphTest);\n listener.generateAndAdd(params.getNumListenerEvents(), listenerAddToGraphTest);\n generationDefinitions.accept(caller, listener);\n }",
"public void outputForGraphviz() {\n\t\tString label = \"\";\n\t\tfor (int j = 0; j <= lastindex; j++) {\n\t\t\tif (j > 0) label += \"|\";\n\t\t\tlabel += \"<p\" + ptrs[j].myname + \">\";\n\t\t\tif (j != lastindex) label += \"|\" + String.valueOf(keys[j+1]);\n\t\t\t// Write out any link now\n\t\t\tBTree.writeOut(myname + \":p\" + ptrs[j].myname + \" -> \" + ptrs[j].myname + \"\\n\");\n\t\t\t// Tell your child to output itself\n\t\t\tptrs[j].outputForGraphviz();\n\t\t}\n\t\t// Write out this node\n\t\tBTree.writeOut(myname + \" [shape=record, label=\\\"\" + label + \"\\\"];\\n\");\n\t}",
"private void createDOMTree(){\n\t\t\tElement rootEle = dom.createElement(\"html\");\r\n\t\t\tdom.appendChild(rootEle);\r\n\t\t\t\r\n\t\t\t//\t\t\tcreates <head> and <title> tag\r\n\t\t\tElement headEle = dom.createElement(\"head\");\r\n\t\t\tElement titleEle = dom.createElement(\"title\");\r\n\t\t\t\r\n\t\t\t//\t\t\tset value to <title> tag\r\n\t\t\tText kuerzelText = dom.createTextNode(\"Auswertung\");\r\n\t\t\ttitleEle.appendChild(kuerzelText);\r\n\t\t\theadEle.appendChild(titleEle);\r\n\t\t\t\r\n\t\t\tElement linkEle = dom.createElement(\"link\");\r\n\t\t\tlinkEle.setAttribute(\"rel\", \"stylesheet\");\r\n\t\t\tlinkEle.setAttribute(\"type\", \"text/css\");\r\n\t\t\tlinkEle.setAttribute(\"href\", \"./format.css\");\r\n\t\t\theadEle.appendChild(linkEle);\r\n\t\t\t\r\n\t\t\trootEle.appendChild(headEle);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tElement bodyEle = dom.createElement(\"body\");\r\n\t\t\tElement divEle = dom.createElement(\"div\");\r\n\t\t\tdivEle.setAttribute(\"id\", \"cont\");\r\n\t\t\t\r\n\t\t\tVector<String> tmp = myData.get(0);\r\n\t\t\tElement h2Ele = dom.createElement(\"h2\");\r\n\t\t\tString h1Str = \"\";\r\n\t\t\tfor(Iterator i = tmp.iterator(); i.hasNext(); )\r\n\t\t\t{\r\n\t\t\t\th1Str = h1Str + (String)i.next() + \" \";\r\n\t\t\t}\r\n\t\t\tText aText = dom.createTextNode(h1Str);\r\n\t\t\th2Ele.appendChild(aText);\r\n\t\t\tdivEle.appendChild(h2Ele);\r\n\t\t\tmyData.remove(0);\r\n\t\t\t\r\n\t\t\tElement tableEle = dom.createElement(\"table\");\r\n//\t\t\ttableEle.setAttribute(\"border\", \"1\");\r\n\t\t\t\r\n\t\t\ttmp = myData.get(0);\r\n\t\t\tElement trHeadEle = createTrHeadElement(tmp);\r\n\t\t\ttableEle.appendChild(trHeadEle);\r\n\t\t\tmyData.remove(0);\r\n\t\t\t\r\n\t\t\tIterator it = myData.iterator();\r\n\t\t\twhile(it.hasNext()) {\r\n\t\t\t\ttmp = (Vector<String>)it.next();\r\n\t\t\t\tElement trEle = createTrElement(tmp);\r\n\t\t\t\ttableEle.appendChild(trEle);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tdivEle.appendChild(tableEle);\r\n\t\t\tbodyEle.appendChild(divEle);\r\n\t\t\trootEle.appendChild(bodyEle);\r\n\t\t\t\r\n\t\t}",
"public GenerateReport() {\n initComponents();\n displayLogs();\n }",
"private void exportGraphML()\r\n {\r\n // Create the file filter.\r\n SimpleFileFilter[] filters = new SimpleFileFilter[] {\r\n new SimpleFileFilter(\"xml\", \"Graph ML (*.xml)\")\r\n };\r\n \r\n // Save the file.\r\n String file = openFileChooser(false, filters);\r\n \r\n // Write the file.\r\n if (file != null)\r\n {\r\n String extension = file.substring(file.length() - 4);\r\n if (!extension.equals(\".xml\")) file = file + \".xml\";\r\n Writer.writeGraphML(m_graph, file);\r\n }\r\n }",
"public void createCostGraph()\n\t{\n\t\tASPManager mgr = getASPManager();\n\n\t\tint woGraphPoints;\n\t\tString costTyptemp;\n\t\tString costGraph_Ext;\n\t\tdouble woCostTemp; \n\t\tdouble strCostTemp;\n\t\tString sGraphTitle;\n\t\tString sLeftTitle;\n\n\t\tint noOfRows = itemset0.countRows(); \n\t\tGraphInNewWind = false;\n\t\tint wono = sWorkOrderNoTree;\n\n\t\tString[] woCostType = new String[noOfRows]; \n\t\tdouble[] woCost = new double[noOfRows];\n\t\tdouble[] structureCost = new double[noOfRows];\n\n\t\titemset0.first();\n\n\t\tfor (int i = 0 ; i < noOfRows ; i++)\n\t\t{\n\t\t\twoCost[i] = itemset0.getRow().getNumberValue(\"NACCUMULATEDCOSTSINGLE\");\n\t\t\twoCostType[i] = itemset0.getRow().getValue(\"SWOCOSTTYPE\");\n\t\t\tstructureCost[i] = itemset0.getRow().getNumberValue(\"NACCUMULATEDCOST\");\n\n\t\t\titemset0.forward(1);\n\t\t}\n\n\t\twoGraphPoints = 6;\n\n\t\tfor (int i = 0 ; i < noOfRows ; i++)\n\t\t{\n\t\t\tif (woCost[i]>0 || structureCost[i]>0)\n\t\t\t\tgraphflagWo = 1;\n\t\t}\n\n\t\tsGraphTitle = mgr.translate(\"PCMWWORKORDERCOSTTABLESMWOCOSTTITLE: Work Order Cost\");\n\t\tsLeftTitle = mgr.translate(\"PCMWWORKORDERCOSTTABLESMAMOUNTTR: Amount\");\n\n\t\tGraphInNewWind = true;\n\n\t\tdrawGraphPic(wono,sGraphTitle,sLeftTitle,noOfRows,woCostType,woCost,structureCost);\n\t}",
"private void createChart() {\n\t\tchartSpace = CTChartSpace.Factory.newInstance();\n\t\tchart = chartSpace.addNewChart();\n\t\tCTPlotArea plotArea = chart.addNewPlotArea();\n\n\t\tplotArea.addNewLayout();\n\t\tchart.addNewPlotVisOnly().setVal(true);\n\n\t\tCTPrintSettings printSettings = chartSpace.addNewPrintSettings();\n\t\tprintSettings.addNewHeaderFooter();\n\n\t\tCTPageMargins pageMargins = printSettings.addNewPageMargins();\n\t\tpageMargins.setB(0.75);\n\t\tpageMargins.setL(0.70);\n\t\tpageMargins.setR(0.70);\n\t\tpageMargins.setT(0.75);\n\t\tpageMargins.setHeader(0.30);\n\t\tpageMargins.setFooter(0.30);\n\t\tprintSettings.addNewPageSetup();\n\t}",
"static void createDataForGraph() {\n double x = 2;\n String fileName = \"./lab1part2docs/dataRec.csv\";\n createFile(fileName);\n writeToFile(\"k,halfCounter,oneCounter,x=\" + x + \"\\n\", fileName);\n for (int k = 1; k <= 10000; k++) {\n Raise.runBoth(x, k);\n writeToFile(k + \",\" + Raise.recHalfCounter + \",\" + Raise.recOneCounter + '\\n', fileName);\n Raise.recHalfCounter = 0;\n Raise.recOneCounter = 0;\n }\n System.out.println(\"Finished\");\n }",
"private void drawGraph() {\n // you can show warning messages now\n imrGuiBean.showWarningMessages(true);\n addGraphPanel();\n setButtonsEnable(true);\n }",
"protected abstract Graph generateRdf(HttpRequestEntity entity) throws IOException;",
"public ExportGraph()\n {\n }",
"public void createGraphFromFile() {\n\t\t//如果图未初始化\n\t\tif(graph==null)\n\t\t{\n\t\t\tFileGetter fileGetter= new FileGetter();\n\t\t\ttry(BufferedReader bufferedReader=new BufferedReader(new FileReader(fileGetter.readFileFromClasspath())))\n\t\t\t{\n\t\t\t\tString line = null;\n\t\t\t\twhile((line=bufferedReader.readLine())!=null)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(line);\n\t\t\t\t}\n\t\t\t\t//create the graph from file\n\t\t\t\tgraph = new Graph();\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"private void setUpGraph() {\n \tString title;\n\t\ttry {\n\t\t\ttitle = util.readTextFile(new File(UI.UITEXT_DIRECTORY)).get(GRAPHTITLE_DEX);\n\t\t\taCS = new AreaChartSample(cellStateNames,title);\n\t\t} catch (FileNotFoundException e) {\n\t\t\taCS = new AreaChartSample(cellStateNames, \"ERROR ON TITLE\");\n\t\t}\n\t\troot.getChildren().add(aCS.getAreaChart());\n \tplot();\n }",
"@Override\n public void makeOutPutData(File file) {\n\n prepareHtmlDataList();\n\n PrintWriter pw = null;\n int cnt = 0;\n\n try {\n pw = new PrintWriter(new FileOutputStream(file, true));\n\n pw.println(\"******************** MainData info ********************\");\n pw.println(\"startLoggingTime : \"\n + ALTHelper\n .DateToString(ALTHelper\n .getTimeStartedBefore(1000)));\n pw.println(\"endLoggingTime : \"\n + ALTHelper\n .DateToString(ALTHelper\n .getTimeLaunched()));\n\n pw.println(\"\");\n\n pw.println(\"******************** Launched info ********************\");\n\n // should implement\n\n pw.println(\"\");\n\n pw.println(\"******************** gc info (top5) sorted by total_time ********************\");\n\n // -----------------------\n\n pw.println(String.format(\"%-20s\", \"time\")\n + String.format(\"%-10s\", \"PID\")\n + String.format(\"%-15s\", \"GC_cause\")\n + String.format(\"%-12s\", \"freedObject\")\n + String.format(\"%-10s\", \"freedByte\")\n + String.format(\"%-13s\", \"freedLObject\")\n + String.format(\"%-11s\", \"freedLByte\")\n + String.format(\"%-13s\", \"percent_free\")\n + String.format(\"%-18s\", \"current_heap_size\")\n + String.format(\"%-13s\", \"total_memory\")\n + String.format(\"%-11s\", \"pause_time\")\n + String.format(\"%-11s\", \"Total_time\"));\n\n ArrayList<GCData> totalTimeList = (ArrayList<GCData>)getGCDataList()\n .clone();\n Collections.sort(totalTimeList, new GCDataComparator(\n GCDataComparator.DataSortType.TOTAL_TIME));\n\n for (GCData gc : totalTimeList) {\n\n if (cnt >= 5)\n break;\n\n pw.println(String.format(\"%-20s\",\n ALTHelper.DateToString(gc.valutOfdate))\n + String.format(\"%-10s\", gc.PID)\n + String.format(\"%-15s\", gc.GC_cause)\n + String.format(\"%-12s\", gc.freedObject)\n + String.format(\"%-10s\", gc.freedByte)\n + String.format(\"%-13s\", gc.freedLObject)\n + String.format(\"%-11s\", gc.freedLByte)\n + String.format(\"%-13s\", gc.percent_free)\n + String.format(\"%-18s\", gc.current_heap_size)\n + String.format(\"%-13s\", gc.total_memory)\n + String.format(\"%-11s\", gc.pause_time)\n + String.format(\"%-11s\", gc.Total_time));\n cnt++;\n }\n\n pw.println(\"\");\n\n // -----------------------\n\n pw.println(\"******************** gc info sorted by date ********************\");\n\n pw.println(String.format(\"GC Total count : %5s\", getGCDataList()\n .size() + \" times\"));\n\n pw.println(String.format(\"%-20s\", \"time\")\n + String.format(\"%-10s\", \"processName\")\n + String.format(\"%-15s\", \"GC_cause\")\n + String.format(\"%-12s\", \"freedObject\")\n + String.format(\"%-10s\", \"freedByte\")\n + String.format(\"%-13s\", \"freedLObject\")\n + String.format(\"%-11s\", \"freedLByte\")\n + String.format(\"%-13s\", \"percent_free\")\n + String.format(\"%-18s\", \"current_heap_size\")\n + String.format(\"%-13s\", \"total_memory\")\n + String.format(\"%-11s\", \"pause_time\")\n + String.format(\"%-11s\", \"Total_time\"));\n\n for (GCData gc : getGCDataList()) {\n pw.println(String.format(\"%-20s\",\n ALTHelper.DateToString(gc.valutOfdate))\n + String.format(\"%-10s\", gc.PID)\n + String.format(\"%-15s\", gc.GC_cause)\n + String.format(\"%-12s\", gc.freedObject)\n + String.format(\"%-10s\", gc.freedByte)\n + String.format(\"%-13s\", gc.freedLObject)\n + String.format(\"%-11s\", gc.freedLByte)\n + String.format(\"%-13s\", gc.percent_free)\n + String.format(\"%-18s\", gc.current_heap_size)\n + String.format(\"%-13s\", gc.total_memory)\n + String.format(\"%-11s\", gc.pause_time)\n + String.format(\"%-11s\", gc.Total_time));\n }\n pw.println(\"\");\n\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } finally {\n if (pw != null)\n pw.close();\n }\n }",
"protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n try {\n /* TODO output your page here. You may use following sample code. */\n \n out.println(\"<html>\");\n out.println(\"<head>\");\n out.println(\"<title>Servlet ViewStats</title>\"); \n out.println(\"</head>\");\n out.println(\"<body>\");\n out.println(\"<h1>Servlet ViewStats at \" + request.getContextPath() + \"</h1>\");\n out.println(\"Number of active sessions : \" + SessionCounter.getSessionNum() );\n out.println(\"<p></p>\");\n out.println(\"Number of total daily sessions : \" + SessionCounter.getTotalSessionNum(7) );\n out.println(\"<p></p>\");\n \n final double[][] data = new double[][]{\n \n {SessionCounter.getTotalSessionNum(1),SessionCounter.getTotalSessionNum(2),SessionCounter.getTotalSessionNum(3),\n SessionCounter.getTotalSessionNum(4),SessionCounter.getTotalSessionNum(5),SessionCounter.getTotalSessionNum(6),\n SessionCounter.getTotalSessionNum(7),}\n \n };\n \n\n final CategoryDataset dataset = \n DatasetUtilities.createCategoryDataset(\n \"Web App \",\"\",data);\n\n JFreeChart chart = null;\n BarRenderer renderer = null;\n CategoryPlot plot = null;\n\n\n final CategoryAxis categoryAxis = new CategoryAxis(\"Day\");\n final ValueAxis valueAxis = new NumberAxis(\"Number of Sessions\");\n renderer = new BarRenderer();\n\n plot = new CategoryPlot(dataset, categoryAxis, valueAxis, \n renderer);\n plot.setOrientation(PlotOrientation.VERTICAL);\n chart = new JFreeChart(\"Sessions\", JFreeChart.DEFAULT_TITLE_FONT, \n plot, true);\n\n chart.setBackgroundPaint(new Color(249, 231, 236));\n\n Paint p1 = new GradientPaint(\n 0.0f, 0.0f, new Color(16, 89, 172), 0.0f, 0.0f, new Color\n (201, 201, 244));\n\n renderer.setSeriesPaint(1, p1);\n\n \n\n plot.setRenderer(renderer);\n\n try {\n final ChartRenderingInfo info = new ChartRenderingInfo\n (new StandardEntityCollection());\n final File file1 = new File(\"/usr/share/tomcat6/webapps/project4/barchart.png\");\n ChartUtilities.saveChartAsPNG(file1, chart, 600, 400, info);\n } catch (Exception e) {\n out.println(e);\n }\n\n \n out.println(\"<IMG SRC=\\\"barchart.png\\\" WIDTH=\\\"600\\\" HEIGHT=\\\"400\\\" BORDER=\\\"0\\\" USEMAP=\\\"#chart\\\">\");\n out.println(\"</br><a href=\\\"http://83.212.96.35:8080/project4/index.jsp\\\">Back To Gallery</a></br>\");\n out.println(\"</body>\");\n out.println(\"</html>\");\n } finally { \n out.close();\n }\n }",
"public static String html(HomologousCluster homolog, Session session) {\n\t\tString name = homolog.name();\n\t\tString file = session.subDir(\"clusterGraphs\") + name + \".txt\";\n\t\tString contents;\n\t\ttry {\n\t\t\tcontents = Files.readFile(file);\n\t\t} catch (IOException e) {\n\t\t\tcontents = \"<div class='clusterGraph'>No representation</div class='clusterGraph'>\";\n\t\t}\n\t\treturn contents;\n\t}",
"void createGraphForSingleLoad();",
"public static void toDotFile(String methodname, DirectedGraph graph, String graphname) {\n int sequence = 0;\n // this makes the node name unique\n nodecount = 0; // reset node counter first.\n Hashtable nodeindex = new Hashtable(graph.size());\n\n // file name is the method name + .dot\n DotGraph canvas = new DotGraph(methodname);\n // System.out.println(\"onepage is:\"+onepage);\n if (!onepage) {\n canvas.setPageSize(8.5, 11.0);\n }\n\n canvas.setNodeShape(DotGraphConstants.NODE_SHAPE_BOX);\n canvas.setGraphLabel(graphname);\n\n Iterator nodesIt = graph.iterator();\n\n {\n while (nodesIt.hasNext()) {\n Object node = nodesIt.next();\n\n if (node instanceof List) {\n String listName = \"list\" + (new Integer(sequence++)).toString();\n String nodeName = makeNodeName(getNodeOrder(nodeindex, listName));\n listNodeName.put(node, listName);\n // System.out.println(\"put node: \"+node +\"into listNodeName\");\n\n }\n }\n }\n\n nodesIt = graph.iterator();\n while (nodesIt.hasNext()) {\n Object node = nodesIt.next();\n String nodeName = null;\n if (node instanceof List) {\n\n nodeName = makeNodeName(getNodeOrder(nodeindex, listNodeName.get(node)));\n } else {\n\n nodeName = makeNodeName(getNodeOrder(nodeindex, node));\n }\n Iterator succsIt = graph.getSuccsOf(node).iterator();\n\n while (succsIt.hasNext()) {\n Object s = succsIt.next();\n String succName = null;\n if (s instanceof List) {\n succName = makeNodeName(getNodeOrder(nodeindex, listNodeName.get(s)));\n } else {\n Object succ = s;\n // System.out.println(\"$$$$$$succ: \"+succ);\n // nodeName = makeNodeName(getNodeOrder(nodeindex, tag+\" \"+node));\n succName = makeNodeName(getNodeOrder(nodeindex, succ));\n // System.out.println(\"node is :\" +node);\n // System.out.println(\"find start node in pegtodotfile:\"+node);\n }\n\n canvas.drawEdge(nodeName, succName);\n }\n\n }\n\n // set node label\n if (!isBrief) {\n nodesIt = nodeindex.keySet().iterator();\n while (nodesIt.hasNext()) {\n Object node = nodesIt.next();\n // System.out.println(\"node is:\"+node);\n if (node != null) {\n // System.out.println(\"node: \"+node);\n String nodename = makeNodeName(getNodeOrder(nodeindex, node));\n // System.out.println(\"nodename: \"+ nodename);\n DotGraphNode dotnode = canvas.getNode(nodename);\n // System.out.println(\"dotnode: \"+dotnode);\n if (dotnode != null) {\n dotnode.setLabel(node.toString());\n }\n }\n }\n }\n\n canvas.plot(\"pecg.dot\");\n\n // clean up\n listNodeName.clear();\n }",
"public void writeGraph (String outputFileName) {\n\t\ttry\r\n\t\t{\r\n\t\t\tFileOutputStream fileOutputStream = new FileOutputStream(outputFileName);\r\n\t\t\tBufferedOutputStream bufferedOutputStream = new BufferedOutputStream(\r\n\t\t\t\t\tfileOutputStream);\r\n\t\t\tPrintStream printStream = new PrintStream(bufferedOutputStream);\r\n\r\n\r\n\t\t\tfor(Integer i : adjacencyMatrix.keySet())\r\n\t\t\t{\r\n\t\t\t\tfor(Integer j : adjacencyMatrix.get(i))\r\n\t\t\t\t{\r\n\t\t\t\t\tprintStream.println(i+\",\"+j);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tprintStream.close();\r\n\t\t} \r\n\t\tcatch (IOException e) {\r\n\t\t\tSystem.out.println(\"ERROR: An io exception occurred while writing file \"+outputFileName);\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t\tcatch ( Exception e ){\r\n\t\t\tSystem.out.println(e.toString());\r\n\t\t\tSystem.out.println(\"ERROR: An exception occurred while writing file\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t}",
"public void generateReport()\r\n {\r\n ProfilerGUI reportGUI = new ProfilerGUI(map,mapCountTracker);\r\n //reportGUI.\r\n }",
"public void generateTXT(String filename, Graph graph, ArrayList<Heuristic> hList){\r\n FileWriter fstream;\r\n try {\r\n fstream = new FileWriter(\"fileOutputs/\".concat(filename));\r\n BufferedWriter file = new BufferedWriter(fstream);\r\n ArrayList<String> actNodes = new ArrayList<String>();\r\n ArrayList<String> allNodes = new ArrayList<String>();\r\n String iniNode;\r\n String dashed = \"------------------------------------------------------\";\r\n float averageTime;\r\n float averageNVisited;\r\n float actTime;\r\n float maxTime;\r\n float finAverageTime = 0;\r\n float finAverageNVisited = 0;\r\n float finMaxTime = 0;\r\n ArrayList<InfoPath> maxNodePath = null;\r\n ArrayList<ArrayList<Float>> dijList = null;\r\n ArrayList<ArrayList<Float>> nodijList = null;\r\n int iter;\r\n int finIter = 0;\r\n int maxTransfers = 20;\r\n int maxLines = 20;\r\n int maxPathVisited = 0;\r\n float maxCost = 0;\r\n boolean dijkstra = false;\r\n BitSet b = new BitSet(3);\r\n //Set of all transport combination.\r\n //boolean[][] init = new boolean[][]{{false,false,true},{false,true,false},{false,true,true},{true,false,false},{true,false,true},{true,true,false},{true,true,true}};\r\n //int[][] maxTraLin = new int[][]{{2,0},{4,0},{0,1},{0,3},{0,5},{2,2},{3,5}};\r\n boolean[][] init = new boolean[][] {{true, true, true}};\r\n int[][]maxTraLin = new int[][] {{5,5}, {20,20},{40, 40},{80, 80}};\r\n b.clear();\r\n for (Heuristic h : hList){\r\n for(int ii = 0; ii< maxTraLin.length; ii++){\r\n maxTransfers = maxTraLin[ii][0];\r\n maxLines = maxTraLin[ii][1];\r\n file.write(\"Heuristic usage: \");\r\n file.write(String.valueOf(h.getClass().getName()));\r\n if (h.getClass().getName().equals(\"algorithm.HeuristicD\")){\r\n dijkstra = true;\r\n dijList = new ArrayList<ArrayList<Float>>();\r\n for(int i = 0; i < graph.getGraphSize(); i++) {\r\n dijList.add(new ArrayList<Float>());\r\n }\r\n }\r\n else {\r\n nodijList = new ArrayList<ArrayList<Float>>();\r\n for(int i = 0; i < graph.getGraphSize(); i++) {\r\n nodijList.add(new ArrayList<Float>());\r\n }\r\n }\r\n file.newLine();\r\n file.write(dashed);\r\n file.newLine();\r\n for(int k = 0; k < init.length; k++){\r\n b.set(0,init[k][0]);\r\n b.set(1,init[k][1]);\r\n b.set(2,init[k][2]);\r\n averageTime = 0;\r\n averageNVisited = 0;\r\n actTime = 0;\r\n maxTime = 0;\r\n iter = 0;\r\n for (int i = 0; i < graph.getGraphSize(); i++){\r\n actNodes.add(\"N\".concat(String.valueOf(i+1)));\r\n }\r\n System.out.println(\"Graph size :\" + graph.getGraphSize());\r\n int aux = graph.getGraphSize() - 1;\r\n for (int i = 0; i < graph.getGraphSize(); i++){\r\n if(actNodes.size() > 0){\r\n iniNode = actNodes.get(0);\r\n actNodes.remove(0);\r\n for (int j = 0; j < actNodes.size(); j++){\r\n astar = new AStar(graph,graph.getNodebyAlias(iniNode), graph.getNodebyAlias(actNodes.get(j)), h, maxTransfers, maxLines);\r\n time = new Time();\r\n time.setScale(\"millisecond\");\r\n nodes = astar.getPath(b);\r\n if (dijkstra && nodes.size()>=2){\r\n dijList.get(i).add(nodes.get(nodes.size()-2).getCost());\r\n }\r\n if(!dijkstra && nodes.size()>=2){\r\n System.out.println(\"Iter num: \" + (i*59+j));\r\n float eff = (dijList.get(i).get(j)/nodes.get(nodes.size()-2).getCost())*100;\r\n System.out.println(\"D cost: \" + dijList.get(i).get(j) + \" ND cost: \" + nodes.get(nodes.size()-2).getCost() + \" %Eff: \" + eff);\r\n nodijList.get(i).add(eff);\r\n }\r\n actTime = time.elapsedTime();\r\n if (maxTime < actTime){\r\n maxTime = actTime;\r\n }\r\n if (finMaxTime < maxTime){\r\n finMaxTime = maxTime;\r\n maxNodePath = nodes;\r\n maxPathVisited = astar.getVisitedNodes();\r\n if (!nodes.isEmpty())\r\n maxCost = nodes.get(nodes.size() - 2).getCost();\r\n }\r\n averageTime += actTime;\r\n averageNVisited += astar.getVisitedNodes();\r\n iter++;\r\n }\r\n }\r\n }\r\n finAverageTime += averageTime/iter;\r\n finAverageNVisited += averageNVisited/iter;\r\n finIter++;\r\n }\r\n file.write(\"Average calculate path time: \" + String.valueOf(finAverageTime/finIter));\r\n file.write(\" average num nodes visited: \" + String.valueOf((int) finAverageNVisited/finIter));\r\n file.newLine();\r\n }\r\n if (dijkstra) {\r\n file.write(\"Dijkstra heuristic has 100% effectivity\");\r\n }\r\n else{\r\n int averageCost = 0;\r\n int counter = 0;\r\n for(ArrayList<Float> a : nodijList) {\r\n for (Float cost : a){\r\n averageCost += cost;\r\n counter++;\r\n }\r\n }\r\n file.write(\"This heuristic has an average of: \" + averageCost/counter + \"% effectivity\");\r\n }\r\n file.newLine();\r\n file.write(\"Max calculate path: \" + String.valueOf(finMaxTime));\r\n file.write(\" num nodes visited: \" + String.valueOf(maxPathVisited));\r\n file.newLine();\r\n file.write(\"Path of max details\");\r\n file.newLine();\r\n file.write(\"\\t\" + \"Node start: \" + maxNodePath.get(0).getSNode().getAlias());\r\n file.newLine();\r\n file.write(\"\\t\" + \"Node end: \" + maxNodePath.get(maxNodePath.size()-1).getSNode().getAlias());\r\n file.newLine();\r\n for (int i = 0; i < maxNodePath.size()-1; i++){\r\n InfoPath ip = maxNodePath.get(i);\r\n file.write(\"\\t\" + ip.getSNode().getName()+ \" (\"+ip.getSNode().getAlias() + \")\" + \" to \" + maxNodePath.get(i+1).getSNode().getName()+ \" (\" + maxNodePath.get(i+1).getSNode().getAlias()+ \")\");\r\n file.newLine();\r\n }\r\n file.write(\"\\tTotal cost: \" + maxCost);\r\n file.newLine();\r\n file.newLine();\r\n if (!dijkstra)\r\n nodijList.clear();\r\n else\r\n dijkstra = false;\r\n }\r\n file.close();\r\n }catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public static void main(String[] args) {\n\t\tString filename = \"Input/WG1.txt\";\n\t\t//String filename = \"Input/WG2.txt\";\n\t\tdouble teleportationFactor = 0.95;\n\t\tWebGraph webGraph = new WebGraph(filename, teleportationFactor);\n\t\twebGraph.constructGraph();\n\t}",
"public void script() {\n ProjectController pc = Lookup.getDefault().lookup(ProjectController.class);\n pc.newProject();\n Workspace workspace = pc.getCurrentWorkspace();\n\n //Generate a new random graph into a container\n Container container = Lookup.getDefault().lookup(Container.Factory.class).newContainer();\n RandomGraph randomGraph = new RandomGraph();\n randomGraph.setNumberOfNodes(500);\n randomGraph.setWiringProbability(0.005);\n randomGraph.generate(container.getLoader());\n\n //Append container to graph structure\n ImportController importController = Lookup.getDefault().lookup(ImportController.class);\n importController.process(container, new DefaultProcessor(), workspace);\n\n //Add a fake 'Date' column to nodes\n GraphModel graphModel = Lookup.getDefault().lookup(GraphController.class).getGraphModel(workspace);\n\n //Add a random date to all nodes - between 1990 and 2010\n Graph graph = graphModel.getGraph();\n Random random = new Random();\n for (Node n : graph.getNodes()) {\n Integer randomDataValue = random.nextInt(21) + 1990;\n n.addInterval(new Interval(randomDataValue, Double.POSITIVE_INFINITY));\n }\n\n //Execute metric\n StatisticsController statisticsController = Lookup.getDefault().lookup(StatisticsController.class);\n DynamicDegree degree = new DynamicDegree();\n degree.setWindow(1.0);\n degree.setTick(1.0);\n degree.setBounds(graphModel.getTimeBounds());\n statisticsController.execute(degree);\n\n //Get averages\n System.out.println(\"Average degree:\");\n TimestampDoubleMap averages = (TimestampDoubleMap) graph.getAttribute(DynamicDegree.DYNAMIC_AVGDEGREE);\n for (double t : averages.getTimestamps()) {\n System.out.println(t + \" -> \" + averages.getDouble(t));\n }\n }",
"public void generateHtml(String title, List<HtmlData> data, FilePathToUrl filePathToUrl)\n throws IOException {\n String content = generateHtmlLayout(title, data);\n createFile(filePathToUrl.getFilePath(), content);\n FileUtil.saveResource(getClass().getResourceAsStream(\"/docs/stylesheets/asciidoctor.css\"),\n \"asciidoctor.css\", false);\n }",
"public static void generateGraph(IDistanceMeasure measure, List<BitSet> cluster, long size, String outputPath, String title)\n\t{\n\t\tfinal long start_seconds= 1258884000; //start time of evanbd's dataset\n\t\tAbstractLeastSquaresOptimizer optimizer = new LevenbergMarquardtOptimizer();\n\t\toptimizer.setMaxIterations(Integer.MAX_VALUE);\n\t\t\n\t\tPolynomialFitter fitter = new PolynomialFitter(2, optimizer);\n\t\t\n\t\t//calculate the total number of nodes at each time index\n\t\tString data = \"\";\n\t\tfor(int i=0; i < size; i++)\n\t\t{\n\t\t\tint count = 0;\n\t\t\tfor(BitSet node : cluster)\n\t\t\t{\n\t\t\t\tif (node.get((int)i)) count++;\n\t\t\t}\n\n\t\t\tif (count >= 0)\n\t\t\t{\n\t\t\t\tif (i > (size-10)) fitter.addObservedPoint(1.0, i, count);\n\t\t\t\tdata += (start_seconds + i*5*60*60) + \"\\t \" + count + \"\\n\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t//calculate mean samples\n\t\tList<Integer> samples = new LinkedList<Integer>();\n\t\tlong nodes_mean_sample = 0; //In how many samples are the nodes by average?\n\t\tfor(BitSet node : cluster)\n\t\t{\n\t\t\tnodes_mean_sample += node.cardinality();\n\t\t\tsamples.add(node.cardinality());\n\t\t}\n\t\tnodes_mean_sample = nodes_mean_sample / cluster.size();\n\t\t\n\t\tCollections.sort(samples);\n\t\tint minimum = samples.get(0);\n\t\tint maximum = samples.get(samples.size()-1);\n\t\tint median = samples.get(Math.round(samples.size() / 2));\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tPolynomialFunction function = null;\n\t\t\n\t\ttry {\n\t\t\tfunction = fitter.fit();\n\t\t} catch (MathException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\tfor(long i=size; i < size+extrapolate_time; i++)\n\t\t{\n\t\t\t//System.out.println(i);\n\t\t\tdouble value = i;\n\t\t\t\tdata += i + \"\\t \" + function.value(value) + \"\\n\";\n\t\t}\n\t\t\n\t\t\n\t\tString name = Integer.toString(Math.abs(cluster.hashCode()));\n\t\t\n\t\t//write data to file\n\t\tFile outputFileData = new File(outputPath + measure.getName() + \"_\" + name + \".data\");\n\t\twriteString(outputFileData, data);\n\t\n\t\tString gnuplot = \"set autoscale\\n\" + \n\t\t\"set terminal png medium\\n\" +\n\t\t\"set output \\\"\" + measure.getName() + \"_\" + name+\".png\\\"\\n\" +\n\t\t\"unset log\\n\" +\n\t\t\"unset label\\n\" +\n\t\t\"set title \\\"\"+title+\" containing \"+ cluster.size() +\" nodes.\\\\nMean number of samples that nodes appear in: \"+nodes_mean_sample + \"\\\\n\" +\n\t\t\t\"minimum: \"+minimum+\", maximum: \"+maximum+\", median: \"+median+\"\\\"\\n\" +\n\t\t\"set xtic auto rotate \\n\" +\n\t\t\"set ytic auto\\n\" +\n\t\t\"set key right bottom\\n\" +\n\t\t\"set ylabel \\\"Nodes in probe request sample\\\"\\n\" +\n\t\t\"set xlabel \\\"Time\\\"\\n\" +\n\t\t\"set xdata time\\n\" +\n\t \"set timefmt \\\"%s\\\"\\n\" +\n\t\t\"plot \\\"\"+ measure.getName() + \"_\" + Math.abs(cluster.hashCode())+\".data\\\" using 1:2 with lines\\n\";\n\t\t\n\t\tFile outputFileDataGnuPLot = new File(outputPath + measure.getName() + \"_\" + Math.abs(cluster.hashCode()) + \".p\");\n\t\twriteString(outputFileDataGnuPLot, gnuplot);\n\t}",
"public ProcessingTarget buildGraph(){\n \t\tgetTibbrGraph();\n \n \t\t//Init a project - and therefore a workspace\n \t\tProjectController pc = Lookup.getDefault().lookup(ProjectController.class);\n \t\tpc.newProject();\n \t\tWorkspace workspace = pc.getCurrentWorkspace();\n \n \t\t//Get a graph model - it exists because we have a workspace\n \t\tGraphModel graphModel = Lookup.getDefault().lookup(GraphController.class).getModel();\n \t\tAttributeModel attributeModel = Lookup.getDefault().lookup(AttributeController.class).getModel();\n \t\tImportController importController = Lookup.getDefault().lookup(ImportController.class);\n \n \t\t//Import file \n \t\tContainer container;\n \t\ttry {\n \t\t\tFile f = new File(this.filename);\n \t\t\tcontainer = importController.importFile(f);\n \t\t\tcontainer.getLoader().setEdgeDefault(EdgeDefault.DIRECTED); //Force DIRECTED\n \t\t container.setAllowAutoNode(false); //Don't create missing nodes\n \t\t} catch (Exception ex) {\n \t\t\tex.printStackTrace();\n \t\t\treturn null;\n \t\t}\n \n \t\t//Append imported data to GraphAPI\n \t\timportController.process(container, new DefaultProcessor(), workspace);\n \n \t\t//See if graph is well imported\n \t\t//DirectedGraph graph = graphModel.getDirectedGraph();\n \t\t//---------------------------\n \n \t\t//Layout for 1 minute\n \t\tAutoLayout autoLayout = new AutoLayout(5, TimeUnit.SECONDS);\n \t\tautoLayout.setGraphModel(graphModel);\n \t\t//YifanHuLayout firstLayout = new YifanHuLayout(null, new StepDisplacement(1f));\n \t\tForceAtlasLayout secondLayout = new ForceAtlasLayout(null);\n \t\tAutoLayout.DynamicProperty adjustBySizeProperty = AutoLayout.createDynamicProperty(\"forceAtlas.adjustSizes.name\", Boolean.TRUE, 0.1f);//True after 10% of layout time\n \t\tAutoLayout.DynamicProperty repulsionProperty = AutoLayout.createDynamicProperty(\"forceAtlas.repulsionStrength.name\", new Double(10000.), 0f);//500 for the complete period\n \t\t//autoLayout.addLayout( firstLayout, 0.5f );\n \t\tautoLayout.addLayout(secondLayout, 1f, new AutoLayout.DynamicProperty[]{adjustBySizeProperty, repulsionProperty});\n \t\tautoLayout.execute();\n \n \n \n \n \n \t\t//Rank color by Degree\n \t\tRankingController rankingController = Lookup.getDefault().lookup(RankingController.class);\n\t\tRanking<?> degreeRanking = rankingController.getModel().getRanking(Ranking.NODE_ELEMENT, Ranking.DEGREE_RANKING);\n\t\tAbstractColorTransformer<?> colorTransformer = (AbstractColorTransformer<?>) rankingController.getModel().getTransformer(Ranking.NODE_ELEMENT, Transformer.RENDERABLE_COLOR);\n \n \t\tcolorTransformer.setColors(new Color[]{new Color(0xFEF0D9), new Color(0xB30000)});\n \t\trankingController.transform(degreeRanking,colorTransformer);\n \n \t\t//Get Centrality\n \t\tGraphDistance distance = new GraphDistance();\n \t\tdistance.setDirected(true);\n \t\tdistance.execute(graphModel, attributeModel);\n \n \t\t//Rank size by centrality\n \t\tAttributeColumn centralityColumn = attributeModel.getNodeTable().getColumn(GraphDistance.BETWEENNESS);\n\t\tRanking<?> centralityRanking = rankingController.getModel().getRanking(Ranking.NODE_ELEMENT, centralityColumn.getId());\n\t\tAbstractSizeTransformer<?> sizeTransformer = (AbstractSizeTransformer<?>) rankingController.getModel().getTransformer(Ranking.NODE_ELEMENT, Transformer.RENDERABLE_SIZE);\n \t\tsizeTransformer.setMinSize(3);\n \t\tsizeTransformer.setMaxSize(20);\n \t\trankingController.transform(centralityRanking,sizeTransformer);\n \n \t\t//Rank label size - set a multiplier size\n\t\tRanking<?> centralityRanking2 = rankingController.getModel().getRanking(Ranking.NODE_ELEMENT, centralityColumn.getId());\n\t\tAbstractSizeTransformer<?> labelSizeTransformer = (AbstractSizeTransformer<?>) rankingController.getModel().getTransformer(Ranking.NODE_ELEMENT, Transformer.LABEL_SIZE);\n \t\tlabelSizeTransformer.setMinSize(1);\n \t\tlabelSizeTransformer.setMaxSize(3);\n \t\trankingController.transform(centralityRanking2,labelSizeTransformer);\n \n \t\tfloat[] positions = {0f,0.33f,0.66f,1f};\n \t\tcolorTransformer.setColorPositions(positions);\n \t\tColor[] colors = new Color[]{new Color(0x0000FF), new Color(0xFFFFFF),new Color(0x00FF00),new Color(0xFF0000)};\n \t\tcolorTransformer.setColors(colors);\n \n \t\t\n \t\t//---------------------------------\n \t\t//Preview configuration\n \t\tPreviewController previewController = Lookup.getDefault().lookup(PreviewController.class);\n \t\tPreviewModel previewModel = previewController.getModel();\n \t\tpreviewModel.getProperties().putValue(PreviewProperty.DIRECTED, Boolean.TRUE);\n \t\tpreviewModel.getProperties().putValue(PreviewProperty.BACKGROUND_COLOR, Color.BLACK);\n \t\tpreviewModel.getProperties().putValue(PreviewProperty.SHOW_NODE_LABELS, Boolean.TRUE);\n \t\tpreviewModel.getProperties().putValue(PreviewProperty.NODE_LABEL_COLOR, new DependantOriginalColor(Color.YELLOW));\n \t\t\n \t\t\n \t\t//previewModel.getProperties().putValue(PreviewProperty.EDGE_CURVED, Boolean.TRUE);\n \t\t//previewModel.getProperties().putValue(PreviewProperty.EDGE_OPACITY, 100);\n \t\t//previewModel.getProperties().putValue(PreviewProperty.EDGE_RADIUS, 1f);\n \t\t//previewModel.getProperties().putValue(PreviewProperty.EDGE_THICKNESS,0.2f);\n \t\t//previewModel.getProperties().putValue(PreviewProperty.ARROW_SIZE,0.2f);\n \n \t\tpreviewController.refreshPreview();\n \n \t\t//----------------------------\n \n \t\t//New Processing target, get the PApplet\n \t\tProcessingTarget target = (ProcessingTarget) previewController.getRenderTarget(RenderTarget.PROCESSING_TARGET);\n \t\t\n \t\tPApplet applet = target.getApplet();\n \t\tapplet.init();\n \n \t\t// Add .1 second delay to fix stability issue - per Gephi forums\n try {\n \t\t\t\tThread.sleep(100);\n \t\t\t} catch (InterruptedException e) {\n \t\t\t\t// TODO Auto-generated catch block\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \n \t\t\n \t\t//Refresh the preview and reset the zoom\n \t\tpreviewController.render(target);\n \t\ttarget.refresh();\n \t\ttarget.resetZoom();\n \t\ttarget.zoomMinus();\n \t\ttarget.zoomMinus();\n \t\t\n \t\treturn target;\n \t\t\n \n \t}",
"private void createGraph() {\r\n graph = new Graph(SHELL, SWT.NONE);\r\n\r\n final GridData gridData = new GridData();\r\n gridData.horizontalAlignment = GridData.FILL;\r\n gridData.verticalAlignment = GridData.FILL;\r\n gridData.grabExcessHorizontalSpace = true;\r\n gridData.grabExcessVerticalSpace = true;\r\n gridData.heightHint = DEFAULT_GRAPH_SIZE;\r\n gridData.widthHint = DEFAULT_GRAPH_SIZE;\r\n graph.setLayoutData(gridData);\r\n }",
"public void displayGraph() {\r\n\t\tgraph.display();\r\n\t}",
"public void createMarginGraph()\n\t{\n\t\tASPManager mgr = getASPManager();\n\n\t\tint woGraphPoints;\n\t\tString sGraphTitle;\n\t\tString sLeftTitle; \n\n\t\tint noOfRows = itemset0.countRows(); \n\t\tmarginGraphInNewWind = false;\n\t\tint wono = sWorkOrderNoTree;\n\n\t\tString[] woCostType = new String[noOfRows]; \n\t\tdouble[] woMargin = new double[noOfRows];\n\t\tdouble[] structureMargin = new double[noOfRows];\n\n\t\titemset0.first();\n\n\t\tfor (int i = 0; i < noOfRows; i++)\n\t\t{\n\t\t\twoMargin[i] = itemset0.getRow().getNumberValue(\"NACCUMULATEDRESULTSINGLE\");\n\t\t\twoCostType[i] = itemset0.getRow().getValue(\"SWOCOSTTYPE\");\n\t\t\tstructureMargin[i] = itemset0.getRow().getNumberValue(\"NACCUMULATEDRESULT\");\n\n\t\t\titemset0.forward(1);\n\t\t}\n\n\t\twoGraphPoints = 6;\n\n\t\tfor (int i = 0 ; i < noOfRows; i++)\n\t\t{\n\t\t\tif (woMargin[i]>0 || structureMargin[i]>0)\n\t\t\t\tgraphflagWo = 1;\n\t\t}\n\n\t\tsGraphTitle = mgr.translate(\"PCMWWORKORDERCOSTTABLESMWOMARTITLE: Work Order Profit Margin\");\n\t\tsLeftTitle = mgr.translate(\"PCMWWORKORDERCOSTTABLESMAMOUNTTR: Amount\");\n\n\t\tmarginGraphInNewWind = true;\n\n\t\tdrawGraphPic(wono,sGraphTitle,sLeftTitle,noOfRows,woCostType,woMargin,structureMargin);\n\n\t}",
"public String generateHtmlReport() {\n try {\n LogManager.suitLogger.info(\"Generating HTML report...\");\n writer = createWriter();\n writer.println(new String(api.core.htmlreport()));\n writer.flush();\n writer.close();\n Thread.sleep(2000);\n return new File(Config.getReportsLocation() + File.separator + \"penetration-test-report.html\").getAbsolutePath();\n } catch (Exception e) {\n LogManager.suitLogger.error(\"Failed to generate penetration test html report. \", e);\n }\n return null;\n }",
"public Demo2(String searchname)\r\n {\r\n //树图正向\r\n //获取owl文件 解析成树图形式 这里是正向 \t\r\n \tOWLReGtreeConverter retreeConverter = new OWLReGtreeConverter(OWL_FILE,true, searchname,\"tree\");\r\n \t//得到树类型对象rmgree\r\n \trm_gtree =retreeConverter.getGraph();\r\n \t//得到display对象rgtreeDisp\r\n \tGraphDisplay2 rgtreeDisp = new GraphDisplay2(rm_gtree, GRAPH_DISTANCE_FILTER,rm_gtree.getFocusindex(),1,\"\");\r\n \t//得到panel\r\n \tm_rgtreePanel = new GraphPanel2(rgtreeDisp, LEGEND, HOPS_CONTROL_WIDGET);\r\n// \t//树反向图\r\n// \tOWLGraphConverter treeConverter = new OWLGraphConverter(OWL_FILE, true,searchname,\"tree\");\r\n// \tm_gtree =treeConverter.getGraph();\r\n// GraphDisplay2 gtreeDisp = new GraphDisplay2(m_gtree, GRAPH_DISTANCE_FILTER,m_gtree.getFocusindex(),1,\"backward\");\r\n// m_gtreePanel = new GraphPanel2(gtreeDisp, LEGEND, HOPS_CONTROL_WIDGET);\r\n////网络图反向\r\n// OWLGraphConverter graphConverter = new OWLGraphConverter(OWL_FILE, true,searchname,\"graph\");\r\n// m_graph = graphConverter.getGraph();\r\n// GraphDisplay graphDisp = new GraphDisplay(m_graph, GRAPH_DISTANCE_FILTER,m_graph.getFocusindex(),0,\"backward\");\r\n// m_graphPanel = new GraphPanel(graphDisp, LEGEND, HOPS_CONTROL_WIDGET);\r\n// //网络图正向\r\n// \tOWLReGtreeConverter regraphConverter = new OWLReGtreeConverter(OWL_FILE,true, searchname,\"graph\");\r\n// rm_graph = regraphConverter.getGraph();\r\n// GraphDisplay rgraphDisp = new GraphDisplay(rm_graph, GRAPH_DISTANCE_FILTER,rm_graph.getFocusindex(),0,\"\");\r\n// rm_graphPanel = new GraphPanel(rgraphDisp, LEGEND, HOPS_CONTROL_WIDGET);\r\n // Create the tabbed pane which contains the the home tab, the tree tabs\r\n // and the graph tabs.\r\n //添加applet菜单\r\n\r\n m_tabbedPane = new JTabbedPane();\r\n \r\n //定义按钮graph以及tree的说明 快捷键Alt+G\r\n m_tabbedPane.addTab(\"正向树图\", m_rgtreePanel);\r\n m_tabbedPane.setToolTipTextAt(0, \"正向树图..\");\r\n m_tabbedPane.setMnemonicAt(0, KeyEvent.VK_R);\r\n \r\n// //定义按钮tree以及tree的说明 快捷键Alt+T\r\n// m_tabbedPane.addTab(\"反向树图\", m_gtreePanel);\r\n// m_tabbedPane.setToolTipTextAt(1, \"反向树图..\");\r\n// m_tabbedPane.setMnemonicAt(1, KeyEvent.VK_T);\r\n////// //定义按钮home以及home的说明 快捷键Alt+H\r\n// m_tabbedPane.addTab(\"反向网图\", m_graphPanel);\r\n// m_tabbedPane.setToolTipTextAt(2, \"反向网图..\");\r\n// m_tabbedPane.setMnemonicAt(2, KeyEvent.VK_H);\r\n// \r\n// m_tabbedPane.addTab(\"正向网图\", rm_graphPanel);\r\n// m_tabbedPane.setToolTipTextAt(3, \"正向网图..\");\r\n// m_tabbedPane.setMnemonicAt(3, KeyEvent.VK_H);\r\n \r\n // Create the frame which shows the application.\r\n //为图像展示创建框架\r\n m_frame = new JFrame(\"OWL2Prefuse v1.2 | Demo application\");\r\n m_frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n // m_frame.setJMenuBar(getMenuBar());\r\n m_frame.add(m_tabbedPane);\r\n m_frame.pack();\r\n m_frame.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n m_frame.setVisible(true);\r\n \r\n // Create the file chooser.\r\n m_fc = new JFileChooser();\r\n }",
"public static void DrawIt (Graph<Integer,String> g) {\n\t\tISOMLayout<Integer,String> layout = new ISOMLayout<Integer,String>(g);\r\n\t\t// The Layout<V, E> is parameterized by the vertex and edge types\r\n\t\tlayout.setSize(new Dimension(650,650)); // sets the initial size of the space\r\n\t\t// The BasicVisualizationServer<V,E> is parameterized by the edge types\r\n\t\tBasicVisualizationServer<Integer,String> vv =\r\n\t\tnew BasicVisualizationServer<Integer,String>(layout);\r\n\t\tvv.setPreferredSize(new Dimension(650,650)); //Sets the viewing area size\r\n\t\tJFrame frame = new JFrame(\"Simple Graph View\");\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().add(vv);\r\n\t\tframe.pack();\r\n\t\tframe.setVisible(true);\r\n\r\n\t}",
"void genReport() {\n\n current_part.save_state(); \n\n JTextArea ta = text;\n\n ta.setText(\"\");\n\n if (!t_foil_name.equals(\"Test\"))\n ta.append(\"Hydrofoil: \" + t_foil_name);\n\n java.util.Date date = new java.util.Date();\n ta.append(\"\\n Date: \" + date);\n \n wing.print( \"Main Wing\", ta);\n stab.print( \"Stabilizer Wing\", ta);\n strut.print(\"Mast (a.k.a. Strut)\", ta);\n fuse.print( \"Fuselage\", ta);\n\n ta.append( \"\\n\\n\");\n // tail volume is LAElev * AreaElev / (MACWing * AreaWing)\n // LAElev : The elevator's Lever Arm measured at the wing's and elevator's quarter chord point\n double LAElev = stab.xpos + stab.chord_xoffs + 0.25*stab.chord - (wing.xpos + wing.chord_xoffs + 0.25*wing.chord);\n // MAC : The main wing's Mean Aerodynamic Chord\n // AreaWing : The main wing's area\n // AreaElev : The elevator's area\n \n ta.append( \"\\nTail Voulume: \" + LAElev*stab.span*stab.chord/(wing.chord*wing.chord*wing.span));\n \n\n ta.append( \"\\n\\n\");\n switch (planet) {\n case 0: { \n ta.append( \"\\n Standard Earth Atmosphere\" );\n break;\n }\n case 1: { \n ta.append( \"\\n Martian Atmosphere\" );\n break;\n }\n case 2: { \n ta.append( \"\\n Water\" );\n break;\n }\n case 3: { \n ta.append( \"\\n Specified Conditions\" );\n break;\n }\n case 4: { \n ta.append( \"\\n Specified Conditions\" );\n break;\n }\n }\n\n // ta.append( \"\\n Altitude = \" + filter0(alt_val) );\n // if (lunits == IMPERIAL) ta.append( \" ft ,\" );\n // else /*METRIC*/ ta.append( \" m ,\" );\n \n switch (lunits) {\n case 0: { /* English */\n ta.append( \"\\n Density = \" + filter5(rho_EN) );\n ta.append( \"slug/cu ft\" );\n ta.append( \"\\n Pressure = \" + filter3(ps0/144.) );\n ta.append( \"lb/sq in,\" );\n ta.append( \" Temperature = \" + filter0(ts0 - 460.) );\n ta.append( \"F,\" );\n break;\n }\n case 1: { /* Metric */\n ta.append( \" Density = \" + filter3(rho_EN*515.4) );\n ta.append( \"kg/cu m\" );\n ta.append( \"\\n Pressure = \" + filter3(101.3/14.7*ps0/144.) );\n ta.append( \"kPa,\" );\n ta.append( \" Temperature = \" + filter0(ts0*5.0/9.0 - 273.1) );\n ta.append( \"C,\" );\n break;\n }\n }\n\n ta.append( \"\\n Speed = \" + filter1(velocity * (lunits==IMPERIAL? 0.868976 : 0.539957 )) + \"Kts, or\" );\n ta.append( \" \" + filter1(velocity) );\n if (lunits == IMPERIAL) ta.append( \" mph ,\" );\n else /*METRIC*/ ta.append( \" km/hr ,\" );\n\n // if (out_aux_idx == 1)\n // ta.append( \"\\n Lift Coefficient = \" + filter3(current_part.cl) );\n // if (out_aux_idx == 0) {\n // if (Math.abs(lift) <= 10.0) ta.append( \"\\n Lift = \" + filter3(lift) );\n // if (Math.abs(lift) > 10.0) ta.append( \"\\n Lift = \" + filter0(lift) );\n // if (lunits == IMPERIAL) ta.append( \" lbs \" );\n // else /*METRIC*/ ta.append( \" Newtons \" );\n // }\n // if ( polarOut == 1)\n // ta.append( \"\\n Drag Coefficient = \" + filter3(current_part.cd) );\n // if (out_aux_idx == 0) {\n // ta.append( \"\\n Drag = \" + filter0(drag) );\n // if (lunits == IMPERIAL) ta.append( \" lbs \" );\n // else /*METRIC*/ ta.append( \" Newtons \" );\n // }\n\n ta.append( \"\\n Lift = \" + dash.outTotalLift.getText());\n ta.append( \"\\n Drag = \" + dash.outTotalDrag.getText());\n\n if (min_takeoff_speed_info != null) \n ta.append( \"\\n\\n\" + min_takeoff_speed_info);\n\n if (cruising_info != null) \n ta.append( \"\\n\\n\" + cruising_info);\n\n if (max_speed_info != null) \n ta.append( \"\\n\\n\" + max_speed_info);\n\n // ensure end ta.setCaretPosition(ta.getText().length());\n // ensure start\n ta.setCaretPosition(0);\n }",
"private String generateHtmlLayout(String title, List<HtmlData> data) {\n return html(\n head(\n title(title),\n link().withRel(\"stylesheet\").withHref(\"asciidoctor.css\")\n ),\n body(\n generateHeader(title),\n generateBody(data)\n )\n ).withStyle(\"padding: 10px 30px\").renderFormatted();\n }",
"void createGraphForMassiveLoad();",
"public void outputSvg(String fileName){\n\t\ttry {\n\t\t\tFileWriter fw = new FileWriter(new File(fileName));\n\t\t\tfw.write(output);\n\t\t\tfw.flush();\n\t\t\tfw.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\t}",
"public void drawEdges(){\n for (Edge edge : primsAlg.getEdges()){\n //DRAW VIEW\n drawView = new DrawView(this);\n drawView.setVertex1(edge.getVertex1());\n drawView.setVertex2(edge.getVertex2());\n primsLayout.addView(drawView);\n\n addEdge(drawView);\n\n showWeight(edge);\n\n }\n }",
"public static void graphTree(CommonTree tree){\n\t\tDOTTreeGenerator gen = new DOTTreeGenerator(); \n\t\tStringTemplate st = gen.toDOT(tree); \n\n\t\tString type = \"jpg\";\n\t\tGraphViz gv = new GraphViz();\n\t\tgv.addln(st.toString());\n\n\t\tSystem.out.println(\"Before\");\n\n\t\tImageIcon img = new ImageIcon(gv.getGraph(gv.getDotSource(), type));\n\n\t\tSystem.out.println(\"After\");\n\n\t\tint newHeight = 775, newWidth = 1255; \n\t\t/* This is for writing the image to disk*/\n\t\tFile out = new File(\"graph.\" + type); // Linux\n\t\tgv.writeGraphToFile( gv.getGraph( gv.getDotSource(), type ), out );\n\t\t//\t\tif (iw > newWidth){\n\t\t//\t\t\tnewHeight = newWidth * ih/iw ;\n\t\t//\t\t\tBufferedImage resizedImg = new BufferedImage(newWidth, newHeight, BufferedImage.TYPE_INT_RGB);\n\t\t//\t\t\tGraphics2D g2 = resizedImg.createGraphics();\n\t\t//\t\t\t\n\t\t//\t\t\tg2.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);\n\t\t//\t\t\tg2.drawImage(img.getImage(), 0, 0, newWidth, newHeight, null);\n\t\t//\t\t\tg2.dispose();\n\t\t//\t\t\timg = new ImageIcon(resizedImg);\n\t\t//\t\t}\n\n\t\tJFrame jf = new JFrame(\"Abstract Syntax Tree\");\n\t\tjf.setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n\t\tJLabel photographLabel = new JLabel();\n\t\tphotographLabel.setHorizontalAlignment(JLabel.CENTER);\n\t\t//private Image getScaledImage(Image srcImg, int w, int h){\n\n\n\t\tphotographLabel.setIcon(img);\n\t\tJScrollPane scrollPane = new JScrollPane(photographLabel);\n\t\tjf.add(scrollPane, BorderLayout.CENTER);\n\t\tjf.pack();\n\t\tjf.setSize(newWidth+50, newHeight+50);\n\t\tjf.setResizable(true);\n\t\tjf.setVisible(true);\n\t\t/*end graphical display*/\n\t}",
"public String html(PrismConfig config) {\n\t\tStringBuffer sb = new StringBuffer();\n\t\tString graphClass = (cluster == null) ? \"circularGenomeGraph\"\n\t\t\t\t: \"clusterGenomeGraph\";\n\n\t\tsb.append(\"<object type='image/svg+xml' data='\" + link + \"' class='\"\n\t\t\t\t+ graphClass + \"'>\");\n\t\tsb.append(\"Your browser does not support SVG\"); // fallback text\n\t\tsb.append(\"</object>\");\n\n\t\tString legend = (cluster == null) ? Legend.getGenomeGraphLegend(config)\n\t\t\t\t: \"\";\n\t\tsb.append(legend);\n\n\t\treturn sb.toString();\n\t}",
"public static void CreateReport() {\n\t\tString fileName = new SimpleDateFormat(\"'Rest_Country_Report_'YYYYMMddHHmm'.html'\").format(new Date());\n\t\tString path = \"Report/\" + fileName;\n\t\treport = new ExtentReports(path);\n\t}",
"public FlowPane simulationGraphs() {\r\n\t\t// Create FlowPane Of Graphs\r\n\t\tFlowPane graphs = new FlowPane(queueLengthGraph, queueTimeGraph, carparkUtilisationGraph);\r\n\t \r\n\t\t// Setup Pane\r\n\t\tgraphs.setMinSize(1000, 200);\r\n\t\t\r\n\t\treturn graphs;\r\n\t}",
"@Override\n public boolean save(String file) {\n /*\n Create a builder for the specific JSON format\n */\n GsonBuilder gsonBuilder = new GsonBuilder();\n gsonBuilder.setPrettyPrinting();\n JsonSerializer<DWGraph_DS> serializer = new JsonSerializer<DWGraph_DS>() {\n @Override\n public JsonElement serialize(DWGraph_DS dwGraph_ds, Type type, JsonSerializationContext jsonSerializationContext) {\n JsonObject jsonGraph = new JsonObject();\n jsonGraph.add(\"Nodes\", new JsonArray());\n jsonGraph.add(\"Edges\", new JsonArray());\n\n for (node_data node : G.getV()) {\n JsonObject jsonNodeObject = new JsonObject();\n\n StringBuilder pos = new StringBuilder();\n pos.append(node.getLocation().x());\n pos.append(',');\n pos.append(node.getLocation().y());\n pos.append(',');\n pos.append(node.getLocation().z());\n jsonNodeObject.addProperty(\"pos\", pos.toString());\n jsonNodeObject.addProperty(\"id\", node.getKey());\n jsonNodeObject.addProperty(\"info\", node.getInfo());\n jsonNodeObject.addProperty(\"tag\", node.getTag());\n jsonGraph.get(\"Nodes\").getAsJsonArray().add(jsonNodeObject);\n for (edge_data e : G.getE(node.getKey())) {\n JsonObject jsonEdgeObject = new JsonObject();\n jsonEdgeObject.addProperty(\"src\", e.getSrc());\n jsonEdgeObject.addProperty(\"w\", e.getWeight());\n jsonEdgeObject.addProperty(\"dest\", e.getDest());\n jsonEdgeObject.addProperty(\"info\", e.getInfo());\n jsonEdgeObject.addProperty(\"tag\", e.getTag());\n jsonGraph.get(\"Edges\").getAsJsonArray().add(jsonEdgeObject);\n }\n }\n return jsonGraph;\n }\n };\n gsonBuilder.registerTypeAdapter(DWGraph_DS.class, serializer);\n Gson graphGson = gsonBuilder.create();\n try {\n PrintWriter writer = new PrintWriter(new FileWriter(file));\n writer.write(graphGson.toJson(G));\n writer.flush();\n writer.close();\n return true;\n } catch (IOException e) {\n e.printStackTrace();\n return false;\n }\n }",
"private void createD3Example() {\n\n\t\tSystem.out.println(\"createD3Example\");\n\n\t\tboolean showPoints = true;\n\n\t\tint widthSVG = 1200;\n\t\tint heightSVG = 800;\n\n\t\td3 = browser.getD3();\n//\t\tSystem.out.println(\"D3 version \" + d3.version());\n\t\twebEngine = d3.getWebEngine();\n\n\t\t// apply CSS\n\t\tloadCssForThisClass();\n\n\t\tsvg = d3.select(\"svg\")\n\t\t\t\t.attr(\"width\", widthSVG)\n\t\t\t\t.attr(\"height\", heightSVG);\n\n\t\ttry {\n\n\t\t\tinjectStyleInSVG();\n\n\t\t} catch (TransformerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\n\n\t\t// create initial d3 content\n\n\t\t// data that you want to plot, I\"ve used separate arrays for x and y values\n\t\tdouble[] xData = {5, 10, 25, 32, 40, 40, 15, 7};\n\t\tdouble[] yData = {3, 17, 4, 10, 6, -20, -20.0, 0};\n\n\t\t// size and margins for the chart\n\n\t\tdouble totalWidth = 550;\n\t\tdouble totalHeight = 550;\n\n\t\tdouble marginLeft = 60;\n\t\tdouble marginRight = 15;\n\n\t\tdouble marginTop = 20;\n\t\tdouble marginBottom = 60;\n\n\t\tdouble width = totalWidth - marginLeft - marginRight;\n\t\tdouble height = totalHeight - marginTop - marginBottom;\n\n\t\t// x and y scales, I've used linear here but there are other options\n\t\t// the scales translate data values to pixel values for you\n\t\tdouble xMin = 0;\n\t\tdouble xMax = 50;\n\t\tLinearScale x = d3.scale().linear() //\n\t\t .domain(new double[]{xMin, xMax}) // the range of the values to plot\n\t\t .range(new double[]{0, width}); // the pixel range of the x-axis\n\n\t\tdouble yMin = -25;\n\t\tdouble yMax = 25;\n\t\tLinearScale y = d3.scale().linear() //\n\t\t .domain(new double[]{yMin, yMax}) //\n\t\t .range(new double[]{height, 0});\n\n\t\t// the chart object, includes all margins\n\t\tSelection chart = d3.select(\"svg\") //\n\t\t\t.attr(\"width\", width + marginRight + marginLeft) //\n\t\t\t.attr(\"height\", height + marginTop + marginBottom) //\n\t\t\t.attr(\"class\", \"chart\");\n\n\t\t// the main object where the chart and axis will be drawn\n\t\tSelection main = chart.append(\"g\") //\n\t\t\t.attr(\"transform\", \"translate(\" + marginLeft + \",\" + marginTop + \")\") //\n\t\t\t.attr(\"width\", width) //\n\t\t\t.attr(\"height\", height) //\n\t\t\t.attr(\"class\", \"main\");\n\n\t\t// draw the x axis\n\t\tAxis xAxis = d3.svg().axis().scale(x).orient(Orientation.BOTTOM);\n\n\t\t//xAxis.innerTickSize(10);\n\n\n\t\tmain.append(\"g\") //\n\t\t\t.attr(\"transform\", \"translate(0,\" + height + \")\") //\n\t\t\t.attr(\"class\", \"main axis date\").call(xAxis);\n\n\t\t// draw the y axis\n\t\tAxis yAxis = d3.svg().axis() //\n\t\t\t.scale(y) //\n\t\t\t.orient(Orientation.LEFT);\n\t\t\n\t\tmain.append(\"g\") //\n\t\t\t.attr(\"transform\", \"translate(0,0)\") //\n\t\t\t.attr(\"class\", \"main axis date\") //\n\t\t\t.call(yAxis);\n\n\t\t// draw the graph object\n\t\tSelection g = main.append(\"svg:g\");\n\n\t\tg.selectAll(\"scatter-dots\")\n\t\t .data(yData) // using the values in the ydata array\n\t\t .enter().append(\"svg:circle\") // create a new circle for each value\n\t\t .attr(\"cy\", new YAxisDatumFunction(webEngine, y, yData) ) // translate y value to a pixel\n\t\t .attr(\"cx\", new XAxisDatumFunction(webEngine, x, xData)) // translate x value\n\t\t .attr(\"r\", 5) // radius of circle\n\t\t .style(\"opacity\", 1.0); // opacity of circle\n\n\n\t\t// Line, the path generator\n\t\tLine line;\n\n\t\tInterpolationMode mode = InterpolationMode.LINEAR;\n\n\t\tline = d3.svg().line()\n\t\t\t\t.x(new XAxisDatumFunction(webEngine, x, xData))\n\t\t\t\t.y(new YAxisDatumFunction(webEngine, y, yData));\n\n\t\tSelection g2 = g.append(\"svg:g\")\n\t\t\t\t.classed(\"Pippo-line-group\", true);\n\n\t\tString cssClassName = \"Agodemar-Test-Line\";\n\t\tSelection pathLine = g2.append(\"path\").classed(cssClassName, true);\n\t\tpathLine\n\t\t\t.attr(\"fill\",\"none\")\n\t\t\t.attr(\"stroke\",\"red\")\n\t\t\t.attr(\"stroke-width\",\"5\")\n\t\t\t.attr(\"stroke-linecap\",\"square\") // \"butt\", \"round\", \"square\"\n\t\t\t.attr(\"stroke-dasharray\",\"15,10\");\n\n\t\tfinal Stack<Coords> points = new Stack<>();\n\n//\t\tdouble [] x = {50.0, 120.0, 400.0, 700};\n//\t\tdouble [] y = {100.0, 30.0, 20.0, 200};\n\n\t\tIntStream.range(0, xData.length)\n\t\t\t.forEach(i ->\n\t\t\t\t\tpoints.push(new Coords(webEngine, xData[i], yData[i]))\n\t\t\t\t\t);\n\n//\t\tSystem.out.println(\"points:\");\n//\t\tpoints.stream()\n//\t\t\t.forEach(p -> System.out.println(p.x()+\", \"+p.y()));\n\n\t\tmode = InterpolationMode.MONOTONE;\n\t\tline = line.interpolate(mode);\n\t\tSystem.out.println(\"Interpolation mode: \" + line.interpolate());\n\n\t\tdouble tension = 0.1;\n\t\tline = line.tension(tension);\n//\t\tSystem.out.println(\"tension: \" + line.tension());\n\n\t\tList<Coords> coordsList = new ArrayList<>(points);\n\n//\t\tSystem.out.println(\"coordsList:\");\n//\t\tcoordsList.stream()\n//\t\t\t.forEach(c -> System.out.println(c.x()+\", \"+c.y()));\n\n\t\tString coordinates = line.generate(coordsList);\n\n//\t\tSystem.out.println(\"coordinates: \" + coordinates);\n\n\t\tpathLine.attr(\"d\", coordinates);\n\n\t\tLabelFactory labelFactory = new LabelFactory();\n\t\t\n//\t\tSelection myText = labelFactory.createInParentSelection(svg);\n//\t\tmyText.text(\"Agodemar!!!\");\n\t\t\n\t\tSelection text = svg.append(\"text\") //\n\t\t\t\t.attr(\"x\", 20) // String.format(\"%d\", widthSVG/2))\n\t\t\t\t.attr(\"y\", 100) // String.format(\"%d\", heightSVG/2))\n\t\t\t\t.text(\"Hello World\");\t\t\n\t\t\n\t\tsvg.append(\"g\")\n\t\t\t.attr(\"class\", \"main\")\n\t\t\t.append(\"text\")\n\t\t\t.attr(\"x\", 20).attr(\"dx\", \"12em\")\n\t\t\t.attr(\"y\", 56).attr(\"dy\", \"2em\")\n\t\t\t.attr(\"font\",\"20px sans-serif\")\n\t\t\t.text(\"Agodemar!!!\");\n\n//\t\tsvg.append(\"g\")\n//\t\t\t.attr(\"class\", \"y\" + \" \" + \"axis\")\n//\t\t\t.call(yAxis).append(\"text\")\n//\t\t\t.attr(\"transform\", \"rotate(-90)\")\n//\t\t\t.attr(\"y\", 6).attr(\"dy\", \".71em\")\n//\t\t\t.style(\"text-anchor\", \"end\")\n//\t\t\t.text(\"Frequency\");\n\t\t\n\t\t\n//\t\t// make a paragraph <p> in the html\n//\t\td3.select(\"body\").append(\"p\").text(\"Agodemar :: Hi there!\");\n\n\t}",
"public void generateDotFile(String filename) {\n\t\ttry {\n\t\t\tPrintWriter out = new PrintWriter(filename);\n\t\t\tout.println(\"digraph Heap {\\n\\tnode [shape=record]\\n\");\n\n\t\t\tfor (int i = 0; i < currentSize; i++) {\n\t\t\t\tout.println(\"\\tnode\" + i + \" [label = \\\"<f0> |<f1> \" + array[i] + \"|<f2> \\\"]\");\n\t\t\t\tif (((i * 2) + 1) < currentSize)\n\t\t\t\t\tout.println(\"\\tnode\" + i + \":f0 -> node\" + ((i * 2) + 1) + \":f1\");\n\t\t\t\tif (((i * 2) + 2) < currentSize)\n\t\t\t\t\tout.println(\"\\tnode\" + i + \":f2 -> node\" + ((i * 2) + 2) + \":f1\");\n\t\t\t}\n\n\t\t\tout.println(\"}\");\n\t\t\tout.close();\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}",
"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 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 }",
"@RequestMapping(value=\"/async/graph\", method=RequestMethod.GET)\n\tpublic @ResponseBody GraphPojo getGraph() {\n\t\tList<Collection> collections = collectionService.findAllCurrent();\n\t\tList<Agent> agents = agentService.findAllCurrent();\n\t\tList<NodePojo> nodes = new ArrayList<NodePojo>();\n\t\tList<EdgePojo> edges = new ArrayList<EdgePojo>();\n\t\tList<String> nodeIds = new ArrayList<String>();\n\t\t\n\t\tNodePojo node;\n\t\tEdgePojo edge;\n\t\t\n\t\t// Nodes\n\t\tfor (Collection c : collections) {\n\t\t\tnode = new NodePojo();\n\t\t\tnode.setId(c.getEntityId());\n\t\t\tnode.setLabel(c.getLocalizedDescriptions().get(0).getTitle());\n\t\t\tnode.setType(\"collection\");\n\t\t\tnodes.add(node);\n\t\t\tnodeIds.add(node.getId());\n\t\t}\n\t\tfor (Agent agent : agents) {\n\t\t\tnode = new NodePojo();\n\t\t\tnode.setId(agent.getEntityId());\n\t\t\t\n\t\t\tif (agent.getForeName()==null) {\n\t\t\t\tnode.setType(\"organization\");\n\t\t\t} else {\n\t\t\t\tnode.setType(\"person\");\n\t\t\t}\n\t\t\t\n\t\t\tString name = (agent.getForeName()==null? \"\": (agent.getForeName() + \" \")) + agent.getName() ;\n\t\t\tnode.setLabel(name);\n\t\t\tnodes.add(node);\n\t\t\tnodeIds.add(node.getId());\n\t\t}\n\t\t\n\t\t// Edges\n\t\tfor (Collection c : collections) {\n\t\t\tif (c.getRelations()!=null) {\n\t\t\t\tfor (CollectionRelation cr : c.getRelations()) {\n\t\t\t\t\tedge = new EdgePojo();\n\t\t\t\t\tedge.setSource(cr.getSourceEntityId());\n\t\t\t\t\tedge.setTarget(cr.getTargetEntityId());\n\t\t\t\t\t\n\t\t\t\t\tif (!edges.contains(edge) && nodeIds.contains(edge.getSource()) && nodeIds.contains(edge.getTarget())) {\n\t\t\t\t\t\tedges.add(edge);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (c.getAgentRelations()!=null && c.getAgentRelations().size()!=0) {\n\t\t\t\tfor (CollectionAgentRelation car : c.getAgentRelations()) {\n\t\t\t\t\tedge = new EdgePojo();\n\t\t\t\t\tedge.setSource(c.getEntityId());\n\t\t\t\t\tedge.setTarget(car.getAgentId());\n\t\t\t\t\tif (!edges.contains(edge) && nodeIds.contains(edge.getSource()) && nodeIds.contains(edge.getTarget())) {\n\t\t\t\t\t\tedges.add(edge);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (Agent agent : agents) {\n\t\t\tif (agent.getParentAgentId()!=null && !agent.getParentAgentId().isEmpty()) {\n\t\t\t\tedge = new EdgePojo();\n\t\t\t\tedge.setSource(agent.getEntityId());\n\t\t\t\tedge.setTarget(agent.getParentAgentId());\n\t\t\t\t\n\t\t\t\tif (!edges.contains(edge) && nodeIds.contains(edge.getSource()) && nodeIds.contains(edge.getTarget())) {\n\t\t\t\t\tedges.add(edge);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tGraphPojo graph = new GraphPojo();\n\t\tgraph.setNodes(nodes);\n\t\tgraph.setEdges(edges);\n\t\t\n\t\treturn graph;\t\t\n\t}",
"public void drawGraph() {\n\t\tthis.ig2.setColor(this.backgroundColor);\n\t\tthis.ig2.fillRect(0, 0, this.bi.getWidth(), this.bi.getHeight());\n\n\t\tthis.drawLines();\n\t\tthis.drawFonts(this.scaleStringLine * 10);\n\t\tthis.drawCurves(this.scaleStringLine * 10);\n\t}",
"public void createFile(){\r\n JFileChooser chooser = new JFileChooser();\r\n chooser.setAcceptAllFileFilterUsed(false);\r\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"Only XML Files\", \"xml\");\r\n chooser.addChoosableFileFilter(filter);\r\n chooser.showSaveDialog(null);\r\n File f = chooser.getSelectedFile();\r\n if (!f.getName().endsWith(\".xml\")){\r\n f = new File(f.getAbsolutePath().concat(\".xml\"));\r\n }\r\n try {\r\n BufferedWriter bw = new BufferedWriter(new FileWriter(f));\r\n try (PrintWriter pw = new PrintWriter(bw)) {\r\n pw.println(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\r\n pw.println(\"<osm>\");\r\n for (Node node : this.getListNodes()) {\r\n if(node.getType() == TypeNode.INCENDIE){\r\n pw.println(\" <node id=\\\"\"+node.getId()+\"\\\" x=\\\"\"+node.getX()+\"\\\" y=\\\"\"+node.getY()+\"\\\" type=\\\"\"+node.getType()+\"\\\" intensity=\\\"\"+node.getFire()+\"\\\" />\");\r\n } else {\r\n pw.println(\" <node id=\\\"\"+node.getId()+\"\\\" x=\\\"\"+node.getX()+\"\\\" y=\\\"\"+node.getY()+\"\\\" type=\\\"\"+node.getType()+\"\\\" />\");\r\n }\r\n }\r\n for (Edge edge : this.getListEdges()) {\r\n pw.println(\" <edge nd1=\\\"\"+edge.getNode1().getId()+\"\\\" nd2=\\\"\"+edge.getNode2().getId()+\"\\\" type=\\\"\"+edge.getType()+\"\\\" />\");\r\n }\r\n pw.println(\"</osm>\");\r\n }\r\n } catch (IOException e) {\r\n System.out.println(\"Writing Error : \" + e.getMessage());\r\n }\r\n }",
"protected void writePreamble() throws IOException {\n\n // Begin graph\n writeLine(\"digraph workflow {\");\n\n // Overall graph style\n writeLine(\" graph [\");\n writeLine(\" bgcolor = \\\"#eeeeee\\\"\");\n writeLine(\" color = \\\"black\\\"\");\n writeLine(\" fontsize = \\\"10\\\"\");\n writeLine(\" labeljust = \\\"left\\\"\");\n writeLine(\" clusterrank = \\\"local\\\"\");\n writeLine(\" ranksep = \\\"0.22\\\"\");\n writeLine(\" nodesep = \\\"0.05\\\"\");\n writeLine(\" ]\");\n\n // Overall node style\n writeLine(\" node [\");\n writeLine(\" fontname = \\\"Helvetica\\\"\");\n writeLine(\" fontsize = \\\"10\\\"\");\n writeLine(\" fontcolor = \\\"black\\\"\");\n writeLine(\" shape = \\\"record\\\"\");\n writeLine(\" height = \\\"0\\\"\");\n writeLine(\" width = \\\"0\\\"\");\n writeLine(\" color = \\\"black\\\"\");\n writeLine(\" fillcolor = \\\"lightgoldenrodyellow\\\"\");\n writeLine(\" style = \\\"filled\\\"\");\n writeLine(\" ];\");\n\n // Overall edge style\n writeLine(\" edge [\");\n writeLine(\" fontname=\\\"Helvetica\\\"\");\n writeLine(\" fontsize=\\\"8\\\"\");\n writeLine(\" fontcolor=\\\"black\\\"\");\n writeLine(\" color=\\\"black\\\"\");\n writeLine(\" arrowsize=\\\"0.7\\\"\");\n writeLine(\" ];\");\n }",
"public void printTopology(int numOfVertices, String topologyFilePath) throws IOException {\r\n String s;\r\n //FileWriter graphToplogy = null;\r\n topologyFilePath += \"GraphTopology.txt\";\r\n FileWriter graphTopology = new FileWriter(topologyFilePath);\r\n\r\n //s = \"#Nodes:= \" + \" \" + numOfVertices + \"\\n\";\r\n s = \"#Nodes:= \" + numOfVertices + \"\\n\";\r\n graphTopology.write(s);\r\n s = \"#Class:= \" + FixedGraph.class.getName() + \"\\n\";\r\n graphTopology.write(s);\r\n s = \"#Connectivity:= \" + connectivity + \"\\n\";\r\n graphTopology.write(s);\r\n s = \"#Seed:= \" + graphSeed + \"\\n\";\r\n graphTopology.write(s);\r\n s = \"#Version:= \" + BuildGraph.version + \"\\n\";\r\n graphTopology.write(s);\r\n graphTopology.close();\r\n\r\n try {\r\n for (int i = 0; i < numOfVertices; i++) {\r\n graphTopology = new FileWriter(topologyFilePath, true);\r\n for (int j = 0; j < numOfVertices; j++) {\r\n s = null;\r\n if ((i == j) || (super.isAdjacent(i, j) == false)) {\r\n continue;\r\n } else {\r\n s = \"\" + i + \"\\t\" + j + \"\";\r\n s = s + '\\n';\r\n graphTopology.write(s);\r\n\r\n }\r\n }\r\n graphTopology.close();\r\n }\r\n graphTopology.close();\r\n System.out.println(\"Terminating Normally\");\r\n System.out.println(\"Post Check\");\r\n System.out.println();\r\n\r\n int numOfEdges;\r\n for (int i = 0; i < numOfVertices; i++) {\r\n\r\n numOfEdges = super.countEdges(i);\r\n System.out.print(\"Node \" + i + \" has \" + numOfEdges + \" Edges \");\r\n for (int j = 0; j < numOfEdges; j++) {\r\n System.out.print(\"*\");\r\n }\r\n System.out.println();\r\n }\r\n } catch (IOException e) {\r\n System.out.println(\"I/O Exception \" + e);\r\n }\r\n\r\n }",
"private void createGUI() {\r\n\r\n cgRect modelSpace = new cgRect(0, 0, 11, 11);\r\n cgRect deviceSpace = new cgRect(0, 0, 600, 600);\r\n\r\n cgTransformation tr = new cgTransformation(modelSpace, deviceSpace, false, false);\r\n\r\n /**\r\n *\r\n */\r\n // The formatter of axis' labels will use default locale and pattern\r\n NumberFormat nf = NumberFormat.getInstance();\r\n\r\n // We will use \"fixed size\" axis renderer for all axes\r\n \r\n // 参数一:标签刻度长度大小 参数二:标签数字长度大小 参数三:数字和刻度之间的距离大小,长度为像素\r\n cgAxisRenderer ar = new cgFixedSizeAxisRenderer(5, 15, 50, nf);\r\n\r\n // ----------------------------------------------------\r\n // First axis - values match the model coordinates,\r\n // model origin is at 0.0\r\n // ----------------------------------------------------\r\n \r\n // 第三个参数为显示的数字数\r\n cgRect bbox1 = new cgRect(0, 0, 11, 1);\r\n TickGenerator tg1 = new NumericTickGenerator(1.0);\r\n cgAxisShape axis1 = new cgAxisShape(cgAxisShape.NORTH, bbox1, tg1, ar);\r\n\r\n cgShapeListLayer layer = new cgShapeListLayer();\r\n\r\n layer.addShape(axis1);\r\n\r\n /**\r\n *\r\n */\r\n // ----------------------------------------------------\r\n // Create grid using regular grid renderer\r\n // ----------------------------------------------------\r\n cgRect bbox = new cgRect(0, 0, 10, 10);\r\n TickGenerator htg = new NumericTickGenerator(1.0);\r\n TickGenerator vtg = new NumericTickGenerator(1.0);\r\n cgGridRenderer gr = new cgRegularGridRenderer();\r\n cgGridShape grid = new cgGridShape(bbox, htg, vtg, gr);\r\n\r\n // ----------------------------------------------------\r\n // Create view\r\n // ----------------------------------------------------\r\n// cgShapeListLayer layer = new cgShapeListLayer();\r\n// layer.addShape( grid );\r\n cgContainerModel model = new cgContainerModel();\r\n model.setBoundingBox(modelSpace);\r\n model.addLayer(layer);\r\n\r\n cgPlotView view = new cgPlotView(model, tr);\r\n\r\n // ----------------------------------------------------\r\n // Create plot\r\n // ----------------------------------------------------\r\n cgPlot plot = new cgPlot(view);\r\n\r\n plot.addScrollbar(cgGenericPlotLayout.SOUTH);\r\n plot.addScrollbar(cgGenericPlotLayout.EAST);\r\n\r\n getContentPane().add(plot);\r\n\r\n // ----------------------------------------------------\r\n // Set up listeners\r\n // ----------------------------------------------------\r\n // Set window listener\r\n addWindowListener(new WindowAdapter() {\r\n public void windowClosing(WindowEvent e) {\r\n System.exit(0);\r\n }\r\n });\r\n }",
"public void addSequencesToGraphs(){\r\n\t\t\r\n\t\t\r\n\t\tgraphSingleOutput.addSequence(\"Firm\"+firmList.get(firmList.size()-1).firmID, new SetSingleOutput(firmList.get(firmList.size()-1).firmID));\r\n\t\t\r\n\t\tgraphSinglePrice.addSequence(\"Firm\"+firmList.get(firmList.size()-1).firmID, new SetSinglePrice(firmList.get(firmList.size()-1).firmID));\r\n\t\tgraphSingleQuality.addSequence(\"Firm\"+firmList.get(firmList.size()-1).firmID, new SetSingleQuality(firmList.get(firmList.size()-1).firmID));\r\n\t\tgraphSingleFirmLocations.addSequence(\"Firm\"+firmList.get(firmList.size()-1).firmID, new SetSingleNumLocations(firmList.get(firmList.size()-1).firmID));\r\n\t graphSingleProbability.addSequence(\"Inno prob Firm\"+firmList.get(firmList.size()-1).firmID, new SetSingleInnoProbability(firmList.get(firmList.size()-1).firmID));\r\n\t graphSingleProbability.addSequence(\"Imi Prob Firm\"+firmList.get(firmList.size()-1).firmID, new SetSingleImiProbability(firmList.get(firmList.size()-1).firmID));\r\n\t graphSinglelProfit.addSequence(\"Firm\"+firmList.get(firmList.size()-1).firmID, new SetSingleProfit(firmList.get(firmList.size()-1).firmID));\r\n\t graphSingleQualityConcept.addSequence(\"Firm\"+firmList.get(firmList.size()-1).firmID, new SetSingleQualityConcept(firmList.get(firmList.size()-1).firmID));\r\n\t graphCumProfit.addSequence(\"Firm\"+firmList.get(firmList.size()-1).firmID, new SetCumProfit(firmList.get(firmList.size()-1).firmID));\r\n\t \r\n\t firmList.get(firmList.size()-1).x_coord = freeCoordinates.get(0).xCo;\r\n\t firmList.get(firmList.size()-1).y_coord = freeCoordinates.get(0).yCo;\r\n\t freeCoordinates.remove(0);\r\n\t \r\n\t\t\r\n\t}",
"public interface ChartGenerator {\n /**\n * 生成jfreechart对象\n * @param list\n * @param title\n * @param chartType\n * @return\n * @throws Exception\n */\n public JFreeChart generateChart(List<ChartPoint> list\n , String title\n , ChartTypeEnum chartType) throws Exception;\n\n /**\n * 得到折线图的折点数据列表\n * @param events\n * @param begin\n * @param end\n * @param dataType\n * @return\n */\n public List<ChartPoint> getChartPoints(List<DailyEvent> events, long begin, long end, ChartDataTypeEnum dataType);\n\n /**\n * 将jfreechart 转换为base64编码的字符串\n * @param chart\n * @return\n * @throws Exception\n */\n public String chartToBASE64(JFreeChart chart) throws Exception;\n}",
"public String getGraphName()\n {\n return \"Testabilty Trend Report\";\n }",
"public static void main(String[] args) throws IOException {\n\n\t\tArrayList<Node> nodes = new ArrayList<Node>();\n\n\t\tStringBuilder graphVis = new StringBuilder();\n\t\t\n\t\tfloat edgeProb = 0.001f;\n\t\tgenerateNodesAndEdges(nodes, graphVis, edgeProb, // GraphConfig.EDGE_PROHABILITY\n\t\t\t\tGraphConfig.EDGE_LEVEL_LIMIT, GraphConfig.EDGE_LEVEL_FUNCTION);\n\t\t//generateNodesAndEdgesRecursiv(nodes, graphVis);\n\t\taddColocations(nodes);\n\n\t\t// do the visualization string creation after setting colocation\n\t\t// constraints, if not colocation constraints are not set correctly\n\t\tString graphPath = \"../../Sample_Data/Graph/Evaluation/\" + nodes.size() + \"n_\"\n\t\t\t\t+ m + \"_\" + Util.currentTime();\n\t\t/*\n\t\t * StringBuilder content = new StringBuilder();\n\t\t * \n\t\t * for (Node node : nodes) { content.append(node.toString()); }\n\t\t * \n\t\t * GraphWriter writer = new GraphWriter();\n\t\t * writer.write(content.toString(), graphPath);\n\t\t * if(shallCreateGraphVisualization){\n\t\t * writer.writeVisualisation(graphVis.toString(), graphPath); }\n\t\t */\n\t\tFile file = new File(graphPath + \".csv\");\n\n\t\t// if file doesnt exists, then create it\n\t\tif (!file.exists()) {\n\t\t\tfile.createNewFile();\n\t\t}\n\n\t\tFileWriter fw = new FileWriter(file.getAbsoluteFile());\n\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\tbw.write(GraphConfig.configToString() + \"\\n\");\n\t\tbw.write(\n\t\t\t\t\"Id,(Outgoing) node,(Incoming) node,Colocation nodes,#tensorSize, #operations, RAM storage,Device constraint ,name\\n\");\n\t\tfor (Node node : nodes) {\n\t\t\tbw.write(node.toString());\n\t\t}\n\t\tbw.close();\n\t\tfw.close();\n\t\t// now change properties of the graph\n\n\t\t// String[] edge_probability = {\"0.025\",\"0.05\",\"0.\",\"0.1\", \"0.2\",\"0.4\",\n\t\t// \"0.6\", \"0.8\",\"1\"};\n\t\t/*\n\t\t * String[] edge_probability = { \"0.05\", \"0.1\", \"0.2\", \"0.3\", \"0.4\" };\n\t\t * int nodeLevelDistance = -1; // watch out that all nodes are reachable\n\t\t * -> need sink node // ode sink = new Node(0, \"SINK\"); // not problem\n\t\t * anymore for (String factor : edge_probability) { content = new\n\t\t * StringBuilder(); // remove all edges for (Node nodeToRemoveEdges :\n\t\t * nodes) { nodeToRemoveEdges.removeAllEdges(); } for (Node node :\n\t\t * nodes) { // könnte man beschleunigen da es sich um eine Arraylist\n\t\t * handelt for (Node possibleEdge : nodes) { // To avoid cycles, would\n\t\t * be faster to exploid properties of // the arraylist if (node.level <\n\t\t * possibleEdge.level) { if (Math.random() < Float.parseFloat(factor)) {\n\t\t * if (nodeLevelDistance < 0 || (possibleEdge.level - node.level <\n\t\t * nodeLevelDistance)) { node.getOutgoingNodes().add(possibleEdge);\n\t\t * possibleEdge.getIncomingNodes().add(node);\n\t\t * \n\t\t * } } } } } // koennte man auch schon vorher hinzufuegen, aber um\n\t\t * Fehler // auszuschließen for (Node node : nodes) {\n\t\t * content.append(node.toString()); } writer.write(content.toString(),\n\t\t * graphPath + \"_\" + factor); }\n\t\t */\n\t\t// System.out.println(\"isReachable:\" +\n\t\t// isEveryNodeReachable(sink,numberOfNodes));\n\t\t\n\t\tif(shallCreateGraphVisualization){\n\t\t\tSystem.out.println(graphVis.toString());\n\t\t}\n\t}",
"private void createLegend()\n\t{\n\t\txml = new XMLOut(rfoDir + legendName, \"reprap-fab-at-home-build version=\\\"0.1\\\"\");\n\t\tfor(int i = 0; i < astl.size(); i++)\n\t\t{\n\t\t\txml.push(\"object name=\\\"object-\" + i + \"\\\"\");\n\t\t\t xml.push(\"files\");\n\t\t\t STLObject stlo = astl.get(i);\n\t\t\t for(int subObj = 0; subObj < stlo.size(); subObj++)\n\t\t\t {\n\t\t\t\t xml.push(\"file location=\\\"\" + stlName(stlo.getUnique(subObj)) + \"\\\" filetype=\\\"application/sla\\\" material=\\\"\" + \n\t\t\t\t\t\t stlo.attributes(subObj).getMaterial() + \"\\\"\");\n\t\t\t\t xml.pop();\n\t\t\t }\n\t\t\t xml.pop();\n\t\t\t writeTransform(stlo.trans());\n\t\t\txml.pop();\n\t\t}\n\t\txml.close();\n\t}",
"private HtmlExporter createHtmlTemplate( final HtmlExporter aExporter )\n {\n aExporter.addCssStyle( \"body { font-family: sans-serif; } \" );\n aExporter.addCssStyle( \"table { border-width: 1px; border-spacing: 0px; border-color: gray;\"\n + \" border-collapse: collapse; border-style: solid; margin-bottom: 15px; } \" );\n aExporter.addCssStyle( \"table th { border-width: 1px; padding: 2px; border-style: solid; border-color: gray;\"\n + \" background-color: #E0E0FF; text-align: center; font-weight: bold; font-family: sans-serif; } \" );\n aExporter.addCssStyle( \"table td { border-width: 1px; padding: 2px; border-style: solid; border-color: gray;\"\n + \" font-family: monospace; } \" );\n aExporter.addCssStyle( \".date { text-align: right; font-size: x-small; margin-bottom: 15px; } \" );\n aExporter.addCssStyle( \".w100 { width: 100%; } \" );\n aExporter.addCssStyle( \".w30 { width: 30%; } \" );\n aExporter.addCssStyle( \".w20 { width: 20%; } \" );\n aExporter.addCssStyle( \".w15 { width: 15%; } \" );\n aExporter.addCssStyle( \".w10 { width: 10%; } \" );\n\n final Element body = aExporter.getBody();\n body.addChild( H1 ).addContent( \"Asm45 Analysis results\" );\n body.addChild( HR );\n body.addChild( DIV ).addAttribute( \"class\", \"date\" ).addContent( \"{date-now}\" );\n\n Element table, tr, thead, tbody;\n\n table = body.addChild( TABLE ).addAttribute( \"class\", \"w100\" );\n tbody = table.addChild( TBODY );\n tr = tbody.addChild( TR );\n tr.addChild( TH ).addAttribute( \"colspan\", \"2\" ).addContent( \"Bus configuration\" );\n tr = tbody.addChild( TR );\n tr.addChild( TD ).addAttribute( \"class\", \"w30\" ).addContent( \"IDA0/..IDA15/\" );\n tr.addChild( TD ).addContent( \"0..15\" );\n tr = tbody.addChild( TR );\n tr.addChild( TD ).addAttribute( \"class\", \"w30\" ).addContent( \"BSC0/..BSC5/\" );\n tr.addChild( TD ).addContent( \"16..21\" );\n tr = tbody.addChild( TR );\n tr.addChild( TD ).addAttribute( \"class\", \"w30\" ).addContent( \"SMC/\" );\n tr.addChild( TD ).addContent( \"{smc-bus-config}\" );\n tr = tbody.addChild( TR );\n tr.addChild( TD ).addAttribute( \"class\", \"w30\" ).addContent( \"STM/\" );\n tr.addChild( TD ).addContent( \"{stm-bus-config}\" );\n tr = tbody.addChild( TR );\n tr.addChild( TD ).addAttribute( \"class\", \"w30\" ).addContent( \"EBG\" );\n tr.addChild( TD ).addContent( \"{ebg-bus-config}\" );\n tr = tbody.addChild( TR );\n tr.addChild( TD ).addAttribute( \"class\", \"w30\" ).addContent( \"BYTE\" );\n tr.addChild( TD ).addContent( \"{byte-bus-config}\" );\n tr = tbody.addChild( TR );\n tr.addChild( TD ).addAttribute( \"class\", \"w30\" ).addContent( \"BL\" );\n tr.addChild( TD ).addContent( \"{bl-bus-config}\" );\n tr = tbody.addChild( TR );\n tr.addChild( TD ).addAttribute( \"class\", \"w30\" ).addContent( \"WRT/\" );\n tr.addChild( TD ).addContent( \"{wrt-bus-config}\" );\n tr = tbody.addChild( TR );\n tr.addChild( TD ).addAttribute( \"class\", \"w30\" ).addContent( \"SYNC\" );\n tr.addChild( TD ).addContent( \"{sync-bus-config}\" );\n\n tbody = table.addChild( TBODY );\n tr = tbody.addChild( TR );\n tr.addChild( TH ).addAttribute( \"colspan\", \"2\" ).addContent( \"Statistics\" );\n tr = tbody.addChild( TR );\n tr.addChild( TD ).addAttribute( \"class\", \"w30\" ).addContent( \"Decoded words\" );\n tr.addChild( TD ).addContent( \"{decoded-words}\" );\n\n table = body.addChild( TABLE ).addAttribute( \"class\", \"w100\" );\n thead = table.addChild( THEAD );\n tr = thead.addChild( TR );\n tr.addChild( TH ).addAttribute( \"class\", \"w10\" ).addContent( \"Index\" );\n tr.addChild( TH ).addAttribute( \"class\", \"w10\" ).addContent( \"Clocks\" );\n tr.addChild( TH ).addAttribute( \"class\", \"w10\" ).addContent( \"Block\" );\n tr.addChild( TH ).addAttribute( \"class\", \"w10\" ).addContent( \"Address\" );\n tr.addChild( TH ).addAttribute( \"class\", \"w10\" ).addContent( \"Value\" );\n tr.addChild( TH ).addAttribute( \"class\", \"w10\" ).addContent( \"Bus Grant\" );\n tr.addChild( TH ).addAttribute( \"class\", \"w10\" ).addContent( \"Type\" );\n tr.addChild( TH ).addAttribute( \"class\", \"w30\" ).addContent( \"Event\" );\n tbody = table.addChild( TBODY );\n tbody.addContent( \"{decoded-data}\" );\n\n return aExporter;\n }",
"private void createchart() {\n int successcount = 0;\n int failedcount = 0;\n \n DefaultPieDataset barchartdata = new DefaultPieDataset();\n \n if(system == null && enterprise == null){\n for(Enterprise ent: network.getEnterpriseDirectory().getEnterpriseList()){\n for(WorkRequest request: ent.getWorkQueue().getWorkQueue()){\n if(request.getStatus() == WorkRequest.Status.ENTERPRISE2ADMINAPPROVED || request.getStatus() == WorkRequest.Status.ORGANIZATION3ADMINAPPROVED)\n successcount++;\n else if(request.getStatus() == WorkRequest.Status.TESTFAILED)\n failedcount++;\n }\n }\n }\n else if(network == null && enterprise == null){\n for(Network net: system.getNetworkList()){\n for(Enterprise ent: net.getEnterpriseDirectory().getEnterpriseList()){\n for(WorkRequest request: ent.getWorkQueue().getWorkQueue()){\n if(request.getStatus() == WorkRequest.Status.ENTERPRISE2ADMINAPPROVED || request.getStatus() == WorkRequest.Status.ORGANIZATION3ADMINAPPROVED)\n successcount++;\n else if(request.getStatus() == WorkRequest.Status.TESTFAILED)\n failedcount++;\n }\n }\n }\n }\n else{\n for(WorkRequest request: enterprise.getWorkQueue().getWorkQueue()){\n if(request.getStatus() == WorkRequest.Status.ENTERPRISE2ADMINAPPROVED || request.getStatus() == WorkRequest.Status.ORGANIZATION3ADMINAPPROVED)\n successcount++;\n else if(request.getStatus() == WorkRequest.Status.TESTFAILED)\n failedcount++;\n }\n }\n \n barchartdata.setValue( \"Successful Trials\",new Double(successcount));\n barchartdata.setValue(\"Failed trials\",new Double(failedcount));\n\n JFreeChart pieChart = ChartFactory.createPieChart(\"Successful versus failed trials\",barchartdata, false, true, false);\n final PiePlot plot=(PiePlot) pieChart.getPlot();\n ChartPanel barPanel = new ChartPanel(pieChart);\n\n dashboardpanel.removeAll();\n dashboardpanel.setLayout(new java.awt.BorderLayout());\n dashboardpanel.add(barPanel, BorderLayout.CENTER);\n dashboardpanel.validate();\n \n }",
"static public void writeGraph(Graph G, String file) {\n\t\ttry {\n\t\t\tPrintWriter out = new PrintWriter(file);\n\t\t\tout.println(G.numNodes());\n\t\t\tfor (int i = 0; i < G.numNodes(); i++) {\n\t\t\t\tArrayList<Pair<Integer, Double>> P = G.adjacentNodes(i);\n\t\t\t\tfor (Pair<Integer, Double> j : P) {\n\t\t\t\t\tif (i < j.first) {\n\t\t\t\t\t\tout.println(i + \" \" + j.first + \" \" + j.second);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tout.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void writeClusters(List<Cluster> clusters)\n {\n deleteAllFileFolders();\n \n \n // root elements\n Document doc = docBuilder.newDocument();\n Element rootElement = doc.createElement(\"ClusterInfo\");\n doc.appendChild(rootElement);\n Element numClusters=doc.createElement(\"NumOfClusters\");\n numClusters.appendChild(doc.createTextNode(clusters.size()+\"\"));\n rootElement.appendChild(numClusters); \n// Element clusterelem=doc.createElement(\"cluster\");\n int attribCnt=1;\n \n String writeText = \"\";\n for (Cluster cluster : clusters) {\n \n Element clusterelem=doc.createElement(\"cluster\");\n rootElement.appendChild(clusterelem);\n// Attr attr=doc.createAttribute(\"id\");\n// attr.setValue(\"\"+attribCnt++);\n// clusterelem.setAttributeNode(attr);\n clusterelem.setAttribute(\"id\", \"\"+attribCnt++);\n \n Index Firstindex = cluster.getFirstIndex();\n List<Index> indexes = cluster.getIndexLists();\n double rSpec = ((Double) Firstindex.getMeanRGB().get(0)).doubleValue();\n double gSpec = ((Double) Firstindex.getMeanRGB().get(1)).doubleValue();\n double bSpec = ((Double) Firstindex.getMeanRGB().get(2)).doubleValue();\n \n Element rspec=doc.createElement(\"rspec\");\n rspec.appendChild(doc.createTextNode(rSpec+\"\"));\n clusterelem.appendChild(rspec);\n \n Element gspec=doc.createElement(\"gspec\");\n gspec.appendChild(doc.createTextNode(gSpec+\"\"));\n clusterelem.appendChild(gspec);\n \n Element bspec=doc.createElement(\"bspec\");\n bspec.appendChild(doc.createTextNode(bSpec+\"\"));\n clusterelem.appendChild(bspec);\n \n \n String fileNames = \"\\n\\t\\t\";\n for (Index index : indexes) {\n fileNames += index.getFilePath() + \";\\n\\t\\t\";\n }\n// String record = \"@\" + rSpec + \":\" + gspec + \":\" + bspec + \":\" + fileNames + \"#\";\n// writeText += record;\n \n Element imgSrc=doc.createElement(\"ImageSrc\");\n imgSrc.appendChild(doc.createTextNode(fileNames+\"\"));\n clusterelem.appendChild(imgSrc);\n \n }\n \n WriteXML(doc);\n }",
"public void render(OutputStream out, int indent) throws IOException {\n // header\n String graphname = this.graphname;\n\n if (!isSubGraph) {\n DotGraphUtility.renderLine(out, \"digraph \\\"\" + graphname + \"\\\" {\", indent);\n } else {\n DotGraphUtility.renderLine(out, \"subgraph \\\"\" + graphname + \"\\\" {\", indent);\n }\n\n /* render graph attributes */\n Iterator<DotGraphAttribute> attrIt = this.attributes.iterator();\n while (attrIt.hasNext()) {\n DotGraphAttribute attr = attrIt.next();\n DotGraphUtility.renderLine(out, attr.toString() + \";\", indent + 4);\n }\n\n /* render elements */\n Iterator<Renderable> elmntsIt = this.drawElements.iterator();\n while (elmntsIt.hasNext()) {\n Renderable element = elmntsIt.next();\n element.render(out, indent + 4);\n }\n\n // close the description\n DotGraphUtility.renderLine(out, \"}\", indent);\n }",
"public void createGraph() {\n System.out.println(\"The overlay graph will be created from scratch\");\n graph = new MatrixOverlayGraph();\n parse(dumpPath);\n saveGraph();\n graph.createSupporters(kdTreeSupporterActived);\n saveSupporters();\n }",
"public void generateDetailHtml(String filename)\n {\n\tString htmlFileName = \"ddetail.html\";\n\tString panelSection = null;\n\tFileWriter writer = null;\n\tif (filename != null)\n htmlFileName = filename;\n\ttry \n\t {\n\t writer = new FileWriter(htmlFileName);\n\t writer.write(\"<HTML><BODY>\\n\");\n\t Iterator panelIter = panelTable.values().iterator();\n while (panelIter.hasNext())\n\t {\n\t\tPanelInfo panel = (PanelInfo) panelIter.next();\n\t\tif (panel.isPrimary())\n\t\t {\n\t\t panelSection = generatePanelDetails(panel);\n\t\t writer.write(panelSection);\n\t\t }\n\t\t}\n\t writer.write(\"</BODY></HTML>\\n\");\n\t writer.close();\n\t }\n\n\tcatch (IOException ioe)\n\t {\n\t System.out.println(\"Error creating or writing to \" + htmlFileName);\n\t ioe.printStackTrace();\n\t }\n\t}",
"@GetMapping(path=\"/generate\")\n public @ResponseBody String index(HttpServletRequest request) {\n String filePathName = null;\n File outFile = null;\n List<Category> categories = categoryMapper.getAll();\n for(Category category : categories) {\n List<Category> children = category.getChildren();\n if (children == null || children.isEmpty()) {\n filePathName = \"goods/\" + category.getId() + \".html\";\n outFile = new File(uploadPath + Constants.URL_SEPARATOR + PAGES_DIR + Constants.URL_SEPARATOR + filePathName);\n writeFile(UrlTool.getServerAddress(request) + \"products/?categoryId=\" + category.getId(), outFile);\n }\n }\n\n List<Goods> goodses = goodsMapper.getAll();\n for (Goods goods : goodses) {\n filePathName = \"product/\" + goods.getId() + \".html\";\n outFile = new File(uploadPath + Constants.URL_SEPARATOR + PAGES_DIR + Constants.URL_SEPARATOR + filePathName);\n writeFile(UrlTool.getServerAddress(request) + \"product/?goodsId=\" + goods.getId(), outFile);\n\n }\n return Constants.SUCCESS;\n }",
"public String writeFile1() throws IOException {\n String sFileName = \"\\\\testfile1.xml\";\n FileWriter oOut = new FileWriter(sFileName);\n\n oOut.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\" standalone=\\\"no\\\" ?>\");\n oOut.write(\"<paramFile fileCode=\\\"07010101\\\">\"); \n oOut.write(\"<plot>\");\n oOut.write(\"<timesteps>4</timesteps>\");\n oOut.write(\"<yearsPerTimestep>1</yearsPerTimestep>\");\n oOut.write(\"<randomSeed>1</randomSeed>\");\n oOut.write(\"<plot_lenX>96</plot_lenX>\");\n oOut.write(\"<plot_lenY>96</plot_lenY>\");\n oOut.write(\"<plot_latitude>55.37</plot_latitude>\");\n oOut.write(\"</plot>\");\n oOut.write(\"<trees>\");\n oOut.write(\"<tr_speciesList>\");\n oOut.write(\"<tr_species speciesName=\\\"Species_1\\\"/>\");\n oOut.write(\"<tr_species speciesName=\\\"Species_2\\\"/>\");\n oOut.write(\"</tr_speciesList>\");\n oOut.write(\"<tr_seedDiam10Cm>0.1</tr_seedDiam10Cm>\");\n oOut.write(\"<tr_minAdultDBH>\");\n oOut.write(\"<tr_madVal species=\\\"Species_1\\\">10.0</tr_madVal>\");\n oOut.write(\"<tr_madVal species=\\\"Species_2\\\">10.0</tr_madVal>\");\n oOut.write(\"</tr_minAdultDBH>\");\n oOut.write(\"<tr_maxSeedlingHeight>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_1\\\">1.35</tr_mshVal>\");\n oOut.write(\"<tr_mshVal species=\\\"Species_2\\\">1.35</tr_mshVal>\");\n oOut.write(\"</tr_maxSeedlingHeight>\");\n oOut.write(\"</trees>\");\n oOut.write(\"<allometry>\");\n oOut.write(\"<tr_canopyHeight>\");\n oOut.write(\"<tr_chVal species=\\\"Species_1\\\">39.48</tr_chVal>\");\n oOut.write(\"<tr_chVal species=\\\"Species_2\\\">39.54</tr_chVal>\");\n oOut.write(\"</tr_canopyHeight>\");\n oOut.write(\"<tr_stdAsympCrownRad>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_1\\\">0.0549</tr_sacrVal>\");\n oOut.write(\"<tr_sacrVal species=\\\"Species_2\\\">0.0614</tr_sacrVal>\");\n oOut.write(\"</tr_stdAsympCrownRad>\");\n oOut.write(\"<tr_stdCrownRadExp>\");\n oOut.write(\"<tr_screVal species=\\\"Species_1\\\">1.0</tr_screVal>\");\n oOut.write(\"<tr_screVal species=\\\"Species_2\\\">1.0</tr_screVal>\");\n oOut.write(\"</tr_stdCrownRadExp>\");\n oOut.write(\"<tr_conversionDiam10ToDBH>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_1\\\">0.8008</tr_cdtdVal>\");\n oOut.write(\"<tr_cdtdVal species=\\\"Species_2\\\">0.5944</tr_cdtdVal>\");\n oOut.write(\"</tr_conversionDiam10ToDBH>\");\n oOut.write(\"<tr_interceptDiam10ToDBH>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_1\\\">0</tr_idtdVal>\");\n oOut.write(\"<tr_idtdVal species=\\\"Species_2\\\">0</tr_idtdVal>\");\n oOut.write(\"</tr_interceptDiam10ToDBH>\");\n oOut.write(\"<tr_stdAsympCrownHt>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_1\\\">0.389</tr_sachVal>\");\n oOut.write(\"<tr_sachVal species=\\\"Species_2\\\">0.368</tr_sachVal>\");\n oOut.write(\"</tr_stdAsympCrownHt>\");\n oOut.write(\"<tr_stdCrownHtExp>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_1\\\">1.0</tr_scheVal>\");\n oOut.write(\"<tr_scheVal species=\\\"Species_2\\\">1.0</tr_scheVal>\");\n oOut.write(\"</tr_stdCrownHtExp>\");\n oOut.write(\"<tr_slopeOfHeight-Diam10>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_1\\\">0.03418</tr_sohdVal>\");\n oOut.write(\"<tr_sohdVal species=\\\"Species_2\\\">0.0269</tr_sohdVal>\");\n oOut.write(\"</tr_slopeOfHeight-Diam10>\");\n oOut.write(\"<tr_slopeOfAsymHeight>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_1\\\">0.0299</tr_soahVal>\");\n oOut.write(\"<tr_soahVal species=\\\"Species_2\\\">0.0241</tr_soahVal>\");\n oOut.write(\"</tr_slopeOfAsymHeight>\");\n oOut.write(\"<tr_whatSeedlingHeightDiam>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_1\\\">0</tr_wsehdVal>\");\n oOut.write(\"<tr_wsehdVal species=\\\"Species_2\\\">0</tr_wsehdVal>\");\n oOut.write(\"</tr_whatSeedlingHeightDiam>\");\n oOut.write(\"<tr_whatSaplingHeightDiam>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_1\\\">0</tr_wsahdVal>\");\n oOut.write(\"<tr_wsahdVal species=\\\"Species_2\\\">0</tr_wsahdVal>\");\n oOut.write(\"</tr_whatSaplingHeightDiam>\");\n oOut.write(\"<tr_whatAdultHeightDiam>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_1\\\">0</tr_wahdVal>\");\n oOut.write(\"<tr_wahdVal species=\\\"Species_2\\\">0</tr_wahdVal>\");\n oOut.write(\"</tr_whatAdultHeightDiam>\");\n oOut.write(\"<tr_whatAdultCrownRadDiam>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_1\\\">0</tr_wacrdVal>\");\n oOut.write(\"<tr_wacrdVal species=\\\"Species_2\\\">0</tr_wacrdVal>\");\n oOut.write(\"</tr_whatAdultCrownRadDiam>\");\n oOut.write(\"<tr_whatAdultCrownHeightHeight>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_1\\\">0</tr_wachhVal>\");\n oOut.write(\"<tr_wachhVal species=\\\"Species_2\\\">0</tr_wachhVal>\");\n oOut.write(\"</tr_whatAdultCrownHeightHeight>\");\n oOut.write(\"<tr_whatSaplingCrownRadDiam>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_1\\\">0</tr_wscrdVal>\");\n oOut.write(\"<tr_wscrdVal species=\\\"Species_2\\\">0</tr_wscrdVal>\");\n oOut.write(\"</tr_whatSaplingCrownRadDiam>\");\n oOut.write(\"<tr_whatSaplingCrownHeightHeight>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_1\\\">0</tr_wschhVal>\");\n oOut.write(\"<tr_wschhVal species=\\\"Species_2\\\">0</tr_wschhVal>\");\n oOut.write(\"</tr_whatSaplingCrownHeightHeight>\");\n oOut.write(\"</allometry>\");\n oOut.write(\"<behaviorList>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>NonSpatialDisperse</behaviorName>\");\n oOut.write(\"<version>1</version>\");\n oOut.write(\"<listPosition>1</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>MastingDisperseAutocorrelation</behaviorName>\");\n oOut.write(\"<version>1.0</version>\");\n oOut.write(\"<listPosition>2</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>MastingDisperseAutocorrelation</behaviorName>\");\n oOut.write(\"<version>1.0</version>\");\n oOut.write(\"<listPosition>3</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Adult\\\"/>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"<behavior>\");\n oOut.write(\"<behaviorName>DensDepRodentSeedPredation</behaviorName>\");\n oOut.write(\"<version>1.0</version>\");\n oOut.write(\"<listPosition>4</listPosition>\");\n oOut.write(\"<applyTo species=\\\"Species_1\\\" type=\\\"Seed\\\"/>\");\n oOut.write(\"<applyTo species=\\\"Species_2\\\" type=\\\"Seed\\\"/>\");\n oOut.write(\"</behavior>\");\n oOut.write(\"</behaviorList>\");\n oOut.write(\"<NonSpatialDisperse1>\");\n oOut.write(\"<di_minDbhForReproduction>\");\n oOut.write(\"<di_mdfrVal species=\\\"Species_1\\\">15.0</di_mdfrVal>\");\n oOut.write(\"<di_mdfrVal species=\\\"Species_2\\\">15.0</di_mdfrVal>\");\n oOut.write(\"</di_minDbhForReproduction>\");\n oOut.write(\"<di_nonSpatialSlopeOfLambda>\");\n oOut.write(\"<di_nssolVal species=\\\"Species_2\\\">0</di_nssolVal>\");\n oOut.write(\"<di_nssolVal species=\\\"Species_1\\\">0</di_nssolVal>\");\n oOut.write(\"</di_nonSpatialSlopeOfLambda>\");\n oOut.write(\"<di_nonSpatialInterceptOfLambda>\");\n oOut.write(\"<di_nsiolVal species=\\\"Species_1\\\">1</di_nsiolVal>\");\n oOut.write(\"<di_nsiolVal species=\\\"Species_2\\\">2</di_nsiolVal>\");\n oOut.write(\"</di_nonSpatialInterceptOfLambda>\");\n oOut.write(\"</NonSpatialDisperse1>\");\n oOut.write(\"<MastingDisperseAutocorrelation2>\");\n oOut.write(\"<di_minDbhForReproduction>\");\n oOut.write(\"<di_mdfrVal species=\\\"Species_1\\\">15.0</di_mdfrVal>\");\n oOut.write(\"</di_minDbhForReproduction>\");\n oOut.write(\"<di_mdaMastTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"1\\\">0.49</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"2\\\">0.04</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"3\\\">0.89</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"4\\\">0.29</di_mdaMTS>\");\n oOut.write(\"</di_mdaMastTS>\");\n oOut.write(\"<di_maxDbhForSizeEffect>\");\n oOut.write(\"<di_mdfseVal species=\\\"Species_1\\\">100</di_mdfseVal>\");\n oOut.write(\"</di_maxDbhForSizeEffect>\");\n oOut.write(\"<di_weibullCanopyBeta>\");\n oOut.write(\"<di_wcbVal species=\\\"Species_1\\\">1</di_wcbVal>\");\n oOut.write(\"</di_weibullCanopyBeta>\");\n oOut.write(\"<di_weibullCanopySTR>\");\n oOut.write(\"<di_wcsVal species=\\\"Species_1\\\">1000</di_wcsVal>\");\n oOut.write(\"</di_weibullCanopySTR>\");\n oOut.write(\"<di_mdaReproFracA>\");\n oOut.write(\"<di_mdarfaVal species=\\\"Species_1\\\">1</di_mdarfaVal>\");\n oOut.write(\"</di_mdaReproFracA>\");\n oOut.write(\"<di_mdaReproFracB>\");\n oOut.write(\"<di_mdarfbVal species=\\\"Species_1\\\">1</di_mdarfbVal>\");\n oOut.write(\"</di_mdaReproFracB>\");\n oOut.write(\"<di_mdaReproFracC>\");\n oOut.write(\"<di_mdarfcVal species=\\\"Species_1\\\">0</di_mdarfcVal>\");\n oOut.write(\"</di_mdaReproFracC>\");\n oOut.write(\"<di_mdaRhoACF>\");\n oOut.write(\"<di_mdaraVal species=\\\"Species_1\\\">1</di_mdaraVal>\");\n oOut.write(\"</di_mdaRhoACF>\");\n oOut.write(\"<di_mdaRhoNoiseSD>\");\n oOut.write(\"<di_mdarnsdVal species=\\\"Species_1\\\">0</di_mdarnsdVal>\");\n oOut.write(\"</di_mdaRhoNoiseSD>\");\n oOut.write(\"<di_mdaPRA>\");\n oOut.write(\"<di_mdapraVal species=\\\"Species_1\\\">0.75</di_mdapraVal>\");\n oOut.write(\"</di_mdaPRA>\");\n oOut.write(\"<di_mdaPRB>\");\n oOut.write(\"<di_mdaprbVal species=\\\"Species_1\\\">0.004</di_mdaprbVal>\");\n oOut.write(\"</di_mdaPRB>\");\n oOut.write(\"<di_mdaSPSSD>\");\n oOut.write(\"<di_mdaspssdVal species=\\\"Species_1\\\">0.1</di_mdaspssdVal>\");\n oOut.write(\"</di_mdaSPSSD>\");\n oOut.write(\"<di_canopyFunction>\");\n oOut.write(\"<di_cfVal species=\\\"Species_1\\\">0</di_cfVal>\");\n oOut.write(\"</di_canopyFunction>\");\n oOut.write(\"<di_weibullCanopyDispersal>\");\n oOut.write(\"<di_wcdVal species=\\\"Species_1\\\">1.76E-04</di_wcdVal>\");\n oOut.write(\"</di_weibullCanopyDispersal>\");\n oOut.write(\"<di_weibullCanopyTheta>\");\n oOut.write(\"<di_wctVal species=\\\"Species_1\\\">3</di_wctVal>\");\n oOut.write(\"</di_weibullCanopyTheta>\");\n oOut.write(\"</MastingDisperseAutocorrelation2>\");\n oOut.write(\"<MastingDisperseAutocorrelation3>\");\n oOut.write(\"<di_minDbhForReproduction>\");\n oOut.write(\"<di_mdfrVal species=\\\"Species_2\\\">15.0</di_mdfrVal>\");\n oOut.write(\"</di_minDbhForReproduction>\");\n //Mast timeseries\n oOut.write(\"<di_mdaMastTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"1\\\">0.5</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"2\\\">0.29</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"3\\\">0.05</di_mdaMTS>\");\n oOut.write(\"<di_mdaMTS ts=\\\"4\\\">0.63</di_mdaMTS>\");\n oOut.write(\"</di_mdaMastTS>\");\n oOut.write(\"<di_maxDbhForSizeEffect>\");\n oOut.write(\"<di_mdfseVal species=\\\"Species_2\\\">100</di_mdfseVal>\");\n oOut.write(\"</di_maxDbhForSizeEffect>\");\n oOut.write(\"<di_weibullCanopyBeta>\");\n oOut.write(\"<di_wcbVal species=\\\"Species_2\\\">1</di_wcbVal>\");\n oOut.write(\"</di_weibullCanopyBeta>\");\n oOut.write(\"<di_weibullCanopySTR>\");\n oOut.write(\"<di_wcsVal species=\\\"Species_2\\\">1000</di_wcsVal>\");\n oOut.write(\"</di_weibullCanopySTR>\");\n oOut.write(\"<di_mdaReproFracA>\");\n oOut.write(\"<di_mdarfaVal species=\\\"Species_2\\\">10000</di_mdarfaVal>\");\n oOut.write(\"</di_mdaReproFracA>\");\n oOut.write(\"<di_mdaReproFracB>\");\n oOut.write(\"<di_mdarfbVal species=\\\"Species_2\\\">1</di_mdarfbVal>\");\n oOut.write(\"</di_mdaReproFracB>\");\n oOut.write(\"<di_mdaReproFracC>\");\n oOut.write(\"<di_mdarfcVal species=\\\"Species_2\\\">1</di_mdarfcVal>\");\n oOut.write(\"</di_mdaReproFracC>\");\n oOut.write(\"<di_mdaRhoACF>\");\n oOut.write(\"<di_mdaraVal species=\\\"Species_2\\\">1</di_mdaraVal>\");\n oOut.write(\"</di_mdaRhoACF>\");\n oOut.write(\"<di_mdaRhoNoiseSD>\");\n oOut.write(\"<di_mdarnsdVal species=\\\"Species_2\\\">0</di_mdarnsdVal>\");\n oOut.write(\"</di_mdaRhoNoiseSD>\");\n oOut.write(\"<di_mdaPRA>\");\n oOut.write(\"<di_mdapraVal species=\\\"Species_2\\\">100</di_mdapraVal>\");\n oOut.write(\"</di_mdaPRA>\");\n oOut.write(\"<di_mdaPRB>\");\n oOut.write(\"<di_mdaprbVal species=\\\"Species_2\\\">0.004</di_mdaprbVal>\");\n oOut.write(\"</di_mdaPRB>\");\n oOut.write(\"<di_mdaSPSSD>\");\n oOut.write(\"<di_mdaspssdVal species=\\\"Species_2\\\">0.1</di_mdaspssdVal>\");\n oOut.write(\"</di_mdaSPSSD>\");\n oOut.write(\"<di_canopyFunction>\");\n oOut.write(\"<di_cfVal species=\\\"Species_2\\\">0</di_cfVal>\");\n oOut.write(\"</di_canopyFunction>\");\n oOut.write(\"<di_weibullCanopyDispersal>\");\n oOut.write(\"<di_wcdVal species=\\\"Species_2\\\">1.82E-04</di_wcdVal>\");\n oOut.write(\"</di_weibullCanopyDispersal>\");\n oOut.write(\"<di_weibullCanopyTheta>\");\n oOut.write(\"<di_wctVal species=\\\"Species_2\\\">3</di_wctVal>\");\n oOut.write(\"</di_weibullCanopyTheta>\");\n oOut.write(\"</MastingDisperseAutocorrelation3>\");\n oOut.write(\"<DensDepRodentSeedPredation4>\");\n oOut.write(\"<pr_densDepFuncRespSlope>\");\n oOut.write(\"<pr_ddfrsVal species=\\\"Species_1\\\">0.9</pr_ddfrsVal>\");\n oOut.write(\"<pr_ddfrsVal species=\\\"Species_2\\\">0.05</pr_ddfrsVal>\");\n oOut.write(\"</pr_densDepFuncRespSlope>\");\n oOut.write(\"<pr_densDepFuncRespA>0.02</pr_densDepFuncRespA>\");\n oOut.write(\"<pr_densDepDensCoeff>0.07</pr_densDepDensCoeff>\");\n oOut.write(\"</DensDepRodentSeedPredation4>\");\n oOut.write(\"</paramFile>\");\n oOut.close();\n return sFileName;\n }",
"void generateMgiCrisprAlleleReport();",
"public abstract String visualizar();",
"public static void convoExport() throws ClassNotFoundException, SQLException, IOException{\n\t\t\n\t\tClass.forName(\"org.h2.Driver\");\n\t\tConnection conn = DriverManager.getConnection(DB, user, pass);\n\t\tConvoGraph rt = new ConvoGraph(conn, \"HISenOG\", \"/Users/Brian/Desktop/\");\n\t\trt.createNodesRT();\n\t\trt.createRT();\n\t\trt.nodeWrite(\"RT\");\n\t\tConvoGraph rp = new ConvoGraph(conn, \"HISenOG\", \"/Users/Brian/Desktop/\");\n\t\trp.createNodesRP();\n\t\trp.createReply();\n\t\trp.nodeWrite(\"RP\");\n\t}",
"public static void main(String[] args) {\n\t\tString data = \"\";\r\n ExportFactory exportFactory = new ExportHtmlFactory();\r\n ExportFile ef = exportFactory.factory(\"financial\");\r\n ef.export(data);\r\n\t}",
"public void View()\n\t{\n\t\tDefaultPieDataset pieDataset = new DefaultPieDataset();\n\t\t\n\t\tfor(String key : result.keySet())\n\t\t{\n\t\t\tpieDataset.setValue(key, Double.parseDouble(result.get(key).toString()));\n\t\t}\n\t\t\n\t\tJFreeChart chart = ChartFactory.createPieChart(title, pieDataset, true, true, true);\n\t\t\n\t\tChartFrame frame = new ChartFrame(\"Pie Chart\", chart);\n\t\t\n\t\tframe.setVisible(true);\n\t\tframe.setSize(450,500);\n\t}",
"@Override\n @Transactional\n public void getTheSpecial() {\n log.info(\"Running \\\"The Special\\\"...\");\n\n log.info(\"Creating plot...\");\n Chart plot = new Chart();\n plot.setName(\"My_Plot_\" + RandomUtils.nextInt());\n Map<String, Object> map = new HashMap<>();\n map.put(\"key1\", \"value1\");\n map.put(\"key2\", 2);\n plot.setOptions(map);\n plot.setTopic(topicDao.findOne(\"test\"));\n\n List<Map<String, Object>> mainPlotData = new ArrayList<Map<String, Object>>();\n\n for (Integer i = 0; i < 1; i++) {\n Map<String, Object> itemData = new HashMap<String, Object>();\n\n // Generate data set\n List<List<Double>> data = new ArrayList<>();\n for (Double j = 0D; j < 20; j++) {\n List<Double> bar = new ArrayList<>();\n bar.add(j);\n bar.add(Math.sin(j));\n data.add(bar);\n }\n\n itemData.put(\"data\", data);\n itemData.put(\"label\", \"Sin\");\n itemData.put(\"color\", \"#000000\");\n\n mainPlotData.add(itemData);\n }\n //plot.setData(mainPlotData);\n\n Map<String, Object> mainOptions = new HashMap<>();\n\n Map<String, Object> bars = new HashMap<>();\n bars.put(\"show\", true);\n bars.put(\"barWidth\", 0.5);\n bars.put(\"fill\", 0.9);\n mainOptions.put(\"bars\", bars);\n\n Map<String, Object> xaxis = new HashMap<>();\n bars.put(\"ticks\", new ArrayList<String>());\n bars.put(\"autoscaleMargin\", 0.02);\n mainOptions.put(\"xaxis\", xaxis);\n\n Map<String, Object> yaxis = new HashMap<>();\n bars.put(\"min\", -2);\n bars.put(\"max\", 2);\n mainOptions.put(\"yaxis\", yaxis);\n \n Map<String, Object> grid = new HashMap<>();\n List<Map<String, Object>> markings = new ArrayList<>();\n Map<String, Object> markingItem;\n Map<String, Object> axisItem;\n\n markingItem = new HashMap<>();\n markingItem.put(\"color\", \"#F6F6F6\");\n axisItem = new HashMap<>();\n axisItem.put(\"from\", 1);\n markingItem.put(\"yaxis\", axisItem);\n markings.add(markingItem);\n\n markingItem = new HashMap<>();\n markingItem.put(\"color\", \"#F6F6F6\");\n axisItem = new HashMap<>();\n axisItem.put(\"to\", -1);\n markingItem.put(\"yaxis\", axisItem);\n markings.add(markingItem);\n\n markingItem = new HashMap<>();\n markingItem.put(\"color\", \"#F6F6F6\");\n markingItem.put(\"lineWidth\", 1);\n axisItem = new HashMap<>();\n axisItem.put(\"from\", 2);\n axisItem.put(\"to\", 2);\n markingItem.put(\"xaxis\", axisItem);\n markings.add(markingItem);\n\n markingItem = new HashMap<>();\n markingItem.put(\"color\", \"#F6F6F6\");\n markingItem.put(\"lineWidth\", 1);\n axisItem = new HashMap<>();\n axisItem.put(\"from\", 8);\n axisItem.put(\"to\", 8);\n markingItem.put(\"xaxis\", axisItem);\n markings.add(markingItem);\n\n grid.put(\"markings\", markings);\n mainOptions.put(\"grid\", grid);\n\n plot.setOptions(mainOptions);\n\n try {\n plotService.save(plot);\n } catch (InvalidChartException e) {\n log.error(\"Couldn't create the plot.\");\n }\n\n List<Post> posts = datastoreService.findByTopicId(\"test\", Post.class);\n log.info(\"Posts count is <\" + posts.size() + \">\");\n\n log.info(\"That's it. Have fun!\");\n\n return;\n }",
"public String generatePageReportHtml(String result) {\n try {\n ContainerTag html = html(\n head(\n title(\"News Trends Stats\"),\n script().withSrc(\"https://code.jquery.com/jquery-3.2.1.slim.min.js\"),\n script().withSrc(\"https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js\"),\n script().withSrc(\"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js\"),\n script().withSrc(\"https://code.highcharts.com/highcharts.js\"),\n script().withSrc(\"https://code.highcharts.com/modules/wordcloud.js\"),\n script().withType(\"text/javascript\").withSrc(\"news.js\"),\n link().withRel(\"stylesheet\").withHref(\"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css\"),\n link().withRel(\"stylesheet\").withHref(\"styles.css\")\n ),\n body(\n div(\n attrs(\".jumbotron\"),\n h1(\"News Trends Stats\").attr(\"class=\\\"center\\\"\")\n ),\n div(\n attrs(\".container\"),\n div(attrs(\"#result-alert-error.alert.alert-danger.hidden\"))\n .withText(\"There was a problem retrieving the data. You may have exceeded your developer account limit for the news API. Please limit the number of days and try again.\"),\n div(attrs(\"#wordMapData.hidden\")).withText(\"#dataToReplace\"),\n div(attrs(\"#wordMapContainer\")),\n div(\n attrs(\"#wordLists.row\"),\n div(attrs(\"#top20.col-md-6\")),\n div(attrs(\"#bottom20.col-md-6\"))\n )\n )\n )\n );\n\n return html.render().replace(\"#dataToReplace\", result);\n } catch (Exception e) {\n System.out.println(\"There was an exception while generating the html report: \" + e.getMessage());\n return html(body(h3(\"There was an exception while generating the html report: \" + e.getMessage()))).render();\n }\n }",
"GridHtmlGenerator(Chart chart, Map<String, Obs> latestObservations,\n List<Obs> observations, List<Order> orders,\n LocalDate admissionDate, LocalDate firstSymptomsDate) {\n mAdmissionDate = admissionDate;\n mFirstSymptomsDate = firstSymptomsDate;\n mOrders = orders;\n mNow = DateTime.now();\n mNowColumn = getColumnContainingTime(mNow); // ensure there's a column for today\n\n for (ChartSection tileGroup : chart.tileGroups) {\n List<Tile> tileRow = new ArrayList<>();\n for (ChartItem item : tileGroup.items) {\n ObsPoint[] points = new ObsPoint[item.conceptUuids.length];\n for (int i = 0; i < points.length; i++) {\n Obs obs = latestObservations.get(item.conceptUuids[i]);\n if (obs != null) {\n points[i] = obs.getObsPoint();\n }\n }\n tileRow.add(new Tile(item, points));\n if (!item.script.trim().isEmpty()) {\n mConceptsToDump.addAll(Arrays.asList(item.conceptUuids));\n }\n }\n mTileRows.add(tileRow);\n }\n for (ChartSection section : chart.rowGroups) {\n for (ChartItem item : section.items) {\n Row row = new Row(item);\n mRows.add(row);\n mRowsByUuid.put(item.conceptUuids[0], row);\n if (!item.script.trim().isEmpty()) {\n mConceptsToDump.addAll(Arrays.asList(item.conceptUuids));\n }\n }\n }\n addObservations(observations);\n addOrders(orders);\n insertEmptyColumns();\n }",
"@RequestMapping(\"/generateReport\")\n\tpublic String generateReportforLoc(){\n\t\tList<Object[]> data=service.getLocWiseCount();\n\t\tString path=context.getRealPath(\"/\");\n\t\tlocUtil.generatePieChart(path, data);\n\t\tlocUtil.generateBarChart(path, data);\n\t\treturn \"LocReport\";\n\t}",
"IGraphEngine graphEngineFactory();",
"private void exportTreeML()\r\n {\r\n // Create the file filter.\r\n// SimpleFileFilter[] filters = new SimpleFileFilter[] {\r\n// new SimpleFileFilter(\"xml\", \"Tree ML (*.xml)\")\r\n// };\r\n// \r\n// // Save the file.\r\n// String file = openFileChooser(false, filters);\r\n// \r\n// // Write the file.\r\n// if (file != null)\r\n// {\r\n// String extension = file.substring(file.length() - 4);\r\n// if (!extension.equals(\".xml\")) file = file + \".xml\";\r\n// Writer.writeTreeML(m_gtree, file);\r\n// }\r\n }",
"public String script(GraphContainer gc, String writeto){\n \n \tTempEdges = new ArrayList<Edge>();\n \n //Ablauf\n \n //Essentials\n ProjectController pc = Lookup.getDefault().lookup(ProjectController.class);\n pc.newProject();\n \n workspace = pc.getCurrentWorkspace();\n graphModel = Lookup.getDefault().lookup(GraphController.class).getModel();\n \n attributeModel = Lookup.getDefault().lookup(AttributeController.class).getModel();\n\n ///Load DATA\n\n GraphContainerToGephi.GraphtoGephi(gc, graphModel);\n GraphView mainView = graphModel.getVisibleView();\n\n EdgeIterator edgeIt = graphModel.getGraphVisible().getEdges().iterator();\n boolean hasct0 = false;\n boolean hasct1 = false;\n boolean hasct2 = false;\n \n for (;edgeIt.hasNext();) {\n \tif(hasct0 && hasct1&&hasct2)\n \t\tbreak;\n\t\t\tEdge e = edgeIt.next();\n\t\t\tInteger ct =(Integer) e.getAttributes().getValue(\"ConnectionType\");\n\t\t\tif(ct == 0){\n\t\t\t\thasct0=true;\n\t\t\t}\n\t\t\telse if(ct == 1){\n\t\t\t\thasct1=true;\n\t\t\t}else if(ct == 2){\n\t\t\t\thasct1=true;\n\t\t\t}\n\t\t\t\n\t\t}\n if(!hasct1)\n \treturn \"\";\n \n ///////////////////Detect Unconnected\n \n NodeIterator nodeIt = graphModel.getGraphVisible().getNodes().iterator();\n List<Node> toremove= new ArrayList<Node>(3);\n for (;nodeIt.hasNext();) {\n \t\n \tNode temp = nodeIt.next();\n \t\n \tif(0==graphModel.getGraphVisible().getDegree(temp)){\n \t\t\n \t\ttoremove.add(temp);\n \t}\n \t\n }\n \n for (Node node : toremove) {\n \t\tFilterReportWriter.getInstance().appendActiveEvent(\"Removed unconnected: \"+node.getNodeData().getLabel() );\n\n \tgraphModel.getGraph().removeNode(node);\n \t\n\t\t}\n writeToSystemout(\"Ursprung\");\n writeToSystemout(\"EdgeCount :\"+graphModel.getGraphVisible().getEdgeCount());\n writeToSystemout(\"NodeCount :\"+graphModel.getGraphVisible().getNodeCount());\n //Filter\n \n FilterController filterController = Lookup.getDefault().lookup(FilterController.class);\n \n \n EqualNumberFilter contextFilter = new EqualNumberFilter(this.getAttColumbyString(\"IsContext\"));\n contextFilter.init(graphModel.getGraph());\n \n AttributeColumn coltemp = attributeModel.getEdgeTable().getColumn(\"ConnectionType\");\n \n EqualNumberFilter edgeTypeFilter = new EqualNumberFilter(coltemp);\n edgeTypeFilter.init(graphModel.getGraph());\n \n Query query= null;\n GraphView view = null;\n \n //\n //********************************Reweight All\n //\n \n\t\t//writeToSystemout(\"Reweight \");\n \n \n //\n //*********************************** Node size\n //\n //checkNANPos();\n \n\n \n \n writeToSystemout(\"Knoten Größe \");\n // Knoten Größe Kontext knoten\n RankingController rankingController = layoutSizeContextNodes(\n\t\t\t\tfilterController, contextFilter);\n \n \n \n \n //Knoten Größe Source Nodes\n AttributeColumn inDegreeInTotalGraphColumn = layoutSizeSourceNodes(\n\t\t\t\tfilterController, contextFilter, rankingController);\n \n \n //checkNANPos();\n //\n //*************************************** Node color\n //\n writeToSystemout(\"Knoten Farbe \");\n layoutNodeColor(filterController, contextFilter, rankingController,\n\t\t\t\tinDegreeInTotalGraphColumn);\n \n //INIT POSITIONING\n graphModel.setVisibleView(mainView);\n \n //\n //*************************************** Kanten Farbe \n //\n \n //TODO Idea Make Edge Color!\n writeToSystemout(\"Kanten Farbe \");\n layoutEdgeColor(filterController, rankingController,mainView);\n \n //setSomePos();\n //\n //***************************************Positionierung der Ausgangsknoten\n //\n writeToSystemout(\"Positionierung der Ausgangsknoten \");\n\n\t\tlayoutPositionStartNodes(mainView, hasct0,\n\t\t\t\tfilterController, contextFilter);\n \n \n //\n //********************************Positionierung Kontext\n //\n\t\t\n\t\t//Kopiert die richtigen kanten gewichte Rein\n\t\tthis.copytoEdgeWeight(\"RankContextLowSourcesHigh\");\n\t\t\n\t\tReweightandPostprocessing(mainView,filterController); \n\t\t\n\t\twriteToSystemout(\"Positionierung Kontext \");\n layoutPositionContext(mainView); \n \n \n //\n //********************************Export\n //\n graphModel.setVisibleView(mainView);\n \n AttributeColumn[] NodeAttColums = attributeModel.getNodeTable().getColumns();\n \n Set<String> nodeArrtNoDeleteFilter = new HashSet<String>();\n \n nodeArrtNoDeleteFilter.add(\"IsContext\");\n nodeArrtNoDeleteFilter.add(\"Classes\");\n nodeArrtNoDeleteFilter.add(\"Id\");\n nodeArrtNoDeleteFilter.add(\"Weight\");\n nodeArrtNoDeleteFilter.add(\"Label\");\n nodeArrtNoDeleteFilter.add(\"HiddenContext\");\n \n for (int i = 0; i < NodeAttColums.length; i++) {\n\n \t//System.out.println(NodeAttColums[i].getTitle());\n \tif(nodeArrtNoDeleteFilter.contains( NodeAttColums[i].getTitle()) )\n \t\tcontinue;\n \tattributeModel.getNodeTable().removeColumn(NodeAttColums[i]); \n\t\t}\n \n AttributeColumn[] EdgeAttColums = attributeModel.getEdgeTable().getColumns();\n \n Set<String> edgeArrtNoDeleteFilter = new HashSet<String>();\n \n edgeArrtNoDeleteFilter.add(\"Id\");\n edgeArrtNoDeleteFilter.add(\"Weight\");\n edgeArrtNoDeleteFilter.add(\"Label\");\n edgeArrtNoDeleteFilter.add(\"ConnectionType\");\n\n for (int i = 0; i < EdgeAttColums.length; i++) {\n \t\n \tif(edgeArrtNoDeleteFilter.contains( EdgeAttColums[i].getTitle()) )\n \t\tcontinue;\n \tattributeModel.getEdgeTable().removeColumn(EdgeAttColums[i]); \n\t\t}\n \n writeToSystemout(\"Export Start\");\n \n //Export\n ExportController ec = Lookup.getDefault().lookup(ExportController.class);\n ExporterGEXF fe = new ExporterGEXF();\n //Attribute Rausnehmen (weniger übertragung)\n //fe.setExportAttributes(false);\n \n CharacterExporter characterExporter = (CharacterExporter)fe;\n StringWriter stringWriter = new StringWriter();\n ec.exportWriter(stringWriter, characterExporter);\n String result = stringWriter.toString();\n \n\n writeToSystemout(\"Export End\");\n graphModel.clear();\n \n pc.closeCurrentProject();\n return result;\n\n \n \n }"
] | [
"0.692109",
"0.6485291",
"0.6351136",
"0.6318519",
"0.6281805",
"0.624743",
"0.62201583",
"0.61885726",
"0.6082799",
"0.59746885",
"0.5963224",
"0.59524834",
"0.5927602",
"0.59079456",
"0.58660984",
"0.5860295",
"0.5838133",
"0.5802584",
"0.5792403",
"0.57844996",
"0.57817733",
"0.5772666",
"0.57633585",
"0.576159",
"0.5754442",
"0.57156426",
"0.56979173",
"0.56931853",
"0.5693027",
"0.5683384",
"0.56284034",
"0.56241053",
"0.5611861",
"0.55954725",
"0.55933243",
"0.55744773",
"0.5573205",
"0.55668604",
"0.5548456",
"0.5546711",
"0.5539019",
"0.5536729",
"0.5522059",
"0.55207187",
"0.55203694",
"0.5516176",
"0.5513254",
"0.5510491",
"0.55069107",
"0.5496819",
"0.548883",
"0.5487167",
"0.54831934",
"0.5474877",
"0.5471954",
"0.54632396",
"0.54602224",
"0.54571736",
"0.5434629",
"0.5434154",
"0.5433624",
"0.542754",
"0.5423333",
"0.5422978",
"0.54200757",
"0.54174244",
"0.54140866",
"0.5414021",
"0.54129624",
"0.5411904",
"0.5402817",
"0.5399464",
"0.53883433",
"0.53827155",
"0.53740346",
"0.5370957",
"0.53704786",
"0.53625685",
"0.5362492",
"0.5355701",
"0.5340601",
"0.53392345",
"0.5336985",
"0.5321113",
"0.5319996",
"0.5319446",
"0.5317486",
"0.53133875",
"0.5312648",
"0.5305647",
"0.5304419",
"0.52989554",
"0.52987325",
"0.5298599",
"0.5298299",
"0.5289303",
"0.52874327",
"0.5280617",
"0.52805847",
"0.52776235"
] | 0.53736067 | 75 |
Method is used for printing the values of test steps | public void detailReport() {
int testStepId = 1;
strBufferReportAppend.append(
"<tr><td><table class=\"width100\"><tr><td><div class=\"headertext1 bold\">Test Execution Detail Report</div></td></tr>");
strBufferReportAppend.append(
"<tr><td><div class=\"headertext1 bold\">Execution Browser Name: "+ GlobalVariables.getBrowserName() + "</div></td></tr>");
strBufferReportAppend.append(
"<tr><td><div class=\"headertext1 bold\">Test Case Name: "+ GlobalVariables.getTestCaseName() + "</div></td></tr>");
strBufferReportAppend.append("<tr><td>");
strBufferReportAppend
.append("<table colspan=3 border=0 cellpadding=3 cellspacing=1 class=\"reporttable width100\">");
strBufferReportAppend.append("<tr><th class=\"auto-style1\">Test Step No</th>" + "<th class=\"auto-style2\">Action</th>"
+ "<th class=\"auto-style3\">Actual Result</th>" + "<th class=\"auto-style4\">Status</th></tr>");
for (ReportBean reportValue : GlobalVariables.getReportList()) {
if (reportValue.getStatus().equalsIgnoreCase("Passed")) {
strBufferReportAppend.append("<tr>" + "<td class=\"auto-style1 blue\">" + testStepId++ + "</td>"// teststepid
+ "<td class=\"auto-style2 blue\">" + reportValue.getStrAction() + "</td>"
+ "<td class=\"auto-style3 blue\">" + reportValue.getResult() + "</td>"
+ "<td class=\"auto-style4 green\">" + reportValue.getStatus() + "</td></tr>");
} else if (reportValue.getStatus().equalsIgnoreCase("Failed")) {
strBufferReportAppend.append("<tr>" + "<td class=\"auto-style1 blue\">" + testStepId++ + "</td>"// teststepid
+ "<td class=\"auto-style2 blue\">" + reportValue.getStrAction() + "</td>"
+ "<td class=\"auto-style3 blue\">" + reportValue.getResult() + "</td>"
+ "<td class=\"auto-style4 red\">" + reportValue.getStatus() + "</td></tr>");
}
}
strBufferReportAppend.append("</table>");
strBufferReportAppend.append("</td></tr>");
strBufferReportAppend.append("</table></td></tr></table></body></html>");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void printResults() {\n\t\tfor (Test test : tests) {\n\t\t\ttest.printResults();\n\t\t}\n\t}",
"public void displayResults() {\r\n Preferences.debug(\" ******* FitMultiExponential ********* \\n\\n\", Preferences.DEBUG_ALGORITHM);\r\n dumpTestResults();\r\n }",
"public void printSteps() {\n\t\tfor (int y = 0; y < idNode.length; y++) {\r\n\t\t\tint x=y;\r\n\t\t\tString steps = \"\" + x;\r\n\t\t\twhile (idNode[x] != x) {\r\n\t\t\t\tx = idNode[x];\r\n\t\t\t\tsteps += \"->\" + x;\r\n\t\t\t}\r\n\t\t\tSystem.out.println(steps);\r\n\t\t}\r\n\t}",
"public void printResults(){\n\t\tSystem.out.println(\"The area of the triangle is \" + findArea());\n\t\tSystem.out.println(\"The perimeter of the triangle is \"+ findPerimeter());}",
"private void logFullTestDescription() {\n\t\tif (m_currentTestCaseTestSteps != null) {\n\t\t\tString[] fullDescription = m_currentTestCaseTestSteps.split(\"%%%\");\n\t\t\tfor (String testStep : fullDescription) {\n\t\t\t\tm_logMessage.append(\" \" + testStep + \"\\n\");\n\t\t\t}\n\t\t}\n\t}",
"void show(int step){\n System.out.println(\"Значение фунции в промежутке от \"+ 5 + \" до \"+ 10 +\" с шагом \" + 1);\n for (int i= 0; i < 10; i++) {\n this.calculate(i);\n }\n\n }",
"public void printStatus() {\n\t\tSystem.out.println(\"Current : \"+current+\"\\n\"\n\t\t\t\t+ \"Tour restant : \"+nb_rounds+\"\\n\"\n\t\t\t\t\t\t+ \"Troupe restant : \"+nb_to_train);\n\t}",
"@Override\n public String toString(){\n return \"{@\" + vecOne.getSteps() + \"; @\" + vecTwo.getSteps() + \"}\";\n }",
"public static void displayResults (boolean passed)\r\n\t{\r\n \r\n if (passed) {\r\n System.out.println (\"Passed test: \" + testCount);\r\n } else {\r\n System.out.println (\"Failed test: \" + testCount \r\n + \" at line \" + \r\n Thread.currentThread().getStackTrace()[2].getLineNumber()\r\n );\r\n System.exit(1);\r\n\t\t}\r\n\t\ttestCount++;\r\n\t}",
"private void displayTestResultSummary() {\n int passNum = mSessionLog.getTestList(CtsTestResult.CODE_PASS).size();\n int failNum = mSessionLog.getTestList(CtsTestResult.CODE_FAIL).size();\n int notExecutedNum =\n mSessionLog.getTestList(CtsTestResult.CODE_NOT_EXECUTED).size();\n int timeOutNum = mSessionLog.getTestList(CtsTestResult.CODE_TIMEOUT).size();\n int total = passNum + failNum + notExecutedNum + timeOutNum;\n \n println(\"Test summary: pass=\" + passNum\n + \" fail=\" + failNum\n + \" timeOut=\" + timeOutNum\n + \" notExecuted=\" + notExecutedNum\n + \" Total=\" + total);\n }",
"void printCheck();",
"public void printResults() {\n\t System.out.println(\"BP\\tBR\\tBF\\tWP\\tWR\\tWF\");\n\t System.out.print(NF.format(boundaryPrecision) + \"\\t\" + NF.format(boundaryRecall) + \"\\t\" + NF.format(boundaryF1()) + \"\\t\");\n\t System.out.print(NF.format(chunkPrecision) + \"\\t\" + NF.format(chunkRecall) + \"\\t\" + NF.format(chunkF1()));\n\t System.out.println();\n }",
"@Test\n public void testGetInfo_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n\n String result = fixture.getInfo();\n\n assertEquals(\"Logic Step: \", result);\n }",
"private static void printStep(String stepDescription) {\n char[] separatorLine = new char[stepDescription.length()];\n Arrays.fill(separatorLine, '-');\n System.out.println();\n System.out.println(separatorLine);\n System.out.println(stepDescription);\n System.out.println(separatorLine);\n }",
"private void summarize() {\n System.out.println();\n System.out.println(totalErrors + \" errors found in \" +\n totalTests + \" tests.\");\n }",
"private void summarize() {\n System.out.println();\n System.out.println(totalErrors + \" errors found in \" +\n totalTests + \" tests.\");\n }",
"public static void main(String[] args) {\n int num = 14;\n int output = 6;\n System.out.println((numberOfSteps(num)) == output ? \"CASE 1 PASS\" : \"X CASE 1 FAIL\");\n\n // TEST CASE 2: Input: num = 8 Output: 4\n num = 8;\n output = 4;\n System.out.println((numberOfSteps(num)) == output ? \"CASE 2 PASS\" : \"X CASE 2 FAIL\");\n\n // TEST CASE 3: Input: num = 123 Output: 12\n num = 123;\n output = 12;\n System.out.println((numberOfSteps(num)) == output ? \"CASE 3 PASS\" : \"X CASE 3 FAIL\");\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 }",
"static void displaySteps(int arr[]) {\n\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tSystem.out.print(arr[i] + \"\\t\");\n\t\t}\n\t}",
"public String toString()\r\n\t{\r\n\t\treturn ToStringHelper.toString(this, new String [] { \"stepName\" });\r\n\t}",
"public boolean Step(){\n\t\t\t\t\tboolean Result = true;\t\t\t\t\t\t// A vegso eredmeny: Stabil-e az aramkor\n\t\t\t\t\t_TEST stack = new _TEST();\t\t\t\t\t/* TEST */\n\t\t\t\t\tstack.PrintHeader(ID,\"\",\"true:boolean\");\t/* TEST */\n\t\t\t\t\t//count magat\n\t\t\t\t\tPreviousValue = Count();\t\t\t\t\t// Megnezzuk az elso futas erredmenyet\n\t\t\t\t\t//feedback[0], elso kor\n\t\t\t\t\tPreviousValue = Count();\n\t\t\t\t\t//sajat maga, elso kor\n\t\t\t\t\tPreviousValue = Count();\n\t\t\t\t\t//feedback[0], masodik kor\n\t\t\t\t\tPreviousValue = Count();\n\t\t\t\t\t//ha bitt nem egyezne meg, az elozo prev.valueval, akkor instabil.\n\t\t\t\t\tstack.PrintTail(ID,\"\",Result + \":boolean\");\t/* TEST */\n\t\t\t\t\treturn Result;\n\t\t\t\t}",
"public String toString()\n\t{\n\t\treturn \"#\"+ this.getStepLineNumber() + \" \" + this.getClass().getSimpleName();\n\t}",
"public String toString()\n\t{\n\t\treturn \"#\"+ this.getStepLineNumber() + \" \" + this.getClass().getSimpleName();\n\t}",
"public String nextStep();",
"public void print() {\n \n for (int i=0 ; i< getNumberOfCases() ; i++) {\n Configuration conf = get(i);\n conf.print();\n System.out.print(\"\\n\");\n }\n}",
"@Override\r\n\tpublic int getSteps() {\n\t\treturn 0;\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn name+\" : \"+test;\n\t}",
"@Override\r\n\tpublic void printResult() {\n\t\tfor(Integer i:numbers)\r\n\t\t{\r\n\t\t\tSystem.out.println(i+\" \");\r\n\t\t}\r\n\t\t\r\n\t}",
"public void printResults() {\r\n\t\tif (net.isFlow()) {\r\n\t\t\tSystem.out.println(\"The assignment is a valid flow\");\r\n\t\t\tSystem.out.println(\"A maximum flow has value: \"+net.getValue());\r\n\t\t\tSystem.out.println(\"The flows along the edges are as follows:\");\r\n\t\t\tnet.printFlow();\r\n\t\t}\r\n\t\telse\r\n\t\t\tSystem.out.println(\"The assignment is not a valid flow\");\r\n\t}",
"@AfterMethod\n\tpublic void getResult(ITestResult result) throws IOException {\n\t\tString cellContent = this.getClass().getSimpleName();\n\t\tSystem.out.println(cellContent);\n\t\t// Searches for the Class name in Excel and return step name\n\t\tString StepName = ts.GetStepName(fileName, cellContent, i, 7);\n\t\t// Searches for the Class name in Excel and returns description of step\n\t\tString StepDescrip = ts.GetStepName(fileName, cellContent, i, 8);\n\t\t// Here we merge the step and description to be put in word\n\t\tString merged = StepName + \": \" + StepDescrip;\n\t\tSystem.out.println(merged);\n\t\ti++;\n\n\t\tSystem.out.println(\"In After method\");\n\t\tSystem.out.println(result.getMethod().getConstructorOrMethod().getMethod().getName());\n\n\t\t// First get the Step Name and Description name in here\n\n\t\t// System.out.println(this.getClass().getSimpleName());\n\t\t// test=\n\t\t// extent.createTest(result.getMethod().getConstructorOrMethod().getMethod().getName());\n\t\tif (result.getStatus() == ITestResult.FAILURE) {\n\t\t\tSystem.out.println(\"Test failed entering in Report\");\n\t\t\ttest.log(Status.FAIL, MarkupHelper.createLabel(result.getName() + StepDescrip + \" Test case FAILED due to below issues:\",\n\t\t\t\t\tExtentColor.RED));\n\t\t\tString issueDescription = result.getThrowable().getMessage();\n\t\t\tissueDescription.concat(ExceptionUtils.getFullStackTrace(result.getThrowable()));\n\t\t\ttest.fail(issueDescription);\n\t\t} else if (result.getStatus() == ITestResult.SUCCESS) {\n\t\t\tSystem.out.println(\"Test passed entering in report\");\n\t\t\ttest.log(Status.PASS, MarkupHelper.createLabel(result.getName() + StepDescrip + \" Test Case PASSED\", ExtentColor.GREEN));\n\t\t} else {\n\t\t\ttest.log(Status.SKIP,\n\t\t\t\t\tMarkupHelper.createLabel(result.getName() + StepDescrip + \" Test Case SKIPPED\", ExtentColor.ORANGE));\n\t\t\ttest.skip(result.getThrowable());\n\t\t}\n\t\tSystem.out.println(\"At end of after method\");\n\t}",
"public void fnWriteToHtmlOutput(String strDescription, String strExpectedValue, String strObtainedValue, String strResult) {\r\n \tString sStep;\r\n \tif (Dictionary.containsKey(\"STEP\")){\r\n \t\tsStep = Dictionary.get(\"STEP\") + \"<NS>\" + strDescription + \"<ND>\" + strExpectedValue + \"<ND>\" + strObtainedValue + \"<ND>\" + strResult;\r\n \t\tDictionary.remove(\"STEP\");\r\n \t}else{\r\n \t\tsStep = strDescription + \"<ND>\" + strExpectedValue + \"<ND>\" + strObtainedValue + \"<ND>\" + strResult;\r\n \t}\r\n \t\t\r\n \tDictionary.put(\"STEP\", sStep);\r\n \t\r\n //Declaring Variables\r\n String snapshotFilePath,sRowColor;\r\n\r\n //Open the test case report for writing\r\n //Open the HTML file\r\n\t\t//Open the report file to write the report\r\n\t\ttry {\r\n\t\t\tfoutStrm = new FileOutputStream(g_strTestCaseReport, true);\r\n\r\n\t\t} catch (FileNotFoundException fe) {\r\n\t\t\tfe.printStackTrace();\r\n\t\t}\r\n \r\n //Increment the Operation Count\r\n g_OperationCount = g_OperationCount + 1;\r\n \r\n //Row Color\r\n if (g_OperationCount % 2 == 0)\r\n {\r\n sRowColor = \"#EEEEEE\";\r\n }\r\n else\r\n {\r\n sRowColor = \"#D3D3D3\";\r\n \r\n }\r\n \r\n //Check if the result is Pass or Fail\r\n if (strResult.toUpperCase().equals(\"PASS\")){ \r\n //Increment the Pass Count\r\n g_iPassCount++;\r\n //Increment the snapshot count\r\n g_iSnapshotCount++;\r\n //Get the Full path of the snapshot\r\n snapshotFilePath = g_strSnapshotFolderName + \"\\\\SS_\" + g_iSnapshotCount + \".png\";\r\n \r\n //Capture the Snapshot\r\n fTakeScreenshot(snapshotFilePath);\r\n \r\n //Write the result into the file\r\n //new PrintStream(foutStrm).println(\"<TR WIDTH=100%><TD BGCOLOR=\" + sRowColor + \" WIDTH=5% ALIGN=CENTER><FONT FACE=VERDANA SIZE=2><B>\" + g_OperationCount + \"</B></FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=28%><FONT FACE=VERDANA SIZE=2>\" + strDescription + \" </FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=25%><FONT FACE=VERDANA SIZE=2>\" + strExpectedValue + \" </FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=25%><FONT FACE=VERDANA SIZE=2>\" + strObtainedValue + \" </FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=7% ALIGN=CENTER><FONT FACE=VERDANA SIZE=2 COLOR=GREEN><B>\" + strResult + \"</B></FONT></TD></TR>\");\r\n new PrintStream(foutStrm).println(\"<TR WIDTH=100%><TD BGCOLOR=\" + sRowColor + \" WIDTH=5% ALIGN=CENTER><FONT FACE=VERDANA SIZE=2 ><B>\" + g_OperationCount + \"</B></FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=28%><FONT FACE=VERDANA SIZE=2>\" + strDescription + \" </FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=25%><FONT FACE=VERDANA SIZE=2>\" + strExpectedValue +\" </FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=25%><FONT FACE=VERDANA SIZE=2>\" + strObtainedValue +\" </FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=7% ALIGN=CENTER><A HREF='\" + snapshotFilePath + \"'><FONT FACE=VERDANA SIZE=2 COLOR=GREEN><B>\" + strResult + \" </B></FONT></A></TD></TR>\");\r\n }\r\n else\r\n {\r\n if (strResult.toUpperCase().equals(\"FAIL\")){\r\n //Increment the SnapShot count\r\n g_iSnapshotCount++ ;\r\n\r\n //Increment the Fail Count\r\n g_iFailCount++;\r\n\r\n //Get the Full path of the snapshot\r\n snapshotFilePath = g_strSnapshotFolderName + \"\\\\SS_\" + g_iSnapshotCount + \".png\";\r\n\r\n //Capture the Snapshot\r\n fTakeScreenshot(snapshotFilePath);\r\n \r\n //Write the result into the file\r\n new PrintStream(foutStrm).println(\"<TR WIDTH=100%><TD BGCOLOR=\" + sRowColor + \" WIDTH=5% ALIGN=CENTER><FONT FACE=VERDANA SIZE=2 ><B>\" + g_OperationCount + \"</B></FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=28%><FONT FACE=VERDANA SIZE=2>\" + strDescription + \" </FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=25%><FONT FACE=VERDANA SIZE=2>\" + strExpectedValue +\" </FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=25%><FONT FACE=VERDANA SIZE=2>\" + strObtainedValue +\" </FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=7% ALIGN=CENTER><A HREF='\" + snapshotFilePath + \"'><FONT FACE=VERDANA SIZE=2 COLOR=RED><B>\" + strResult + \" </B></FONT></A></TD></TR>\");\r\n \r\n }else if (strResult.toUpperCase().equals(\"DONE\")){ \r\n \tstrResult = \"Pass\";\r\n //Write Results into the file\r\n \tnew PrintStream(foutStrm).println(\"<TR WIDTH=100%><TD BGCOLOR=\" + sRowColor + \" WIDTH=5% ALIGN=CENTER><FONT FACE=VERDANA SIZE=2><B>\" + g_OperationCount +\"</B></FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=28%><FONT FACE=VERDANA SIZE=2>\"+ strDescription +\"</FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=25%><FONT FACE=VERDANA SIZE=2>\" + strExpectedValue + \"</FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=25%><FONT FACE=VERDANA SIZE=2>\"+ strObtainedValue +\"</FONT></TD><TD BGCOLOR=\" + sRowColor + \" WIDTH=7% ALIGN=CENTER><FONT FACE=VERDANA SIZE=2 COLOR=LimeGreen><B>\"+ strResult +\"</B></FONT></TD></TR>\");\r\n }\r\n \r\n }\r\n try\r\n {\t\t\t\r\n \t//Close File stream\r\n\t\t\tfoutStrm.close();\r\n\t\t\t\r\n\t\t} catch (IOException io) {\r\n\t\t\tio.printStackTrace();\r\n\t\t}\r\n }",
"@Override\n public String toString() {\n // TODO: this, statically\n StringBuilder builder = new StringBuilder(getObs().toString());\n builder.append(\" S\");\n builder.append(firstStep + 1);\n if (lastStep > firstStep) {\n builder.append(\"-\");\n builder.append(lastStep + 1);\n }\n return builder.toString();\n }",
"@Test\n\tpublic void testStep() {\n\t\tsimulator.step();\n\t\tassertEquals(0, (int)simulator.averageWaitTime());\n\t\tassertEquals(0, (int)simulator.averageProcessTime());\n\t\tassertEquals(false, simulator.packageLeftSimulation());\n\t\tassertEquals(0, simulator.getCurrentIndex());\n\t\tassertEquals(true, simulator.moreSteps());\n\n\t\tfor (int i = 0; i < 28; i++) {\n\t\t\tsimulator.step();\n\t\t}\n\t\tassertEquals(287, (int)(simulator.averageWaitTime() * 100));\n\t\tassertEquals(1525, (int)(100 * simulator.averageProcessTime()));\n\t\tassertEquals(false, simulator.packageLeftSimulation());\n\t\tassertEquals(0, simulator.getCurrentIndex());\n\t\tassertEquals(true, simulator.moreSteps());\n\t\t\n\t\tfor (int i = 0; i < 15; i++) {\n\t\t\tsimulator.step();\n\t\t}\n\t\tassertEquals(614, (int)(simulator.averageWaitTime() * 100));\n\t\tassertEquals(1457, (int)(100 * simulator.averageProcessTime()));\n\t\tassertEquals(true, simulator.packageLeftSimulation());\n\t\tassertEquals(0, simulator.getCurrentIndex());\n\t\tassertEquals(true, simulator.moreSteps());\n\t\tfor (int i = 0; i < 16; i++) {\n\t\t\tsimulator.step();\n\t\t}\n\t\tassertEquals(false, simulator.moreSteps());\t\n\t}",
"private void print(final TestOutcome outcome) {\n this.print(\n new If<>(\n outcome.successful(),\n new MsgPassed(outcome),\n new MsgFailed(outcome)\n ).value()\n );\n }",
"int getStep();",
"int getStep();",
"int getStep();",
"static void print() {\n\t\tSystem.out.println(\"Value of x1 = \" +x1);\n\t}",
"public void print() {\n System.out.print(\"[ \" + value + \":\" + numSides + \" ]\");\n }",
"@Test(priority = 1, groups= {\"regression\",\"smoke\"})\r\n\tpublic void PrintHospitals()\r\n\t{\r\n\t\tlogger= report.createTest(\"Printing Hospitals as per requirement\");\r\n\t\tDisplayHospitalNames hp=Base.nextPage1();\r\n\t\thp.selectLocation();\r\n\t\thp.selectHospital();\r\n\t\thp.applyFilters();\r\n\t\thp.hospitals();\r\n\t\thp.Back();\r\n\t}",
"@Test\n public void testToString_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n\n String result = fixture.toString();\n\n assertEquals(\"LogicStep : \", result);\n }",
"@Override\n public String toString() {\n return String.format(Locale.getDefault(),\n \"Step{id=%d, shortDescription='%s'}\", id, shortDescription);\n }",
"public static void printTestStatus(boolean passed) {\n if (passed) {\n System.out.println(\"Test passed!\\n\");\n } else {\n System.out.println(\"Test failed!\\n\");\n }\n }",
"@Override\n public void onTestSuccess(ITestResult tr) {\n StatusPrinter.printTestSuccess(tr);\n }",
"@Override\r\n\tpublic void Print() {\r\n\t\tSystem.out.print(this.tav+\" \");\r\n\t\t\r\n\t}",
"public void printResult(){\n StringBuilder sb = new StringBuilder(20);\n sb.append(left_value)\n .append(space)\n .append(symbol)\n .append(space)\n .append(right_value)\n .append(space)\n .append('=')\n .append(space)\n .append(result);\n System.out.println(sb);\n }",
"public String toString() {\r\n if(this.step < 23){ // if step is less than 23\r\n if(this.step / 6 == 0){ //the first 6 steps will apear as \"fee\"\r\n name = \"fee\";\r\n } else if (this. step / 6 == 1){ //second set of 6 steps appear as \"fie\"\r\n name = \"fie\";\r\n } else if (this. step / 6 == 2){ //third set appear as \"foe\"\r\n name = \"foe\";\r\n } else { //this.step/6 == 3\r\n name = \"fum\"; //fourth set appear as \"fum\"\r\n }\r\n this.step++; \r\n return name;\r\n } else{ //when step reach 24, the step reset to 0\r\n this.step = 0;\r\n return name;\r\n }\r\n }",
"public boolean Step(){\n\t\t\t\t\tboolean Result = true;\t\t\t\t\t\t// A vegso eredmeny: Stabil-e az aramkor\n\t\t\t\t\t_TEST stack = new _TEST();\t\t\t\t\t/* TEST */\n\t\t\t\t\tstack.PrintHeader(ID,\"\",\"true:boolean\");\t/* TEST */\n\t\t\t\t\tPreviousValue = Count();\t\t\t\t\t// Megnezzuk az elso futas erredmenyet\n\t\t\t\t\tinv0.Count();\t\t\t\t//feedback[0].Count(), elso ciklus\n\t\t\t\t\tPreviousValue = Count();\t//feedback 0 es 1 kozt magat frissiti\n\t\t\t\t\tinv0.Count();\t\t\t\t//feedback[0].Count(), masodik ciklus\n\t\t\t\t\tPreviousValue = Count();\t//frissiti magat. itt instabilitasi teszt jon a proto-ban\n\n\t\t\t\t\tstack.PrintTail(ID,\"\",Result + \":boolean\");\t/* TEST */\n\t\t\t\t\treturn Result;\n\t\t\t\t}",
"private void generateTestExecution(ITestResult result) throws IOException{\r\n\t\t//create the html file with current running class and test name\r\n\t\tfout = createRequiredFile(result.getName());\r\n\t\t\r\n\t\t//Write initial html codes neccessary for report\r\n\t\tstartHtmlPage(fout,result);\r\n\t\t\r\n\t\t//get all the attributes set during the test execution\r\n\t\tObject[] array = result.getAttributeNames().toArray();\r\n\t\t\r\n\t\t//Above got values are not in sort. So, Sorting that based on time\r\n\t\tArrays.sort(array);\r\n\t\t\r\n\t\t//Iterating the array value to generate report\r\n \tfor(Object name : array){\r\n \t\t\t\r\n \t\t\t//Each and every array value contains, All the info about the particular action\r\n \t\t\t//And Values combined using deliminator. So, split using deliminator\r\n\t \t\tString temp[] = result.getAttribute((String) name).toString().split(\"####\");\r\n\t \t\t\r\n\t \t\t//After split up, If the third array value contains 'Fail' means that step failed \r\n\t \t\tif(temp[3].toLowerCase().contains(\"fail\")){\r\n\t \t\t\t//If Fail create '<tr>' tag with 'status_failed' class(Which is used for create 'red' background color for failed cases)\r\n\t \t\t\tfout.println(\"<tr class=\\\"status_failed\\\" title=\\\"\\\" alt=\\\"\\\">\");\r\n\t \t\t\t\r\n\t \t\t\t//create the screenshot path\r\n\t \t\t\tString pathToScreenshot = \"../Failure_Screenshot/\"+temp[5]+\".jpg\";\r\n\t \t\t\t\r\n\t \t\t\t//creating mapping for failed step(Link to screen shot and embed the screenshot in that step)\r\n\t \t\t\ttemp[4] = \"<a href=\\'\" + pathToScreenshot + \"\\'> <img src=\\'\" + pathToScreenshot + \"\\' height=\\\"100\\\" width=\\\"100\\\"> </a>\";\r\n\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//After split up, If the third array value contains 'title' means that is title\r\n\t \t\telse if(temp[3].toLowerCase().contains(\"title\")){\r\n\t \t\t\t//So, If it is a title then create '<tr>' tag with class name 'title'\r\n\t \t\t\tfout.println(\"<tr class=\\\"title\\\" title=\\\"\\\" alt=\\\"\\\">\");\r\n\t \t\t\tfout.println(\"<td colspan=\\\"6\\\">\"+ temp[0] + \"</td>\");\r\n\t \t\t\tfout.println(\"</tr>\");\r\n\t \t\t\tcontinue;\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//Else status is passed\r\n\t \t\telse{\r\n\t \t\t\tfout.println(\"<tr class=\\\"status_passed\\\" title=\\\"\\\" alt=\\\"\\\">\");\r\n\t \t\t}\r\n\t \t\t\r\n\t \t\t//this will create separate '<td>' for messages inside the action\r\n\t \t\tfor(String temp1 : temp){\r\n\t \t\t\t\tfout.println(\"<td>\"+ temp1 + \"</td>\");\r\n\r\n\t \t\t}\r\n\t \t//end up '<tr>' tag\t\r\n\t \tfout.println(\"</tr>\");\r\n \t}\r\n \t\r\n \t//this used for write some end up html tags\r\n \tonFinish();\r\n \t\r\n\t}",
"public void printOn(PrintStream os, GPVariables cfg) {\n\n super.printOn(os, cfg);\n os.println(\"StartingFunds = \"+StartingFunds);\n os.println(\"NumTestTraders = \"+NumTestTraders);\n os.println(\"NumSteps = \"+NumSteps);\n }",
"public void printVal()\n {\n for (int i=0;i<intData.length;i++)\n System.out.print(intData[i] + \" \");\n System.out.println();\n System.out.println(\"Sum: \" + sum + \", Avg: \" + avg + \", Prod: \" + prod);\n }",
"abstract int steps();",
"@Then(\"troubleshooting chart steps are displaying\")\n public void troubleshooting_chart_steps_are_displaying() {\n }",
"public void printAnalysis(){\n System.out.println(\"Product: \" + this.getName());\n System.out.println(\"History: \" + this.history());\n System.out.println(\"Largest amount of product: \" + this.inventoryHistory.maxValue());\n System.out.println(\"Smallest amount of product: \" + this.inventoryHistory.minValue());\n System.out.println(\"Average: \" + this.inventoryHistory.average());\n }",
"public static void printTest(int num, int expectedFactors) {\r\n\t\t//Stopwatch st = new Stopwatch();\r\n\t\t//st.start();\r\n\t\tint actualFactors = numFactors(num);\r\n\t\t//st.stop();\r\n\t\tSystem.out.println(\"Testing \" + num + \" expect \" + expectedFactors + \", \" +\r\n\t\t\t\t\"actual \" + actualFactors);\r\n\t\tif(actualFactors == expectedFactors)\r\n\t\t\tSystem.out.println(\"PASSED\");\r\n\t\telse\r\n\t\t\tSystem.out.println(\"FAILED\");\r\n\t\t//System.out.println(st.time());\r\n\t}",
"java.lang.String getNextStep();",
"private void printNode() {\n System.out.println(\"value:\" + value + \" next:\" + nextNode);\n }",
"public String toString() {\r\n return super.toString() +\r\n \"sequenceName: \" + sequenceName + \"\\n\" +\r\n \"initial value: \" + initialValue + \"\\n\" +\r\n \"step value: \" + stepValue + \"\\n\" +\r\n \"maxValue: \" + maxValue + \"\\n\" +\r\n \"minValue:\" + minValue + \"\\n\" +\r\n \"cycle: \" + cycle + \"\\n\";\r\n }",
"public void print() {\n print$$dsl$guidsl$guigs();\n System.out.print( \" eqn =\" + eqn );\n }",
"public void testStep() {\n\n DT_TractographyImage crossing = Images.getCrossing();\n\n FACT_FibreTracker tracker = new FACT_FibreTracker(crossing);\n\n Vector3D[] pds = crossing.getPDs(1,1,1);\n\n Vector3D step = tracker.getFirstStep(new Point3D(1.5 * Images.xVoxelDim, 1.2 * Images.yVoxelDim, 1.1 * Images.zVoxelDim), 0, true);\n\n assertEquals(1.0, pds[0].dot(step.normalized()), 1E-8);\n\n assertEquals(Images.xVoxelDim / 2.0, step.mod(), 0.05);\n \n step = tracker.getFirstStep(new Point3D(1.5 * Images.xVoxelDim, 1.2 * Images.yVoxelDim, 1.1 * Images.zVoxelDim), 0, false);\n\n assertEquals(-1.0, pds[0].dot(step.normalized()), 1E-8);\n\n step = tracker.getFirstStep(new Point3D(1.5 * Images.xVoxelDim, 1.2 * Images.yVoxelDim, 1.1 * Images.zVoxelDim), 1, true);\n\n assertEquals(1.0, pds[1].dot(step.normalized()), 1E-8);\n\n\n for (int i = 0; i < 2; i++) {\n\n step = tracker.getNextStep(new Point3D(1.5 * Images.xVoxelDim, 1.2 * Images.yVoxelDim, 1.1 * Images.zVoxelDim), new Vector3D(pds[i].x + 0.01, pds[i].y + 0.02, pds[i].z + 0.03).normalized());\n\n assertEquals(1.0, pds[i].dot(step.normalized()), 1E-8);\n\n }\n\n \n }",
"public void showSamples(){\n\t\tfor(int i=0; i<arrIns.size(); i++){\n\t\t\tfor(int j=0; j<arrIns.get(i).numAttributes(); j++){\n\t\t\t\tSystem.out.print(\" | \" + arrIns.get(i).value(j) + \" | \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}",
"public void displayValues()\n {\n \tSystem.out.println(\"The name of a bicycle is \"+name);\n \tSystem.out.println(\"The cost of a bicycle is \"+cost);\n \tSystem.out.println(\"The total numer of gears \"+gears);\n \t\n \t\n }",
"private void printAnswerResults(){\n\t\tSystem.out.print(\"\\nCorrect Answer Set: \" + q.getCorrectAnswers().toString());\n\t\tSystem.out.print(\"\\nCorrect Answers: \"+correctAnswers+\n\t\t\t\t\t\t \"\\nWrong Answers: \"+wrongAnswers);\n\t}",
"public void step();",
"public void step();",
"private void printExpectedList() {\n expectedList.stream().forEach((Integer i) -> {\n System.out.print(i + \" \");\n });\n System.out.println(\"\");\n }",
"void printResultSummary(ResultsSummary s, Consumer<String> messageWriter) {\n if ( s.getFeaturesPending() > 0) {\n messageWriter.accept(format(\"%nFeatures (total:%d) (passed:%d) (pending:%d) (failed:%d)\",\n s.getTotalFeatures(),\n s.getFeaturesPassed(),\n s.getFeaturesPending(),\n s.getFeaturesFailed()));\n } else {\n messageWriter.accept(format(\"%nFeatures (total:%d) (passed:%d) (failed:%d)\",\n s.getTotalFeatures(),\n s.getFeaturesPassed(),\n s.getFeaturesFailed()));\n }\n\n //only show the pending count if there were pending steps, makes the summary more legible\n if ( s.getScenariosPending() > 0 ) {\n //print scenarios summary\n messageWriter.accept(format(\"Scenarios (total:%d) (passed:%d) (pending:%d) (failed:%d)\",\n s.getTotalScenarios(),\n s.getScenariosPassed(),\n s.getScenariosPending(),\n s.getScenariosFailed()));\n } else {\n //print scenarios summary\n messageWriter.accept(format(\"Scenarios (total:%d) (passed:%d) (failed:%d)\",\n s.getTotalScenarios(),\n s.getScenariosPassed(),\n s.getScenariosFailed()));\n }\n\n //print steps summary\n messageWriter.accept(format(\"Steps (total:%d) (passed:%d) (failed:%d) (undefined:%d) (pending:%d) (skipped:%d)\",\n s.getStepsPassed() + s.getStepsFailed() + s.getStepsUndefined() + s.getStepsPending() + s.getStepsSkipped(),\n s.getStepsPassed(),\n s.getStepsFailed(),\n s.getStepsUndefined(),\n s.getStepsPending(),\n s.getStepsSkipped()));\n }",
"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 void onTestSuccess(ITestResult result) {\n\t\tSystem.out.println(result.getName()+\"**********Test Success.............This is result.getName\");\r\n\t\t\r\n\t}",
"private static void printTest(boolean isValid, String description, String recieved, String expected) {\r\n\t\tSystem.out.println(String.format(\"Is Valid: %s%nDescription: %s%nRecieved: %s%nExpected: %s%n\", isValid, description, recieved, expected));\r\n\t}",
"public int getSteps() {\n\t\treturn steps;\n\t}",
"public TestOut getOutput() {\n\treturn(output);\n }",
"public String printFormat(){\n return \"The workout: \" + getName() + \" should be done for \" + getSets() + \" sets and in each set should be \"\n + getReps() + \" reps.\";\n }",
"@Override\r\n\tpublic void stepHasBeenTaken(int steps) {\n\t\tTextView currLoc = (TextView) findViewById(R.id.stepsCount);\r\n\t\tcurrLoc.setText(\"\"+steps);\r\n\t}",
"public void printInfo()\n {\n System.out.println(\"position Value:\" + pos_.get(0).getPosition());\n System.out.println(\"velocitiy Value:\" + vel_.get(0).getVelocity());\n System.out.println(\"lastUpdateTime Value:\" + lastPosUpdateTime_);\n System.out.println(\"KalmanGain_ Value:\" + KalmanGain_);\n }",
"public String toString() {\n\t\tString contents = \"\";\n\t\tif (scenario != null) {\n\t\t\tif (controller.getWorld().getHasScenarios()) {\n\t\t\t\tcontents += \"Scenario: \" + scenario + \"\\n\";\n\t\t\t}\n\t\t\tcontents += \"Number of runs: \" + numOfRuns + \"\\n\";\n\t\t\tcontents += \"Trial duration: \" + trialDuration + \"\\n\";\n\t\t\tcontents += \"Number of trials: \" + numOfTrials + \"\\n\";\n\t\t}\n\t\treturn contents;\n\t}",
"public void printInfo() {\n\t\tString nodeType = \"\";\n\t\tif (nextLayerNodes.size() == 0) {\n\t\t\tnodeType = \"Output Node\";\n\t\t} else if (prevLayerNodes.size() == 0) {\n\t\t\tnodeType = \"Input Node\";\n\t\t} else {\n\t\t\tnodeType = \"Hidden Node\";\n\t\t}\n\t\tSystem.out.printf(\"%n-----Node Values %s-----%n\", nodeType);\n\t\tSystem.out.printf(\"\tNumber of nodes in next layer: %d%n\", nextLayerNodes.size());\n\t\tSystem.out.printf(\"\tNumber of nodes in prev layer: %d%n\", prevLayerNodes.size());\n\t\tSystem.out.printf(\"\tNext Layer Node Weights:%n\");\n\t\tNode[] nextLayer = new Node[nextLayerNodes.keySet().toArray().length];\n\t\tfor (int i = 0; i < nextLayer.length; i++) {\n\t\t\tnextLayer[i] = (Node) nextLayerNodes.keySet().toArray()[i];\n\t\t}\n\t\tfor (int i = 0; i < nextLayerNodes.size(); i++) {\n\t\t\tSystem.out.printf(\"\t\t# %f%n\", nextLayerNodes.get(nextLayer[i]));\n\t\t}\n\t\tSystem.out.printf(\"%n\tPartial err partial out = %f%n%n\", getPartialErrPartialOut());\n\t}",
"private static void PrintResult(State o) {\n\t\tif (o.cha!=null) {\n\t\t\tPrintResult(o.cha);// co duoc 2 buoc tren minh ms in ra dc buoc PrintResult\n\t\t\t//PrintResult goi de quy trong PrintResult\n\t\t\tswitch (o.me.i) {\n\t\t\tcase 0: System.out.println(\"Up\");break;\n\t\t\tcase 1: System.out.println(\"Down\");break;\n\t\t\tcase 2: System.out.println(\"Left\");break;\n\t\t\tcase 3: System.out.println(\"Right\");break;\n\t\t\t}\n\t\t}\n\t\to.Print();\n\t}",
"public String printResult() {\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tsb.append(printStartNumberAndName() + \"; \");\n\t\tsb.append(printInfo());\n\n\t\tsb.append(printTotalTime() + \"; \");\n\n\t\tsb.append(getStartTime() + \"; \");\n\t\tsb.append(getFinishTime());\n\t\n\t\tsb.append(errorHandler.print());\n\t\t\n\t\treturn sb.toString();\n\t}",
"static void executeTest() {\n int[] param1 = { // Checkpoint 1\n 12, 11, 10, -1, -15,};\n boolean[] expect = { // Checkpoint 2\n true, false,true, false, true,}; \n System.out.printf(\"課題番号:%s, 学籍番号:%s, 氏名:%s\\n\",\n question, gakuban, yourname);\n int passed = 0;\n for (int i = 0; i < param1.length; i++) {\n String info1 = \"\", info2 = \"\";\n Exception ex = null;\n boolean returned = false; //3\n try {\n returned = isDivable(param1[i]); //4\n if (expect[i] == (returned)) { //5\n info1 = \"OK\";\n passed++;\n } else {\n info1 = \"NG\";\n info2 = String.format(\" <= SHOULD BE %s\", expect[i]);\n }\n } catch (Exception e) {\n info1 = \"NG\";\n info2 = \"EXCEPTION!!\";\n ex = e;\n } finally {\n String line = String.format(\"*** Test#%d %s %s(%s) => \",\n i + 1, info1, method, param1[i]);\n if (ex == null) {\n System.out.println(line + returned + info2);\n } else {\n System.out.println(line + info2);\n ex.printStackTrace();\n return;\n }\n }\n }\n System.out.printf(\"Summary: %s,%s,%s,%d/%d\\n\",\n question, gakuban, yourname, passed, param1.length);\n }",
"public void print() {\r\n for (final Map.Entry<State, StatePolicyProperties> mapping : mStateMap.entrySet()) {\r\n final StatePolicyProperties properties = mapping.getValue();\r\n\r\n // Print the state\r\n mapping.getKey().print();\r\n System.out.println(\" State value = \" + properties.getValue());\r\n\r\n // Print the actions with their probability\r\n for (Map.Entry<Action, Double> actionProbability : properties.getActionProbabilities().entrySet()) {\r\n System.out.println(\" Action probability \" + actionProbability.getKey() + \" = \"\r\n + actionProbability.getValue());\r\n }\r\n // Print the actions with their value\r\n for (Map.Entry<Action, Double> actionValue : properties.getActionValues().entrySet()) {\r\n System.out.println(\" Action value \" + actionValue.getKey() + \" = \" + actionValue.getValue());\r\n }\r\n }\r\n System.out.println();\r\n }",
"@Test\n public void testPrintPosLnS() throws Exception\n {\n//TODO: Test goes here... \n }",
"public String toTest() {\n\t\tString result = \"Possible values: \\n\";\n\t\tfor (int r=0; r<size*size; r++) {\n\t\t\tfor (int c=0; c<size*size; c++) {\n\t\t\t\tif (board[r][c].val==0) {\n\t\t\t\t\tresult += \"Row: \" + (r+1) + \", Col: \" + (c+1) + \", Value: \" + board[r][c].val + \", Possible values: \" + board[r][c].pval + \"\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"public int step() {\n // PUT YOUR CODE HERE\n }",
"private void dumpResults(long startTime, long endTime) {\n \n Log.info(TAG_LOG, \"***************************************\");\n \n if (testResults != null) {\n int tot = 0;\n int failed = 0;\n int success = 0;\n int skipped = 0;\n for(int i=0;i<testResults.size();++i) {\n StringBuffer res = new StringBuffer();\n \n TestStatus status = (TestStatus)testResults.elementAt(i);\n String url = status.getScriptName();\n \n res.append(\"Script=\").append(url);\n String r;\n switch (status.getStatus()) {\n case TestStatus.SUCCESS:\n r = \"SUCCESS\";\n success++;\n break;\n case TestStatus.FAILURE:\n r = \"FAILURE\";\n failed++;\n // Record that we had an error\n errorCode = -1;\n break;\n case TestStatus.SKIPPED:\n r = \"SKIPPED\";\n skipped++;\n break;\n default:\n r = \"UNDEFINED\";\n break;\n }\n \n res.append(\" Result=\").append(r);\n String detailedError = status.getDetailedError();\n tot++;\n if (detailedError != null) {\n res.append(\" Error=\").append(detailedError);\n }\n Log.info(TAG_LOG, res.toString());\n }\n Log.info(TAG_LOG, \"---------------------------------------\");\n Log.info(TAG_LOG, \"Total number of tests: \" + tot);\n Log.info(TAG_LOG, \"Total number of success: \" + success);\n Log.info(TAG_LOG, \"Total number of failures: \" + failed);\n Log.info(TAG_LOG, \"Total number of skipped: \" + skipped);\n long secs = (endTime - startTime) / 1000;\n Log.info(TAG_LOG, \"Total execution time: \" + secs);\n } else {\n Log.info(TAG_LOG, \"No tests performed\");\n }\n Log.info(TAG_LOG, \"***************************************\");\n }",
"public void printResults() {\n getUtl().getOutput().add(\"~~ Results ~~\\n\");\n for (int i = 0; i < getHeroes().size(); i++) {\n if (getHeroes().get(i).isDead()) {\n getUtl().getOutput().add(getHeroes().get(i).getName().\n toCharArray()[0] + \" dead\\n\");\n } else {\n getUtl().getOutput().add(getHeroes().get(i).getName().\n toCharArray()[0] + \" \"\n + getHeroes().get(i).getLevel() + \" \"\n + getHeroes().get(i).getXp() + \" \"\n + getHeroes().get(i).getHp() + \" \"\n + getHeroes().get(i).getPosX() + \" \"\n + getHeroes().get(i).getPosY() + \"\\n\");\n }\n }\n // Write output to given outputPath.\n getGameFileWriter().write(getUtl().getOutput());\n for (int i = 0; i < getUtl().getOutput().size(); i++) {\n // Write output to console as well.\n System.out.print(getUtl().getOutput().get(i));\n }\n }",
"static void getResults() throws IOException {\n\t\tint k = 2;\n\t\twhile (k <= 7) {\n\t\t\tint j = 1;\n\t\t\tString line;\n\t\t\tString precision = \"\";\n\t\t\tString recall = \"\";\n\t\t\tString fmeasure = \"\";\n\t\t\tString time = \"\";\n\n\n\t\t\twhile (j <= 10) {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\n\t\t\t\t\t\tnew File(ConfigManager.getExperimentFolder() + \"M\" + k + \"/Testbeds-\"+j\n\t\t\t\t\t\t\t\t+ \"/Generated/PSL/test/Precision/F1NoTraining.txt\")));\n\n\t\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t\tif (line.contains(\"Precision :\")) {\n\t\t\t\t\t\tprecision += line.replace(\"Precision :\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Recall:\")) {\n\t\t\t\t\t\trecall += line.replace(\"Recall:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Fmeasure:\")) {\n\t\t\t\t\t\tfmeasure += line.replace(\"Fmeasure:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (line.contains(\"Time:\")) {\n\t\t\t\t\t\ttime += line.replace(\"Time:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tj++;\n\t\t\t}\n\n\t\t\tSystem.out.print(precision);\n//\t\t\tSystem.out.print(recall);\n//\t\t\tSystem.out.print(fmeasure);\n//\t\t\tSystem.out.print(time);\n\n\t\t\tk++;\n\t\t}\n\t}",
"public int getSteps() {\n\t\treturn this.steps;\n\t}",
"public ProofStep [ ] getSteps ( ) ;",
"@Test public void summaryInfoTest()\n {\n PentagonalPyramid[] pArray = new PentagonalPyramid[100];\n PentagonalPyramid p1 = new PentagonalPyramid(\"PP1\", 1, 2);\n PentagonalPyramid p2 = new PentagonalPyramid(\"PP1\", 2, 3);\n PentagonalPyramid p3 = new PentagonalPyramid(\"PP1\", 3, 4);\n pArray[0] = p1;\n pArray[1] = p2;\n pArray[2] = p3;\n \n PentagonalPyramidList2 pList = new PentagonalPyramidList2(\"ListName\", \n pArray, 3);\n \n Assert.assertEquals(\"summary Test\", true, \n pList.summaryInfo().contains(\"Total\"));\n \n }",
"public void printStats() {\n\t\tSystem.out.println(\"QuickSort terminates!\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Duration: \" + getDuration() + \" seconds\");\n\t\tSystem.out.println(\"Comparisons: \" + this.comparisonCounter);\n\t\tSystem.out.println(\"Boundary: \" + this.b);\n\t}",
"public void printExpectedVisitors() {\n System.out.println(expectedVisitors);\n }",
"public void printt() {\n for (int i=0 ; i<number ; i++) {\n System.out.println(\"LAB\" + (i+1) + \" ON \" + labs[i].getDay() + \" TEACHING BY: \" + labs[i].getTeacher());\n for (int j=0 ; j<labs[i].getCurrentSize() ; j++) {\n System.out.println(labs[i].getStudents()[j].getFirstName() + \" \" + labs[i].getStudents()[j].getLastName() + \" \" + labs[i].getStudents()[j].getId() + \" \" +labs[i].getStudents()[j].getGrade());\n }\n System.out.println(\"THE CAPACITY OF THE LAB IS: \" + labs[i].getCapacity());\n System.out.println(\"THE AVERAGE IS : \" + labs[i].getAvg());\n System.out.println();\n }\n }",
"private void printResults() {\n\t\tdouble percentCorrect = (double)(correctAnswers/numberAmt) * 100;\n\t\tSystem.out.println(\"Amount of number memorized: \" + numberAmt +\n\t\t\t\t \"\\n\" + \"Amount correctly answered: \" + correctAnswers +\n\t\t\t\t \"\\n\" + \"Percent correct: \" + (int)percentCorrect);\n\t}",
"public String getStepDescription()\r\n\t{\r\n\t\treturn stepDescription;\r\n\t}",
"public static void main(String[] args) {\n InputData inputData = new InputData();\n FindNumberOfSteps findNumberOfSteps = new FindNumberOfSteps();\n PrintResult printResult = new PrintResult();\n printResult.print(findNumberOfSteps.find(inputData.input()));\n }",
"public void printValues(){\n Node runner = head;\n while(runner != null){ //iterate through end of list\n System.out.println(runner.value);\n runner = runner.next;\n }\n }",
"public int getStep() {\n return step;\n }",
"private void outputMe() {\n\t\tif (changeCount > 2) changeCount = 4 - (changeCount & 1);\n\t\tif (outputValue) {\n\t\t\tSystem.out.append( trueArray[ changeCount ] );\n\t\t} else {\n\t\t\tSystem.out.append( falseArray[ changeCount ] );\n\t\t}\n\t\tchangeCount = 0;\n\t}",
"void print() {\r\n\t\tOperations.print(lexemes, tokens);\r\n\t}",
"public void print (){\r\n\t\tSystem.out.print(\" > Inputs (\"+numInputAttributes+\"): \");\r\n\t\tfor (int i=0; i<numInputAttributes; i++){\r\n\t\t\tif (missingValues[Instance.ATT_INPUT][i]){\r\n\t\t\t\tSystem.out.print(\"?\");\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tswitch(Attributes.getInputAttribute(i).getType()){\r\n\t\t\t\tcase Attribute.NOMINAL:\r\n\t\t\t\t\tSystem.out.print(nominalValues[Instance.ATT_INPUT][i]); \r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Attribute.INTEGER:\r\n\t\t\t\t\tSystem.out.print((int)realValues[Instance.ATT_INPUT][i]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Attribute.REAL:\r\n\t\t\t\t\tSystem.out.print(realValues[Instance.ATT_INPUT][i]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.print(\" \");\r\n\t\t}\r\n\t\tSystem.out.print(\" > Outputs (\"+numOutputAttributes+\"): \");\r\n\t\tfor (int i=0; i<numOutputAttributes; i++){\r\n\t\t\tif (missingValues[Instance.ATT_OUTPUT][i]){\r\n\t\t\t\tSystem.out.print(\"?\");\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tswitch(Attributes.getOutputAttribute(i).getType()){\r\n\t\t\t\tcase Attribute.NOMINAL:\r\n\t\t\t\t\tSystem.out.print(nominalValues[Instance.ATT_OUTPUT][i]); \r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Attribute.INTEGER:\r\n\t\t\t\t\tSystem.out.print((int)realValues[Instance.ATT_OUTPUT][i]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Attribute.REAL:\r\n\t\t\t\t\tSystem.out.print(realValues[Instance.ATT_OUTPUT][i]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.print(\" \");\r\n\t\t}\r\n\r\n\t\tSystem.out.print(\" > Undefined (\"+numUndefinedAttributes+\"): \");\r\n\t\tfor (int i=0; i<numUndefinedAttributes; i++){\r\n\t\t\tif (missingValues[Instance.ATT_NONDEF][i]){\r\n\t\t\t\tSystem.out.print(\"?\");\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tswitch(Attributes.getUndefinedAttribute(i).getType()){\r\n\t\t\t\tcase Attribute.NOMINAL:\r\n\t\t\t\t\tSystem.out.print(nominalValues[Instance.ATT_NONDEF][i]); \r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Attribute.INTEGER:\r\n\t\t\t\t\tSystem.out.print((int)realValues[Instance.ATT_NONDEF][i]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase Attribute.REAL:\r\n\t\t\t\t\tSystem.out.print(realValues[Instance.ATT_NONDEF][i]);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.print(\" \");\r\n\t\t}\r\n\t}"
] | [
"0.6839242",
"0.676605",
"0.652712",
"0.6510785",
"0.6499701",
"0.64954495",
"0.64795136",
"0.64301956",
"0.6378914",
"0.6351019",
"0.635081",
"0.631626",
"0.6285529",
"0.62763405",
"0.626816",
"0.626816",
"0.62564373",
"0.6231116",
"0.62066686",
"0.61958766",
"0.6183701",
"0.61796355",
"0.61796355",
"0.6163912",
"0.61429304",
"0.6120911",
"0.6107844",
"0.6101466",
"0.6100365",
"0.60962296",
"0.60812974",
"0.6079599",
"0.60692096",
"0.60361254",
"0.6024398",
"0.6024398",
"0.6024398",
"0.59952134",
"0.5993654",
"0.5989364",
"0.5983215",
"0.59744906",
"0.5973143",
"0.5962146",
"0.59504277",
"0.5943721",
"0.59354955",
"0.5913819",
"0.59097725",
"0.5909723",
"0.5906761",
"0.5894886",
"0.588572",
"0.5882032",
"0.5878279",
"0.58636373",
"0.5853033",
"0.5847615",
"0.58461946",
"0.5843794",
"0.5830665",
"0.5819186",
"0.58154744",
"0.5811604",
"0.5811604",
"0.5800145",
"0.5798779",
"0.5797425",
"0.5795591",
"0.5793486",
"0.57907254",
"0.5786958",
"0.578338",
"0.5776867",
"0.57743394",
"0.57739675",
"0.5773395",
"0.57662946",
"0.575945",
"0.57565284",
"0.57564604",
"0.5753969",
"0.575214",
"0.5743113",
"0.57401717",
"0.57324815",
"0.5727929",
"0.5722879",
"0.57225364",
"0.5710757",
"0.57076144",
"0.57046354",
"0.570455",
"0.5702946",
"0.5697706",
"0.569474",
"0.5691868",
"0.56917256",
"0.5690756",
"0.568699",
"0.5683992"
] | 0.0 | -1 |
Format of trace list | public interface TraceListFormat{
String getSuffix();
/**
* Read trace list from a file
*
* @param file the file
* @return the trace list
* @throws IOException
*/
TraceList read(File file) throws IOException;
/**
* Save trace list to a file
*
* @param traceList trace list
* @param file the file
* @throws IOException
*/
void write(TraceList traceList,File file) throws IOException;
/**
* Read trace list from a file
*
* @param file the file
* @return the trace list
* @throws IOException
*/
public static TraceList readFrom(File file) throws IOException{
String fileName=file.getName();
String formatName=fileName.contains(".")?fileName.substring(fileName.indexOf('.')+1):"png";
for(TraceListFormat next:ServiceLoader.load(TraceListFormat.class)){
if(formatName.endsWith(next.getSuffix())){
return next.read(file);
}
}
return Extractor.getDefault().extract(ImageIO.read(file));
}
/**
* Save trace list to a file
*
* @param traceList trace list
* @param file the file
* @throws IOException
*/
public static void writeTo(TraceList traceList,File file) throws IOException{
String fileName=file.getName();
String formatName=fileName.contains(".")?fileName.substring(fileName.indexOf('.')+1):"png";
for(TraceListFormat next:ServiceLoader.load(TraceListFormat.class)){
if(formatName.endsWith(next.getSuffix())){
next.write(traceList,file);
return;
}
}
ImageIO.write(TraceListViewer.renderColorImage(traceList),formatName,file);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TraceFormatting getTraceFormatting() {\n return traces;\n }",
"public String toStringPrologFormatListLo()\r\n\t{\n\t\t\r\n\t\tString output = \"[\";\r\n\r\n\t\tfor (Location lo : this.listLocation)\r\n\t\t{\r\n\t\t\toutput += lo.LocationToStringPrologFormat();\r\n\t\t\toutput += \",\";\r\n\t\t}\r\n\t\toutput = output.substring(0, output.length()-1);\r\n\t\toutput += \"]\";\r\n\t\treturn output;\t\r\n\t}",
"public String toString()\n {\n String s = \"\";\n for (int i=0; i<list.length; i++)\n s += i + \":\\t\" + list[i] + \"\\n\";\n return s;\n }",
"public TraceList(){\n\t\tthis.traces=new ArrayList<>();\n\t}",
"public ArrayList<String> format() {\n\t\tint _size = this.members.size();\n\t\tArrayList<String> _returns = new ArrayList<String>(_size);\n\t\tfor (int _index = 0; _index < _size; _index++)\n\t\t\t_returns.add(this.members.get(_index).format());\n\t\treturn _returns;\n\t}",
"public synchronized String format(LogRecord record) {\n StringBuilder sb = new StringBuilder();\n\n sb.append(ISO_8601_DATE_FORMAT.format(record.getMillis()));\n sb.append(\"\\tThread-\");\n sb.append(THREAD_ID_FORMAT.format(record.getThreadID()));\n sb.append(\"\\t\");\n sb.append(record.getLevel().getLocalizedName());\n sb.append(\"\\t\");\n if (record.getSourceClassName() != null) {\n sb.append(getSimpleClassName(record.getSourceClassName()));\n } else {\n sb.append(record.getLoggerName());\n }\n if (record.getSourceMethodName() != null) {\n sb.append(\".\");\n sb.append(record.getSourceMethodName());\n }\n sb.append(\"\\t\");\n String message = formatMessage(record);\n sb.append(message);\n sb.append(lineSeparator);\n //noinspection ThrowableResultOfMethodCallIgnored\n if (record.getThrown() != null) {\n try {\n StringWriter sw = new StringWriter();\n PrintWriter pw = new PrintWriter(sw);\n //noinspection ThrowableResultOfMethodCallIgnored\n record.getThrown().printStackTrace(pw);\n pw.close();\n sb.append(sw.toString());\n } catch (Exception ignore) {\n // Ignore\n }\n }\n return sb.toString();\n }",
"void write(TraceList traceList,File file) throws IOException;",
"public List<String> stringFormat(int depth) {\n\t\tList<String> out = new ArrayList<String>();\n\t\tString prepend = new String(new char[depth])\n\t\t\t\t.replace('\\0', '\\t');\n\n\t\tout.add(prepend + \"{\\n\");\n\t\tout.add(prepend + \"\\tid: \" + id + \",\\n\");\n\t\tout.add(prepend + \"\\tuname: \" + uname + \",\\n\");\n\t\tout.add(prepend + \"\\tteam: \" + t + \",\\n\");\n\t\tout.add(prepend + \"\\tcards: \" + numCards + \",\\n\");\n\t\tout.add(prepend + \"}\");\n\n\t\treturn out;\n\t}",
"@Override\n\tpublic String toString(){\n\t\tStringBuilder sb=new StringBuilder();\n\t\tif(!isHeading){\n\t\t\tsb.append(timestamp);\n\t\t\tfor(Object val: values){\n\t\t\t\tsb.append(\" , \").append(String.valueOf(val));\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tfor(int i=0;i<values.length;i++){\n\t\t\t\tif(i>0)sb.append(\" , \");\n\t\t\t\tsb.append(String.valueOf(values[i]));\n\t\t\t}\n\t\t}\n\t\treturn sb.toString();\n\t}",
"@Override\r\n public String toString() {\r\n String output = \"[ \";\r\n for (int i = 0; i < count; i++) {\r\n output += list[i] + \", \";\r\n }\r\n if (count > 0) {\r\n output = output.substring(0, output.length() - 2);\r\n } else {\r\n output = output.substring(0, output.length() - 1);\r\n }\r\n output += \" ]\";\r\n return output;\r\n }",
"@VTID(8)\r\n java.lang.String format();",
"public TraceList(List<Trace> traces){\n\t\tthis.traces=traces;\n\t}",
"public static String format(List<StudentRecord> records) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tif (records.size() != 0) {\n\t\t\tsb.append(writeHorisontalBorder(records));\n\t\t\tsb.append(writeRows(records));\n\t\t\tsb.append(writeHorisontalBorder(records));\n\t\t}\n\t\tsb.append(\"Records selected: \" + records.size() + \"\\n\");\n\t\treturn sb.toString();\n\t}",
"public static void writeTo(TraceList traceList,File file) throws IOException{\n\t\tString fileName=file.getName();\n\t\tString formatName=fileName.contains(\".\")?fileName.substring(fileName.indexOf('.')+1):\"png\";\n\t\tfor(TraceListFormat next:ServiceLoader.load(TraceListFormat.class)){\n\t\t\tif(formatName.endsWith(next.getSuffix())){\n\t\t\t\tnext.write(traceList,file);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tImageIO.write(TraceListViewer.renderColorImage(traceList),formatName,file);\n\t}",
"public String toString(String fmt) {\n StringBuffer sb = new StringBuffer(\"[\");\n sb.append(\"[ \");\n for (int i = 0; i < numElements; i++) {\n sb.append(String.format(fmt, get(i)) + \" \");\n }\n sb.append(\"]\");\n return sb.toString();\n }",
"private String format(ArrayList<Location> locs) {\n String res = \"\";\n for (Location loc : locs) {\n res += loc.getLatitude() + \"-\" + loc.getLongitude() + \";\";\n }\n return res;\n }",
"public void format(List<Alignment> alignmentList);",
"public String toDebugString() {\n\t\tString text = \"[ \";\n\t\tfor (int i = 0; i < data.length; i++)\n\t\t\ttext += data[i] + (i < data.length - 1 ? \", \" : \" ]\");\n\t\treturn text;\n\t}",
"public String toString(){\n return \"Format: \" + format +\", \" + super.toString(); \n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn bpa_id+\" \"+group_Number+\" \"+bpa_effect_frm_dt+\" \"+bpa_effect_to_dt+\" \"+billaccountList;\r\n\t}",
"void format();",
"@Override\n public String getTrace() {\n return trace;\n }",
"@Override\r\n \tpublic String toString() {\r\n \t\tStringBuilder result = new StringBuilder();\r\n \t\tresult.append('[');\r\n \t\tif(numItems > 0) {\r\n \t\t\tresult.append(items[0].toString());\r\n \t\t\t// We want number of spaces to be equal to numItems - 1\r\n \t\t\tfor(int i=1; i<numItems; i++) {\r\n \t\t\t\tresult.append(' ');\r\n \t\t\t\tresult.append(items[i].toString());\r\n \t\t\t}\r\n \t\t}\r\n \t\tresult.append(']');\r\n \t\treturn result.toString();\r\n \t}",
"@Override\n public String toString()\n {\n StringBuilder builder = new StringBuilder();\n builder.append('[');\n for (Object item : list)\n {\n builder.append(item.toString());\n builder.append(\", \");\n }\n builder.append(']');\n return builder.toString();\n }",
"public String toDebugString();",
"protected abstract String format();",
"public String toString(){\r\n\t\tStringBuilder sb=new StringBuilder();\r\n\t\t\r\n\t\tsb.append(String.format(\" initial pairs: %8d\\n\",num[0]));\r\n\t\t\r\n\t\tsb.append(\" time(day) samples Dxx(km) Dyy(km) Dis(km) Kxx(10^7cm^2/s) Kyy(10^7cm^2/s)\\n\");\r\n\t\t\r\n\t\tfor(int l=0,L=num.length;l<L;l++)\r\n\t\tsb.append(String.format(\r\n\t\t\t\" %5.1f %6d %7.3f %7.3f %7.3f %7.3f %7.3f\\n\",\r\n\t\t\tl*dt/86400f,num[l],Dxx[l]/1e6,Dyy[l]/1e6,Dis[l]/1e6,Kxx[l],Kyy[l]\r\n\t\t));\r\n\t\t\r\n\t\treturn sb.toString();\r\n\t}",
"public String toStringPrologFormatListChar()\r\n\t{\n\t\t\r\n\t\tString output = \"[\";\r\n\r\n\t\tfor (Character ch : this.listCharacter)\r\n\t\t{\r\n\t\t\toutput += ch.CharToStringPrologFormat();\r\n\t\t\toutput += \",\";\r\n\t\t}\r\n\t\toutput = output.substring(0, output.length()-1);\r\n\t\toutput += \"]\";\r\n\t\t\r\n\t\treturn output;\r\n\t}",
"@Override\r\n\tpublic String toStringFormat() {\n\t\treturn transactionId + \" \" + merhcantId\r\n\t\t\t\t+ \" \" + transactionVolume + \" \" + transactionAmount\r\n\t\t\t\t+ \" \" + transactionDate+\"\\n\";\r\n\t}",
"public synchronized String format(LogRecord record) {\r\n\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tdat.setTime(record.getMillis());\r\n\t\tStringBuffer text = new StringBuffer();\r\n\t\tif (formatter == null) {\r\n\t\t\tformatter = new MessageFormat(FORMAT);\r\n\t\t}\r\n\t\tsb.append(new Date(record.getMillis()));\r\n\t\tsb.append(text);\r\n\t\tsb.append(\" \");\r\n\t\tsb.append(record.getLevel().getName());\r\n\t\tsb.append(\" \");\r\n\t\tif (record.getSourceClassName() == null) {\r\n\t\t\tsb.append(record.getLoggerName());\r\n\t\t}\r\n\t\tif (record.getSourceMethodName() != null) {\r\n\t\t\tsb.append(\" \");\r\n\t\t}\r\n\r\n\t\tString message = formatMessage(record);\r\n\t\tsb.append(message);\r\n\t\tif (record.getThrown() != null) {\r\n\t\t\ttry {\r\n\t\t\t\tStringWriter sw = new StringWriter();\r\n\t\t\t\tPrintWriter pw = new PrintWriter(sw);\r\n\t\t\t\trecord.getThrown().printStackTrace(pw);\r\n\t\t\t\tpw.close();\r\n\t\t\t\tsb.append(sw.toString());\r\n\t\t\t} catch (Exception ex) {\r\n\t\t\t\tJenkinsPlugInLogger.severe(\"Exception in executing format(LogRecord record) : \" + ex.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\t\tsb.append(\"\\n\");\r\n\t\treturn sb.toString();\r\n\t}",
"public String toStringPrologFormatListRelationship()\r\n\t{\n\t\t\r\n\t\tString output = \"[\";\r\n\r\n\t\tfor (Relationship Re : this.listRelationship)\r\n\t\t{\r\n\t\t\toutput += Re.toStringPrologFormat();\r\n\t\t\toutput += \",\";\r\n\t\t}\r\n\t\toutput = output.substring(0, output.length()-1);\r\n\t\toutput += \"]\";\r\n\t\treturn output;\t\r\n\t}",
"protected static void printJobList(List<Job> list) {\n //String indent = \" \";\n String indent = \"\\t\";\n Log.printLine();\n Log.printLine(\"========== OUTPUT ==========\");\n Log.printLine(\"Job ID\" + indent + indent + \"Task ID\" + indent + indent + \"STATUS\" + indent + indent\n + \"Data center ID\" + indent + \"VM ID\" + indent + indent\n + \"Time\" + indent + indent + \"Start Time\" + indent + \"Finish Time\" + indent + \"Depth\");\n DecimalFormat dft = new DecimalFormat(\"###.##\");\n for (Job job : list) {\n \tLog.print(job.getCloudletId() + indent + indent);\n if (job.getClassType() == ClassType.STAGE_IN.value) {\n \tLog.print(\"Stage-in\");\n if (job.getCloudletStatus() == Cloudlet.SUCCESS) {\n \tLog.print(indent + \"SUCCESS\");\n \tLog.printLine(indent + indent + job.getResourceId() + indent + indent + job.getVmId()\n + indent + indent + dft.format(job.getActualCPUTime())\n + indent + indent + dft.format(job.getExecStartTime()) + indent + indent\n + dft.format(job.getFinishTime()) + indent + indent + job.getDepth());\n } else if (job.getCloudletStatus() == Cloudlet.FAILED) {\n \tLog.print(\"FAILED\");\n \tLog.printLine(indent + indent + job.getResourceId() + indent + indent + job.getVmId()\n + indent + indent + dft.format(job.getActualCPUTime())\n + indent + indent + dft.format(job.getExecStartTime()) + indent + indent\n + dft.format(job.getFinishTime()) + indent + indent + job.getDepth());\n }\n }\n for (Task task : job.getTaskList()) {\n \tLog.print(task.getCloudletId());\n if (job.getCloudletStatus() == Cloudlet.SUCCESS) {\n \tLog.print(indent + indent + \"SUCCESS\");\n \tLog.printLine(indent + indent + job.getResourceId() + indent + indent + job.getVmId()\n + indent + indent + dft.format(job.getActualCPUTime())\n + indent + indent + dft.format(job.getExecStartTime()) + indent + indent\n + dft.format(job.getFinishTime()) + indent + indent + job.getDepth());\n } else if (job.getCloudletStatus() == Cloudlet.FAILED) {\n \tLog.print(\"FAILED\");\n \tLog.printLine(indent + indent + job.getResourceId() + indent + indent + job.getVmId()\n + indent + indent + dft.format(job.getActualCPUTime())\n + indent + indent + dft.format(job.getExecStartTime()) + indent + indent\n + dft.format(job.getFinishTime()) + indent + indent + job.getDepth());\n }\n }\n //Verbose.toPrint(indent);\n \n \n }\n }",
"public String toString() {\n\t\treturn \"[\" + this.type + \n\t\t\t\t\" | rate:\" + this.rate + \n\t\t\t\t\" | err:\" + this.error + \n\t\t\t\t\" | loc:\" + this.localisation.x + \",\" + this.localisation.y + \"]\" + \n\t\t\t\t\" | range:\" + this.range + \"\\n\";\n\t}",
"@Override\n public String format(LogRecord record) {\n date.setTime(record.getMillis());\n String source;\n if (record.getSourceClassName() != null) {\n source = record.getSourceClassName();\n if (record.getSourceMethodName() != null) {\n source += \" \" + record.getSourceMethodName();\n }\n } else {\n source = record.getLoggerName();\n }\n String message = formatMessage(record);\n String throwable = \"\";\n if (record.getThrown() != null) {\n StringWriter sw = new StringWriter();\n PrintWriter pw = new PrintWriter(sw);\n pw.println();\n record.getThrown().printStackTrace(pw);\n pw.close();\n throwable = sw.toString();\n }\n\n switch (record.getLevel().toString()) {\n case \"INFO\":\n return String.format(FORMAT, ANSI_GREEN_BACKGROUND + ANSI_BLACK, date, source, record.getLoggerName(),\n record.getLevel().getLocalizedName(), message + ANSI_RESET, throwable);\n case \"WARNING\":\n return String.format(FORMAT, ANSI_YELLOW_BACKGROUND + ANSI_BLACK, date, source, record.getLoggerName(),\n record.getLevel().getLocalizedName(), message + ANSI_RESET, throwable);\n case \"SEVERE\":\n return String.format(FORMAT, ANSI_RED, date, source, record.getLoggerName(),\n record.getLevel().getLocalizedName(), message + ANSI_RESET, throwable);\n default:\n return String.format(FORMAT, date, source, record.getLoggerName(),\n record.getLevel().getLocalizedName(), message, throwable);\n }\n }",
"@Override\r\n\tpublic java.lang.String toString()\r\n\t{\r\n\t\treturn \"CopyToDataPatchRecordList\";\r\n\t}",
"@Override\n public String format( final LogRecord record )\n {\n final StringBuilder strMsg = new StringBuilder();\n\n m_date.setTime( record.getMillis() );\n\n strMsg.append( m_df.format( m_date ) )\n .append( '\\t' )\n .append( m_tf.format( m_date ) )\n .append( '\\t' )\n .append( \"THREAD_\" )\n .append( record.getThreadID() )\n .append( '\\t' )\n .append( record.getLevel().toString() )\n .append( '\\t' )\n .append( record.getSourceClassName() )\n .append( '\\t' )\n .append( record.getSourceMethodName() )\n .append( '\\t' )\n .append( record.getMessage() )\n .append( '\\n' );\n\n return strMsg.toString();\n }",
"public String toString(){\n String result = \"{\";\n for(LinkedList<E> list : this.data){\n for(E item : list){\n result += item.toString() + \", \";\n }\n }\n result = result.substring(0, result.length() -2);\n return result + \"}\";\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getImportArn() != null)\n sb.append(\"ImportArn: \").append(getImportArn()).append(\",\");\n if (getImportStatus() != null)\n sb.append(\"ImportStatus: \").append(getImportStatus()).append(\",\");\n if (getTableArn() != null)\n sb.append(\"TableArn: \").append(getTableArn()).append(\",\");\n if (getTableId() != null)\n sb.append(\"TableId: \").append(getTableId()).append(\",\");\n if (getClientToken() != null)\n sb.append(\"ClientToken: \").append(getClientToken()).append(\",\");\n if (getS3BucketSource() != null)\n sb.append(\"S3BucketSource: \").append(getS3BucketSource()).append(\",\");\n if (getErrorCount() != null)\n sb.append(\"ErrorCount: \").append(getErrorCount()).append(\",\");\n if (getCloudWatchLogGroupArn() != null)\n sb.append(\"CloudWatchLogGroupArn: \").append(getCloudWatchLogGroupArn()).append(\",\");\n if (getInputFormat() != null)\n sb.append(\"InputFormat: \").append(getInputFormat()).append(\",\");\n if (getInputFormatOptions() != null)\n sb.append(\"InputFormatOptions: \").append(getInputFormatOptions()).append(\",\");\n if (getInputCompressionType() != null)\n sb.append(\"InputCompressionType: \").append(getInputCompressionType()).append(\",\");\n if (getTableCreationParameters() != null)\n sb.append(\"TableCreationParameters: \").append(getTableCreationParameters()).append(\",\");\n if (getStartTime() != null)\n sb.append(\"StartTime: \").append(getStartTime()).append(\",\");\n if (getEndTime() != null)\n sb.append(\"EndTime: \").append(getEndTime()).append(\",\");\n if (getProcessedSizeBytes() != null)\n sb.append(\"ProcessedSizeBytes: \").append(getProcessedSizeBytes()).append(\",\");\n if (getProcessedItemCount() != null)\n sb.append(\"ProcessedItemCount: \").append(getProcessedItemCount()).append(\",\");\n if (getImportedItemCount() != null)\n sb.append(\"ImportedItemCount: \").append(getImportedItemCount()).append(\",\");\n if (getFailureCode() != null)\n sb.append(\"FailureCode: \").append(getFailureCode()).append(\",\");\n if (getFailureMessage() != null)\n sb.append(\"FailureMessage: \").append(getFailureMessage());\n sb.append(\"}\");\n return sb.toString();\n }",
"@Override\r\n\tpublic String format(LogRecord record) {\n\t\tDate date = new Date(record.getMillis());\r\n\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\r\n\t\treturn format.format(date)+\" \" + record.getLevel()+\": \\n\" + record.getMessage()+\"\\n\";\r\n\t\t\r\n\t}",
"public String toString() {\n // The argument passed to StringBuilder is a pretty good estimate of the\n // length of the final string based on the row key and number of elements.\n final String metric = metricName();\n final StringBuilder buf = new StringBuilder(80 + metric.length()\n + row.length * 4 + size * 16);\n final long base_time = baseTime();\n buf.append(\"IncomingDataPoints(\")\n .append(row == null ? \"<null>\" : Arrays.toString(row))\n .append(\" (metric=\")\n .append(metric)\n .append(\"), base_time=\")\n .append(base_time)\n .append(\" (\")\n .append(base_time > 0 ? new Date(base_time * 1000) : \"no date\")\n .append(\"), [\");\n for (short i = 0; i < size; i++) {\n buf.append('+').append(delta(qualifiers[i]));\n if (isInteger(i)) {\n buf.append(\":long(\").append(longValue(i));\n } else {\n buf.append(\":float(\").append(doubleValue(i));\n }\n buf.append(')');\n if (i != size - 1) {\n buf.append(\", \");\n }\n }\n buf.append(\"])\");\n return buf.toString();\n }",
"@Override\n public String toPrintToFile() {\n return \"[T]\" + super.toString();\n }",
"@Override\n\tpublic String toString() {\n\t\tString st = \"(\";\n\t\tfor (int i = 0; i < m_elems.length; i++){\n\t\t\tif (i>0)\n\t\t\t\tst+=\",\";\n\t\t\tst += m_elems[i];\n\t\t}\n\t\tst += \"):\" + String.valueOf(m_frequency);\n\t\treturn st;\n\t}",
"@Override\n\tpublic String toString() {\n\t\tString string = \"\";\n\t\tfor (int i = list.size() - 1; i >= 0; i--) {\n\t\t\tstring += list.get(i) + \" \";\n\t\t}\n\t\treturn string;\n\t}",
"public String toString() {\r\n\t\tString output = \"\";\r\n\t\tfor (int n = 0; n < parts.size(); n++){\r\n\t\t\toutput = output + parts.get(n) + \", \";\r\n\t\t}\r\n\t\t\r\n\t\tint toAdd = 5 - parts.size(); \r\n\t\t\t\r\n\t\tfor( int i = 0; i < toAdd; i++ ) {\r\n \t\r\n\t\toutput = output + \"[ ], \";\r\n \r\n\t\t} \r\n\t\t\r\n\t\treturn output;\r\n\t\t\t\r\n\t}",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getDriftStatus() != null)\n sb.append(\"DriftStatus: \").append(getDriftStatus()).append(\",\");\n if (getDriftDetectionStatus() != null)\n sb.append(\"DriftDetectionStatus: \").append(getDriftDetectionStatus()).append(\",\");\n if (getLastDriftCheckTimestamp() != null)\n sb.append(\"LastDriftCheckTimestamp: \").append(getLastDriftCheckTimestamp()).append(\",\");\n if (getTotalStackInstancesCount() != null)\n sb.append(\"TotalStackInstancesCount: \").append(getTotalStackInstancesCount()).append(\",\");\n if (getDriftedStackInstancesCount() != null)\n sb.append(\"DriftedStackInstancesCount: \").append(getDriftedStackInstancesCount()).append(\",\");\n if (getInSyncStackInstancesCount() != null)\n sb.append(\"InSyncStackInstancesCount: \").append(getInSyncStackInstancesCount()).append(\",\");\n if (getInProgressStackInstancesCount() != null)\n sb.append(\"InProgressStackInstancesCount: \").append(getInProgressStackInstancesCount()).append(\",\");\n if (getFailedStackInstancesCount() != null)\n sb.append(\"FailedStackInstancesCount: \").append(getFailedStackInstancesCount());\n sb.append(\"}\");\n return sb.toString();\n }",
"@Override\r\n\tpublic String toString () {\n\t\treturn \"|AListPQueue: \" + aPList.toString() + \"|\";\r\n\t}",
"@Override\n\tpublic String toString()\n\t{\n\t\treturn toString(Locale.getDefault(Locale.Category.FORMAT));\n\t}",
"public String toString()\n\t{\n\t\treturn \"[\"+chain+\"|\"+name+\"|\"+idx+\"]\";\n\t}",
"public String getTrace() {\n return trace;\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 String getPrintableFormat() {\n String output = new String(\"Articoli del gruppo \" + groupName + \":\\n\");\n for (int i = 0; i < list.size(); i++) {\n Article article = list.get(i);\n output += String.format(\"%2d %s\\n\",i,article.getPrintableFormat());\n }\n return output;\n }",
"public String getDataAsString()\n\t{\n\t\tString listAsString = \"\";\n\t\t\n\t\tfor (int i = 0; i < list.length; i++)\n\t\t{\n\t\t\tlistAsString += list[i] + \" \";\n\t\t}\n\t\t\n\t\tlistAsString += \"\\nFront: \" + front + \"\\nRear: \" +\n\t\t\t\trear + \"\\nEntries: \" + counter;\n\t\t\n\t\treturn listAsString;\n\t}",
"protected String getToStringFormat()\n {\n return getClass().getSimpleName() + \"@\"\n + Integer.toHexString(hashCode()) + \": { \"\n + \"offset = 0x\" + Integer.toHexString(offset) + \"; \"\n + \"size = \" + size + \"; \"\n + \"%s\"\n + \"value = \" + getValue() + \"; \"\n + \"isAccessible = \" + isAccessible() + \"; \"\n + \"checksum = 0x\" + Integer.toHexString(checksum()) + \"; \"\n + \"}\";\n }",
"protected LinkedList getBasicTraces() {\n\t\treturn traces;\n\t}",
"@Override\n public String toString() {\n String retval = \"[\";\n int pos = 0;\n for (final Iterator<ErrorMessage> i = errors.iterator(); i.hasNext();) {\n if (pos > 0) {\n retval += \",\";\n }\n pos++;\n retval += i.next().toString();\n }\n retval += \"]\";\n \n return retval;\n }",
"private String formatDirections(RouteFormatter formatter)\n {\n \tif(currDirections == null){\n \t\tthrow new IllegalStateException(\"directions object should not be null at this point\");\n \t}\n \t\n\t\t// start the string\n \tStringBuilder instruct = new StringBuilder();\n\t\tinstruct.append(\"Start at \"+currDirections.getStart()+\"\\n\");\n\t\t\n\t\tIterator<String> iter = currDirections.iterator();\n\t\twhile(iter.hasNext()){\n\t\t\tinstruct.append(iter.next()+\"\\n\");\n\t\t}\n\t\t//distinguish between miles and minutes\n\t\tif(formatter instanceof WalkingRouteFormatter){\n\t\t\t//output.println(\"Trip time: \" + (Math.round(navigate.getLength()) * 20) + \" minutes\");\n\t\t\t\n\t\t\tinstruct.append(\"Trip time: \"+Math.round(currDirections.getLength()*20)+\" minutes\\n\\n\\n\");\n\t\t}else if(formatter instanceof DrivingRouteFormatter){\n\t\t\t//DecimalFormat printer = new DecimalFormat(\"#.#\"); // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n\t\t\t\n\t\t\tinstruct.append(\"Trip length: \"+(Math.round(currDirections.getLength()*10))/10.0+\" miles\\n\\n\\n\");\n\t\t}else{\n\t\t\tthrow new IllegalArgumentException(\"Directions implementor class not recognized\");\n\t\t}\n\t\treturn instruct.toString();\n }",
"String toString(boolean legend) {\n Formatter out = new Formatter();\n if (!legend) {\n for (char i = '5'; i >= '1'; i = (char) (i - 1)) {\n out.format(\" \");\n for (char j = 'a'; j <= 'e'; j = (char) (j + 1)) {\n out.format(\" \");\n out.format(\"%s\", get(j, i).shortName());\n }\n if (i != '1') {\n out.format(\"%n\");\n }\n }\n } else {\n if (legend) {\n int s = SIDE;\n for (char i = '5'; i >= '1'; i = (char) (i - 1)) {\n out.format(\"%s \", i);\n for (char j = 'a'; j <= 'e'; j = (char) (j + 1)) {\n out.format(\" \");\n out.format(\"%s\", get(j, i).shortName());\n }\n if (i != '1') {\n out.format(\"%n\");\n }\n }\n out.format(\" a b c d e\");\n }\n }\n return out.toString();\n }",
"public String format()\n {\n return String.format(\"%/t%/t/\", grassPatches.length, walkers.size());\n }",
"public String toString()\n {\n return toString((Format) null);\n }",
"@Override\r\n\t\tpublic String toString() {\n\t\t\treturn (this.n + \"\\t\" + this.t);\r\n\t\t}",
"public java.lang.String toDebugString () { throw new RuntimeException(); }",
"public void formatFields() {\r\n\t}",
"public String toString() {\n\t\treturn \"SList[start=\"+this.start+\"]\";\n\t}",
"public String toString(){\r\n\t\tString theString= \"\";\r\n\t\t\r\n\t\t//loop through and add values to the string\r\n\t\tfor (int i = 0; i < this.data.length; i++)\r\n\t\t{\r\n\t\t\ttheString = theString + this.data[i];\r\n\t\t\tif (i != this.data.length - 1)\r\n\t\t\t{\r\n\t\t\t\ttheString = theString + \", \";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn \"[\" + theString + \"]\";\r\n\t}",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getCreationTime() != null)\n sb.append(\"CreationTime: \").append(getCreationTime()).append(\",\");\n if (getDeliverLogsErrorMessage() != null)\n sb.append(\"DeliverLogsErrorMessage: \").append(getDeliverLogsErrorMessage()).append(\",\");\n if (getDeliverLogsPermissionArn() != null)\n sb.append(\"DeliverLogsPermissionArn: \").append(getDeliverLogsPermissionArn()).append(\",\");\n if (getDeliverCrossAccountRole() != null)\n sb.append(\"DeliverCrossAccountRole: \").append(getDeliverCrossAccountRole()).append(\",\");\n if (getDeliverLogsStatus() != null)\n sb.append(\"DeliverLogsStatus: \").append(getDeliverLogsStatus()).append(\",\");\n if (getFlowLogId() != null)\n sb.append(\"FlowLogId: \").append(getFlowLogId()).append(\",\");\n if (getFlowLogStatus() != null)\n sb.append(\"FlowLogStatus: \").append(getFlowLogStatus()).append(\",\");\n if (getLogGroupName() != null)\n sb.append(\"LogGroupName: \").append(getLogGroupName()).append(\",\");\n if (getResourceId() != null)\n sb.append(\"ResourceId: \").append(getResourceId()).append(\",\");\n if (getTrafficType() != null)\n sb.append(\"TrafficType: \").append(getTrafficType()).append(\",\");\n if (getLogDestinationType() != null)\n sb.append(\"LogDestinationType: \").append(getLogDestinationType()).append(\",\");\n if (getLogDestination() != null)\n sb.append(\"LogDestination: \").append(getLogDestination()).append(\",\");\n if (getLogFormat() != null)\n sb.append(\"LogFormat: \").append(getLogFormat()).append(\",\");\n if (getTags() != null)\n sb.append(\"Tags: \").append(getTags()).append(\",\");\n if (getMaxAggregationInterval() != null)\n sb.append(\"MaxAggregationInterval: \").append(getMaxAggregationInterval()).append(\",\");\n if (getDestinationOptions() != null)\n sb.append(\"DestinationOptions: \").append(getDestinationOptions());\n sb.append(\"}\");\n return sb.toString();\n }",
"@Override\n\tpublic String toText() {\n\t\treturn TextParserUtil.toText(rInfoList, \",\");\n\t}",
"@Override public String toString(){\r\n StringBuilder output = new StringBuilder();\r\n for (Iterator<Bars> i = BarsList.iterator(); i.hasNext();){\r\n output.append(i.next().toString());\r\n }\r\n return output.toString();\r\n }",
"Object getTrace();",
"@Override\n public String toString() {\n \tString retString = \"Stack[\";\n \tfor(int i = 0; i < stack.size() - 1; i++) // append elements up to the second to last onto the return string\n \t\tretString += stack.get(i) + \", \";\n \tif(stack.size() > 0)\n \t\tretString += stack.get(stack.size() - 1); // append final element with out a comma after it\n \tretString += \"]\";\n \treturn retString;\n }",
"private String viewListOfStops() {\n StringBuilder result = new StringBuilder();\n for (TTC stops : this.listOfStops) {\n result.append(stops.toString());\n result.append(\" -> \");\n }\n return (result.toString()).substring(0, result.length() - 2);\n }",
"void dumpTraceLine(String s)\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"[trace] \"); //$NON-NLS-1$\n\t\tsb.append(s);\n\t\tout(sb.toString());\n\t}",
"public String toString()\n {\n String ret = \"\";\n String s = adjMaps.toString();\n String[] parts = s.split(\"},\");\n for(int i=0; i< parts.length; i++){\n ret += parts[i] + \"}\\n\";\n }\n return ret;\n }",
"public String toString() {\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tbuffer.append(\"Files: \\n\");\n\n\t\tfor( String file : files){\n\t\t\tbuffer.append(\"\t-\");\n\t\t\tbuffer.append(file);\n\t\t\tbuffer.append(\"\\n\");\n\t\t}\n\n\t\tthis.appendIntValueToBuffer(this.regions, \"Regions\", buffer);\n\t\tthis.appendIntValueToBuffer(this.lineAdded, \"LA\", buffer);\n\t\tthis.appendIntValueToBuffer(this.lineDeleted, \"LD\", buffer);\n\n\t\tbuffer.append(\"Functions calls: \\n\");\n\n\t\tfor(String key : this.functionCalls.keySet()) {\n\t\t\tthis.appendIntValueToBuffer(functionCalls.get(key), key, buffer);\n\t\t}\n\n\t\treturn buffer.toString();\n\t}",
"String getFormatter();",
"public String toString()\n {\n\treturn adjLists.toString();\n }",
"public static String toString(List<Integer[]> pairs)\r\n\t{\r\n\t\tString ts = \"[\";\r\n\t\tfor(int i = 0; i < pairs.size(); i++)\r\n\t\t{\r\n\t\t\tts += \"{\" + pairs.get(i)[0].toString() + \",\" + pairs.get(i)[1].toString()+ \"}\";\r\n }\r\n\t\treturn ts += \"]\";\r\n\t\t\r\n\t}",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getAccept() != null)\n sb.append(\"Accept: \").append(getAccept()).append(\",\");\n if (getEndTime() != null)\n sb.append(\"EndTime: \").append(getEndTime()).append(\",\");\n if (getMaxDepth() != null)\n sb.append(\"MaxDepth: \").append(getMaxDepth()).append(\",\");\n if (getPeriod() != null)\n sb.append(\"Period: \").append(getPeriod()).append(\",\");\n if (getProfilingGroupName() != null)\n sb.append(\"ProfilingGroupName: \").append(getProfilingGroupName()).append(\",\");\n if (getStartTime() != null)\n sb.append(\"StartTime: \").append(getStartTime());\n sb.append(\"}\");\n return sb.toString();\n }",
"private String arrayToString(double[] a) {\n StringBuffer buffy = new StringBuffer();\n for (int i=0; i<a.length; i++) {\n buffy.append(a[i]+\"\\t\");\n }\n return buffy.toString();\n }",
"private String arrayToString(double[] a) {\n StringBuffer buffy = new StringBuffer();\n for (int i=0; i<a.length; i++) {\n buffy.append(a[i]+\"\\t\");\n }\n return buffy.toString();\n }",
"@Override\n public String toString() {\n return list.toString();\n }",
"@Override\r\n public String toString() {\r\n StringBuilder builder = new StringBuilder();\r\n builder.append(name);\r\n builder.append(isStatusOk() ? ConsoleColor.ANSI_GREEN : ConsoleColor.ANSI_RED);\r\n builder.append(time);\r\n builder.append(ConsoleColor.ANSI_RESET);\r\n builder.append(\"\\n\");\r\n for (Iterator<ChronologElement> it = children.iterator(); it.hasNext(); ) {\r\n ChronologElement child = it.next();\r\n builder.append(child.toString(it.hasNext() ? PREFIX_SUB : PREFIX_LAST));\r\n }\r\n return builder.toString();\r\n }",
"private void formatSystem() {}",
"public void setTraceStats(List<TraceStats> stats);",
"@Override\n\tpublic String toString() {\n\t\tString travelListString = \"\";\n\t\tif (this.travelList.size() > 0)\n\t\t{\n\t\t\ttravelListString = this.travelList.get(0).getDestinationName() + \" : \" + this.travelList.get(0).getDestinationDescription();\n\t\t}\n\t\tfor (int index = 1; index < this.travelList.size(); index ++) {\n\t\t\ttravelListString = travelListString + \"\\n\" + this.travelList.get(index).getDestinationName() + \" : \" + this.travelList.get(index).getDestinationDescription();\n\t\t}\n\t\treturn travelListString;\n\t}",
"@Override\n public String toString() {\n String leftAlignFormat = \"| %-10s | %-40s |%n\";\n String line = String.format(\"+------------+------------------------------------------+%n\");\n return line + String.format(leftAlignFormat,\"A.ID\", appointmentID)\n + line + String.format(leftAlignFormat,\"P.ID\", patientID)\n + line + String.format(leftAlignFormat,\"Title\", title)\n + line + String.format(leftAlignFormat,\"Date\", date)\n + line + String.format(leftAlignFormat,\"Start\", startTime)\n + line + String.format(leftAlignFormat,\"End\", endTime)\n + line;\n }",
"public String toString() {\n\t\tString stringList = Arrays.toString(this.facets.toArray());\n\t\treturn \"solid \" + name + stringList.replace(\"[\", \"\").replace(\"]\", \"\").replace(\",\", \"\") + \"\\nendsolid \" + name;\n\t}",
"@Override\n\tpublic void trace(String message, Object... params) {\n\n\t}",
"@Override public String toString() {\n return String.format(\"(%03d) %03d-%04d\",\n areaCode, prefix, lineNumber);\n }",
"@Override \n public String toString(){\n return this.logRepresentation;\n }",
"@Override\n public String toString() {\n //return the text required for ArrayAdapter after checking the format. \n \t//return ArrayAdapter readable string;\n \treturn null;\n }",
"public String prettyPrint(List<Appointment> appointments ,String OwnerName){\n int x=0;\n String prettyCalls=\"\";\n for(Appointment appointment: appointments){\n //prettyCalls += call.toString()+\"\\n\";\n prettyCalls += ++x+\" \"+OwnerName+\" \"+ appointment.getDescription()+\" \"+ appointment.getBeginTimeString() + \" \" + appointment.getEndTimeString() + \" \" + appointment.duration() + \"\\n\";\n }\n return prettyCalls;\n }",
"@Override public String toString()\n {\n return String.format( \"\\t\\t\\t[ type:'%s', name:'%s', md5:'%s', local:'%s'\\n\", f_type, f_name, f_md5, f_local );\n }",
"@Override\r\n public String toString() {\r\n \treturn (\"[Days=\" + days + \"], [Millis=\" + millis + \"], [Micros=\" + micros + \"]\");\r\n }",
"@Override\n public String toString() {\n return \"[E]\" + super.toString() + \"(at: \" + details + \")\";\n }",
"public String toString() {\n\t\tboolean first = true;\n\t\tStringWriter buf = new StringWriter();\n\t\tbuf.append('[');\n\t\tfor(String value : values) {\n\t\t\tif(first) { first = false; } else { buf.append(\",\"); }\n\t\t\tbuf.append(value);\n\t\t}\n\t\tbuf.append(']');\n\t\treturn buf.toString();\t\t\n\t}",
"@Override\n\tpublic String toString()\n\t{\n\t\tString s = this.name + \" --> [\";\n\t\tfor (int i = 0; i < this.interferences.size(); i++)\n\t\t\ts += this.interferences.get(i).getName() + \", \";\n\t\tif (this.interferences.size() > 0)\n\t\t\ts = s.substring(0, s.length() - 2);\n\t\ts += \"]\";\n\t\tif (this.requiredRegister != -1)\n\t\t\ts += \" Required reg: \" + this.requiredRegister;\n\t\treturn s;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn \"StudentForList [marks=\" + Arrays.toString(marks) + \", names=\" + names + \"]\";\n\t}",
"@Override\n\tpublic String toString()\n\t\t{\n\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\tstringBuilder.append(\"[\");\n\t\tstringBuilder.append(a);\n\t\tstringBuilder.append(\",\");\n\t\tstringBuilder.append(b);\n\t\tstringBuilder.append(\"]\");\n\t\treturn stringBuilder.toString();\n\t\t}",
"@Override\n public String toString(){\n String s;\n \n s = \"\\tparseOK: \" + parseOK + Constants.NL +\n \"\\trequest_uri: \" + request_uri + Constants.NL +\n \"\\tquery_string: \" + query_string + Constants.NL +\n \"\\trestAPIkeys: \" + restAPIkeys + Constants.NL +\n \"\\ttraceMsgQ: \" + traceMsgQ + Constants.NL;\n \n return s;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn JSONFormatter.formatArray(this, 0, false).toString();\n\t}"
] | [
"0.63570493",
"0.57942504",
"0.5759261",
"0.574316",
"0.5725422",
"0.57049274",
"0.5618752",
"0.5616596",
"0.560079",
"0.5586707",
"0.55782735",
"0.55756265",
"0.55632347",
"0.54836065",
"0.54740673",
"0.5465612",
"0.5459224",
"0.54492843",
"0.5439542",
"0.54308116",
"0.5391175",
"0.5382932",
"0.5382462",
"0.5374275",
"0.53623503",
"0.5346933",
"0.53375256",
"0.53330475",
"0.5330907",
"0.53283054",
"0.5322569",
"0.53146195",
"0.53014725",
"0.53010726",
"0.5300367",
"0.5289121",
"0.5279688",
"0.5276446",
"0.5276302",
"0.52719766",
"0.5263662",
"0.5248925",
"0.5246462",
"0.52353114",
"0.52320117",
"0.52256316",
"0.52245426",
"0.5219095",
"0.52038556",
"0.520214",
"0.5202038",
"0.5201573",
"0.5186386",
"0.5180116",
"0.5175391",
"0.51747495",
"0.517411",
"0.51715434",
"0.517102",
"0.51690966",
"0.5157948",
"0.5156892",
"0.51568174",
"0.51532817",
"0.5152783",
"0.5152553",
"0.51510006",
"0.5146385",
"0.51382077",
"0.51355577",
"0.5131146",
"0.51246035",
"0.51229864",
"0.51165694",
"0.511386",
"0.5109355",
"0.51079524",
"0.51078695",
"0.51078695",
"0.51076764",
"0.51070577",
"0.5106234",
"0.50909877",
"0.50906956",
"0.5088561",
"0.50866735",
"0.507644",
"0.50740016",
"0.5072525",
"0.5070867",
"0.5068485",
"0.5066269",
"0.5056606",
"0.50553274",
"0.50538397",
"0.5052851",
"0.5047515",
"0.5045803",
"0.50431156",
"0.50423115"
] | 0.5678715 | 6 |
Read trace list from a file | TraceList read(File file) throws IOException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static TraceList readFrom(File file) throws IOException{\n\t\tString fileName=file.getName();\n\t\tString formatName=fileName.contains(\".\")?fileName.substring(fileName.indexOf('.')+1):\"png\";\n\t\tfor(TraceListFormat next:ServiceLoader.load(TraceListFormat.class)){\n\t\t\tif(formatName.endsWith(next.getSuffix())){\n\t\t\t\treturn next.read(file);\n\t\t\t}\n\t\t}\n\t\treturn Extractor.getDefault().extract(ImageIO.read(file));\n\t}",
"public static ArrayList<MonitoredData> readFileData(){\n ArrayList<MonitoredData> data = new ArrayList<>();\n List<String> lines = new ArrayList<>();\n try (Stream<String> stream = Files.lines(Paths.get(\"Activities.txt\"))) {\n lines = stream\n .flatMap((line->Stream.of(line.split(\"\\t\\t\"))))\n .collect(Collectors.toList());\n for(int i=0; i<lines.size()-2; i+=3){\n MonitoredData md = new MonitoredData(lines.get(i), lines.get(i+1), lines.get(i+2));\n data.add(md);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n //data.forEach(System.out::println);\n return data;\n }",
"public static List<String> readLogRec(File file)throws Exception{\n\t\tBufferedReader br = null;\n\t\ttry {\n\t\t\tbr = new BufferedReader(\n\t\t\t\tnew InputStreamReader(new FileInputStream(file))\t\n\t\t\t);\n\t\t\tList<String> list \n\t\t\t\t= new ArrayList<String>();\n\t\t\t\n\t\t\tString line = null;\n\t\t\twhile((line=br.readLine())!=null){\n\t\t\t\tlist.add(line);\n\t\t\t}\n\t\t\treturn list;\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow e;\n\t\t} finally{\n\t\t\tif(br != null){\n\t\t\t\tbr.close();\n\t\t\t}\n\t\t}\n\t}",
"public List<CorruptionIndex> readFromFile(String filePath){\n return null;\n }",
"public static List<ArrivalRateTuple> readFileToList(File file, double offset) throws IOException {\r\n\t\tBufferedReader br = new BufferedReader(new FileReader(file));\r\n\t\tList<ArrivalRateTuple> arrRates = new ArrayList<ArrivalRateTuple>();\r\n\t\t// read arrival rate tuples\r\n\t\ttry {\r\n\t\t\tarrRates = ArrivalRateTuple.readList(br, offset);\r\n\t\t\t// error reading tuples, it's probably a request time stamp file\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tLOG.log(Level.SEVERE, \"Index out of bounds, wrong format.\");\r\n\t\t}\r\n\t\tif (arrRates.size() == 0) {\r\n\t\t\tbr.close();\r\n\t\t\tbr = new BufferedReader(new FileReader(file));\r\n\t\t\tarrRates = readRequestTimeStamps(br, offset);\r\n\t\t}\r\n\t\tbr.close();\r\n\t\treturn arrRates;\r\n\t}",
"@NonNull\n static ChangeRecords load(File file) throws IOException {\n ChangeRecords changeRecords = new ChangeRecords();\n List<String> rawRecords = Files.readLines(file, Charsets.UTF_8);\n for (String rawRecord : rawRecords) {\n StringTokenizer st = new StringTokenizer(rawRecord, \",\");\n if (st.countTokens() != 2) {\n throw new IOException(\"Invalid incremental change record : \" + rawRecord);\n }\n changeRecords.add(Status.valueOf(st.nextToken()), st.nextToken());\n }\n return changeRecords;\n }",
"public static final List<SignalEntry> read(File file) {\r\n List<SignalEntry> result = new ArrayList<SignalEntry>();\r\n LineNumberReader reader = null;\r\n try {\r\n reader = new LineNumberReader(new FileReader(file));\r\n String line;\r\n do {\r\n line = reader.readLine();\r\n if (\"Entry:\".equals(line)) {\r\n String algorithm = unquote(reader.readLine());\r\n String parameterName = unquote(reader.readLine());\r\n String parameterValue = unquote(reader.readLine());\r\n result.add(new SignalEntry(algorithm, parameterName, parameterValue));\r\n }\r\n } while (null != line);\r\n reader.close();\r\n } catch (IOException e) {\r\n if (null != reader) {\r\n try {\r\n reader.close();\r\n } catch (IOException e1) {\r\n }\r\n }\r\n }\r\n return result;\r\n }",
"public static List<String> readLineFromFile(File file) {\r\n List<String> result = new ArrayList<String>();\r\n LineNumberReader lnr = null;\r\n try {\r\n lnr = new LineNumberReader(new BufferedReader(\r\n new InputStreamReader(new FileInputStream(file), Charset\r\n .defaultCharset().name())));\r\n for (String line = lnr.readLine(); line != null; line = lnr\r\n .readLine()) {\r\n result.add(line);\r\n }\r\n } catch (Exception e) {\r\n throw new RuntimeException(e);\r\n } finally {\r\n if (lnr != null) {\r\n try {\r\n lnr.close();\r\n } catch (IOException e) {\r\n throw new RuntimeException(e);\r\n }\r\n }\r\n }\r\n return result;\r\n }",
"private ArrayList<String> parseFile(String file_name){ // extract each line from file AS string (stopList)\r\n ArrayList<String> list = new ArrayList<>();\r\n Scanner scanner = null;\r\n try{\r\n scanner = new Scanner(new BufferedReader(new FileReader(file_name)));\r\n while (scanner.hasNextLine())\r\n {\r\n list.add(scanner.nextLine());\r\n }\r\n }\r\n catch (Exception e ){ System.out.println(\"Error reading file -> \"+e.getMessage()); }\r\n finally {\r\n if(scanner != null ){scanner.close();} // close the file\r\n }\r\n return list;\r\n }",
"private void loadFromFile() {\n try {\n /* Load in the data from the file */\n FileInputStream fIn = openFileInput(FILENAME);\n BufferedReader inRead = new BufferedReader(new InputStreamReader(fIn));\n\n /*\n * access from the GSON file\n * Taken from lonelyTwitter lab code\n */\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Counter>>() {}.getType();\n counters = gson.fromJson(inRead, listType);\n\n } catch (FileNotFoundException e) {\n counters = new ArrayList<Counter>();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"private static List<String> readFile(File file) throws IOException {\n return Files.readAllLines(file.toPath());\n }",
"private static List<String> readFile(File file) throws IOException {\n return Files.readAllLines(file.toPath());\n }",
"public SLList readFile(String file) {\n\t\t// Read it back in\n\t\tObjectInputStream i = null;\n\t\tSLList temp = null;\n\n\t\ttry {\n\t\t\ti = new ObjectInputStream(new FileInputStream(file));\n\t\t} catch (FileNotFoundException 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\n\t\t/**\n\t\t * try/catch to verify file has been restored\n\t\t */\n\t\t\n\t\ttry {\n\t\t\ttemp = (SLList) i.readObject();\n\t\t\t//System.out.println(temp);\n\t\t\tSystem.out.println(\"Successfully restored data from file!\");\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\n\t\ttry {\n\t\t\ti.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn temp;\n\t}",
"void write(TraceList traceList,File file) throws IOException;",
"@Override\n public List<Object> readFile(File file) {\n Scanner scanner = createScanner(file);\n if (Objects.isNull(scanner)) {\n return Collections.emptyList();\n }\n List<Object> readingDTOList = new ArrayList<>();\n scanner.nextLine();\n List<List<String>> allLines = new ArrayList<>();\n while (scanner.hasNext()) {\n List<String> line = parseLine((scanner.nextLine()));\n if (!line.isEmpty()) {\n allLines.add(line);\n }\n }\n if (!allLines.isEmpty()) {\n for (List<String> line : allLines) {\n String sensorId = line.get(0);\n String dateTime = line.get(1);\n String value = line.get(2);\n String unit = line.get(3);\n LocalDateTime readingDateTime;\n if (sensorId.contains(\"RF\")) {\n LocalDate readingDate = LocalDate.parse(dateTime, DateTimeFormatter.ofPattern(\"dd/MM/uuuu\"));\n readingDateTime = readingDate.atStartOfDay();\n } else {\n ZonedDateTime zonedDateTime = ZonedDateTime.parse(dateTime);\n readingDateTime = zonedDateTime.toLocalDateTime();\n }\n double readingValue = Double.parseDouble(value);\n ReadingDTO readingDTO = ReadingMapper.mapToDTOwithIDandUnits(sensorId, readingDateTime, readingValue, unit);\n readingDTOList.add(readingDTO);\n }\n }\n return readingDTOList;\n }",
"private static List<String> loadGenericDfFile(String file) throws IOException{\n\t\tList<String> lines = new ArrayList<String>();\n\t\t\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t\t\tnew FileInputStream(file), \"UTF-8\"));\n\t\ttry {\n\t\t\tString str;\n\t\t\twhile ((str = in.readLine()) != null) {\n\t\t\t\tlines.add(str);\n\t\t\t}\n\t\t} finally {\n\t\t\tin.close();\n\t\t}\n\n\t\treturn lines;\n\t}",
"public void readFromFile() {\n\n\t}",
"public void readFromTxtFile(String filename){\n try{\n File graphFile = new File(filename); \n Scanner myReader = new Scanner(graphFile); \n parseFile(myReader);\n myReader.close();\n } \n catch(FileNotFoundException e){\n System.out.println(\"ERROR: DGraphEdges, readFromTxtFile: file not found.\");\n e.printStackTrace();\n } \n }",
"private void readListFromFile() {\n // clear existing list\n if (listArr == null || listArr.size() > 0) {\n listArr = new ArrayList<>();\n }\n\n try {\n Scanner scan = new Scanner(openFileInput(LIST_FILENAME));\n\n while (scan.hasNextLine()) {\n String line = scan.nextLine();\n listArr.add(line);\n }\n\n if (listAdapter != null) {\n listAdapter.notifyDataSetChanged();\n }\n\n } catch (IOException ioe) {\n Log.e(\"ReadListFromFile\", ioe.toString());\n }\n\n }",
"private void ReadFile(String filePath) throws IOException{\n File file = new File(filePath);\n BufferedReader b = new BufferedReader(new FileReader(file));\n int lineNumber = 1;\n String line = \"\";\n line = b.readLine();\n while (line != null) {\n // analyze the line only when it is not empty and it is not a comment\n String trimLine = line.toString().trim();\n if(trimLine.length() != 0 && !trimLine.substring(0, 1).equals(\"/\") && !trimLine.substring(0, 1).equals(\"#\")){\n // line.toString().trim(): eliminate heading and tailing whitespaces\n // but add one whitespace to the end of the string to facilitate token manipulation\n // under the circumstances that there is only one token on one line, e.g. main\n AnalyzeByLine(line.toString().trim() + \" \", lineNumber);\n }\n lineNumber++;\n line = b.readLine();\n }\n arrL.add(new Token(\"end of file\", 255, lineNumber));\n// for(int i = 0; i < arrL.size(); i++){\n// System.out.println(arrL.get(i).getCharacters() + \" \" + arrL.get(i).getValue() + \" \" + arrL.get(i).getLineNum());\n// }\n }",
"public void readViolationList (BufferedReader reader) {\n String line = \"\";\n try {\n reader.readLine();\n reader.readLine();\n while ((line = reader.readLine()) != null) {\n addToViolationList(line);\n }\n } catch (Exception e) {\n }\n }",
"List readFile(String pathToFile);",
"private ArrayList loadfile(String file_path) throws Exception{\n\t\tFileInputStream fis = null;\n\t\tBufferedReader br = null;\n\t\tArrayList filedata = new ArrayList();\n\t\ttry {\n\t\t\tFile file = new File(file_path);\n\t\t\tfis = new FileInputStream(file);\n\t\t\tbr = new BufferedReader(new InputStreamReader(fis, charset));\n\t\t\tint i = 0;\n\t\t\twhile (br.ready()) {\n\t\t\t\tString line_data = br.readLine();\n\t\t\t\tif (line_data == null) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tnode_line_data nd = new node_line_data(line_data, i++);\n\t\t\t\tfiledata.add(nd);\n\t\t\t}\n\t\t\treturn filedata;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow new Exception(e.getMessage());\n\t\t}\n\t\tfinally {\n\t\t\ttry {\n\t\t\t\tif (br != null)\n\t\t\t\t\tbr.close();\n\t\t\t\tif (fis != null)\n\t\t\t\t\tfis.close();\n\t\t\t}\n\t\t\tcatch (IOException ex) {\n\t\t\t}\n\t\t}\n\t}",
"public ArrayList<String> readFile(File file) {\n\t\tArrayList<String> al = new ArrayList<String>();\n\t\ttry {\n\t\t\tif (file.exists()) {\n\t\t\t\tFileReader fr = new FileReader(file);\n\t\t\t\tBufferedReader br = new BufferedReader(fr);\n\t\t\t\tString line;\n\t\t\t\tbr.readLine();\n\t\t\t\twhile((line = br.readLine()) != null) {\n\t\t\t\t\tal.add(line);\n\t\t\t\t\tSystem.out.println(line);\n\t\t\t\t}\n\t\t\t\tbr.close();\n\t\t\t}\n\t\t} catch (IOException e) {\t\n\t\t\t}\n\t\treturn al;\n\t\t}",
"private void readFile() {\n try (BufferedReader br = new BufferedReader(new FileReader(\"../CS2820/src/production/StartingInventory.txt\"))) {\n String line = br.readLine();\n while (line != null) {\n line = br.readLine();\n this.items.add(line);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private static List<Student> loadStudentList(File file) throws IOException {\n return loadStudentList(new FileInputStream(file));\n }",
"private ArrayList<String> readRouteList(String filename) {\n FileInputStream fstream = null;\n ArrayList<String> list = new ArrayList();\n try {\n fstream = new FileInputStream(filename);\n BufferedReader br = new BufferedReader(new InputStreamReader(new DataInputStream(fstream)));\n while (true) {\n String readLine = br.readLine();\n String s = readLine;\n if (!(readLine == null || s.length() == 0)) {\n list.add(s);\n }\n try {\n fstream.close();\n break;\n } catch (IOException e) {\n }\n }\n } catch (IOException e2) {\n } catch (Throwable th) {\n if (fstream != null) {\n try {\n fstream.close();\n } catch (IOException e3) {\n }\n }\n }\n return list;\n }",
"private List<Task> readFromFile() {\n if (file.exists()) {\n try {\n return objectmapper.readValue(file,TaskList.class);\n } catch (IOException e) {\n throw new IllegalStateException(e);\n }\n } else {\n return new ArrayList<>();\n }\n }",
"public static void loadRecords(String filePath) throws IOException {\n\t\t// Read file \n\t\tFileReader fr = new FileReader(filePath);\n\t\tBufferedReader br = new BufferedReader(fr);\n\n\t\tString line = null;\n\t\t// Read line by line and store it in Array list\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\trecords.add(line);\n\t\t}\n\t\tfr.close();\n\t}",
"public static List<BasicPhoneCall> parseLog() throws FileNotFoundException {\n List<BasicPhoneCall> phoneCalls = new ArrayList<>();\n Scanner fileScanner = new Scanner(new File(logFilePath));\n while (fileScanner.hasNextLine()){\n String nextCall = fileScanner.nextLine();\n if (nextCall.equals(\"\")){\n continue;\n }\n List<String> callInfo = Arrays.asList(nextCall.split(\",\"));\n BasicPhoneCall phoneCall = new BasicPhoneCall(\n callInfo.get(0),\n callInfo.get(1),\n callInfo.get(2),\n callInfo.get(3),\n callInfo.get(4));\n phoneCalls.add(phoneCall);\n mapCall(phoneCall);\n }\n Collections.reverse(phoneCalls);\n return phoneCalls;\n }",
"public static List<String> readIn(String filename) throws Exception {\r\n Path filePath = new File(filename).toPath();\r\n Charset charset = Charset.defaultCharset(); \r\n List<String> stringList = Files.readAllLines(filePath, charset);\r\n\r\n return stringList;\r\n }",
"public static void read6() {\n List<String> list = new ArrayList<>();\n\n try (BufferedReader br = Files.newBufferedReader(Paths.get(filePath))) {\n\n //br returns as stream and convert it into a List\n list = br.lines().collect(Collectors.toList());\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n list.forEach(System.out::println);\n }",
"public static List read(String file){\n\t\tLinkedList<String> data =\tnew LinkedList<String>();\n\t\tString dataRow;\n\t\t\n\t\ttry {\n\t\t\t\n\t\tBufferedReader br = new BufferedReader(new FileReader(file));\n\t\t\n\t\twhile((dataRow = br.readLine())!=null);{\t\n\t\t\tString[] dataRecord = dataRow.split(\",\");\n\t\t\tdata.addAll(dataRecord);\n\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Could not found file\");\n\t\t\te.printStackTrace();\n\t\t}catch (IOException e) {\n\t\tSystem.out.println(\"Could Not read file\");\n\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t}",
"public static Vector<Beacon> parseBeaconList( String filename ) throws FileNotFoundException\r\n {\r\n File f = new File( filename );\r\n return parseBeaconList( f );\r\n }",
"private void readFile() {\r\n\t\tcsvEntrys = new ArrayList<>();\r\n\t\tString line = \"\";\r\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(new File(filepath)))) {\r\n\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\tif (!line.contains(\"id\")) {\r\n\t\t\t\t\tcsvEntrys.add(line);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private void readRacesFromFile(String racesFileName) {\n\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"dd.MM.yyyy\");\n\n URL url = Thread.currentThread().getContextClassLoader()\n .getResource(racesFileName);\n try (Stream<String> stream = Files.lines(Paths.get(url.getPath()))) {\n stream\n .skip(1)\n .map(s -> s.split(\";\"))\n .map(a -> new Race(Long.parseLong(a[0]), a[1], LocalDate.parse(a[2], formatter)))\n //.forEach(System.out::println);\n .forEach(em::persist);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"public List<String> readFileIntoList(String filepath) throws IOException;",
"FormattedSmartPlaylist readFromFile(File file) throws JAXBException, FileNotFoundException;",
"public static List read(String fileName) throws IOException {\n\tList data = new ArrayList() ;\n Scanner scanner = new Scanner(new FileInputStream(fileName));\n try {\n while (scanner.hasNextLine()){\n data.add(scanner.nextLine());\n }\n }\n finally{\n scanner.close();\n }\n return data;\n }",
"private void loadFromFile() {\n try {\n FileInputStream fis = openFileInput(FILENAME);\n InputStreamReader isr = new InputStreamReader(fis);\n BufferedReader reader = new BufferedReader(isr);\n Gson gson = new Gson();\n Type listFeelingType = new TypeToken<ArrayList<Feeling>>(){}.getType();\n recordedFeelings.clear();\n ArrayList<Feeling> tmp = gson.fromJson(reader, listFeelingType);\n recordedFeelings.addAll(tmp);\n fis.close();\n\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n recordedFeelings = new ArrayList<Feeling>();\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }",
"public synchronized void readLog() {\n MemoryCache instance = MemoryCache.getInstance();\n try (Stream<String> stream = Files.lines(Paths.get(path)).skip(instance.getSkipLine())) {\n stream.forEach(s -> {\n Result result = readEachLine(s);\n instance.putResult(result);\n instance.setSkipLine(instance.getSkipLine() + 1);\n });\n } catch (IOException e) {\n logger.error(\"error during reading file \" + e.getMessage());\n }\n }",
"static List<String> readDataFile(String filePath) throws Exception {\n\t\t// System.out.println(filePath);\n\t\tList<String> sortList = new ArrayList<String>();\n\n\t\tFileReader file = new FileReader(new File(filePath));\n\n\t\tBufferedReader bufRead = new BufferedReader(file);\n\n\t\tfor (long line = 0; line < linesPerFile; line++) {\n\n\t\t\tsortList.add((bufRead.readLine().toString()));\n\t\t}\n\n\t\tbufRead.close();\n\t\treturn sortList;\n\t}",
"public void parseDumpstateFile(String filePath) {\n\t\tif (filePath == null || \"\".equals(filePath)) {\n\t\t\treturn;\n\t\t}\n\t\tFile file = new File(filePath);\n\t\tif (!file.exists()) {\n\t\t\treturn;\n\t\t}\n\t\tSystem.gc();\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(file);\n\t\t\tBufferedReader br = new BufferedReader(fr);\n\t\t\tList<String> linesListMain = new ArrayList<String>();\n\t\t\tList<String> linesListEvents = new ArrayList<String>();\n\t\t\tList<String> linesListRadio = new ArrayList<String>();\n\t\t\tint state = 0;\n\t\t\tboolean finish = false;\n\t\t\twhile (br.ready()) {\n\t\t\t\tString strLine = br.readLine().trim();\n\t\t\t\tswitch (state) {\n\t\t\t\tcase 0:\n\t\t\t\t\tif (strLine.startsWith(\"------ SYSTEM LOG (logcat -v threadtime\")) {\n\t\t\t\t\t\tstate = 1;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:// main\n\t\t\t\t\tif (strLine.startsWith(\"------ EVENT LOG (logcat -b events -v threadtime\")) {\n\t\t\t\t\t\tstate = 2;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tlinesListMain.add(strLine);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:// events\n\t\t\t\t\tif (strLine.startsWith(\"------ RADIO LOG (logcat -b radio -v threadtime\")) {\n\t\t\t\t\t\tstate = 3;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tlinesListEvents.add(strLine);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:// radio\n\t\t\t\t\tif (strLine.startsWith(\"[logcat:\")) {\n\t\t\t\t\t\tstate = 4;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tlinesListRadio.add(strLine);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:// finish\n\t\t\t\t\tfinish = true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tassert (false);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif (finish) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (linesListMain.size() > 0) {\n\t\t\t\tList<LogCatMessage> logMessageMain = process_LOGCAT_V_THREADTIME(linesListMain);\n\t\t\t\tsendMessageReceivedEvent(logMessageMain, UIThread.PANEL_ID_MAIN, file);\n\t\t\t}\n\n\t\t\tif (linesListEvents.size() > 0) {\n\t\t\t\tList<LogCatMessage> logMessageEvents = process_LOGCAT_V_THREADTIME(linesListEvents);\n\t\t\t\tsendMessageReceivedEvent(logMessageEvents, UIThread.PANEL_ID_EVENTS, file);\n\t\t\t}\n\n\t\t\tif (linesListRadio.size() > 0) {\n\t\t\t\tList<LogCatMessage> logMessageRadio = process_LOGCAT_V_THREADTIME(linesListRadio);\n\t\t\t\tsendMessageReceivedEvent(logMessageRadio, UIThread.PANEL_ID_RADIO, file);\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public static void loadStudRecsFromFile(File file) {\r\n\t\ttry {\r\n\t\t\tJAXBContext context = JAXBContext\r\n\t\t\t\t\t.newInstance(StudRecsWrapper.class);\r\n\t\t\tUnmarshaller um = context.createUnmarshaller();\r\n\t\t\t\r\n\t\t\tStudRecsWrapper wrapper = (StudRecsWrapper) um.unmarshal(file);\r\n\t\t\t\r\n\t\t\tstudRecs.clear();\r\n\t\t\tstudRecs.addAll(wrapper.getStudRecs());\r\n\t\t\tSystem.out.println(\"File loaded!\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Cannot load file, does it exist?\");\r\n\t\t}\r\n\t}",
"private void takeInFile() {\n System.out.println(\"Taking in file...\");\n //Reads the file\n String fileName = \"messages.txt\";\n String line = null;\n try {\n FileReader fileReader = new FileReader(fileName);\n \n BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n //Adds each line to the ArrayList\n int i = 0;\n while ((line = bufferedReader.readLine()) != null) {\n lines.add(line);\n //System.out.println(line);\n i++;\n }\n \n bufferedReader.close();\n } catch (FileNotFoundException ex) {\n System.out.println(\"Unable to open file '\" + fileName + \"'\");\n } catch (IOException ex) {\n System.out.println(\"Error reading file '\" + fileName + \"'\");\n }\n System.out.println(\"Done taking in file...\");\n }",
"private static void readHistoryData()\n throws FileNotFoundException {\n File file = new File(HISTORY_FILE_PATH);\n Scanner scanner = new Scanner(file); // create a Scanner using the File as the source\n StringBuilder message = new StringBuilder();\n int index = 1;\n while (scanner.hasNext()) {\n String line = scanner.nextLine();\n message.append(\"\\n\\t\" + index + \". \" + line);\n index++;\n }\n scanner.close();\n\n history = message.toString();\n }",
"public List<String> readFileContents(String filePath) throws APIException;",
"public static List<String> readFile(String fileName){\r\n \r\n List<String> lines = Collections.emptyList();\r\n\r\n try{\r\n lines = Files.readAllLines(Paths.get(fileName));\r\n }\r\n\r\n catch(IOException err){\r\n err.printStackTrace();\r\n }\r\n\r\n return lines;\r\n }",
"public ArrayList<String> fileRead(String fileName) {\n String line = null;\n ArrayList<String> list = new ArrayList<>();\n try {\n // FileReader reads text files in the default encoding.\n FileReader fileReader = new FileReader(fileName);\n\n // Always wrap FileReader in BufferedReader.\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n while ((line = bufferedReader.readLine()) != null) {\n list.add(line);\n }\n\n // Always close files.\n bufferedReader.close();\n } catch (FileNotFoundException ex) {\n System.out.println(\"Unable to open file '\" + fileName + \"'\");\n\n } catch (IOException ex) {\n System.out.println(\"Error reading file '\" + fileName + \"'\");\n }\n return list;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic static List<Transaction> readObject(String filename){\n\n\t\tlogger.finer(\" Reading object (Deserializtion) used\");\n\t\tList<Transaction> transactionList = null;\n\n\t\ttry(ObjectInputStream ois = new ObjectInputStream(new FileInputStream(filename))){\n\t\t\ttransactionList = (List<Transaction>)ois.readObject();\n\t\t}\n\t\tcatch(IOException | ClassNotFoundException ioe){\n\n\t\t\tSystem.out.println(\"Exception occurred during deserialization\");\n\t\t} \n\n\t\t//\t\tpresentFileContents(transactionList);\n\n\t\treturn (List<Transaction>) transactionList;\n\t}",
"public static ArrayList<String> readLines(String fileName){\n\t\treturn read(fileName, false);\n\t}",
"public void readPatientListFromFile()\r\n\t{\n\t\tnextPatientLocation = 0;\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Makes file reader objects and passes filename\r\n\t\t\tFileReader fr = new FileReader(patientMasterfile);\r\n\t\t\tBufferedReader br = new BufferedReader(fr);\r\n\r\n\t\t\t//reads first line and makes a blank patient \r\n\t\t\tString aReadLine = br.readLine();\r\n\t\t\tPatient tempRead = new Patient();\r\n\t\t\t//loops through all lines in the file\r\n\t\t\twhile(aReadLine != null)\r\n\t\t\t{\r\n\t\t\t\t//resets patient to null\r\n\t\t\t\ttempRead = new Patient();\r\n\t\t\t\t//Splits the read in data and assigns that data to the appropriate attribute \r\n\t\t\t\tString[] splitPatientData = aReadLine.split(\"~~\");\r\n\r\n\t\t\t\ttempRead.patientID = splitPatientData[0];\r\n\t\t\t\ttempRead.forename = splitPatientData[1];\r\n\t\t\t\ttempRead.surname = splitPatientData[2];\r\n\t\t\t\ttempRead.username = splitPatientData[3];\r\n\t\t\t\ttempRead.password = splitPatientData[4];\r\n\t\t\t\ttempRead.houseNumber = splitPatientData[5];\r\n\t\t\t\ttempRead.postcode = splitPatientData[6];\r\n\t\t\t\ttempRead.telephoneNumber = splitPatientData[7];\r\n\t\t\t\ttempRead.dob = splitPatientData[8];\r\n\t\t\t\ttempRead.mode = splitPatientData[9];\r\n\t\t\t\t//adds patient to list and gets the next line\r\n\t\t\t\taddPatientToList(tempRead);\r\n\t\t\t\taReadLine = br.readLine();\r\n\t\t\t}\t\r\n\t\t}\r\n\t\t//catches any exceptions trown by reading \r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Error reading file, \");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public List<Task> readFile() throws FileNotFoundException, DukeException {\n List<Task> output = new ArrayList<>();\n Scanner sc = new Scanner(file);\n while (sc.hasNext()) {\n output.add(readTask(sc.nextLine()));\n }\n return output;\n }",
"void readFromFile(String file)\n {\n try\n {\n employees.clear();\n FileReader inputFile = new FileReader(fileName);\n BufferedReader input = new BufferedReader(inputFile);\n String line = input.readLine();\n \n while(line != null)\n {\n Employee worker = new Employee();\n StringTokenizer stringParser = new StringTokenizer(line, \",\");\n while(stringParser.hasMoreElements())\n {\n worker.setName(stringParser.nextElement().toString());\n worker.setHours(Integer.parseInt(stringParser.nextElement().toString()));\n worker.setRate(Float.parseFloat(stringParser.nextElement().toString()));\n }\n employees.add(worker);\n line = input.readLine();\n }\n inputFile.close();\n }\n catch(FileNotFoundException e)\n {\n e.getStackTrace();\n }\n catch(IOException e)\n {\n e.getStackTrace();\n }\n }",
"private void loadFromFile() {\n\t\ttry {\n\t\t\tFileInputStream fis = openFileInput(FILENAME);\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(fis));\n\t\t\tString line = in.readLine();\n\t\t\tGson gson = new Gson();\n\t\t\twhile (line != null) {\n\t\t\t\tCounterModel counter = gson.fromJson(line, CounterModel.class);\n\t\t\t\tif (counterModel.getCounterName().equals(counter.getCounterName())) {\n\t\t\t\t\tcounterListModel.addCounterToList(counterModel);\n\t\t\t\t\tcurrentCountTextView.setText(Integer.toString(counterModel.getCount()));\n\t\t\t\t} else {\n\t\t\t\t\tcounterListModel.addCounterToList(counter);\n\t\t\t\t}\n\t\t\t\tline = in.readLine();\n\t\t\t} \n\t\t\tfis.close();\n\t\t} catch (FileNotFoundException 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}",
"public ArrayList<String> readFromFile(String fileName) throws IOException {\n\t\tBufferedReader reader = new BufferedReader(new FileReader(fileName));\n\t ArrayList<String> retour = new ArrayList<String>();\n\t String line = null;\n\t while((line = reader.readLine()) != null) \n\t \tretour.add(line);\n\t \n\t reader.close();\n\t return retour; \n\t}",
"public HashMap<String, ArrayList<Trajectory>> readTrajectories(String trajFileName) {\n Scanner csv = null;\n HashMap<String, ArrayList<Trajectory>> trajectories = new HashMap<String, ArrayList<Trajectory>>();\n try {\n csv = new Scanner(new File(trajFileName));\n ArrayList<Trajectory> tj = new ArrayList<Trajectory>();\n String currentId = \"\";\n while (csv.hasNextLine()) {\n String[] line = csv.nextLine().split(\",\");\n line[0] = line[0].substring(6, line[0].length() - 1);\n String[] locs = line[0].split(\" \");\n\n if (currentId.equals(\"\")) // first device\n {\n currentId = line[1];\n } else if (!currentId.equals(line[1])) // we are looking at a new device, add arrayList to the map, reset arrayList\n {\n trajectories.put(currentId, tj);\n tj = new ArrayList<Trajectory>();\n currentId = line[1];\n }\n tj.add(new Trajectory(Double.parseDouble(locs[0]), Double.parseDouble(locs[1]), line[1], Double.parseDouble(line[2])));\n }\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n return trajectories;\n }",
"public List<String> readFile() {\n \n try {\n ensureFileExists();\n return Files.readAllLines(filePath);\n } catch (FileNotFoundException ex) {\n return new ArrayList<>();\n } catch (IOException ex) {\n ex.printStackTrace();\n return new ArrayList<>();\n }\n }",
"private List<String> readFile(String path) throws IOException {\n return Files.readAllLines (Paths.get (path), StandardCharsets.UTF_8);\n }",
"public static List<String> getLogFromFile(String filePath) {\n List<String> logData = new ArrayList<>();\n File file = new File(filePath);\n try {\n Scanner sc = new Scanner(file);\n while (sc.hasNextLine()) {\n logData.add(sc.nextLine());\n }\n sc.close();\n } catch (FileNotFoundException e) {\n Logger.log(e.getMessage());\n }\n return logData;\n }",
"private static ArrayList<String> readFile() throws ApplicationException {\r\n\r\n ArrayList<String> bookList = new ArrayList<>();\r\n\r\n File sourceFile = new File(FILE_TO_READ);\r\n try (BufferedReader input = new BufferedReader(new FileReader(sourceFile))) {\r\n\r\n if (sourceFile.exists()) {\r\n LOG.debug(\"Reading book data\");\r\n String oneLine = input.readLine();\r\n\r\n while ((oneLine = input.readLine()) != null) {\r\n\r\n bookList.add(oneLine);\r\n\r\n }\r\n input.close();\r\n } else {\r\n throw new ApplicationException(\"File \" + FILE_TO_READ + \" does not exsit\");\r\n }\r\n } catch (IOException e) {\r\n LOG.error(e.getStackTrace());\r\n }\r\n\r\n return bookList;\r\n\r\n }",
"public static HashSet<String> loadStoplist(File f) {\r\n\t\tHashSet<String> stoplist = new HashSet<String>();\r\n\t\t\r\n\t\t// Assume it's comming from a csv file.\r\n\t\tCSV csv = new CSV(f);\r\n\t\tString[] line;\r\n\r\n\t\t// Read all lines in.\r\n\t\twhile((line = csv.getLine()) != null) {\r\n\t\t\tstoplist.add(line[0].trim());\r\n\t\t}\r\n\r\n\t\treturn stoplist;\r\n\t}",
"public static TraceReader createTraceReader(File traceFile) {\n LineReader lineReader = LineReader.createLineReader(traceFile);\n if(lineReader == null) {\n return null;\n }\n\n return new TraceReader(lineReader);\n }",
"String loadFromFile () throws Exception {\n\n Reader reader = new Reader(new FileReader(file));\n String line;\n\n// reads all lines of the file\n while ((line = reader.readLine()) != null) {\n\n// depending on the object tag [element], it reads relevant parameters and creates the Element\n if (line.contains(\"[timeline]\"))\n timelines.add(new Timeline(reader.getStringArgument()));\n\n else if (line.contains(\"[event]\")) {\n String timelineName = reader.getStringArgument();\n for (Timeline timeline : timelines) {\n if (timelineName.equals(timeline.name)) {\n timeline.addEvent(\n reader.getStringArgument(),\n reader.getDateArgument(),\n reader.getDateArgument(),\n reader.getIntArgument() != 0,\n reader.getNotesArgument());\n break;\n }\n }\n }\n }\n reader.close();\n return (\"Data loaded successfully\");\n }",
"private void loadFromFile() {\n try {\n FileInputStream fis = openFileInput(FILENAME);\n BufferedReader in = new BufferedReader(new InputStreamReader(fis));\n\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Sub>>(){}.getType();\n subList = gson.fromJson(in, listType);\n\n } catch (FileNotFoundException e) {\n subList = new ArrayList<Sub>();\n }\n }",
"public List<List<String>> read () {\n List<List<String>> information = new ArrayList<>();\n try (BufferedReader br = new BufferedReader(new FileReader(path))) {\n int aux = 0;\n while ((line = br.readLine()) != null) {\n String[] data = line.split(split_on);\n List<String> helper = new ArrayList<>();\n helper.add(data[0]);\n helper.add(data[1]);\n information.add(helper);\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n return information;\n }",
"private ArrayList<String> readTestCasesFromFile(File f)\r\n\t\t\tthrows EasyCorrectionException {\r\n\t\treturn readStringsFromFile(f, Constants.TEST_CASE_SEPARATOR);\r\n\t}",
"public void readScoresFromFile(File f) throws IOException, FileNotFoundException{\r\n\t\tBufferedReader br = null;\r\n\t\ttry{\r\n\t\t\tFileReader fr = new FileReader(f);\r\n\t\t\tbr = new BufferedReader(fr);\r\n\t\t\t\r\n\t\t\tString str = br.readLine();\r\n\t\t\t\r\n\t\t\tfor (int count = 0; count < scores.length; count++){\r\n\t\t\t\tscores[9-count] = new HighScore(str, SEPARATOR);\r\n\t\t\t\tstr = br.readLine();\r\n\t\t\t}\r\n\t\t} catch (Exception ex){\r\n\t\t\tSystem.err.println(\"Trouble with file: \"+ex.getMessage());\r\n\t\t} finally {\r\n\t\t\ttry{\r\n\t\t\t\tif (br != null){\r\n\t\t\t\t\tbr.close();\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception ex1){\r\n\t\t\t\tex1.printStackTrace();\r\n\t\t\t\tSystem.exit(-1);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void readFile(String file) throws FileNotFoundException {\n\t\tsc = new Scanner(new File(file));\n\t\tString firstLine = sc.nextLine();\n\t\tString [] breakFirstLine = firstLine.split(\" \");\n\t\tvillages = Integer.parseInt(breakFirstLine[0]);\n\t\tlines = Integer.parseInt(breakFirstLine[1]);\n\t\tSystem.out.println(\"villages: \" + villages + \"\\nlines: \" + lines);\n\t\tString line = \"\"; // current line\n\t\twhile(sc.hasNextLine()) { \n\t\t\tline = sc.nextLine();\n\t\t\tSystem.out.println(line);\n\t\t\tString[] breaks = line.split(\" \");\n\t\t\tString city1 = breaks[0];\n\t\t\tString city2 = breaks[1];\n\t\t\tString col = breaks[2];\n\t\t\tcolor = color(col);\n\t\t\tString route = breaks[3];\n\t\t\ttransit = transit(route);\n\t\t\tVillage a = new Village(city1);\n\t\t\tVillage b = new Village(city2);\n\t\t\t\n\t\t\tEdge e = new Edge(a, b, transit, color);\n\t\t\ta.addEdge(e);\n\t\t\tb.addEdge(e);\n\t\t\tg.addEdge(e);\n\t\t\t\n\t\t\tvertices.add(a);\n\t\t\tlast_transit = transit;\n\t\t\tlast_color = color;\n\t\t}\n\t}",
"private List<String> readFile() throws FileNotFoundException {\t\n\t\tList<String> itemsLines = new ArrayList<>();\n\t\tFile inputFile = new File(filePath);\t\n\t\ttry (Scanner newScanner = new Scanner(inputFile)) {\n\t\t\twhile(newScanner.hasNextLine()) {\n\t\t\t\titemsLines.add(newScanner.nextLine());\n\t\t\t}\t\n\t\t}\n\t\treturn itemsLines;\n\t}",
"public void loadFile(File file) throws FileNotFoundException\n {\n FileReader reader = new FileReader(file);\n\n // Clear table to make sure it only shows tasks from file\n Item.getToDoList().clear();\n if(this.listView != null)\n {\n listView.getItems().clear();\n }\n\n index = 0;\n\n try(BufferedReader temp = new BufferedReader(reader))\n {\n String info;\n boolean check;\n\n while((info = temp.readLine()) != null)\n {\n // Make an array of values\n String[] values = info.split(\",\");\n\n //Array length is 3, since 3 columns. If not that then incorrect file\n if(values.length != 3)\n {\n if(this.status != null)\n {\n status.setText(\"Incompatible File. \");\n }\n break;\n }\n\n // If correct, add information from file to list\n else\n {\n check = !values[2].equals(\"false\");\n Item.getToDoList().add(new Item(values[0], values[1], check));\n }\n }\n\n } catch (IOException exception)\n {\n // If error, let user know\n if(this.status != null)\n {\n status.setText(\"File not found. \");\n }\n\n exception.printStackTrace();\n }\n }",
"@Override\n public ArrayList parseFile(String pathToFile) {\n\n Scanner scanner = null;\n try {\n scanner = new Scanner(new File(pathToFile));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n ArrayList<String> data = new ArrayList<>();\n while (scanner.hasNext()) {\n data.add(scanner.next());\n }\n scanner.close();\n\n return data;\n }",
"public static List<GeoJSONFaultSection> readFaultSections(File file) throws IOException {\n\t\treturn readFaultSections(new BufferedReader(new FileReader(file)));\n\t}",
"public static List<String> mainReadFile(String[] args) throws IOException, URISyntaxException {\n List<String> exmp = new ArrayList<>();\n File initialFile = resolveFileFromResources(args[0]);\n // System.out.println(initialFile);\n ObjectMapper obM = getObjectMapper();\n Trades[] exmpTrade = obM.readValue(initialFile, Trades[].class);\n for (Trades trade : exmpTrade) {\n exmp.add(trade.getSymbol());\n }\n printJsonObject(exmp);\n //return Collections.emptyList();\n return exmp;\n }",
"public void readFile(){\n try {\n highscores = new ArrayList<>();\n BufferedReader br = new BufferedReader(new FileReader(\"Highscores.txt\"));\n String line = br.readLine();\n while (line != null){\n try{\n highscores.add(Integer.parseInt(line));\n } catch (NumberFormatException e){}\n line = br.readLine();\n }\n br.close();\n } catch (FileNotFoundException e) {\n System.out.println(\"No file found\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public Collection<FastqSequence> parse(File file)throws IOException{\n\t\tCollection<FastqSequence> rtrn=new ArrayList<FastqSequence>();\n\t\tString nextLine;\n while ((nextLine = reader.readLine()) != null && (nextLine.trim().length() > 0)) {\n \tif(nextLine.startsWith(\"@\")){\n \t\tString firstLine=nextLine;\n \t\tString secondLine=reader.readLine();\n \t\tString thirdLine=reader.readLine();\n \t\tString fourthLine=reader.readLine();\n \t\t\n \t\tFastqSequence seq=new FastqSequence(firstLine, secondLine,thirdLine, fourthLine);\n \t\t\t\n \t\trtrn.add(seq);\n \t}\n \t\n \t\n }\n return rtrn;\n\t}",
"private void readItems() {\n // open file\n File file = getFilesDir();\n File todoFile = new File(file, \"scores.txt\");\n // try to find items to add\n try {\n items = new ArrayList<>(FileUtils.readLines(todoFile));\n } catch (IOException e) {\n items = new ArrayList<>();\n }\n }",
"private static String[] readFile(final String pathToFile) {\n try (BufferedReader reader = new BufferedReader(new FileReader(pathToFile))) {\n final List<String> lines = new ArrayList<>();\n String line;\n while ((line = reader.readLine()) != null) {\n line = line.trim();\n if (!line.startsWith(\"#\")) {\n lines.add(line);\n }\n }\n return lines.toArray(new String[lines.size()]);\n } catch (final IOException e) {\n throw new OpenGammaRuntimeException(\"Couldn't read properties file - \" + pathToFile, e);\n }\n }",
"String[] readFile(File file) {\n ArrayList<String> list = new ArrayList<>();\n String[] output = null;\n Scanner reader = null;\n try {\n if (file.isFile()) {\n reader = new Scanner(file);\n while (reader.hasNextLine()) {\n list.add(reader.nextLine());\n }\n }\n } catch (FileNotFoundException e) {\n System.out.println(\"File not found exception\");\n }\n output = new String[list.size()];\n for (int i = 0; i < list.size(); i++) output[i] = list.get(i);\n reader.close();\n return output;\n }",
"public static ArrayList<String> parseSequenceFile(String filePath) {\n\t\tArrayList<String> sequence = new ArrayList<String>();\n\t\tFile file = new File(filePath);\n\t\tScanner scanner;\n\n\t\ttry {\n\t\t\tscanner = new Scanner(file);\n\n\t\t\twhile (scanner.hasNextLine()) {\n\t\t\t\tsequence.add(scanner.nextLine());\n\t\t\t}\n\n\t\t\tscanner.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"File not found. Program aborted.\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\n\t\treturn sequence;\n\t}",
"public List<String> readFileIntoList(String sourceFilepath) throws IOException {\n List<String> lines = new ArrayList<>();\n URL url = new URL(sourceFilepath);\n BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream()));\n String line = null;\n while ((line = reader.readLine()) != null) {\n lines.add(line);\n }\n reader.close();\n return lines;\n }",
"private List<Task> getTasksFromFile() throws FileNotFoundException{\n List<Task> loadedTasks = new ArrayList<>();\n Ui a=new Ui();\n try {\n List<String> lines = getLine() ;\n for (String line : lines) {\n if (line.trim().isEmpty()) { //ignore empty lines\n continue;\n }\n loadedTasks.add(createTask(line)); //convert the line to a task and add to the list\n }\n System.out.println(\"File successfully loaded\");\n } catch (DukeException e1) {\n System.out.println(\"☹ OOPS!!! Problem encountered while loading data: \" +e1.getMessage());\n }\n return loadedTasks;\n }",
"public static ArrayList<String> readFromFile(String fileName) throws IOException, FileNotFoundException\n {\n ArrayList<String> linesList = new ArrayList<String>();\n BufferedReader bufferReader = new BufferedReader(new FileReader(fileName));\n \n String currentLine;\n while ((currentLine = bufferReader.readLine()) != null) {\n if (!currentLine.startsWith(\"//\"))\n linesList.add(currentLine);\n }\n bufferReader.close();\n return linesList;\n }",
"static List<String> read() {\n String fileName = getFilePath();\n List<String> urls = new ArrayList<>();\n \n if (Files.notExists(Paths.get(fileName))) {\n return urls;\n }\n \n try (Stream<String> stream = Files.lines(Paths.get(fileName))) {\n urls = stream\n // Excludes lines that start with # as that is used for comments\n // and must start with http:// as that is required by crawler4j.\n .filter(line -> !line.startsWith(\"#\") &&\n line.startsWith(\"http://\") || line.startsWith(\"https://\"))\n .map(String::trim)\n .map(String::toLowerCase)\n .collect(Collectors.toList());\n } catch (IOException e) {\n e.printStackTrace();\n }\n \n return urls;\n }",
"public static List<String> loadLinesFromFile(String path) {\n\t\tPath Filepath = Paths.get(path);\n\t\ttry {\n\t\t\tList<String> lines = Files.readAllLines(Filepath);\n\t\t\treturn lines;\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 new ArrayList<String>();\n\t}",
"private ArrayList<String> readFileAndCountLines(File fileName) throws IOException\n\t{\n\t\tString line = \"\";\n\t\tFileReader strm_reader = null;\n\t\tBufferedReader bffr_reader = null;\n\t\tArrayList<String> fileContents = new ArrayList<String>();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tstrm_reader = new FileReader(fileName);\t\n\t\t\tbffr_reader = new BufferedReader(strm_reader);\n\t\t\t\n\t\t\twhile((line = bffr_reader.readLine()) != null)\n\t\t\t{\n\t\t\t\t//Add the contents of a file in a variable\n\t\t\t\tfileContents.add(line);\n\t\t\t\t//Counts the number of routers\n\t\t\t\tfileLineCount++;\n\t\t\t}\n\t\t\tif(fileContents.isEmpty())\n\t\t\t\tSystem.out.println(\"The File is Empty!\");\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"File not Found!\");\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tif(bffr_reader != null)\n\t\t\t\tbffr_reader.close();\n\t\t\tif(strm_reader != null)\n\t\t\t\tstrm_reader.close();\n\t\t}\n\t\treturn fileContents;\n\t}",
"public static ArrayList load(String filePath) throws IOException\n\t{\n\t\tString line;\n\t\tArrayList gameConfigs = new ArrayList();\n\t\tBufferedReader textReader = new BufferedReader(new FileReader(filePath));\n\t\t\n\t\twhile((line = textReader.readLine()) != null)\n\t\t{\n\t\t\tgameConfigs.add(line);\n\t\t}\n\t\t\n\t\ttextReader.close();\n\t\treturn gameConfigs;\n\t}",
"private static List<String> readConfFile(File configFile) {\n List<String> lines = new ArrayList<>();\n if (null != configFile) {\n Path filePath = configFile.toPath();\n Charset charset = Charset.forName(\"UTF-8\");\n try {\n lines = Files.readAllLines(filePath, charset);\n } catch (IOException e) {\n logger.log(Level.SEVERE, \"Error reading config file contents. {}\", configFile.getAbsolutePath());\n }\n }\n return lines;\n }",
"public ArrayList<Event> readSerFile() {\n\n ArrayList<Event> events = new ArrayList<>();\n try {\n FileInputStream file = new FileInputStream(filename);\n ObjectInputStream storedEvents = new ObjectInputStream(file);\n\n events = (ArrayList<Event>) storedEvents.readObject();\n\n storedEvents.close();\n file.close();\n\n return events;\n\n } catch (FileNotFoundException e) {\n System.out.println(filename + \" is missing\");\n } catch (IOException | ClassNotFoundException e) {\n return events;\n }\n\n return events;\n }",
"public SecurityLogManager(String filePath)\r\n\t{\r\n\t\tlist = new ArrayBasedList<LogEntry>();\r\n\t\ttry {\r\n\t\t\tlist = LogEntryReader.readLogEntry(filePath);\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tthrow new IllegalArgumentException(\"Cannot find file.\");\r\n\t\t}\r\n\t}",
"private void readFile() {\r\n\t\tScanner sc = null; \r\n\t\ttry {\r\n\t\t\tsc = new Scanner(inputFile);\t\r\n\t\t\twhile(sc.hasNextLine()){\r\n\t\t\t\tgrade.add(sc.nextLine());\r\n\t } \r\n\t\t}\r\n\t\tcatch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tsc.close();\r\n\t\t}\t\t\r\n\t}",
"public ArrayList<SessionLog> readLogFile(){\n ArrayList<SessionLog> sessionLogList = new ArrayList<>();\n try {\n FileInputStream inputStream = getApplicationContext().openFileInput(logFileName);\n BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));\n\n while(true){\n String line = reader.readLine();\n if (line != null){\n String[] data = line.split(\",\");\n Log.i(LOG_TAG, \" - \"+ Arrays.toString(data));\n SessionLog item = new SessionLog(\n Long.parseLong(data[0]),\n new LatLng(Double.parseDouble(data[1]), Double.parseDouble(data[2])),\n data[3].equals(\"true\")\n );\n sessionLogList.add(item);\n }\n else{\n Log.i(LOG_TAG, \"Reached end of file\");\n break; // No more lines to read\n }\n }\n }\n catch (Exception e){\n Log.i(LOG_TAG, \"Problem reading from current session log file...\");\n e.printStackTrace();\n }\n return sessionLogList;\n }",
"public static void readFile() {\n\t\tbufferedReader = null;\n\t\ttry {\n\t\t\tFileReader fileReader = new FileReader(\"/home/bridgeit/Desktop/number.txt\");\n\t\t\tbufferedReader = new BufferedReader(fileReader);\n\n\t\t\tString line;\n\t\t\twhile ((line = bufferedReader.readLine()) != null) {\n\t\t\t\tString[] strings = line.split(\" \");\n\t\t\t\tfor (String integers : strings) {\n\t\t\t\t\thl.add(Integer.parseInt(integers));\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"File Not Found...\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\tbufferedReader.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"private void loadFromFile(){\n try {\n FileInputStream fis = openFileInput(FILENAME);\n BufferedReader in = new BufferedReader(new InputStreamReader(fis));\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Countbook>>() {}.getType();\n countbookList = gson.fromJson(in, listType);\n } catch (FileNotFoundException e) {\n countbookList = new ArrayList<Countbook>();\n }\n }",
"public static String[] readGraphFile( String fileName ) throws FileNotFoundException, IllegalArgumentException, InvalidRouteException{\n\t \n\t\tFile file = new File(fileName); \n\t Scanner s = new Scanner(file); \n\t \n \tString in = s.nextLine();\n\t\tString[] parts = in.toUpperCase().split(\"\\\\s+|,\\\\s*\");\n \n\t\tfor( String route: parts ) IO.validateData(route);\n\t\ts.close();\n\t \n\t return parts;\n\t }",
"public static PVector[] readFromFile(String filename) {\n ArrayList<PVector> ledPositionsList= new ArrayList<PVector> ();\n //try to read data from file\n try {\n File file = new File(filename);\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()) {\n String line = scanner.nextLine();\n String[] pieces = line.split(\"\\t\");\n if (pieces.length>3) {\n ledPositionsList.add(new PVector( (Float.parseFloat(pieces[1])/4.0f), Float.parseFloat(pieces[2])/4.0f, Float.parseFloat(pieces[3])/4.0f)); //initialize Leds x,y,z,r,g,b\n }\n }\n scanner.close();\n } \n catch (FileNotFoundException ex) {\n ex.printStackTrace();\n }\n //convert to vanilla Java Array\n PVector[] ledPositions= new PVector[ledPositionsList.size()];\n for (int i=0; i<ledPositionsList.size(); i++) {\n ledPositions[i]=ledPositionsList.get(i);\n }\n return ledPositions;\n }",
"private Candle[] read(String file) throws Exception {\r\n Scanner sc = new Scanner(new File(file));\r\n String[] spl;\r\n String s;\r\n Candle[] candles = new Candle[32 * 24 * 60];\r\n int i = 0;\r\n while(sc.hasNextLine()){\r\n spl = sc.nextLine().split(\",\");\r\n candles[i] = new Candle(spl[0] + \" \" + spl[1], spl[2], spl[3], spl[4], spl[5]);\r\n i++;\r\n\r\n }\r\n Candle[] newCandles = new Candle[i];\r\n System.arraycopy(candles, 0, newCandles, 0, i);\r\n sc.close();\r\n return newCandles;\r\n \r\n }",
"private List<String> readFile(String fileName)\n {\n try\n {\n String file = new String(Files.readAllBytes(Paths.get(fileName)), Charset.forName(\"ISO-8859-1\"));\n file = file\n .toLowerCase()\n .replaceAll(\"[^\\\\w]+\", \" \")\n .replaceAll(\"[0-9]\", \"\");\n Tokenizer tokenizer = SimpleTokenizer.INSTANCE;\n String[] tokens = tokenizer.tokenize(file);\n return Arrays.asList(tokens);\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return new ArrayList<>();\n }",
"public void readFromFile() {\n //reading text from file\n\n try {\n Scanner scanner = new Scanner(openFileInput(\"myTextFile.txt\"));\n\n while(scanner.hasNextLine()){\n\n String line = scanner.nextLine();\n\n String[] lines = line.split(\"\\t\");\n\n System.out.println(lines[0] + \" \" + lines[1]);\n\n toDoBean newTask = new toDoBean(lines[0], lines[1], 0);\n // System.out.println(line);\n sendList.add(newTask);\n\n }\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"private ArrayList<String> readEntriesFromFile(String nameOfFile){\n\t\tArrayList<String> foundEntries = new ArrayList<String>();\n\t\t\n\t\ttry{\n\t\t\tFile file = new File(nameOfFile); \n\t\t\tScanner fileIn = new Scanner(file);\n\t\t\twhile (fileIn.hasNext()){\n\t\t\t\tString currentLine = fileIn.nextLine();\n\t\t\t\tfoundEntries.add(currentLine);\n\t\t\t} \n\t\t\tfileIn.close();\n\t\t}catch (IOException e){\n\t\t}\n\t\t\n\t\tif(foundEntries.size()==0){\n\t\t return null;\n\t\t}else{\n\t\t\treturn foundEntries;\n\t\t}\n\t}"
] | [
"0.7225879",
"0.63035315",
"0.6273014",
"0.6177771",
"0.6143089",
"0.6103436",
"0.60649616",
"0.6046176",
"0.59592754",
"0.59097344",
"0.5907945",
"0.5907945",
"0.5844039",
"0.583268",
"0.5798279",
"0.57859915",
"0.57737416",
"0.5765365",
"0.57642907",
"0.575511",
"0.57358325",
"0.57220435",
"0.5718088",
"0.5715928",
"0.5711301",
"0.5704709",
"0.56957793",
"0.56760275",
"0.5655646",
"0.5626189",
"0.56248367",
"0.5597101",
"0.5581797",
"0.5574789",
"0.5564597",
"0.5558721",
"0.5546073",
"0.5542099",
"0.5524627",
"0.55156535",
"0.55098",
"0.55078405",
"0.5504265",
"0.55010766",
"0.54989064",
"0.5492885",
"0.54882586",
"0.5467125",
"0.5465982",
"0.5461723",
"0.5460201",
"0.5439629",
"0.54378647",
"0.5424945",
"0.54217273",
"0.5420583",
"0.54179335",
"0.54100794",
"0.5405321",
"0.5400934",
"0.53984874",
"0.5382169",
"0.5380666",
"0.53790975",
"0.5376229",
"0.53662145",
"0.5361688",
"0.5361114",
"0.53604794",
"0.53597885",
"0.53504837",
"0.53474665",
"0.53461313",
"0.5341669",
"0.5341375",
"0.5341015",
"0.5337413",
"0.533551",
"0.53345037",
"0.5325928",
"0.532447",
"0.53241444",
"0.532088",
"0.5318913",
"0.5311019",
"0.53095007",
"0.5308545",
"0.5305091",
"0.5302064",
"0.5296493",
"0.52931654",
"0.529211",
"0.5285024",
"0.52760565",
"0.5273186",
"0.52707106",
"0.5265442",
"0.52630085",
"0.52603",
"0.52596277"
] | 0.93100727 | 0 |
Save trace list to a file | void write(TraceList traceList,File file) throws IOException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void writeTrace()\r\n {\r\n TGCreator creator = new TGCreator();\r\n TGTrace trace = creator.createTrace(JVM.getVM(), this.stateGraph);\r\n TraceGraphWriter tgWriter = new TraceGraphWriter(trace);\r\n\r\n if (this.traceCompressed)\r\n {\r\n this.filename += ITraceConstants.ZIP_FILE_SUFFIX;\r\n tgWriter.saveCompressed(new File(this.filename));\r\n }\r\n else\r\n {\r\n this.filename += ITraceConstants.XML_FILE_SUFFIX;\r\n tgWriter.save(new File(this.filename));\r\n }\r\n\r\n SymbolicExecutionTracerPlugin.log(Status.INFO,\r\n \"Symbolic Execution Tracer wrote \" + this.numEndStates\r\n + \" traces to \" + this.filename);\r\n }",
"private void saveListToFile() {\n try {\n PrintStream out = new PrintStream(\n openFileOutput(LIST_FILENAME, MODE_PRIVATE)\n );\n\n for (int i = 0; i < listArr.size(); i++) {\n out.println(listArr.get(i));\n }\n\n out.close();\n\n } catch (IOException ioe) {\n Log.e(\"saveListToFile\", ioe.toString());\n }\n }",
"private void chatSave() {\n try{\n //create a text file to write the chatList to\n PrintStream print =\n new PrintStream(new FileOutputStream(\"log.txt\", true));\n //write each line of the array to the file \n for (String str:chatList)\n print.println(str);\n //once each record has been written to the file, close it.\n print.close();\n } catch (IOException e) {\n // exception handling\n }\n }",
"public static void writeTo(TraceList traceList,File file) throws IOException{\n\t\tString fileName=file.getName();\n\t\tString formatName=fileName.contains(\".\")?fileName.substring(fileName.indexOf('.')+1):\"png\";\n\t\tfor(TraceListFormat next:ServiceLoader.load(TraceListFormat.class)){\n\t\t\tif(formatName.endsWith(next.getSuffix())){\n\t\t\t\tnext.write(traceList,file);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tImageIO.write(TraceListViewer.renderColorImage(traceList),formatName,file);\n\t}",
"public void save(List<Task> list) throws IOException {\n FileWriter writer = new FileWriter(file);\n StringBuilder output = new StringBuilder();\n for (Task t : list) {\n output.append(formatTask(t));\n output.append(\"\\n\");\n }\n writer.write(output.toString());\n writer.close();\n }",
"public void saveListToFile() {\r\n\t\ttry {\r\n\t\t\tObjectOutputStream oos = null;\r\n\t\t\ttry {\r\n\t\t\t\toos = new ObjectOutputStream(new FileOutputStream(FTP_LIST_FILE));\r\n\t\t\t\toos.writeObject(FTPList.self);\r\n\t\t\t\toos.flush();\r\n\t\t\t} finally {\r\n\t\t\t\toos.close();\r\n\t\t\t}\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public static void saveOutput(String filename, DSALinkedList list)\n {\n try\n {\n PrintWriter out = new PrintWriter(filename);\n //out.println(input);\n\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n PrintStream ps = new PrintStream(baos);\n PrintStream old = System.out;\n System.setOut(ps);\n //stuff goes here\n\n if(!list.isEmpty())\n {\n System.out.println(\"# All routes Traversed:\");\n Iterator<DSAQueue> itr = list.iterator();\n int counter = 0;\n while(itr.hasNext())\n {\n counter ++;\n System.out.println(\"\\n# Route number: [\" + counter + \"]\");\n itr.next().show();\n }\n }\n else\n {\n System.out.println(\"# Route list is empty. Add some more!\");\n }\n System.out.flush();\n System.setOut(old);\n out.println(baos.toString());\n\n out.close();\n }\n catch (Exception e)\n { //should do more here might not be needed\n throw new IllegalArgumentException(\"Unable to print object to file: \" + e);\n }\n\n }",
"void saveSklepToFile(String fileName) throws Exception {\r\n\t\tObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(fileName));\r\n\t\tout.writeObject(listOfAccounts);\r\n\t\tout.close();\r\n\t}",
"private void writeToFile() {\n boolean flag = true;\n int expectedPacket = (lastPacket)? sequenceNo: Constants.WINDOW_SIZE;\n for (int i = 0; i < expectedPacket; i++) {\n if(!receivedPacketList.containsKey(i)) {\n flag = false;\n }\n }\n if (flag) {\n System.out.println(\"Time: \" + System.currentTimeMillis() + \"\\t\" + \"Write to file Possible\");\n try (BufferedOutputStream stream = new BufferedOutputStream(new FileOutputStream(fileSavePath, true))) {\n for (int i = 0; i < receivedPacketList.size(); i++) {\n //System.out.println(new String(receivedPacketList.get(i)));\n stream.write(receivedPacketList.get(i));\n }\n receivedPacketList.clear();\n stream.close();\n } catch (FileNotFoundException ex) {\n \n } catch (IOException ex) {\n \n }\n receivedPacketList.clear();\n expectedList.clear();\n }\n }",
"public void writeToEmployeeListFile()\r\n {\r\n\ttry(ObjectOutputStream toEmployeeListFile = \r\n new ObjectOutputStream(new FileOutputStream(\"listfiles/employeelist.dta\")))\r\n\t{\r\n toEmployeeListFile.writeObject(employeeList);\r\n employeeList.saveStaticEmpRunNr(toEmployeeListFile);\r\n\t}\r\n\tcatch(NotSerializableException nse)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Ansatt objektene er ikke \"\r\n + \"serialiserbare.\\nIngen registrering på fil!\"\r\n + nse.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n\tcatch(IOException ioe)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Det oppsto en feil ved skriving \"\r\n + \"til fil.\\n\" + ioe.getMessage());\r\n\t}\r\n }",
"void writeRecordsToFile(List<IRecord> recordList) throws IOException;",
"private void saveInFile() {\n\t\tthis.deleteFile();\n\t\tfor (CounterModel obj : counterListModel.getCounterList()) {\n\t\t\ttry {\n\t\t\t\tGson gson = new Gson();\n\t\t\t\tif (obj.getCounterName().equals(counterModel.getCounterName())) {\n\t\t\t\t\tobj = counterModel;\n\t\t\t\t}\n\t\t\t\tString json = gson.toJson(obj) +'\\n';\n\t\t\t\tFileOutputStream fos = openFileOutput(FILENAME,\n\t\t\t\t\t\tContext.MODE_APPEND);\n\t\t\t\tfos.write(json.getBytes());\n\t\t\t\tfos.close();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"private void writeToFile(){\n try(BufferedWriter br = new BufferedWriter(new FileWriter(filename))){\n for(Teme x:getAll())\n br.write(x.toString()+\"\\n\");\n br.close();\n }catch (IOException e){\n e.printStackTrace();\n }\n }",
"public void saveAllVehiclesToFile(ArrayList<DeliveryVehicle> vehicleList) throws java.io.IOException {\n\n // write object to file\n FileOutputStream fos = new FileOutputStream(_filePath); //object to hold a file, e.g. EmployeeData.txt\n PrintStream writer = new PrintStream(fos); //object to write data\n\n //For loop to read each employee and write them to the file\n for(DeliveryVehicle vehicle : vehicleList){\n writer.println(vehicle);\n }\n\n writer.close();//close the writer\n fos.close();//close the file\n\n }",
"private void writeToFile(List<Record> records) {\n try (\n FileWriter writer = new FileWriter(FILE_PATH);\n BufferedWriter bufferedWriter =\n new BufferedWriter(writer);\n PrintWriter out = new PrintWriter(bufferedWriter)\n\n ) {\n\n for (Record record : records) {\n out.format(\"%d;%s;%s;%s;%s;%s\\n\",\n record.getId(),\n record.getFirstName(),\n record.getLastName(),\n record.getPhone().getNumber(),\n record.getPhone().getType(),\n record.getCategory().getId());\n }\n// writer.close();\n out.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n\n }",
"public void save () {\r\n\t\tlog.debug(\"TunnelList:save()\");\r\n\t\tlog.info(\"Saving to file\");\r\n\t\tFileTunnel.saveTunnels(this);\r\n\t}",
"void saveToFile() {\n\t\ttry {\n\t\t\tFile directory = GameApplication.getInstance().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n\t\t\tFile target = new File(directory, FILE_NAME);\n\t\t\tif (!target.exists()) {\n\t\t\t\ttarget.createNewFile();\n\t\t\t}\n\t\t\tJsonWriter writer = new JsonWriter(new FileWriter(target));\n\t\t\twriter.setIndent(\" \");\n\t\t\twriter.beginArray();\n\t\t\tfor (Scoreboard scoreboard : scoreboards.values()) {\n\t\t\t\twriteScoreboard(writer, scoreboard);\n\t\t\t}\n\t\t\twriter.endArray();\n\t\t\twriter.flush();\n\t\t\twriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void saveRateablesToFile(List<Rateable> allRateables, File file) throws IOException\n {\n try (ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(file)))\n {\n oos.writeObject(allRateables);\n }\n }",
"private static void saveStudentsList(List<Student> students, File file) throws IOException {\n saveStudentsList(students, new FileOutputStream(file));\n }",
"public void save(List<Task> changed){\n\n try {\n FileWriter fw = new FileWriter(path);\n for (int i = 0; i < changed.size(); i++) {\n\n String temp = (i+1) + \".\" + changed.get(i).list() + System.lineSeparator();\n fw.write(temp);\n }\n fw.close();\n }catch(IOException e){\n e.printStackTrace();\n }\n }",
"private void saveInFile() {\n try {\n FileOutputStream fOut = openFileOutput(FILENAME,\n Context.MODE_PRIVATE);\n\n OutputStreamWriter writer = new OutputStreamWriter(fOut);\n Gson gson = new Gson();\n gson.toJson(counters, writer);\n writer.flush();\n\n fOut.close();\n\n } catch (FileNotFoundException e) {\n throw new RuntimeException();\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }",
"public void saveTaskList(TaskList taskList) throws ChandlerException {\n try {\n FileWriter fileWriter = new FileWriter(filePath);\n for (int i = 0; i < taskList.getSize(); i++) {\n Task currTask = taskList.getIndex(i);\n fileWriter.write(currTask.getSavingString());\n }\n fileWriter.close();\n } catch (IOException e) {\n throw new ChandlerException(ui.saveDataError());\n }\n }",
"@FXML\n\tprivate void onSaveClicked(){\n\t\tPrintWriter writer = null;\n\t\ttry {\n\t\t\tFile file = new File(\"log.txt\");\n\t\t\tif (!file.exists()) {\n\t\t\t\tfile.createNewFile();\n\t\t\t}\n\t\t\tFileWriter fw = new FileWriter(file, true);\n\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\twriter = new PrintWriter(bw);\n\t\t\twriter.println(\"New record\");\n\t\t\tfor (int i = 0; i < list.size(); i++) {\n\n\t\t\t\twriter.println(list.get(i) +\" & \"+ (dat.get(i)));\n\t\t\t}\n\t\t} catch (IOException ioe) {\n\t\t\ttextArea.setText(\"Exception occurred:\" + ioe.getMessage());\n\t\t} finally {\n\t\t\tif (writer != null) {\n\t\t\t\twriter.close();\n\t\t\t}\n\t\t}\n\n\t}",
"private void saveToFile(){\n this.currentMarkovChain.setMarkovName(this.txtMarkovChainName.getText());\n saveMarkovToCSVFileInformation();\n \n //Save to file\n Result result = DigPopGUIUtilityClass.saveDigPopGUIInformationSaveFile(\n this.digPopGUIInformation,\n this.digPopGUIInformation.getFilePath());\n }",
"public void writeData(ArrayList<Task> orderList) {\n try {\n FileWriter fw = new FileWriter(filePath, false);\n for (Task task : orderList) {\n fw.write(task.fileFormattedString() + \"\\n\");\n }\n fw.close();\n\n } catch (IOException e) {\n System.out.println(e.getMessage());\n }\n }",
"private void writeFile(List<ClubPointsDTO> clubs) {\n\t\tFileWriter file = null;\n\t\ttry {\n\n\t\t\tfile = new FileWriter(\"clubs.txt\");\n\n\t\t\t// Escribimos linea a linea en el fichero\n\t\t\tfile.write(\"CLUB\\tPUNTOS\\r\\n\");\n\t\t\tfor(ClubPointsDTO c : clubs)\n\t\t\t\tfile.write(c.getName()+\"\\t\"+c.getPoints()+\"\\r\\n\");\n\n\t\t\tfile.close();\n\n\t\t} catch (Exception ex) {\n\t\t\tthrow new FileException();\n\t\t}\n\t}",
"public abstract void saveToFile(PrintWriter out);",
"private void saveFile(File file){\n\t\ttry{\r\n\t\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(file));\r\n\t\t\t\r\n\t\t\tfor(QuizCard card:cardList){\r\n\t\t\t\twriter.write(card.getQuestion() + \"/\");\r\n\t\t\t\twriter.write(card.getAnswer() + \"\\n\");\r\n\t\t\t}\r\n\t\t\twriter.close();\r\n\t\t} catch (IOException ex){\r\n\t\t\tSystem.out.println(\"couldn't write the cardList out\");\r\n\t\t\tex.printStackTrace();}\r\n\t}",
"public void saveToFile(String filePath) throws IOException {\n\t\tOutputStream file = new FileOutputStream(filePath);\n\t\tOutputStream buffer = new BufferedOutputStream(file);\n\t\tObjectOutput output = new ObjectOutputStream(buffer);\n\n\t\toutput.writeObject(tagList);\n\t\toutput.close();\n\t}",
"private void saveInFile(final String fileName, ArrayList<Habit> habitArray) {\r\n try {\r\n FileOutputStream fos = openFileOutput(fileName, 0);\r\n BufferedWriter out = new BufferedWriter(new OutputStreamWriter(fos));\r\n Gson gson = new Gson();\r\n gson.toJson(habitArray, out);\r\n out.flush();\r\n\r\n fos.close();\r\n } catch (FileNotFoundException e) {\r\n // TODO Auto-generated catch block\r\n throw new RuntimeException();\r\n } catch (IOException e) {\r\n // TODO Auto-generated catch block\r\n throw new RuntimeException();\r\n }\r\n }",
"private static void writeToFile(HighScore[] scoresToSave) throws IOException {\n FileWriter writer = new FileWriter(SCORE_FILE_NAME);\n \n for (int i = 0; i < scoresToSave.length; i++) {\n //Don't write more than the maximum number of scores to save\n if (i > NUMBER_OF_SCORES_TO_SAVE)\n break;\n \n String str = scoresToSave[i].toString();\n writer.write(str);\n writer.write(System.getProperty(\"line.separator\"));\n }\n \n writer.close();\n }",
"public void saveFile()\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString newLine = System.getProperty(\"line.separator\");\n\t\t\n\t\tfor(CSVItem cItem : itemList)\n\t\t{\n\t\t\tsb.append(cItem.buildCSVString()).append(newLine);\n\t\t\t\n\t\t}\n\t\tString fileString = sb.toString();\n\t\t\n\t\t File newTextFile = new File(filePath);\n\n FileWriter fw;\n\t\ttry {\n\t\t\tfw = new FileWriter(newTextFile);\n\t\t\t fw.write(fileString);\n\t\t fw.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n \n\n\t}",
"public void recordOrder(){ \n PrintWriter output = null;\n try{\n output = \n new PrintWriter(new FileOutputStream(\"record.txt\", true));\n }\n catch(Exception e){\n System.out.println(\"File not found\");\n System.exit(0);\n }\n output.println(Tea);//writes into the file contents of String Tea\n output.close();//closes file\n }",
"public void writeToServiceFile()\r\n {\r\n\ttry(ObjectOutputStream toServiceFile = \r\n new ObjectOutputStream(new FileOutputStream(\"listfiles/servicelist.dta\")))\r\n\t{\r\n toServiceFile.writeObject(serviceList);\r\n\t}\r\n\tcatch(NotSerializableException nse)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Service objektene er ikke \"\r\n + \"serialiserbare.\\nIngen registrering på fil!\"\r\n + nse.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n\tcatch(IOException ioe)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Det oppsto en feil ved skriving \"\r\n + \"til fil.\\n\" + ioe.getMessage());\r\n\t}\r\n }",
"private void saveTuple(ArrayList<Tuple> tupleList) {\n\n\t\ttry {\n\t\t\tFileOutputStream fileOutputStream = context.openFileOutput(\n\t\t\t\t\tSAVE_FILE, Context.MODE_PRIVATE);\n\t\t\tOutputStreamWriter outputStreamWriter = new OutputStreamWriter(\n\t\t\t\t\tfileOutputStream);\n\t\t\tGsonBuilder builder = new GsonBuilder();\n\t\t\tGson gson = builder.create();\n\t\t\tgson.toJson(tupleList, outputStreamWriter); // Serialize to Json\n\t\t\toutputStreamWriter.flush();\n\t\t\toutputStreamWriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void writeFile(String file, SLList list) {\n\t\tObjectOutputStream o = null;\n\t\ttry {\n\t\t\to = new ObjectOutputStream(new FileOutputStream(file));\n\t\t} catch (FileNotFoundException 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\n\t\t/**\n\t\t * try/catch block to verify file has been written/created\n\t\t */\n\t\t\n\t\ttry {\n\t\t\to.writeObject(list);\n\t\t\tSystem.out.println(\"File Successfully Created!\");\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\to.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static synchronized void save() {\n\n String team_fil = config.Server.serverdata_file_location + \"/teams.ser\";\n String team_backup = config.Server.serverdata_file_location + \"/teams\";\n\n Calendar dato = new GregorianCalendar();\n\n team_backup += dato.get(Calendar.YEAR) + \"-\" + dato.get(Calendar.DAY_OF_MONTH) + \"-\" + dato.get(Calendar.MONTH) + \"-\";\n team_backup += dato.get(Calendar.HOUR) + \"-\" + dato.get(Calendar.MINUTE) + \".ser\";\n\n admin.logging.globalserverMsg(\"Saving team data to file.\");\n\n try {\n FileOutputStream fil = new FileOutputStream(team_fil);\n FileOutputStream fil_backup = new FileOutputStream(team_backup);\n\n //Skriv til teams.txt\n ObjectOutputStream out = new ObjectOutputStream(fil);\n out.writeObject(team_list);\n out.flush();\n out.close();\n fil.close();\n\n //Skriv til backup fil.\n out = new ObjectOutputStream(fil_backup);\n out.writeObject(team_list);\n out.flush();\n out.close();\n fil.close();\n } catch (Exception e) {\n e.printStackTrace();\n admin.logging.globalserverMsg(\"Error saving team data to file.\");\n }\n }",
"static void save(Schedules schedules, String filename) throws IOException, RBEConfigObjectException\n {\n\t\tFileWriter fw = new FileWriter(filename);\n\t\tschedules.toXML(fw);\n\t\tfw.close();\n }",
"public static void save(String fname, ArrayList<Tweet> tw) {\n\ttry {\n\t FileOutputStream fout = new FileOutputStream(fname);\n\t ObjectOutputStream oos = new ObjectOutputStream(fout);\n\t oos.writeObject(tw);\n\t oos.close();\n\t} catch (FileNotFoundException ex) {\n\t ex.printStackTrace();\n\t} catch (IOException ioex) {\n\t ioex.printStackTrace();\n\t}\n }",
"private void save() {\n if (mCacheFile.exists()) {\n mCacheFile.delete();\n }\n\n try (JsonWriter writer = new JsonWriter(new BufferedWriter(new FileWriter(mCacheFile)))) {\n writer.beginObject();\n writer.name(PRINTER_LIST_NAMES.get(0));\n writer.beginArray();\n for (DiscoveredPrinter printer : mSavedPrinters) {\n printer.write(writer);\n }\n writer.endArray();\n writer.endObject();\n } catch (NullPointerException | IOException e) {\n Log.w(TAG, \"Error while storing to \" + mCacheFile, e);\n }\n }",
"private void saveInFile() {\n try {\n FileOutputStream fos = openFileOutput(FILENAME,\n Context.MODE_PRIVATE);//goes stream based on filename\n BufferedWriter out = new BufferedWriter(new OutputStreamWriter(fos)); //create buffer writer\n Gson gson = new Gson();\n gson.toJson(countbookList, out);//convert java object to json string & save in output\n out.flush();\n fos.close();\n } catch (FileNotFoundException e) {\n throw new RuntimeException();\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }",
"public void savePerRankListPerformanceFile(List<String> ids, List<Double> scores, String prpFile) {\n/* 1455 */ try (BufferedWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(prpFile)))) {\n/* 1456 */ for (int i = 0; i < ids.size(); i++)\n/* */ {\n/* */ \n/* 1459 */ out.write(this.testScorer.name() + \" \" + (String)ids.get(i) + \" \" + scores.get(i));\n/* 1460 */ out.newLine();\n/* */ }\n/* */ \n/* 1463 */ } catch (Exception ex) {\n/* */ \n/* 1465 */ throw RankLibError.create(\"Error in Evaluator::savePerRankListPerformanceFile(): \", ex);\n/* */ } \n/* */ }",
"private void saveToStorage() {\n FileOutputStream fos = null;\n try {\n fos = context.openFileOutput(\"GeoFences\", Context.MODE_PRIVATE);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n oos.writeObject(currentList);\n oos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private static void saveToFile(ArrayList<Favourite> allFav) {\n\t\t\n\t\tBufferedWriter writer=null;\n\t\t\n\t\ttry {\n\t\t\twriter=new BufferedWriter(new FileWriter(Constants.KEY_FAV_FILE));\n\t\t\tString save=\"\";\n\t\t\tfor(Favourite f:allFav) {\n\t\t\t\tsave+=fileFormat(f);\n\t\t\t}\n\t\t\twriter.write(save);\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t\n\t\t}finally{\n\t\tif(writer!=null){\n\t\t\ttry{\n\t\t\t\twriter.close();\n\t\t\t}catch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\n\t\n}\n\n\t\t\n\t}",
"public void writeToBookingListFile()\r\n {\r\n\ttry(ObjectOutputStream toBookingListFile = \r\n new ObjectOutputStream(new FileOutputStream(\"listfiles/bookinglist.dta\")))\r\n\t{\r\n toBookingListFile.writeObject(bookingList);\r\n bookingList.saveStaticBookingRunNr(toBookingListFile);\r\n\t}\r\n\tcatch(NotSerializableException nse)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Booking objektene er ikke \"\r\n + \"serialiserbare.\\nIngen registrering på fil!\"\r\n + nse.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n\tcatch(IOException ioe)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Det oppsto en feil ved skriving \"\r\n + \"til fil.\\n\" + ioe.getMessage());\r\n\t}\r\n }",
"private void saveTasks() {\n try {\n Writer writer = new Writer(new File(TASKS_FILE));\n for (Task t1: todoList.getListOfTasks()) {\n writer.write(t1);\n }\n writer.close();\n System.out.println(\"Tasks saved to file \" + TASKS_FILE);\n } catch (FileNotFoundException e) {\n System.out.println(\"Unable to save tasks to \" + TASKS_FILE);\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n }",
"public static void save() {\r\n\t\ttry {\r\n\t\t\tFile csv = new File(\"src/transaction.csv\");\r\n\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(csv, false));\r\n\t\t\tbw.write(\"type,account number,amount,year,month,date,cleared\");\r\n\t\t\tbw.newLine();\r\n\t\t\tfor (int i = 0; i < transList.size(); i++) {\r\n\t\t\t\tbw.write(transList.get(i).toFile());\r\n\t\t\t\tbw.newLine();\r\n\t\t\t}\r\n\t\t\tbw.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void save() {\n\t\tFileOutputStream fos;\n\t\ttry {\n\t\t\tfos = new FileOutputStream(\"studentData.dat\");\n\n\t\t\tObjectOutputStream oos;\n\t\t\ttry {\n\t\t\t\toos = new ObjectOutputStream(fos);\n\n\t\t\t\toos.writeObject(studentList);\n\t\t\t\toos.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"File is finished writing to the hard drive\");\n\t}",
"public void saveToFile() {\n FileOutputStream fos = null;\n try {\n //write the object into file\n fos = new FileOutputStream(file);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n oos.writeObject(travelGUI.getTravelAgent());\n oos.flush();\n oos.close();\n }\n catch (IOException ioe) {\n System.out.println(ioe.getMessage());\n if (fos != null) {\n try {\n fos.close();\n }\n catch (IOException ioe2) {\n System.out.println(ioe2.getMessage());\n }\n }\n return;\n }\n finally {\n if (fos != null) {\n try {\n fos.close();\n }\n catch (IOException ioe2) {\n System.out.println(ioe2.getMessage());\n }\n }\n }\n if (fos != null) {\n try {\n fos.close();\n }\n catch (IOException ioe2) {\n System.out.println(ioe2.getMessage());\n }\n }\n }",
"private void saveInFile() {\n try {\n FileOutputStream fos = openFileOutput(FILENAME, Context.MODE_PRIVATE);\n\n BufferedWriter out = new BufferedWriter(new OutputStreamWriter(fos));\n\n Gson gson = new Gson();\n Log.d(\"PersonList\", personList.toString());\n gson.toJson(personList, out);\n out.flush();\n\n fos.close();\n\n } catch (FileNotFoundException e){\n throw new RuntimeException();\n } catch (IOException e){\n e.printStackTrace();\n }\n\n }",
"private void writeBatchToFile(ArrayList<SensorEntry> batch) {\n\n\t\tFile file = new File(currFolder + \"/\" + entriesRecorded + \".csv\");\n\n\t\ttry {\n\n\t\t\tFileOutputStream outputStream = new FileOutputStream(file);\n\n\t\t\tif (!file.exists()) {\n\t\t\t\tfile.createNewFile();\n\t\t\t\toutputStream.write(Constants.INS_DATA_HEADER.getBytes());\n\t\t\t}\n\n\t\t\tfor (SensorEntry e : batch)\n\t\t\t\toutputStream.write((e.toRawString() + \",\" + e.getTimeRecorded() + \"\\n\").getBytes());\n\n\t\t\toutputStream.close();\n\n\t\t\tsetsOfEntriesRecorded++;\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"@Override\n public void saveToFile(List<Product> elements) throws IOException {\n List<String> collect = elements.stream()\n .map(product -> product.toString()) //z wykorzystanie method referencje .map(String::toString)\n .collect(Collectors.toList());\n\n //korzystamy z new io (nio patrz import) a nie jak wczesniej z io (we wprowadzeniu) bo latwiejsze\n Files.write(Paths.get(path), collect);\n\n\n }",
"public void saveScores(){\n try {\n File f = new File(filePath, highScores);\n FileWriter output = new FileWriter(f);\n BufferedWriter writer = new BufferedWriter(output);\n\n writer.write(topScores.get(0) + \"-\" + topScores.get(1) + \"-\" + topScores.get(2) + \"-\" + topScores.get(3) + \"-\" + topScores.get(4));\n writer.newLine();\n writer.write(topName.get(0) + \"-\" + topName.get(1) + \"-\" + topName.get(2) + \"-\" + topName.get(3) + \"-\" + topName.get(4));\n writer.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"static void recordProcess() {\n try {\n PrintWriter output = new PrintWriter(new FileWriter(file, true));\n output.print(huLuWaList.size() + \" \");\n lock.lock();\n for (Creature creature : huLuWaList) {\n output.print(creature.getCreatureName() + \" \" + creature.getX() + \" \" + creature.getY()+\" \");\n }\n output.print(enemyList.size() + \" \");\n for (Creature creature : enemyList) {\n output.print(creature.getCreatureName() + \" \" + creature.getX() + \" \" + creature.getY()+\" \");\n }\n output.println();\n output.close();\n lock.unlock();\n }catch (Exception ex){\n System.out.println(ex);\n }\n }",
"private void saveHistoryToFile(File file) {\n JSONObject head = new JSONObject();\n\n // Meta information about the run\n JSONObject meta = new JSONObject();\n meta.put(\"TotalCycles\", this.totalCycles == -1 ? getEnvironment().getTime() : this.totalCycles);\n meta.put(\"TotalPackets\", this.totalPackets);\n meta.put(\"PacketsDelivered\", this.historyPackets.values().stream()\n .flatMap(Collection::stream)\n .filter(p -> p.mode == PacketAction.Mode.Delivery)\n .count());\n meta.put(\"EnergyConsumed\", UserPanel.getInstance().score);\n\n\n JSONObject moves = new JSONObject();\n moves.put(\"Key\", new JSONArray(new String[] {\"Cycle\", \"AgentID\", \"FromX\", \"FromY\", \"ToX\", \"ToY\"}));\n moves.put(\"Data\", new JSONArray(historyMoves.entrySet().stream()\n .flatMap(entry -> entry.getValue().stream()\n .map(l -> l.toJSONArray(entry.getKey())))\n .collect(Collectors.toList())));\n\n\n JSONObject packetPickup = new JSONObject();\n packetPickup.put(\"Key\", new JSONArray(new String[] {\"Cycle\", \"AgentID\", \"PacketX\", \"PacketY\"}));\n packetPickup.put(\"Data\", new JSONArray(historyPackets.entrySet().stream()\n .flatMap(entry -> entry.getValue().stream()\n .filter(p -> p.mode == PacketAction.Mode.Pickup)\n .map(p -> p.toJSONArray(entry.getKey())))\n .collect(Collectors.toList())));\n\n\n JSONObject packetDelivery = new JSONObject();\n packetDelivery.put(\"Key\", new JSONArray(new String[] {\"Cycle\", \"AgentID\", \"DestinationX\", \"DestinationY\"}));\n packetDelivery.put(\"Data\", new JSONArray(historyPackets.entrySet().stream()\n .flatMap(entry -> entry.getValue().stream()\n .filter(p -> p.mode == PacketAction.Mode.Delivery)\n .map(l -> l.toJSONArray(entry.getKey())))\n .collect(Collectors.toList())));\n\n\n JSONObject packetDrop = new JSONObject();\n packetDrop.put(\"Key\", new JSONArray(new String[] {\"Cycle\", \"AgentID\", \"DropX\", \"DropY\"}));\n packetDrop.put(\"Data\", new JSONArray(historyPackets.entrySet().stream()\n .flatMap(entry -> entry.getValue().stream()\n .filter(p -> p.mode == PacketAction.Mode.Drop)\n .map(l -> l.toJSONArray(entry.getKey())))\n .collect(Collectors.toList())));\n\n\n JSONObject energyUpdate = new JSONObject();\n energyUpdate.put(\"Key\", new JSONArray(new String[] {\"Cycle\", \"AgentID\", \"Operator\", \"Percentage\"}));\n energyUpdate.put(\"Data\", new JSONArray(historyEnergy.entrySet().stream()\n .flatMap(entry -> entry.getValue().stream()\n .map(l -> l.toJSONArray(entry.getKey())))\n .collect(Collectors.toList())));\n\n\n head.put(\"Meta\", meta);\n head.put(\"Moves\", moves);\n head.put(\"PacketPickups\", packetPickup);\n head.put(\"PacketDeliveries\", packetDelivery);\n head.put(\"PacketDrops\", packetDrop);\n head.put(\"EnergyUpdates\", energyUpdate);\n\n try {\n FileWriter writer = new FileWriter(file);\n head.write(writer, 0, 0);\n writer.close();\n } catch (IOException e) {\n System.err.println(\"Failed to write history to file \" + file.getAbsolutePath());\n e.printStackTrace();\n }\n }",
"public void saveFile() throws FileNotFoundException {\r\n try {\r\n PrintWriter out = new PrintWriter(FILE_NAME);\r\n //This puts back the labels that the loadFile removed\r\n out.println(\"date,cust_email,cust_location,product_id,product_quantity\");\r\n int i = 0;\r\n\r\n while (i < orderInfo.size()) {\r\n String saved = orderInfo.get(i).toString();\r\n out.println(saved);\r\n i++;\r\n }\r\n out.close();\r\n } catch (FileNotFoundException e) {\r\n }\r\n\r\n }",
"public void saveToFile(String fileName, ArrayList<String> namesList, ArrayList<ArrayList<Double>> numList)\r\n {\r\n try\r\n {\r\n fileName = fileName + \"/\" + namesList.size() + \"Cities.txt\";\r\n FileWriter filePointer = new FileWriter(fileName, false); //false will replace what is there (append)\r\n PrintWriter output = new PrintWriter(filePointer);\r\n for(int i = 0; i < namesList.size(); i++)\r\n {\r\n String line = namesList.get(i) + \" \" \r\n + numList.get(i).get(0) + \" \" + numList.get(i).get(1) + \"\\n\";\r\n output.write(line);\r\n }\r\n output.close();\r\n }\r\n catch(IOException exp)\r\n {\r\n JOptionPane.showMessageDialog(null, \"Points not Saved\" \r\n + \"Save Error\" + JOptionPane.WARNING_MESSAGE);\r\n }\r\n }",
"public static void saveTestSequenceToJson(TestSequenceList testSequenceList, String absoluteFilePath) {\n Gson gson = new GsonBuilder().enableComplexMapKeySerialization().setPrettyPrinting().create();\r\n String jsonString = gson.toJson(testSequenceList);\r\n try {\r\n FileWriter fileWriter = new FileWriter(absoluteFilePath);\r\n fileWriter.write(jsonString);\r\n System.out.println(\"File saved successfully\");\r\n fileWriter.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public void task_1_write(List<MonitoredData> timeline) throws IOException {\n FileWorker.writeFile(1, timeline, 0, null, null, null);\n }",
"String saveToFile () throws Exception {\n\n File backupFile = new File(\"../dataBackup.txt\");\n\n// checks if backup file exists, if yes, it attempts to delete it\n if (backupFile.exists() && !backupFile.delete())\n return (\"Save terminated: backup could not be deleted\");\n// attempts to rename file to backup file\n if (!file.renameTo(backupFile))\n return (\"Save terminated: backup could not be created\");\n\n// creates custom writer\n Writer writer = new Writer(new FileWriter(file));\n\n// cycles through all timelines and all their events, writing all into the same file\n for (Timeline timeline : timelines) {\n writer.writeTimeline(timeline);\n for (Event event : timeline.events) {\n writer.writeEvent(event);\n }\n }\n\n writer.close();\n return (\"Save finished successfully\");\n }",
"public static void write(File file, WorkflowTrace trace) throws FileNotFoundException, JAXBException, IOException {\n FileOutputStream fos = new FileOutputStream(file);\n WorkflowTraceSerializer.write(fos, trace);\n }",
"void saveSet() {\n if( file==null ) {\n int returnVal = fc.showSaveDialog(this);\n if (returnVal != JFileChooser.APPROVE_OPTION) {\n System.out.println(\"Open command cancelled by user.\");\n return;\n }\n file = fc.getSelectedFile();\n }\n System.out.println(\"Saving to: \" + file.getName());\n try {\n int count = tabbedPane.getTabCount();\n ArrayList l = new ArrayList();\n for(int i=0; i< count; i++) {\n rrpanel= (RoombaRecorderPanel)tabbedPane.getComponentAt(i);\n l.add(rrpanel.copy());\n }\n FileOutputStream fos = new FileOutputStream(file);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n //oos.writeObject(loopButton);\n //oos.writeObject(\n oos.writeObject(l);\n oos.close();\n } catch( Exception e ) {\n System.out.println(\"Save error \"+e);\n }\n }",
"public void saveFile(TaskList tasklist) {\n try {\n String cwd = System.getProperty(\"user.dir\");\n FileWriter fw = new FileWriter(cwd + filePath);\n for (Task task : tasklist.getTasks()) {\n String data = task.getData();\n fw.write(data + System.lineSeparator());\n }\n fw.close();\n } catch (IOException e) {\n System.out.println(\"Something went wrong: \" + e.getMessage());\n }\n\n }",
"public void save() throws FileNotFoundException {\n PrintWriter myWriter = new PrintWriter(\"duke.txt\");\n for (Task t : TaskList.getTasklist()) {\n myWriter.println(t.toString());\n }\n myWriter.flush();\n myWriter.close();\n }",
"private void writeToFile(String pathName,Object logs) {\r\n try {\r\n File save = new File(pathName);\r\n FileOutputStream fileOutputStream = new FileOutputStream(save);\r\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream);\r\n objectOutputStream.writeObject(logs);\r\n // System.out.println(\"write successful for\"+pathName);\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"private static void saveIntoFile() throws IOException {\n\n\t\tDateFormat format = new SimpleDateFormat(\"yyyy.MM.dd.HH.mm.ss\");\n\t\tString fileName = \"./ipmi.\" + format.format(new Date()) + \".log\";\n\n\t\tBasicConsumptionList file = new BasicConsumptionList();\n\t\tlogger.debug(\"file:\" + fileName);\n\t\tfile.setWriter(new FileWriter(fileName));\n\n\t\tSystem.err.println(ipmi.execute(Command.IPMI_SENSOR_LIST));\n\n\t\twhile (true) {\n\t\t\tDouble watts = ipmi.getWatt();\n\t\t\tfile.addData(System.currentTimeMillis(), watts);\n\t\t\tfile.commit();\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tlogger.trace(\"\", e);\n\t\t\t}\n\t\t}\n\t}",
"public static void writeJsonToFile(List<Object> objLst, File file) throws Exception {\n writeJsonToFile(objLst, file, false);\n }",
"public void saveProgramToFile(ArrayList<String> programNameList, File file) throws IOException {\n\t\tsqlDb.saveProgramToFile(programNameList, file);\n\t}",
"public void writeScores() throws IOException {\n if (this.list.isPresent() && this.toSave) {\n try (DataOutputStream out = new DataOutputStream(new FileOutputStream(this.file))) {\n for (final Pair<String, Integer> p : this.list.get()) {\n out.writeUTF(p.getX());\n out.writeInt(p.getY().intValue());\n }\n this.toSave = false;\n } catch (IOException e) {\n System.out.println(\"IOException on writing scores\");\n }\n }\n\n }",
"private static void writeToFilePriceHistory() throws IOException {\n FileWriter write = new FileWriter(path3, append);\n PrintWriter print_line = new PrintWriter(write);\n ArrayList<Product> stock = Inventory.getStock();\n for (int i = 0; i < stock.size(); i++) {\n Product product = (Product) stock.get(i);\n int UPC = product.getUpc();\n ArrayList<String> priceH = product.price.getArrayPriceHistory();\n for (int j = 0; j < priceH.size(); j++) {\n String price = priceH.get(j);\n textLine = UPC + \" \" + price;\n print_line.printf(\"%s\" + \"%n\", textLine);\n }\n }\n print_line.close();\n }",
"public void writeToHotelRoomListFile()\r\n {\r\n\ttry(ObjectOutputStream toHotelRoomListFile = \r\n new ObjectOutputStream(new FileOutputStream(\"listfiles/hotelroomlist.dta\")))\r\n\t{\r\n toHotelRoomListFile.writeObject(hotelRoomList);\r\n hotelRoomList.saveStaticPrice(toHotelRoomListFile);\r\n\t}\r\n\tcatch(NotSerializableException nse)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Hotelrom objektene er ikke \"\r\n + \"serialiserbare.\\nIngen registrering på fil!\"\r\n + nse.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n\tcatch(IOException ioe)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Det oppsto en feil ved skriving \"\r\n + \"til fil.\\n\" + ioe.getMessage());\r\n\t}\r\n }",
"public void saveTimeline(Timeline timeline, File file) throws Exception {\n\n\t\tJAXBContext context = JAXBContext.newInstance(Timeline.class);\n\t\tMarshaller marshaller = context.createMarshaller();\n\t\tmarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\t\tmarshaller.marshal(timeline, file);\n\n\t}",
"public static void writeToFile(String fileName, ArrayList<String> linesList) throws IOException\n {\n PrintWriter printWriter = new PrintWriter(new FileWriter(fileName));\n for(String currentLine : linesList)\n {\n printWriter.println(currentLine);\n }\n printWriter.close();\n }",
"public void writer(List<String> toStore) throws IOException{\n //creates writer and clears file\n PrintWriter writer = new PrintWriter(\"output.txt\", \"UTF-8\");\n //for each loop to store all the values in the file into the file named output.txt\n for(String s : toStore)\n //stores the strings for outputting\n writer.println(s);\n //closes the writer and outputs to the file\n writer.close();\n }",
"private static void saveLogs(boolean append) {\n\t\ttry {\n\t\t\tif (alLogs!=null && alLogs.size()>0) {\n\t\t\t\t// Convert the ArrayList to string array\n\t\t\t\tString[] arrLogs = new String[alLogs.size()];\n\t\t\t\tarrLogs = alLogs.toArray(arrLogs);\n\n\t\t\t\t// Open the log\n\t\t\t\tFileWriter fileWriterLog = new FileWriter(FILE_LOG, append);\n\n\t\t\t\t// User BufferedWriter to add new line\n\t\t\t\tBufferedWriter bufferedWriterLog = new BufferedWriter(fileWriterLog);\n\n\t\t\t\t// Go through all the content and write them to the file\n\t\t\t\tfor(int ix=0; ix < arrLogs.length; ix++) {\n\t\t\t\t\t// Write the current log\n\t\t\t\t\tbufferedWriterLog.write(arrLogs[ix]);\n\t\t\t\t\t// One log one line\n\t\t\t\t\tbufferedWriterLog.newLine();\n\t\t\t\t}\n\n\t\t\t\t// Always close files.\n\t\t\t\tbufferedWriterLog.close();\n\t\t\t}\n\t\t}\n\t\tcatch(FileNotFoundException ex) {\n\t\t\tSystem.out.println(\"Unable to open file '\" + FILE_LOG + \"'\");\n\t\t}\n\t\tcatch(IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public void saveToDoList() {\n try {\n jsonWriter.open();\n jsonWriter.write(toDoList);\n jsonWriter.close();\n\n System.out.println(\"Saved \" + toDoList.getName() + \" to \" + JSON_STORE);\n } catch (FileNotFoundException e) {\n System.out.println(\"Unable to write to file: \" + JSON_STORE);\n }\n }",
"private void writeArrayToFile(Warship[] wsArr, FileOutputStream fos) throws Exception {\n\t\tPrintWriter pw = null;\n\t\ttry {\n\t\t\tpw = new PrintWriter(fos);\n\t\t\tfor (Warship ws : wsArr) {\n\t\t\t\tif (ws != null) {\n\t\t\t\t\tpw.println(ws);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tthrow new Exception(e.getMessage());\n\t\t} finally {\n\t\t\tif (pw != null) {\n\t\t\t\tpw.close();\n\t\t\t}\n\t\t}\n\t}",
"public void saveTasks() {\n try {\n BufferedWriter taskWriter = new BufferedWriter(new FileWriter(path));\n String tasks = \"\";\n for (Task task : TaskList.getTaskLists()) {\n tasks += task.toSaveString() + \"\\n\";\n }\n taskWriter.write(tasks);\n taskWriter.close();\n } catch (IOException e) {\n System.out.println(\"Sorry Boss, \" + e.getMessage());\n }\n }",
"public static void save(){\n\t\tif(GUIReferences.currentFile != null) {\n\t\t\txml.XMLSaver.saveSensorList(GUIReferences.currentFile);\n\t\t\tGUIReferences.saveMenuItem.setEnabled(false);\n\t\t} else {\n\t\t\tsaveAs();\n\t\t}\n\t}",
"public void writeList() {\n try{\n PrintWriter out = new PrintWriter(new FileWriter(\"OutFile.txt\"));\n\n for (int i = 0; i < SIZE; i++) {\n // The get(int) method throws IndexOutOfBoundsException, which must be caught.\n out.println(\"Value at: \" + i + \" = \" + list.get(i));\n }\n out.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"public void writeToFile(TaskList tasks) {\n try {\n FileWriter fw = new FileWriter(filePath);\n for (Task t : tasks.getListOfTasks()) {\n fw.write(t.getRecordString() + \"\\n\");\n }\n fw.close();\n } catch (IOException e) {\n System.out.println(\"Error writing to data file.\");\n }\n }",
"public void tempSaveToFile() {\n try {\n ObjectOutputStream outputStream = new ObjectOutputStream(\n this.openFileOutput(MenuActivity2048.TEMP_SAVE_FILENAME, MODE_PRIVATE));\n outputStream.writeObject(boardManager);\n outputStream.close();\n } catch (IOException e) {\n Log.e(\"Exception\", \"File write failed: \" + e.toString());\n }\n }",
"public void saveToFile()\n\t{\t\n\t\tsetCourseToFileString(courseToFileString);\n\t\t\ttry \n\t {\n\t FileWriter fw = new FileWriter(fileName);\n\t fw.write (this.getCourseToFileString ( ));\n\t for(Student b : this.getStudents ( ))\t \t\n\t \tfw.write(b.toFileString ( ));\n\t \tfw.close ( );\n\t } \n\t catch (Exception ex) \n\t {\n\t ex.printStackTrace();\n\t }\n\t\t\tthis.saveNeed = false;\n\n\t}",
"public static void writeFile(List<Task> database) {\r\n assert database != null: \"Storage.writeFile(): database cannot be null\";\r\n File dir = new File(\"./tmp/data\");\r\n try {\r\n FileWriter fw = new FileWriter(new File(dir, \"storage.txt\"));\r\n for (Task task : database) {\r\n assert task != null: \"Storage.writeFile(): task to be added cannot be null\";\r\n fw.write(task.serialize() + \"\\n\");\r\n }\r\n fw.close();\r\n } catch (IOException e) {\r\n throw new Error(\"Something went wrong: \" + e.getMessage());\r\n }\r\n }",
"public void saveReport() {\n\t\ttry {\n\t\t\tPrintWriter out = new PrintWriter(new FileOutputStream(reportFile));\n\t\t\tout.println(record.reportToString());\n\t\t\tout.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void saveHistory(OperatorSelectionHistory history,String filename){\n try(ObjectOutputStream os = new ObjectOutputStream(new FileOutputStream(filename));){\n os.writeObject(history);\n os.close();\n } catch (IOException ex) {\n Logger.getLogger(IOSelectionHistory.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"void write(File file) throws IOException {\n Files.createParentDirs(file);\n FileWriter fileWriter = new FileWriter(file);\n try {\n for (Map.Entry<String, Status> record : records.entrySet()) {\n fileWriter.write(String.format(\"%s,%s\", record.getValue(), record.getKey()));\n fileWriter.write(\"\\n\");\n }\n } finally {\n fileWriter.close();\n }\n }",
"private void exportFile()\n\t{\n\t\ttry\n\t\t{\n\t\t\tdrinkListFileOutput = new BufferedWriter(new FileWriter(drinkListFile));\n\t\t\tdrinkListFileOutput.write(exportDrinkList);//insert string of drinks\n\t\t\tdrinkListFileOutput.close();\n\t\t\tJOptionPane.showMessageDialog(null, \"Successfully saved drinks\");\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\te.toString();//change this\n\t\t\tJOptionPane.showMessageDialog(null, \"Drink save error: \" + e.toString());//change this);\n\t\t}\n\n\n\n\t}",
"public void save() {\n\t\tWriteFile data = new WriteFile( this.name + \".txt\" );\n\t\ttry {\n\t\t\t data.writeToFile(this.toString());\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.out.println(\"Couldn't print to file\");\n\t\t}\n\t}",
"public void writeVisits() {\n try {\n FileOutputStream fileOut = new FileOutputStream(\"temp/visits.ser\");\n ObjectOutputStream out = new ObjectOutputStream(fileOut);\n out.writeObject(visits);\n out.close();\n fileOut.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"public static void saveBlockESPList(){\n try {\n \tCE_ForgeLoader.instance().log(\"Writting BlockESP block list configuration file...\");\n File file = new File( someDir, \"\" );\n BufferedWriter bufferedwritter = new BufferedWriter( new FileWriter( file ) );\n for( int i : BlockESP.espList ) {\n bufferedwritter.write( i + \"\\r\\n\" );\n }\n bufferedwritter.close( );\n\n } catch( Exception ex ) {\n \tCE_ForgeLoader.instance().log(\"Can't write BlockESP configuration file! Custom blocks for X-Ray will be disabled!\");\n \tCE_ForgeLoader.instance().log(\"Error in CE init: \" + ex.toString( ) );\n }\n }",
"private void saveIds(ArrayList<String> idList) {\n\n\t\ttry {\n\t\t\tFileOutputStream fileOutputStream = context.openFileOutput(\n\t\t\t\t\tSAVE_FILE, Context.MODE_PRIVATE);\n\t\t\tOutputStreamWriter outputStreamWriter = new OutputStreamWriter(\n\t\t\t\t\tfileOutputStream);\n\t\t\tGsonBuilder builder = new GsonBuilder();\n\t\t\tGson gson = builder.create();\n\t\t\tgson.toJson(idList, outputStreamWriter); // Serialize to Json\n\t\t\toutputStreamWriter.flush();\n\t\t\toutputStreamWriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void rewriteLocationList(List<Location> newLocationList) {\n Log.d(\"debugMode\", \"writing new contents\");\n for (Location location : newLocationList) {\n String line = \"\\n\" + location.returnFull();\n byte[] bytes = line.getBytes();\n\n FileOutputStream out;\n try {\n Log.d(\"debugMode\", location.returnFull());\n out = openFileOutput(\"Locations.txt\", MODE_APPEND);\n out.write(bytes);\n out.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }",
"private static void writeToOrder() throws IOException {\n FileWriter write = new FileWriter(path5, append);\n PrintWriter print_line = new PrintWriter(write);\n ArrayList<Order> orders = Inventory.getOrderHistory();\n for (int i = 0; i < orders.size(); i++) {\n Order o = (Order) orders.get(i);\n\n String orderNum = String.valueOf(o.getOrderNumber());\n String UPC = String.valueOf(o.getUpc());\n String productName = o.getProductName();\n String distName = o.getDistributorName();\n String cost = String.valueOf(o.getCost());\n String quantity = String.valueOf(o.getQuantity());\n String isProcesed = String.valueOf(o.isProcessed());\n\n textLine =\n orderNum + \", \" + UPC + \", \" + quantity + \",\" + productName + \", \" + distName + \", \" + cost\n + \", \" + isProcesed;\n print_line.printf(\"%s\" + \"%n\", textLine);\n\n }\n print_line.close();\n\n }",
"private static void writeToStudentsFile() throws IOException{\n\t\tFileWriter fw = new FileWriter(STUDENTS_FILE, false); //overwrites the students.txt file\n\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\n\t\tIterator<StudentDetails> iter = ALL_STUDENTS.listIterator(1); //Get all StudentDetails objects from index 1 of ALL_STUDENTS. This is because the value at index 0 is just a dummy student\n\t\twhile(iter.hasNext()){\n\t\t\tStudentDetails student = iter.next();\n\t\t\tbw.write(student.ParseForTextFile()); //writes the Parsed Form of the StudentDetails object to the students.txt file\n\t\t}\n\t\t\n\t\tbw.close();\n\t}",
"private void saveLocalFile(ByteArrayOutputStream out) {\n //sava in local files\n FileWriter fw;\n File file = new File(\"/home/shaowen2/testdata/\" + \"vm\" +servers.getServerAddress().substring(15, 17) +\"-ouput.log\");\n\n try {\n if (!file.exists()) {\n file.createNewFile();\n }\n fw = new FileWriter(file);\n BufferedWriter bw = new BufferedWriter(fw);\n bw.write(out.toString());\n //bw.write(\"\\n\" + \"Query Count:\" + count + \"|| Time:\" + new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(new Date()) + \"\\n\");\n bw.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void save() {\n CSVWriter csvWriter = new CSVWriter();\n csvWriter.writeToTalks(\"phase1/src/Resources/Talks.csv\", this.getTalkManager()); //Not implemented yet\n }",
"public void save(List<T> data) {\n\t\ttry {\n\t\t\tFile file = new File(getFileLocation());\n\t\t\tif (!file.getParentFile().exists()) {\n\t\t\t\tfile.getParentFile().mkdirs();\n\t\t\t}\n\t\t\tFileWriter fw = new FileWriter(getFileLocation());\n\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\tbw.write(gson.toJson(data));\n\t\t\tbw.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void saveOffers() {\n System.out.println(this.currentChild);\n // TODO [assignment_final] ulozeni aktualnich nabidek do souboru (vyberte si nazev souboru a format jaky uznate za vhodny - CSV nebo JSON)\n }",
"private void writeAll(){\n try (BufferedWriter ignored = new BufferedWriter(new FileWriter(this.fileName))) {\n Iterable<E> values=entities.values();\n values.forEach(this::writeToFile);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }"
] | [
"0.6976458",
"0.6780514",
"0.6712326",
"0.6698151",
"0.6583289",
"0.651682",
"0.64076895",
"0.6385375",
"0.63649875",
"0.6343354",
"0.6299355",
"0.6261202",
"0.6203979",
"0.61540854",
"0.6133156",
"0.61277026",
"0.61256206",
"0.61106",
"0.6107782",
"0.60980153",
"0.6097098",
"0.60950387",
"0.6088875",
"0.60634595",
"0.6056366",
"0.6043761",
"0.6042991",
"0.60372186",
"0.6028617",
"0.6017728",
"0.60121244",
"0.600115",
"0.5984657",
"0.59773093",
"0.5971599",
"0.5970856",
"0.5962575",
"0.59551126",
"0.5951977",
"0.59438145",
"0.59419477",
"0.59404266",
"0.59389067",
"0.5935572",
"0.59301925",
"0.59138846",
"0.5913242",
"0.5904049",
"0.5886055",
"0.5873851",
"0.5870495",
"0.58688647",
"0.58677804",
"0.5856606",
"0.5821504",
"0.58197546",
"0.5808939",
"0.5807818",
"0.5806613",
"0.58009183",
"0.5779593",
"0.57760316",
"0.5775879",
"0.5770047",
"0.57640237",
"0.5758997",
"0.5757746",
"0.57501805",
"0.57459223",
"0.57456887",
"0.5745598",
"0.5743884",
"0.57428336",
"0.57402515",
"0.57258105",
"0.5700429",
"0.5697898",
"0.5696708",
"0.56957996",
"0.56939894",
"0.56935966",
"0.5691043",
"0.5690589",
"0.56897515",
"0.5689064",
"0.5670967",
"0.5669388",
"0.5667845",
"0.5667264",
"0.5665611",
"0.5658557",
"0.5653214",
"0.56494826",
"0.5647297",
"0.5643994",
"0.56373376",
"0.56326044",
"0.56312776",
"0.56278545",
"0.5627532"
] | 0.81654656 | 0 |
Read trace list from a file | public static TraceList readFrom(File file) throws IOException{
String fileName=file.getName();
String formatName=fileName.contains(".")?fileName.substring(fileName.indexOf('.')+1):"png";
for(TraceListFormat next:ServiceLoader.load(TraceListFormat.class)){
if(formatName.endsWith(next.getSuffix())){
return next.read(file);
}
}
return Extractor.getDefault().extract(ImageIO.read(file));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"TraceList read(File file) throws IOException;",
"public static ArrayList<MonitoredData> readFileData(){\n ArrayList<MonitoredData> data = new ArrayList<>();\n List<String> lines = new ArrayList<>();\n try (Stream<String> stream = Files.lines(Paths.get(\"Activities.txt\"))) {\n lines = stream\n .flatMap((line->Stream.of(line.split(\"\\t\\t\"))))\n .collect(Collectors.toList());\n for(int i=0; i<lines.size()-2; i+=3){\n MonitoredData md = new MonitoredData(lines.get(i), lines.get(i+1), lines.get(i+2));\n data.add(md);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n //data.forEach(System.out::println);\n return data;\n }",
"public static List<String> readLogRec(File file)throws Exception{\n\t\tBufferedReader br = null;\n\t\ttry {\n\t\t\tbr = new BufferedReader(\n\t\t\t\tnew InputStreamReader(new FileInputStream(file))\t\n\t\t\t);\n\t\t\tList<String> list \n\t\t\t\t= new ArrayList<String>();\n\t\t\t\n\t\t\tString line = null;\n\t\t\twhile((line=br.readLine())!=null){\n\t\t\t\tlist.add(line);\n\t\t\t}\n\t\t\treturn list;\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow e;\n\t\t} finally{\n\t\t\tif(br != null){\n\t\t\t\tbr.close();\n\t\t\t}\n\t\t}\n\t}",
"public List<CorruptionIndex> readFromFile(String filePath){\n return null;\n }",
"public static List<ArrivalRateTuple> readFileToList(File file, double offset) throws IOException {\r\n\t\tBufferedReader br = new BufferedReader(new FileReader(file));\r\n\t\tList<ArrivalRateTuple> arrRates = new ArrayList<ArrivalRateTuple>();\r\n\t\t// read arrival rate tuples\r\n\t\ttry {\r\n\t\t\tarrRates = ArrivalRateTuple.readList(br, offset);\r\n\t\t\t// error reading tuples, it's probably a request time stamp file\r\n\t\t} catch (IndexOutOfBoundsException e) {\r\n\t\t\tLOG.log(Level.SEVERE, \"Index out of bounds, wrong format.\");\r\n\t\t}\r\n\t\tif (arrRates.size() == 0) {\r\n\t\t\tbr.close();\r\n\t\t\tbr = new BufferedReader(new FileReader(file));\r\n\t\t\tarrRates = readRequestTimeStamps(br, offset);\r\n\t\t}\r\n\t\tbr.close();\r\n\t\treturn arrRates;\r\n\t}",
"@NonNull\n static ChangeRecords load(File file) throws IOException {\n ChangeRecords changeRecords = new ChangeRecords();\n List<String> rawRecords = Files.readLines(file, Charsets.UTF_8);\n for (String rawRecord : rawRecords) {\n StringTokenizer st = new StringTokenizer(rawRecord, \",\");\n if (st.countTokens() != 2) {\n throw new IOException(\"Invalid incremental change record : \" + rawRecord);\n }\n changeRecords.add(Status.valueOf(st.nextToken()), st.nextToken());\n }\n return changeRecords;\n }",
"public static final List<SignalEntry> read(File file) {\r\n List<SignalEntry> result = new ArrayList<SignalEntry>();\r\n LineNumberReader reader = null;\r\n try {\r\n reader = new LineNumberReader(new FileReader(file));\r\n String line;\r\n do {\r\n line = reader.readLine();\r\n if (\"Entry:\".equals(line)) {\r\n String algorithm = unquote(reader.readLine());\r\n String parameterName = unquote(reader.readLine());\r\n String parameterValue = unquote(reader.readLine());\r\n result.add(new SignalEntry(algorithm, parameterName, parameterValue));\r\n }\r\n } while (null != line);\r\n reader.close();\r\n } catch (IOException e) {\r\n if (null != reader) {\r\n try {\r\n reader.close();\r\n } catch (IOException e1) {\r\n }\r\n }\r\n }\r\n return result;\r\n }",
"public static List<String> readLineFromFile(File file) {\r\n List<String> result = new ArrayList<String>();\r\n LineNumberReader lnr = null;\r\n try {\r\n lnr = new LineNumberReader(new BufferedReader(\r\n new InputStreamReader(new FileInputStream(file), Charset\r\n .defaultCharset().name())));\r\n for (String line = lnr.readLine(); line != null; line = lnr\r\n .readLine()) {\r\n result.add(line);\r\n }\r\n } catch (Exception e) {\r\n throw new RuntimeException(e);\r\n } finally {\r\n if (lnr != null) {\r\n try {\r\n lnr.close();\r\n } catch (IOException e) {\r\n throw new RuntimeException(e);\r\n }\r\n }\r\n }\r\n return result;\r\n }",
"private ArrayList<String> parseFile(String file_name){ // extract each line from file AS string (stopList)\r\n ArrayList<String> list = new ArrayList<>();\r\n Scanner scanner = null;\r\n try{\r\n scanner = new Scanner(new BufferedReader(new FileReader(file_name)));\r\n while (scanner.hasNextLine())\r\n {\r\n list.add(scanner.nextLine());\r\n }\r\n }\r\n catch (Exception e ){ System.out.println(\"Error reading file -> \"+e.getMessage()); }\r\n finally {\r\n if(scanner != null ){scanner.close();} // close the file\r\n }\r\n return list;\r\n }",
"private void loadFromFile() {\n try {\n /* Load in the data from the file */\n FileInputStream fIn = openFileInput(FILENAME);\n BufferedReader inRead = new BufferedReader(new InputStreamReader(fIn));\n\n /*\n * access from the GSON file\n * Taken from lonelyTwitter lab code\n */\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Counter>>() {}.getType();\n counters = gson.fromJson(inRead, listType);\n\n } catch (FileNotFoundException e) {\n counters = new ArrayList<Counter>();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"private static List<String> readFile(File file) throws IOException {\n return Files.readAllLines(file.toPath());\n }",
"private static List<String> readFile(File file) throws IOException {\n return Files.readAllLines(file.toPath());\n }",
"public SLList readFile(String file) {\n\t\t// Read it back in\n\t\tObjectInputStream i = null;\n\t\tSLList temp = null;\n\n\t\ttry {\n\t\t\ti = new ObjectInputStream(new FileInputStream(file));\n\t\t} catch (FileNotFoundException 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\n\t\t/**\n\t\t * try/catch to verify file has been restored\n\t\t */\n\t\t\n\t\ttry {\n\t\t\ttemp = (SLList) i.readObject();\n\t\t\t//System.out.println(temp);\n\t\t\tSystem.out.println(\"Successfully restored data from file!\");\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\n\t\ttry {\n\t\t\ti.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn temp;\n\t}",
"void write(TraceList traceList,File file) throws IOException;",
"@Override\n public List<Object> readFile(File file) {\n Scanner scanner = createScanner(file);\n if (Objects.isNull(scanner)) {\n return Collections.emptyList();\n }\n List<Object> readingDTOList = new ArrayList<>();\n scanner.nextLine();\n List<List<String>> allLines = new ArrayList<>();\n while (scanner.hasNext()) {\n List<String> line = parseLine((scanner.nextLine()));\n if (!line.isEmpty()) {\n allLines.add(line);\n }\n }\n if (!allLines.isEmpty()) {\n for (List<String> line : allLines) {\n String sensorId = line.get(0);\n String dateTime = line.get(1);\n String value = line.get(2);\n String unit = line.get(3);\n LocalDateTime readingDateTime;\n if (sensorId.contains(\"RF\")) {\n LocalDate readingDate = LocalDate.parse(dateTime, DateTimeFormatter.ofPattern(\"dd/MM/uuuu\"));\n readingDateTime = readingDate.atStartOfDay();\n } else {\n ZonedDateTime zonedDateTime = ZonedDateTime.parse(dateTime);\n readingDateTime = zonedDateTime.toLocalDateTime();\n }\n double readingValue = Double.parseDouble(value);\n ReadingDTO readingDTO = ReadingMapper.mapToDTOwithIDandUnits(sensorId, readingDateTime, readingValue, unit);\n readingDTOList.add(readingDTO);\n }\n }\n return readingDTOList;\n }",
"private static List<String> loadGenericDfFile(String file) throws IOException{\n\t\tList<String> lines = new ArrayList<String>();\n\t\t\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t\t\tnew FileInputStream(file), \"UTF-8\"));\n\t\ttry {\n\t\t\tString str;\n\t\t\twhile ((str = in.readLine()) != null) {\n\t\t\t\tlines.add(str);\n\t\t\t}\n\t\t} finally {\n\t\t\tin.close();\n\t\t}\n\n\t\treturn lines;\n\t}",
"public void readFromFile() {\n\n\t}",
"public void readFromTxtFile(String filename){\n try{\n File graphFile = new File(filename); \n Scanner myReader = new Scanner(graphFile); \n parseFile(myReader);\n myReader.close();\n } \n catch(FileNotFoundException e){\n System.out.println(\"ERROR: DGraphEdges, readFromTxtFile: file not found.\");\n e.printStackTrace();\n } \n }",
"private void readListFromFile() {\n // clear existing list\n if (listArr == null || listArr.size() > 0) {\n listArr = new ArrayList<>();\n }\n\n try {\n Scanner scan = new Scanner(openFileInput(LIST_FILENAME));\n\n while (scan.hasNextLine()) {\n String line = scan.nextLine();\n listArr.add(line);\n }\n\n if (listAdapter != null) {\n listAdapter.notifyDataSetChanged();\n }\n\n } catch (IOException ioe) {\n Log.e(\"ReadListFromFile\", ioe.toString());\n }\n\n }",
"private void ReadFile(String filePath) throws IOException{\n File file = new File(filePath);\n BufferedReader b = new BufferedReader(new FileReader(file));\n int lineNumber = 1;\n String line = \"\";\n line = b.readLine();\n while (line != null) {\n // analyze the line only when it is not empty and it is not a comment\n String trimLine = line.toString().trim();\n if(trimLine.length() != 0 && !trimLine.substring(0, 1).equals(\"/\") && !trimLine.substring(0, 1).equals(\"#\")){\n // line.toString().trim(): eliminate heading and tailing whitespaces\n // but add one whitespace to the end of the string to facilitate token manipulation\n // under the circumstances that there is only one token on one line, e.g. main\n AnalyzeByLine(line.toString().trim() + \" \", lineNumber);\n }\n lineNumber++;\n line = b.readLine();\n }\n arrL.add(new Token(\"end of file\", 255, lineNumber));\n// for(int i = 0; i < arrL.size(); i++){\n// System.out.println(arrL.get(i).getCharacters() + \" \" + arrL.get(i).getValue() + \" \" + arrL.get(i).getLineNum());\n// }\n }",
"public void readViolationList (BufferedReader reader) {\n String line = \"\";\n try {\n reader.readLine();\n reader.readLine();\n while ((line = reader.readLine()) != null) {\n addToViolationList(line);\n }\n } catch (Exception e) {\n }\n }",
"List readFile(String pathToFile);",
"private ArrayList loadfile(String file_path) throws Exception{\n\t\tFileInputStream fis = null;\n\t\tBufferedReader br = null;\n\t\tArrayList filedata = new ArrayList();\n\t\ttry {\n\t\t\tFile file = new File(file_path);\n\t\t\tfis = new FileInputStream(file);\n\t\t\tbr = new BufferedReader(new InputStreamReader(fis, charset));\n\t\t\tint i = 0;\n\t\t\twhile (br.ready()) {\n\t\t\t\tString line_data = br.readLine();\n\t\t\t\tif (line_data == null) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tnode_line_data nd = new node_line_data(line_data, i++);\n\t\t\t\tfiledata.add(nd);\n\t\t\t}\n\t\t\treturn filedata;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow new Exception(e.getMessage());\n\t\t}\n\t\tfinally {\n\t\t\ttry {\n\t\t\t\tif (br != null)\n\t\t\t\t\tbr.close();\n\t\t\t\tif (fis != null)\n\t\t\t\t\tfis.close();\n\t\t\t}\n\t\t\tcatch (IOException ex) {\n\t\t\t}\n\t\t}\n\t}",
"public ArrayList<String> readFile(File file) {\n\t\tArrayList<String> al = new ArrayList<String>();\n\t\ttry {\n\t\t\tif (file.exists()) {\n\t\t\t\tFileReader fr = new FileReader(file);\n\t\t\t\tBufferedReader br = new BufferedReader(fr);\n\t\t\t\tString line;\n\t\t\t\tbr.readLine();\n\t\t\t\twhile((line = br.readLine()) != null) {\n\t\t\t\t\tal.add(line);\n\t\t\t\t\tSystem.out.println(line);\n\t\t\t\t}\n\t\t\t\tbr.close();\n\t\t\t}\n\t\t} catch (IOException e) {\t\n\t\t\t}\n\t\treturn al;\n\t\t}",
"private void readFile() {\n try (BufferedReader br = new BufferedReader(new FileReader(\"../CS2820/src/production/StartingInventory.txt\"))) {\n String line = br.readLine();\n while (line != null) {\n line = br.readLine();\n this.items.add(line);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private static List<Student> loadStudentList(File file) throws IOException {\n return loadStudentList(new FileInputStream(file));\n }",
"private ArrayList<String> readRouteList(String filename) {\n FileInputStream fstream = null;\n ArrayList<String> list = new ArrayList();\n try {\n fstream = new FileInputStream(filename);\n BufferedReader br = new BufferedReader(new InputStreamReader(new DataInputStream(fstream)));\n while (true) {\n String readLine = br.readLine();\n String s = readLine;\n if (!(readLine == null || s.length() == 0)) {\n list.add(s);\n }\n try {\n fstream.close();\n break;\n } catch (IOException e) {\n }\n }\n } catch (IOException e2) {\n } catch (Throwable th) {\n if (fstream != null) {\n try {\n fstream.close();\n } catch (IOException e3) {\n }\n }\n }\n return list;\n }",
"private List<Task> readFromFile() {\n if (file.exists()) {\n try {\n return objectmapper.readValue(file,TaskList.class);\n } catch (IOException e) {\n throw new IllegalStateException(e);\n }\n } else {\n return new ArrayList<>();\n }\n }",
"public static void loadRecords(String filePath) throws IOException {\n\t\t// Read file \n\t\tFileReader fr = new FileReader(filePath);\n\t\tBufferedReader br = new BufferedReader(fr);\n\n\t\tString line = null;\n\t\t// Read line by line and store it in Array list\n\t\twhile ((line = br.readLine()) != null) {\n\t\t\trecords.add(line);\n\t\t}\n\t\tfr.close();\n\t}",
"public static List<BasicPhoneCall> parseLog() throws FileNotFoundException {\n List<BasicPhoneCall> phoneCalls = new ArrayList<>();\n Scanner fileScanner = new Scanner(new File(logFilePath));\n while (fileScanner.hasNextLine()){\n String nextCall = fileScanner.nextLine();\n if (nextCall.equals(\"\")){\n continue;\n }\n List<String> callInfo = Arrays.asList(nextCall.split(\",\"));\n BasicPhoneCall phoneCall = new BasicPhoneCall(\n callInfo.get(0),\n callInfo.get(1),\n callInfo.get(2),\n callInfo.get(3),\n callInfo.get(4));\n phoneCalls.add(phoneCall);\n mapCall(phoneCall);\n }\n Collections.reverse(phoneCalls);\n return phoneCalls;\n }",
"public static List<String> readIn(String filename) throws Exception {\r\n Path filePath = new File(filename).toPath();\r\n Charset charset = Charset.defaultCharset(); \r\n List<String> stringList = Files.readAllLines(filePath, charset);\r\n\r\n return stringList;\r\n }",
"public static void read6() {\n List<String> list = new ArrayList<>();\n\n try (BufferedReader br = Files.newBufferedReader(Paths.get(filePath))) {\n\n //br returns as stream and convert it into a List\n list = br.lines().collect(Collectors.toList());\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n list.forEach(System.out::println);\n }",
"public static List read(String file){\n\t\tLinkedList<String> data =\tnew LinkedList<String>();\n\t\tString dataRow;\n\t\t\n\t\ttry {\n\t\t\t\n\t\tBufferedReader br = new BufferedReader(new FileReader(file));\n\t\t\n\t\twhile((dataRow = br.readLine())!=null);{\t\n\t\t\tString[] dataRecord = dataRow.split(\",\");\n\t\t\tdata.addAll(dataRecord);\n\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Could not found file\");\n\t\t\te.printStackTrace();\n\t\t}catch (IOException e) {\n\t\tSystem.out.println(\"Could Not read file\");\n\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t}",
"public static Vector<Beacon> parseBeaconList( String filename ) throws FileNotFoundException\r\n {\r\n File f = new File( filename );\r\n return parseBeaconList( f );\r\n }",
"private void readFile() {\r\n\t\tcsvEntrys = new ArrayList<>();\r\n\t\tString line = \"\";\r\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(new File(filepath)))) {\r\n\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\tif (!line.contains(\"id\")) {\r\n\t\t\t\t\tcsvEntrys.add(line);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private void readRacesFromFile(String racesFileName) {\n\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"dd.MM.yyyy\");\n\n URL url = Thread.currentThread().getContextClassLoader()\n .getResource(racesFileName);\n try (Stream<String> stream = Files.lines(Paths.get(url.getPath()))) {\n stream\n .skip(1)\n .map(s -> s.split(\";\"))\n .map(a -> new Race(Long.parseLong(a[0]), a[1], LocalDate.parse(a[2], formatter)))\n //.forEach(System.out::println);\n .forEach(em::persist);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"public List<String> readFileIntoList(String filepath) throws IOException;",
"FormattedSmartPlaylist readFromFile(File file) throws JAXBException, FileNotFoundException;",
"public static List read(String fileName) throws IOException {\n\tList data = new ArrayList() ;\n Scanner scanner = new Scanner(new FileInputStream(fileName));\n try {\n while (scanner.hasNextLine()){\n data.add(scanner.nextLine());\n }\n }\n finally{\n scanner.close();\n }\n return data;\n }",
"private void loadFromFile() {\n try {\n FileInputStream fis = openFileInput(FILENAME);\n InputStreamReader isr = new InputStreamReader(fis);\n BufferedReader reader = new BufferedReader(isr);\n Gson gson = new Gson();\n Type listFeelingType = new TypeToken<ArrayList<Feeling>>(){}.getType();\n recordedFeelings.clear();\n ArrayList<Feeling> tmp = gson.fromJson(reader, listFeelingType);\n recordedFeelings.addAll(tmp);\n fis.close();\n\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n recordedFeelings = new ArrayList<Feeling>();\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }",
"public synchronized void readLog() {\n MemoryCache instance = MemoryCache.getInstance();\n try (Stream<String> stream = Files.lines(Paths.get(path)).skip(instance.getSkipLine())) {\n stream.forEach(s -> {\n Result result = readEachLine(s);\n instance.putResult(result);\n instance.setSkipLine(instance.getSkipLine() + 1);\n });\n } catch (IOException e) {\n logger.error(\"error during reading file \" + e.getMessage());\n }\n }",
"static List<String> readDataFile(String filePath) throws Exception {\n\t\t// System.out.println(filePath);\n\t\tList<String> sortList = new ArrayList<String>();\n\n\t\tFileReader file = new FileReader(new File(filePath));\n\n\t\tBufferedReader bufRead = new BufferedReader(file);\n\n\t\tfor (long line = 0; line < linesPerFile; line++) {\n\n\t\t\tsortList.add((bufRead.readLine().toString()));\n\t\t}\n\n\t\tbufRead.close();\n\t\treturn sortList;\n\t}",
"public void parseDumpstateFile(String filePath) {\n\t\tif (filePath == null || \"\".equals(filePath)) {\n\t\t\treturn;\n\t\t}\n\t\tFile file = new File(filePath);\n\t\tif (!file.exists()) {\n\t\t\treturn;\n\t\t}\n\t\tSystem.gc();\n\t\ttry {\n\t\t\tFileReader fr = new FileReader(file);\n\t\t\tBufferedReader br = new BufferedReader(fr);\n\t\t\tList<String> linesListMain = new ArrayList<String>();\n\t\t\tList<String> linesListEvents = new ArrayList<String>();\n\t\t\tList<String> linesListRadio = new ArrayList<String>();\n\t\t\tint state = 0;\n\t\t\tboolean finish = false;\n\t\t\twhile (br.ready()) {\n\t\t\t\tString strLine = br.readLine().trim();\n\t\t\t\tswitch (state) {\n\t\t\t\tcase 0:\n\t\t\t\t\tif (strLine.startsWith(\"------ SYSTEM LOG (logcat -v threadtime\")) {\n\t\t\t\t\t\tstate = 1;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:// main\n\t\t\t\t\tif (strLine.startsWith(\"------ EVENT LOG (logcat -b events -v threadtime\")) {\n\t\t\t\t\t\tstate = 2;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tlinesListMain.add(strLine);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:// events\n\t\t\t\t\tif (strLine.startsWith(\"------ RADIO LOG (logcat -b radio -v threadtime\")) {\n\t\t\t\t\t\tstate = 3;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tlinesListEvents.add(strLine);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:// radio\n\t\t\t\t\tif (strLine.startsWith(\"[logcat:\")) {\n\t\t\t\t\t\tstate = 4;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tlinesListRadio.add(strLine);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:// finish\n\t\t\t\t\tfinish = true;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tassert (false);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif (finish) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (linesListMain.size() > 0) {\n\t\t\t\tList<LogCatMessage> logMessageMain = process_LOGCAT_V_THREADTIME(linesListMain);\n\t\t\t\tsendMessageReceivedEvent(logMessageMain, UIThread.PANEL_ID_MAIN, file);\n\t\t\t}\n\n\t\t\tif (linesListEvents.size() > 0) {\n\t\t\t\tList<LogCatMessage> logMessageEvents = process_LOGCAT_V_THREADTIME(linesListEvents);\n\t\t\t\tsendMessageReceivedEvent(logMessageEvents, UIThread.PANEL_ID_EVENTS, file);\n\t\t\t}\n\n\t\t\tif (linesListRadio.size() > 0) {\n\t\t\t\tList<LogCatMessage> logMessageRadio = process_LOGCAT_V_THREADTIME(linesListRadio);\n\t\t\t\tsendMessageReceivedEvent(logMessageRadio, UIThread.PANEL_ID_RADIO, file);\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public static void loadStudRecsFromFile(File file) {\r\n\t\ttry {\r\n\t\t\tJAXBContext context = JAXBContext\r\n\t\t\t\t\t.newInstance(StudRecsWrapper.class);\r\n\t\t\tUnmarshaller um = context.createUnmarshaller();\r\n\t\t\t\r\n\t\t\tStudRecsWrapper wrapper = (StudRecsWrapper) um.unmarshal(file);\r\n\t\t\t\r\n\t\t\tstudRecs.clear();\r\n\t\t\tstudRecs.addAll(wrapper.getStudRecs());\r\n\t\t\tSystem.out.println(\"File loaded!\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Cannot load file, does it exist?\");\r\n\t\t}\r\n\t}",
"private void takeInFile() {\n System.out.println(\"Taking in file...\");\n //Reads the file\n String fileName = \"messages.txt\";\n String line = null;\n try {\n FileReader fileReader = new FileReader(fileName);\n \n BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n //Adds each line to the ArrayList\n int i = 0;\n while ((line = bufferedReader.readLine()) != null) {\n lines.add(line);\n //System.out.println(line);\n i++;\n }\n \n bufferedReader.close();\n } catch (FileNotFoundException ex) {\n System.out.println(\"Unable to open file '\" + fileName + \"'\");\n } catch (IOException ex) {\n System.out.println(\"Error reading file '\" + fileName + \"'\");\n }\n System.out.println(\"Done taking in file...\");\n }",
"private static void readHistoryData()\n throws FileNotFoundException {\n File file = new File(HISTORY_FILE_PATH);\n Scanner scanner = new Scanner(file); // create a Scanner using the File as the source\n StringBuilder message = new StringBuilder();\n int index = 1;\n while (scanner.hasNext()) {\n String line = scanner.nextLine();\n message.append(\"\\n\\t\" + index + \". \" + line);\n index++;\n }\n scanner.close();\n\n history = message.toString();\n }",
"public List<String> readFileContents(String filePath) throws APIException;",
"public static List<String> readFile(String fileName){\r\n \r\n List<String> lines = Collections.emptyList();\r\n\r\n try{\r\n lines = Files.readAllLines(Paths.get(fileName));\r\n }\r\n\r\n catch(IOException err){\r\n err.printStackTrace();\r\n }\r\n\r\n return lines;\r\n }",
"public ArrayList<String> fileRead(String fileName) {\n String line = null;\n ArrayList<String> list = new ArrayList<>();\n try {\n // FileReader reads text files in the default encoding.\n FileReader fileReader = new FileReader(fileName);\n\n // Always wrap FileReader in BufferedReader.\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n while ((line = bufferedReader.readLine()) != null) {\n list.add(line);\n }\n\n // Always close files.\n bufferedReader.close();\n } catch (FileNotFoundException ex) {\n System.out.println(\"Unable to open file '\" + fileName + \"'\");\n\n } catch (IOException ex) {\n System.out.println(\"Error reading file '\" + fileName + \"'\");\n }\n return list;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic static List<Transaction> readObject(String filename){\n\n\t\tlogger.finer(\" Reading object (Deserializtion) used\");\n\t\tList<Transaction> transactionList = null;\n\n\t\ttry(ObjectInputStream ois = new ObjectInputStream(new FileInputStream(filename))){\n\t\t\ttransactionList = (List<Transaction>)ois.readObject();\n\t\t}\n\t\tcatch(IOException | ClassNotFoundException ioe){\n\n\t\t\tSystem.out.println(\"Exception occurred during deserialization\");\n\t\t} \n\n\t\t//\t\tpresentFileContents(transactionList);\n\n\t\treturn (List<Transaction>) transactionList;\n\t}",
"public static ArrayList<String> readLines(String fileName){\n\t\treturn read(fileName, false);\n\t}",
"public void readPatientListFromFile()\r\n\t{\n\t\tnextPatientLocation = 0;\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Makes file reader objects and passes filename\r\n\t\t\tFileReader fr = new FileReader(patientMasterfile);\r\n\t\t\tBufferedReader br = new BufferedReader(fr);\r\n\r\n\t\t\t//reads first line and makes a blank patient \r\n\t\t\tString aReadLine = br.readLine();\r\n\t\t\tPatient tempRead = new Patient();\r\n\t\t\t//loops through all lines in the file\r\n\t\t\twhile(aReadLine != null)\r\n\t\t\t{\r\n\t\t\t\t//resets patient to null\r\n\t\t\t\ttempRead = new Patient();\r\n\t\t\t\t//Splits the read in data and assigns that data to the appropriate attribute \r\n\t\t\t\tString[] splitPatientData = aReadLine.split(\"~~\");\r\n\r\n\t\t\t\ttempRead.patientID = splitPatientData[0];\r\n\t\t\t\ttempRead.forename = splitPatientData[1];\r\n\t\t\t\ttempRead.surname = splitPatientData[2];\r\n\t\t\t\ttempRead.username = splitPatientData[3];\r\n\t\t\t\ttempRead.password = splitPatientData[4];\r\n\t\t\t\ttempRead.houseNumber = splitPatientData[5];\r\n\t\t\t\ttempRead.postcode = splitPatientData[6];\r\n\t\t\t\ttempRead.telephoneNumber = splitPatientData[7];\r\n\t\t\t\ttempRead.dob = splitPatientData[8];\r\n\t\t\t\ttempRead.mode = splitPatientData[9];\r\n\t\t\t\t//adds patient to list and gets the next line\r\n\t\t\t\taddPatientToList(tempRead);\r\n\t\t\t\taReadLine = br.readLine();\r\n\t\t\t}\t\r\n\t\t}\r\n\t\t//catches any exceptions trown by reading \r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Error reading file, \");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public List<Task> readFile() throws FileNotFoundException, DukeException {\n List<Task> output = new ArrayList<>();\n Scanner sc = new Scanner(file);\n while (sc.hasNext()) {\n output.add(readTask(sc.nextLine()));\n }\n return output;\n }",
"void readFromFile(String file)\n {\n try\n {\n employees.clear();\n FileReader inputFile = new FileReader(fileName);\n BufferedReader input = new BufferedReader(inputFile);\n String line = input.readLine();\n \n while(line != null)\n {\n Employee worker = new Employee();\n StringTokenizer stringParser = new StringTokenizer(line, \",\");\n while(stringParser.hasMoreElements())\n {\n worker.setName(stringParser.nextElement().toString());\n worker.setHours(Integer.parseInt(stringParser.nextElement().toString()));\n worker.setRate(Float.parseFloat(stringParser.nextElement().toString()));\n }\n employees.add(worker);\n line = input.readLine();\n }\n inputFile.close();\n }\n catch(FileNotFoundException e)\n {\n e.getStackTrace();\n }\n catch(IOException e)\n {\n e.getStackTrace();\n }\n }",
"private void loadFromFile() {\n\t\ttry {\n\t\t\tFileInputStream fis = openFileInput(FILENAME);\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(fis));\n\t\t\tString line = in.readLine();\n\t\t\tGson gson = new Gson();\n\t\t\twhile (line != null) {\n\t\t\t\tCounterModel counter = gson.fromJson(line, CounterModel.class);\n\t\t\t\tif (counterModel.getCounterName().equals(counter.getCounterName())) {\n\t\t\t\t\tcounterListModel.addCounterToList(counterModel);\n\t\t\t\t\tcurrentCountTextView.setText(Integer.toString(counterModel.getCount()));\n\t\t\t\t} else {\n\t\t\t\t\tcounterListModel.addCounterToList(counter);\n\t\t\t\t}\n\t\t\t\tline = in.readLine();\n\t\t\t} \n\t\t\tfis.close();\n\t\t} catch (FileNotFoundException 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}",
"public ArrayList<String> readFromFile(String fileName) throws IOException {\n\t\tBufferedReader reader = new BufferedReader(new FileReader(fileName));\n\t ArrayList<String> retour = new ArrayList<String>();\n\t String line = null;\n\t while((line = reader.readLine()) != null) \n\t \tretour.add(line);\n\t \n\t reader.close();\n\t return retour; \n\t}",
"public HashMap<String, ArrayList<Trajectory>> readTrajectories(String trajFileName) {\n Scanner csv = null;\n HashMap<String, ArrayList<Trajectory>> trajectories = new HashMap<String, ArrayList<Trajectory>>();\n try {\n csv = new Scanner(new File(trajFileName));\n ArrayList<Trajectory> tj = new ArrayList<Trajectory>();\n String currentId = \"\";\n while (csv.hasNextLine()) {\n String[] line = csv.nextLine().split(\",\");\n line[0] = line[0].substring(6, line[0].length() - 1);\n String[] locs = line[0].split(\" \");\n\n if (currentId.equals(\"\")) // first device\n {\n currentId = line[1];\n } else if (!currentId.equals(line[1])) // we are looking at a new device, add arrayList to the map, reset arrayList\n {\n trajectories.put(currentId, tj);\n tj = new ArrayList<Trajectory>();\n currentId = line[1];\n }\n tj.add(new Trajectory(Double.parseDouble(locs[0]), Double.parseDouble(locs[1]), line[1], Double.parseDouble(line[2])));\n }\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n return trajectories;\n }",
"public List<String> readFile() {\n \n try {\n ensureFileExists();\n return Files.readAllLines(filePath);\n } catch (FileNotFoundException ex) {\n return new ArrayList<>();\n } catch (IOException ex) {\n ex.printStackTrace();\n return new ArrayList<>();\n }\n }",
"private List<String> readFile(String path) throws IOException {\n return Files.readAllLines (Paths.get (path), StandardCharsets.UTF_8);\n }",
"public static List<String> getLogFromFile(String filePath) {\n List<String> logData = new ArrayList<>();\n File file = new File(filePath);\n try {\n Scanner sc = new Scanner(file);\n while (sc.hasNextLine()) {\n logData.add(sc.nextLine());\n }\n sc.close();\n } catch (FileNotFoundException e) {\n Logger.log(e.getMessage());\n }\n return logData;\n }",
"private static ArrayList<String> readFile() throws ApplicationException {\r\n\r\n ArrayList<String> bookList = new ArrayList<>();\r\n\r\n File sourceFile = new File(FILE_TO_READ);\r\n try (BufferedReader input = new BufferedReader(new FileReader(sourceFile))) {\r\n\r\n if (sourceFile.exists()) {\r\n LOG.debug(\"Reading book data\");\r\n String oneLine = input.readLine();\r\n\r\n while ((oneLine = input.readLine()) != null) {\r\n\r\n bookList.add(oneLine);\r\n\r\n }\r\n input.close();\r\n } else {\r\n throw new ApplicationException(\"File \" + FILE_TO_READ + \" does not exsit\");\r\n }\r\n } catch (IOException e) {\r\n LOG.error(e.getStackTrace());\r\n }\r\n\r\n return bookList;\r\n\r\n }",
"public static HashSet<String> loadStoplist(File f) {\r\n\t\tHashSet<String> stoplist = new HashSet<String>();\r\n\t\t\r\n\t\t// Assume it's comming from a csv file.\r\n\t\tCSV csv = new CSV(f);\r\n\t\tString[] line;\r\n\r\n\t\t// Read all lines in.\r\n\t\twhile((line = csv.getLine()) != null) {\r\n\t\t\tstoplist.add(line[0].trim());\r\n\t\t}\r\n\r\n\t\treturn stoplist;\r\n\t}",
"public static TraceReader createTraceReader(File traceFile) {\n LineReader lineReader = LineReader.createLineReader(traceFile);\n if(lineReader == null) {\n return null;\n }\n\n return new TraceReader(lineReader);\n }",
"String loadFromFile () throws Exception {\n\n Reader reader = new Reader(new FileReader(file));\n String line;\n\n// reads all lines of the file\n while ((line = reader.readLine()) != null) {\n\n// depending on the object tag [element], it reads relevant parameters and creates the Element\n if (line.contains(\"[timeline]\"))\n timelines.add(new Timeline(reader.getStringArgument()));\n\n else if (line.contains(\"[event]\")) {\n String timelineName = reader.getStringArgument();\n for (Timeline timeline : timelines) {\n if (timelineName.equals(timeline.name)) {\n timeline.addEvent(\n reader.getStringArgument(),\n reader.getDateArgument(),\n reader.getDateArgument(),\n reader.getIntArgument() != 0,\n reader.getNotesArgument());\n break;\n }\n }\n }\n }\n reader.close();\n return (\"Data loaded successfully\");\n }",
"private void loadFromFile() {\n try {\n FileInputStream fis = openFileInput(FILENAME);\n BufferedReader in = new BufferedReader(new InputStreamReader(fis));\n\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Sub>>(){}.getType();\n subList = gson.fromJson(in, listType);\n\n } catch (FileNotFoundException e) {\n subList = new ArrayList<Sub>();\n }\n }",
"public List<List<String>> read () {\n List<List<String>> information = new ArrayList<>();\n try (BufferedReader br = new BufferedReader(new FileReader(path))) {\n int aux = 0;\n while ((line = br.readLine()) != null) {\n String[] data = line.split(split_on);\n List<String> helper = new ArrayList<>();\n helper.add(data[0]);\n helper.add(data[1]);\n information.add(helper);\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n return information;\n }",
"private ArrayList<String> readTestCasesFromFile(File f)\r\n\t\t\tthrows EasyCorrectionException {\r\n\t\treturn readStringsFromFile(f, Constants.TEST_CASE_SEPARATOR);\r\n\t}",
"public void readScoresFromFile(File f) throws IOException, FileNotFoundException{\r\n\t\tBufferedReader br = null;\r\n\t\ttry{\r\n\t\t\tFileReader fr = new FileReader(f);\r\n\t\t\tbr = new BufferedReader(fr);\r\n\t\t\t\r\n\t\t\tString str = br.readLine();\r\n\t\t\t\r\n\t\t\tfor (int count = 0; count < scores.length; count++){\r\n\t\t\t\tscores[9-count] = new HighScore(str, SEPARATOR);\r\n\t\t\t\tstr = br.readLine();\r\n\t\t\t}\r\n\t\t} catch (Exception ex){\r\n\t\t\tSystem.err.println(\"Trouble with file: \"+ex.getMessage());\r\n\t\t} finally {\r\n\t\t\ttry{\r\n\t\t\t\tif (br != null){\r\n\t\t\t\t\tbr.close();\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception ex1){\r\n\t\t\t\tex1.printStackTrace();\r\n\t\t\t\tSystem.exit(-1);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void readFile(String file) throws FileNotFoundException {\n\t\tsc = new Scanner(new File(file));\n\t\tString firstLine = sc.nextLine();\n\t\tString [] breakFirstLine = firstLine.split(\" \");\n\t\tvillages = Integer.parseInt(breakFirstLine[0]);\n\t\tlines = Integer.parseInt(breakFirstLine[1]);\n\t\tSystem.out.println(\"villages: \" + villages + \"\\nlines: \" + lines);\n\t\tString line = \"\"; // current line\n\t\twhile(sc.hasNextLine()) { \n\t\t\tline = sc.nextLine();\n\t\t\tSystem.out.println(line);\n\t\t\tString[] breaks = line.split(\" \");\n\t\t\tString city1 = breaks[0];\n\t\t\tString city2 = breaks[1];\n\t\t\tString col = breaks[2];\n\t\t\tcolor = color(col);\n\t\t\tString route = breaks[3];\n\t\t\ttransit = transit(route);\n\t\t\tVillage a = new Village(city1);\n\t\t\tVillage b = new Village(city2);\n\t\t\t\n\t\t\tEdge e = new Edge(a, b, transit, color);\n\t\t\ta.addEdge(e);\n\t\t\tb.addEdge(e);\n\t\t\tg.addEdge(e);\n\t\t\t\n\t\t\tvertices.add(a);\n\t\t\tlast_transit = transit;\n\t\t\tlast_color = color;\n\t\t}\n\t}",
"private List<String> readFile() throws FileNotFoundException {\t\n\t\tList<String> itemsLines = new ArrayList<>();\n\t\tFile inputFile = new File(filePath);\t\n\t\ttry (Scanner newScanner = new Scanner(inputFile)) {\n\t\t\twhile(newScanner.hasNextLine()) {\n\t\t\t\titemsLines.add(newScanner.nextLine());\n\t\t\t}\t\n\t\t}\n\t\treturn itemsLines;\n\t}",
"public void loadFile(File file) throws FileNotFoundException\n {\n FileReader reader = new FileReader(file);\n\n // Clear table to make sure it only shows tasks from file\n Item.getToDoList().clear();\n if(this.listView != null)\n {\n listView.getItems().clear();\n }\n\n index = 0;\n\n try(BufferedReader temp = new BufferedReader(reader))\n {\n String info;\n boolean check;\n\n while((info = temp.readLine()) != null)\n {\n // Make an array of values\n String[] values = info.split(\",\");\n\n //Array length is 3, since 3 columns. If not that then incorrect file\n if(values.length != 3)\n {\n if(this.status != null)\n {\n status.setText(\"Incompatible File. \");\n }\n break;\n }\n\n // If correct, add information from file to list\n else\n {\n check = !values[2].equals(\"false\");\n Item.getToDoList().add(new Item(values[0], values[1], check));\n }\n }\n\n } catch (IOException exception)\n {\n // If error, let user know\n if(this.status != null)\n {\n status.setText(\"File not found. \");\n }\n\n exception.printStackTrace();\n }\n }",
"@Override\n public ArrayList parseFile(String pathToFile) {\n\n Scanner scanner = null;\n try {\n scanner = new Scanner(new File(pathToFile));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n ArrayList<String> data = new ArrayList<>();\n while (scanner.hasNext()) {\n data.add(scanner.next());\n }\n scanner.close();\n\n return data;\n }",
"public static List<GeoJSONFaultSection> readFaultSections(File file) throws IOException {\n\t\treturn readFaultSections(new BufferedReader(new FileReader(file)));\n\t}",
"public static List<String> mainReadFile(String[] args) throws IOException, URISyntaxException {\n List<String> exmp = new ArrayList<>();\n File initialFile = resolveFileFromResources(args[0]);\n // System.out.println(initialFile);\n ObjectMapper obM = getObjectMapper();\n Trades[] exmpTrade = obM.readValue(initialFile, Trades[].class);\n for (Trades trade : exmpTrade) {\n exmp.add(trade.getSymbol());\n }\n printJsonObject(exmp);\n //return Collections.emptyList();\n return exmp;\n }",
"public void readFile(){\n try {\n highscores = new ArrayList<>();\n BufferedReader br = new BufferedReader(new FileReader(\"Highscores.txt\"));\n String line = br.readLine();\n while (line != null){\n try{\n highscores.add(Integer.parseInt(line));\n } catch (NumberFormatException e){}\n line = br.readLine();\n }\n br.close();\n } catch (FileNotFoundException e) {\n System.out.println(\"No file found\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public Collection<FastqSequence> parse(File file)throws IOException{\n\t\tCollection<FastqSequence> rtrn=new ArrayList<FastqSequence>();\n\t\tString nextLine;\n while ((nextLine = reader.readLine()) != null && (nextLine.trim().length() > 0)) {\n \tif(nextLine.startsWith(\"@\")){\n \t\tString firstLine=nextLine;\n \t\tString secondLine=reader.readLine();\n \t\tString thirdLine=reader.readLine();\n \t\tString fourthLine=reader.readLine();\n \t\t\n \t\tFastqSequence seq=new FastqSequence(firstLine, secondLine,thirdLine, fourthLine);\n \t\t\t\n \t\trtrn.add(seq);\n \t}\n \t\n \t\n }\n return rtrn;\n\t}",
"private void readItems() {\n // open file\n File file = getFilesDir();\n File todoFile = new File(file, \"scores.txt\");\n // try to find items to add\n try {\n items = new ArrayList<>(FileUtils.readLines(todoFile));\n } catch (IOException e) {\n items = new ArrayList<>();\n }\n }",
"private static String[] readFile(final String pathToFile) {\n try (BufferedReader reader = new BufferedReader(new FileReader(pathToFile))) {\n final List<String> lines = new ArrayList<>();\n String line;\n while ((line = reader.readLine()) != null) {\n line = line.trim();\n if (!line.startsWith(\"#\")) {\n lines.add(line);\n }\n }\n return lines.toArray(new String[lines.size()]);\n } catch (final IOException e) {\n throw new OpenGammaRuntimeException(\"Couldn't read properties file - \" + pathToFile, e);\n }\n }",
"String[] readFile(File file) {\n ArrayList<String> list = new ArrayList<>();\n String[] output = null;\n Scanner reader = null;\n try {\n if (file.isFile()) {\n reader = new Scanner(file);\n while (reader.hasNextLine()) {\n list.add(reader.nextLine());\n }\n }\n } catch (FileNotFoundException e) {\n System.out.println(\"File not found exception\");\n }\n output = new String[list.size()];\n for (int i = 0; i < list.size(); i++) output[i] = list.get(i);\n reader.close();\n return output;\n }",
"public static ArrayList<String> parseSequenceFile(String filePath) {\n\t\tArrayList<String> sequence = new ArrayList<String>();\n\t\tFile file = new File(filePath);\n\t\tScanner scanner;\n\n\t\ttry {\n\t\t\tscanner = new Scanner(file);\n\n\t\t\twhile (scanner.hasNextLine()) {\n\t\t\t\tsequence.add(scanner.nextLine());\n\t\t\t}\n\n\t\t\tscanner.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"File not found. Program aborted.\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\n\t\treturn sequence;\n\t}",
"public List<String> readFileIntoList(String sourceFilepath) throws IOException {\n List<String> lines = new ArrayList<>();\n URL url = new URL(sourceFilepath);\n BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream()));\n String line = null;\n while ((line = reader.readLine()) != null) {\n lines.add(line);\n }\n reader.close();\n return lines;\n }",
"private List<Task> getTasksFromFile() throws FileNotFoundException{\n List<Task> loadedTasks = new ArrayList<>();\n Ui a=new Ui();\n try {\n List<String> lines = getLine() ;\n for (String line : lines) {\n if (line.trim().isEmpty()) { //ignore empty lines\n continue;\n }\n loadedTasks.add(createTask(line)); //convert the line to a task and add to the list\n }\n System.out.println(\"File successfully loaded\");\n } catch (DukeException e1) {\n System.out.println(\"☹ OOPS!!! Problem encountered while loading data: \" +e1.getMessage());\n }\n return loadedTasks;\n }",
"public static ArrayList<String> readFromFile(String fileName) throws IOException, FileNotFoundException\n {\n ArrayList<String> linesList = new ArrayList<String>();\n BufferedReader bufferReader = new BufferedReader(new FileReader(fileName));\n \n String currentLine;\n while ((currentLine = bufferReader.readLine()) != null) {\n if (!currentLine.startsWith(\"//\"))\n linesList.add(currentLine);\n }\n bufferReader.close();\n return linesList;\n }",
"static List<String> read() {\n String fileName = getFilePath();\n List<String> urls = new ArrayList<>();\n \n if (Files.notExists(Paths.get(fileName))) {\n return urls;\n }\n \n try (Stream<String> stream = Files.lines(Paths.get(fileName))) {\n urls = stream\n // Excludes lines that start with # as that is used for comments\n // and must start with http:// as that is required by crawler4j.\n .filter(line -> !line.startsWith(\"#\") &&\n line.startsWith(\"http://\") || line.startsWith(\"https://\"))\n .map(String::trim)\n .map(String::toLowerCase)\n .collect(Collectors.toList());\n } catch (IOException e) {\n e.printStackTrace();\n }\n \n return urls;\n }",
"public static List<String> loadLinesFromFile(String path) {\n\t\tPath Filepath = Paths.get(path);\n\t\ttry {\n\t\t\tList<String> lines = Files.readAllLines(Filepath);\n\t\t\treturn lines;\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 new ArrayList<String>();\n\t}",
"private ArrayList<String> readFileAndCountLines(File fileName) throws IOException\n\t{\n\t\tString line = \"\";\n\t\tFileReader strm_reader = null;\n\t\tBufferedReader bffr_reader = null;\n\t\tArrayList<String> fileContents = new ArrayList<String>();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tstrm_reader = new FileReader(fileName);\t\n\t\t\tbffr_reader = new BufferedReader(strm_reader);\n\t\t\t\n\t\t\twhile((line = bffr_reader.readLine()) != null)\n\t\t\t{\n\t\t\t\t//Add the contents of a file in a variable\n\t\t\t\tfileContents.add(line);\n\t\t\t\t//Counts the number of routers\n\t\t\t\tfileLineCount++;\n\t\t\t}\n\t\t\tif(fileContents.isEmpty())\n\t\t\t\tSystem.out.println(\"The File is Empty!\");\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"File not Found!\");\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tif(bffr_reader != null)\n\t\t\t\tbffr_reader.close();\n\t\t\tif(strm_reader != null)\n\t\t\t\tstrm_reader.close();\n\t\t}\n\t\treturn fileContents;\n\t}",
"public static ArrayList load(String filePath) throws IOException\n\t{\n\t\tString line;\n\t\tArrayList gameConfigs = new ArrayList();\n\t\tBufferedReader textReader = new BufferedReader(new FileReader(filePath));\n\t\t\n\t\twhile((line = textReader.readLine()) != null)\n\t\t{\n\t\t\tgameConfigs.add(line);\n\t\t}\n\t\t\n\t\ttextReader.close();\n\t\treturn gameConfigs;\n\t}",
"private static List<String> readConfFile(File configFile) {\n List<String> lines = new ArrayList<>();\n if (null != configFile) {\n Path filePath = configFile.toPath();\n Charset charset = Charset.forName(\"UTF-8\");\n try {\n lines = Files.readAllLines(filePath, charset);\n } catch (IOException e) {\n logger.log(Level.SEVERE, \"Error reading config file contents. {}\", configFile.getAbsolutePath());\n }\n }\n return lines;\n }",
"public ArrayList<Event> readSerFile() {\n\n ArrayList<Event> events = new ArrayList<>();\n try {\n FileInputStream file = new FileInputStream(filename);\n ObjectInputStream storedEvents = new ObjectInputStream(file);\n\n events = (ArrayList<Event>) storedEvents.readObject();\n\n storedEvents.close();\n file.close();\n\n return events;\n\n } catch (FileNotFoundException e) {\n System.out.println(filename + \" is missing\");\n } catch (IOException | ClassNotFoundException e) {\n return events;\n }\n\n return events;\n }",
"public SecurityLogManager(String filePath)\r\n\t{\r\n\t\tlist = new ArrayBasedList<LogEntry>();\r\n\t\ttry {\r\n\t\t\tlist = LogEntryReader.readLogEntry(filePath);\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tthrow new IllegalArgumentException(\"Cannot find file.\");\r\n\t\t}\r\n\t}",
"private void readFile() {\r\n\t\tScanner sc = null; \r\n\t\ttry {\r\n\t\t\tsc = new Scanner(inputFile);\t\r\n\t\t\twhile(sc.hasNextLine()){\r\n\t\t\t\tgrade.add(sc.nextLine());\r\n\t } \r\n\t\t}\r\n\t\tcatch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tsc.close();\r\n\t\t}\t\t\r\n\t}",
"public ArrayList<SessionLog> readLogFile(){\n ArrayList<SessionLog> sessionLogList = new ArrayList<>();\n try {\n FileInputStream inputStream = getApplicationContext().openFileInput(logFileName);\n BufferedReader reader = new BufferedReader(new InputStreamReader(inputStream));\n\n while(true){\n String line = reader.readLine();\n if (line != null){\n String[] data = line.split(\",\");\n Log.i(LOG_TAG, \" - \"+ Arrays.toString(data));\n SessionLog item = new SessionLog(\n Long.parseLong(data[0]),\n new LatLng(Double.parseDouble(data[1]), Double.parseDouble(data[2])),\n data[3].equals(\"true\")\n );\n sessionLogList.add(item);\n }\n else{\n Log.i(LOG_TAG, \"Reached end of file\");\n break; // No more lines to read\n }\n }\n }\n catch (Exception e){\n Log.i(LOG_TAG, \"Problem reading from current session log file...\");\n e.printStackTrace();\n }\n return sessionLogList;\n }",
"public static void readFile() {\n\t\tbufferedReader = null;\n\t\ttry {\n\t\t\tFileReader fileReader = new FileReader(\"/home/bridgeit/Desktop/number.txt\");\n\t\t\tbufferedReader = new BufferedReader(fileReader);\n\n\t\t\tString line;\n\t\t\twhile ((line = bufferedReader.readLine()) != null) {\n\t\t\t\tString[] strings = line.split(\" \");\n\t\t\t\tfor (String integers : strings) {\n\t\t\t\t\thl.add(Integer.parseInt(integers));\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"File Not Found...\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\tbufferedReader.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"private void loadFromFile(){\n try {\n FileInputStream fis = openFileInput(FILENAME);\n BufferedReader in = new BufferedReader(new InputStreamReader(fis));\n Gson gson = new Gson();\n Type listType = new TypeToken<ArrayList<Countbook>>() {}.getType();\n countbookList = gson.fromJson(in, listType);\n } catch (FileNotFoundException e) {\n countbookList = new ArrayList<Countbook>();\n }\n }",
"public static String[] readGraphFile( String fileName ) throws FileNotFoundException, IllegalArgumentException, InvalidRouteException{\n\t \n\t\tFile file = new File(fileName); \n\t Scanner s = new Scanner(file); \n\t \n \tString in = s.nextLine();\n\t\tString[] parts = in.toUpperCase().split(\"\\\\s+|,\\\\s*\");\n \n\t\tfor( String route: parts ) IO.validateData(route);\n\t\ts.close();\n\t \n\t return parts;\n\t }",
"public static PVector[] readFromFile(String filename) {\n ArrayList<PVector> ledPositionsList= new ArrayList<PVector> ();\n //try to read data from file\n try {\n File file = new File(filename);\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()) {\n String line = scanner.nextLine();\n String[] pieces = line.split(\"\\t\");\n if (pieces.length>3) {\n ledPositionsList.add(new PVector( (Float.parseFloat(pieces[1])/4.0f), Float.parseFloat(pieces[2])/4.0f, Float.parseFloat(pieces[3])/4.0f)); //initialize Leds x,y,z,r,g,b\n }\n }\n scanner.close();\n } \n catch (FileNotFoundException ex) {\n ex.printStackTrace();\n }\n //convert to vanilla Java Array\n PVector[] ledPositions= new PVector[ledPositionsList.size()];\n for (int i=0; i<ledPositionsList.size(); i++) {\n ledPositions[i]=ledPositionsList.get(i);\n }\n return ledPositions;\n }",
"private Candle[] read(String file) throws Exception {\r\n Scanner sc = new Scanner(new File(file));\r\n String[] spl;\r\n String s;\r\n Candle[] candles = new Candle[32 * 24 * 60];\r\n int i = 0;\r\n while(sc.hasNextLine()){\r\n spl = sc.nextLine().split(\",\");\r\n candles[i] = new Candle(spl[0] + \" \" + spl[1], spl[2], spl[3], spl[4], spl[5]);\r\n i++;\r\n\r\n }\r\n Candle[] newCandles = new Candle[i];\r\n System.arraycopy(candles, 0, newCandles, 0, i);\r\n sc.close();\r\n return newCandles;\r\n \r\n }",
"private List<String> readFile(String fileName)\n {\n try\n {\n String file = new String(Files.readAllBytes(Paths.get(fileName)), Charset.forName(\"ISO-8859-1\"));\n file = file\n .toLowerCase()\n .replaceAll(\"[^\\\\w]+\", \" \")\n .replaceAll(\"[0-9]\", \"\");\n Tokenizer tokenizer = SimpleTokenizer.INSTANCE;\n String[] tokens = tokenizer.tokenize(file);\n return Arrays.asList(tokens);\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n return new ArrayList<>();\n }",
"public void readFromFile() {\n //reading text from file\n\n try {\n Scanner scanner = new Scanner(openFileInput(\"myTextFile.txt\"));\n\n while(scanner.hasNextLine()){\n\n String line = scanner.nextLine();\n\n String[] lines = line.split(\"\\t\");\n\n System.out.println(lines[0] + \" \" + lines[1]);\n\n toDoBean newTask = new toDoBean(lines[0], lines[1], 0);\n // System.out.println(line);\n sendList.add(newTask);\n\n }\n\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"private ArrayList<String> readEntriesFromFile(String nameOfFile){\n\t\tArrayList<String> foundEntries = new ArrayList<String>();\n\t\t\n\t\ttry{\n\t\t\tFile file = new File(nameOfFile); \n\t\t\tScanner fileIn = new Scanner(file);\n\t\t\twhile (fileIn.hasNext()){\n\t\t\t\tString currentLine = fileIn.nextLine();\n\t\t\t\tfoundEntries.add(currentLine);\n\t\t\t} \n\t\t\tfileIn.close();\n\t\t}catch (IOException e){\n\t\t}\n\t\t\n\t\tif(foundEntries.size()==0){\n\t\t return null;\n\t\t}else{\n\t\t\treturn foundEntries;\n\t\t}\n\t}"
] | [
"0.93100727",
"0.63035315",
"0.6273014",
"0.6177771",
"0.6143089",
"0.6103436",
"0.60649616",
"0.6046176",
"0.59592754",
"0.59097344",
"0.5907945",
"0.5907945",
"0.5844039",
"0.583268",
"0.5798279",
"0.57859915",
"0.57737416",
"0.5765365",
"0.57642907",
"0.575511",
"0.57358325",
"0.57220435",
"0.5718088",
"0.5715928",
"0.5711301",
"0.5704709",
"0.56957793",
"0.56760275",
"0.5655646",
"0.5626189",
"0.56248367",
"0.5597101",
"0.5581797",
"0.5574789",
"0.5564597",
"0.5558721",
"0.5546073",
"0.5542099",
"0.5524627",
"0.55156535",
"0.55098",
"0.55078405",
"0.5504265",
"0.55010766",
"0.54989064",
"0.5492885",
"0.54882586",
"0.5467125",
"0.5465982",
"0.5461723",
"0.5460201",
"0.5439629",
"0.54378647",
"0.5424945",
"0.54217273",
"0.5420583",
"0.54179335",
"0.54100794",
"0.5405321",
"0.5400934",
"0.53984874",
"0.5382169",
"0.5380666",
"0.53790975",
"0.5376229",
"0.53662145",
"0.5361688",
"0.5361114",
"0.53604794",
"0.53597885",
"0.53504837",
"0.53474665",
"0.53461313",
"0.5341669",
"0.5341375",
"0.5341015",
"0.5337413",
"0.533551",
"0.53345037",
"0.5325928",
"0.532447",
"0.53241444",
"0.532088",
"0.5318913",
"0.5311019",
"0.53095007",
"0.5308545",
"0.5305091",
"0.5302064",
"0.5296493",
"0.52931654",
"0.529211",
"0.5285024",
"0.52760565",
"0.5273186",
"0.52707106",
"0.5265442",
"0.52630085",
"0.52603",
"0.52596277"
] | 0.7225879 | 1 |
Save trace list to a file | public static void writeTo(TraceList traceList,File file) throws IOException{
String fileName=file.getName();
String formatName=fileName.contains(".")?fileName.substring(fileName.indexOf('.')+1):"png";
for(TraceListFormat next:ServiceLoader.load(TraceListFormat.class)){
if(formatName.endsWith(next.getSuffix())){
next.write(traceList,file);
return;
}
}
ImageIO.write(TraceListViewer.renderColorImage(traceList),formatName,file);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void write(TraceList traceList,File file) throws IOException;",
"private void writeTrace()\r\n {\r\n TGCreator creator = new TGCreator();\r\n TGTrace trace = creator.createTrace(JVM.getVM(), this.stateGraph);\r\n TraceGraphWriter tgWriter = new TraceGraphWriter(trace);\r\n\r\n if (this.traceCompressed)\r\n {\r\n this.filename += ITraceConstants.ZIP_FILE_SUFFIX;\r\n tgWriter.saveCompressed(new File(this.filename));\r\n }\r\n else\r\n {\r\n this.filename += ITraceConstants.XML_FILE_SUFFIX;\r\n tgWriter.save(new File(this.filename));\r\n }\r\n\r\n SymbolicExecutionTracerPlugin.log(Status.INFO,\r\n \"Symbolic Execution Tracer wrote \" + this.numEndStates\r\n + \" traces to \" + this.filename);\r\n }",
"private void saveListToFile() {\n try {\n PrintStream out = new PrintStream(\n openFileOutput(LIST_FILENAME, MODE_PRIVATE)\n );\n\n for (int i = 0; i < listArr.size(); i++) {\n out.println(listArr.get(i));\n }\n\n out.close();\n\n } catch (IOException ioe) {\n Log.e(\"saveListToFile\", ioe.toString());\n }\n }",
"private void chatSave() {\n try{\n //create a text file to write the chatList to\n PrintStream print =\n new PrintStream(new FileOutputStream(\"log.txt\", true));\n //write each line of the array to the file \n for (String str:chatList)\n print.println(str);\n //once each record has been written to the file, close it.\n print.close();\n } catch (IOException e) {\n // exception handling\n }\n }",
"public void save(List<Task> list) throws IOException {\n FileWriter writer = new FileWriter(file);\n StringBuilder output = new StringBuilder();\n for (Task t : list) {\n output.append(formatTask(t));\n output.append(\"\\n\");\n }\n writer.write(output.toString());\n writer.close();\n }",
"public void saveListToFile() {\r\n\t\ttry {\r\n\t\t\tObjectOutputStream oos = null;\r\n\t\t\ttry {\r\n\t\t\t\toos = new ObjectOutputStream(new FileOutputStream(FTP_LIST_FILE));\r\n\t\t\t\toos.writeObject(FTPList.self);\r\n\t\t\t\toos.flush();\r\n\t\t\t} finally {\r\n\t\t\t\toos.close();\r\n\t\t\t}\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public static void saveOutput(String filename, DSALinkedList list)\n {\n try\n {\n PrintWriter out = new PrintWriter(filename);\n //out.println(input);\n\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n PrintStream ps = new PrintStream(baos);\n PrintStream old = System.out;\n System.setOut(ps);\n //stuff goes here\n\n if(!list.isEmpty())\n {\n System.out.println(\"# All routes Traversed:\");\n Iterator<DSAQueue> itr = list.iterator();\n int counter = 0;\n while(itr.hasNext())\n {\n counter ++;\n System.out.println(\"\\n# Route number: [\" + counter + \"]\");\n itr.next().show();\n }\n }\n else\n {\n System.out.println(\"# Route list is empty. Add some more!\");\n }\n System.out.flush();\n System.setOut(old);\n out.println(baos.toString());\n\n out.close();\n }\n catch (Exception e)\n { //should do more here might not be needed\n throw new IllegalArgumentException(\"Unable to print object to file: \" + e);\n }\n\n }",
"void saveSklepToFile(String fileName) throws Exception {\r\n\t\tObjectOutputStream out = new ObjectOutputStream(new FileOutputStream(fileName));\r\n\t\tout.writeObject(listOfAccounts);\r\n\t\tout.close();\r\n\t}",
"private void writeToFile() {\n boolean flag = true;\n int expectedPacket = (lastPacket)? sequenceNo: Constants.WINDOW_SIZE;\n for (int i = 0; i < expectedPacket; i++) {\n if(!receivedPacketList.containsKey(i)) {\n flag = false;\n }\n }\n if (flag) {\n System.out.println(\"Time: \" + System.currentTimeMillis() + \"\\t\" + \"Write to file Possible\");\n try (BufferedOutputStream stream = new BufferedOutputStream(new FileOutputStream(fileSavePath, true))) {\n for (int i = 0; i < receivedPacketList.size(); i++) {\n //System.out.println(new String(receivedPacketList.get(i)));\n stream.write(receivedPacketList.get(i));\n }\n receivedPacketList.clear();\n stream.close();\n } catch (FileNotFoundException ex) {\n \n } catch (IOException ex) {\n \n }\n receivedPacketList.clear();\n expectedList.clear();\n }\n }",
"public void writeToEmployeeListFile()\r\n {\r\n\ttry(ObjectOutputStream toEmployeeListFile = \r\n new ObjectOutputStream(new FileOutputStream(\"listfiles/employeelist.dta\")))\r\n\t{\r\n toEmployeeListFile.writeObject(employeeList);\r\n employeeList.saveStaticEmpRunNr(toEmployeeListFile);\r\n\t}\r\n\tcatch(NotSerializableException nse)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Ansatt objektene er ikke \"\r\n + \"serialiserbare.\\nIngen registrering på fil!\"\r\n + nse.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n\tcatch(IOException ioe)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Det oppsto en feil ved skriving \"\r\n + \"til fil.\\n\" + ioe.getMessage());\r\n\t}\r\n }",
"void writeRecordsToFile(List<IRecord> recordList) throws IOException;",
"private void saveInFile() {\n\t\tthis.deleteFile();\n\t\tfor (CounterModel obj : counterListModel.getCounterList()) {\n\t\t\ttry {\n\t\t\t\tGson gson = new Gson();\n\t\t\t\tif (obj.getCounterName().equals(counterModel.getCounterName())) {\n\t\t\t\t\tobj = counterModel;\n\t\t\t\t}\n\t\t\t\tString json = gson.toJson(obj) +'\\n';\n\t\t\t\tFileOutputStream fos = openFileOutput(FILENAME,\n\t\t\t\t\t\tContext.MODE_APPEND);\n\t\t\t\tfos.write(json.getBytes());\n\t\t\t\tfos.close();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"private void writeToFile(){\n try(BufferedWriter br = new BufferedWriter(new FileWriter(filename))){\n for(Teme x:getAll())\n br.write(x.toString()+\"\\n\");\n br.close();\n }catch (IOException e){\n e.printStackTrace();\n }\n }",
"public void saveAllVehiclesToFile(ArrayList<DeliveryVehicle> vehicleList) throws java.io.IOException {\n\n // write object to file\n FileOutputStream fos = new FileOutputStream(_filePath); //object to hold a file, e.g. EmployeeData.txt\n PrintStream writer = new PrintStream(fos); //object to write data\n\n //For loop to read each employee and write them to the file\n for(DeliveryVehicle vehicle : vehicleList){\n writer.println(vehicle);\n }\n\n writer.close();//close the writer\n fos.close();//close the file\n\n }",
"private void writeToFile(List<Record> records) {\n try (\n FileWriter writer = new FileWriter(FILE_PATH);\n BufferedWriter bufferedWriter =\n new BufferedWriter(writer);\n PrintWriter out = new PrintWriter(bufferedWriter)\n\n ) {\n\n for (Record record : records) {\n out.format(\"%d;%s;%s;%s;%s;%s\\n\",\n record.getId(),\n record.getFirstName(),\n record.getLastName(),\n record.getPhone().getNumber(),\n record.getPhone().getType(),\n record.getCategory().getId());\n }\n// writer.close();\n out.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n\n }",
"public void save () {\r\n\t\tlog.debug(\"TunnelList:save()\");\r\n\t\tlog.info(\"Saving to file\");\r\n\t\tFileTunnel.saveTunnels(this);\r\n\t}",
"void saveToFile() {\n\t\ttry {\n\t\t\tFile directory = GameApplication.getInstance().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n\t\t\tFile target = new File(directory, FILE_NAME);\n\t\t\tif (!target.exists()) {\n\t\t\t\ttarget.createNewFile();\n\t\t\t}\n\t\t\tJsonWriter writer = new JsonWriter(new FileWriter(target));\n\t\t\twriter.setIndent(\" \");\n\t\t\twriter.beginArray();\n\t\t\tfor (Scoreboard scoreboard : scoreboards.values()) {\n\t\t\t\twriteScoreboard(writer, scoreboard);\n\t\t\t}\n\t\t\twriter.endArray();\n\t\t\twriter.flush();\n\t\t\twriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void saveRateablesToFile(List<Rateable> allRateables, File file) throws IOException\n {\n try (ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(file)))\n {\n oos.writeObject(allRateables);\n }\n }",
"private static void saveStudentsList(List<Student> students, File file) throws IOException {\n saveStudentsList(students, new FileOutputStream(file));\n }",
"public void save(List<Task> changed){\n\n try {\n FileWriter fw = new FileWriter(path);\n for (int i = 0; i < changed.size(); i++) {\n\n String temp = (i+1) + \".\" + changed.get(i).list() + System.lineSeparator();\n fw.write(temp);\n }\n fw.close();\n }catch(IOException e){\n e.printStackTrace();\n }\n }",
"private void saveInFile() {\n try {\n FileOutputStream fOut = openFileOutput(FILENAME,\n Context.MODE_PRIVATE);\n\n OutputStreamWriter writer = new OutputStreamWriter(fOut);\n Gson gson = new Gson();\n gson.toJson(counters, writer);\n writer.flush();\n\n fOut.close();\n\n } catch (FileNotFoundException e) {\n throw new RuntimeException();\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }",
"public void saveTaskList(TaskList taskList) throws ChandlerException {\n try {\n FileWriter fileWriter = new FileWriter(filePath);\n for (int i = 0; i < taskList.getSize(); i++) {\n Task currTask = taskList.getIndex(i);\n fileWriter.write(currTask.getSavingString());\n }\n fileWriter.close();\n } catch (IOException e) {\n throw new ChandlerException(ui.saveDataError());\n }\n }",
"@FXML\n\tprivate void onSaveClicked(){\n\t\tPrintWriter writer = null;\n\t\ttry {\n\t\t\tFile file = new File(\"log.txt\");\n\t\t\tif (!file.exists()) {\n\t\t\t\tfile.createNewFile();\n\t\t\t}\n\t\t\tFileWriter fw = new FileWriter(file, true);\n\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\twriter = new PrintWriter(bw);\n\t\t\twriter.println(\"New record\");\n\t\t\tfor (int i = 0; i < list.size(); i++) {\n\n\t\t\t\twriter.println(list.get(i) +\" & \"+ (dat.get(i)));\n\t\t\t}\n\t\t} catch (IOException ioe) {\n\t\t\ttextArea.setText(\"Exception occurred:\" + ioe.getMessage());\n\t\t} finally {\n\t\t\tif (writer != null) {\n\t\t\t\twriter.close();\n\t\t\t}\n\t\t}\n\n\t}",
"private void saveToFile(){\n this.currentMarkovChain.setMarkovName(this.txtMarkovChainName.getText());\n saveMarkovToCSVFileInformation();\n \n //Save to file\n Result result = DigPopGUIUtilityClass.saveDigPopGUIInformationSaveFile(\n this.digPopGUIInformation,\n this.digPopGUIInformation.getFilePath());\n }",
"public void writeData(ArrayList<Task> orderList) {\n try {\n FileWriter fw = new FileWriter(filePath, false);\n for (Task task : orderList) {\n fw.write(task.fileFormattedString() + \"\\n\");\n }\n fw.close();\n\n } catch (IOException e) {\n System.out.println(e.getMessage());\n }\n }",
"private void writeFile(List<ClubPointsDTO> clubs) {\n\t\tFileWriter file = null;\n\t\ttry {\n\n\t\t\tfile = new FileWriter(\"clubs.txt\");\n\n\t\t\t// Escribimos linea a linea en el fichero\n\t\t\tfile.write(\"CLUB\\tPUNTOS\\r\\n\");\n\t\t\tfor(ClubPointsDTO c : clubs)\n\t\t\t\tfile.write(c.getName()+\"\\t\"+c.getPoints()+\"\\r\\n\");\n\n\t\t\tfile.close();\n\n\t\t} catch (Exception ex) {\n\t\t\tthrow new FileException();\n\t\t}\n\t}",
"public abstract void saveToFile(PrintWriter out);",
"private void saveFile(File file){\n\t\ttry{\r\n\t\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(file));\r\n\t\t\t\r\n\t\t\tfor(QuizCard card:cardList){\r\n\t\t\t\twriter.write(card.getQuestion() + \"/\");\r\n\t\t\t\twriter.write(card.getAnswer() + \"\\n\");\r\n\t\t\t}\r\n\t\t\twriter.close();\r\n\t\t} catch (IOException ex){\r\n\t\t\tSystem.out.println(\"couldn't write the cardList out\");\r\n\t\t\tex.printStackTrace();}\r\n\t}",
"public void saveToFile(String filePath) throws IOException {\n\t\tOutputStream file = new FileOutputStream(filePath);\n\t\tOutputStream buffer = new BufferedOutputStream(file);\n\t\tObjectOutput output = new ObjectOutputStream(buffer);\n\n\t\toutput.writeObject(tagList);\n\t\toutput.close();\n\t}",
"private void saveInFile(final String fileName, ArrayList<Habit> habitArray) {\r\n try {\r\n FileOutputStream fos = openFileOutput(fileName, 0);\r\n BufferedWriter out = new BufferedWriter(new OutputStreamWriter(fos));\r\n Gson gson = new Gson();\r\n gson.toJson(habitArray, out);\r\n out.flush();\r\n\r\n fos.close();\r\n } catch (FileNotFoundException e) {\r\n // TODO Auto-generated catch block\r\n throw new RuntimeException();\r\n } catch (IOException e) {\r\n // TODO Auto-generated catch block\r\n throw new RuntimeException();\r\n }\r\n }",
"private static void writeToFile(HighScore[] scoresToSave) throws IOException {\n FileWriter writer = new FileWriter(SCORE_FILE_NAME);\n \n for (int i = 0; i < scoresToSave.length; i++) {\n //Don't write more than the maximum number of scores to save\n if (i > NUMBER_OF_SCORES_TO_SAVE)\n break;\n \n String str = scoresToSave[i].toString();\n writer.write(str);\n writer.write(System.getProperty(\"line.separator\"));\n }\n \n writer.close();\n }",
"public void saveFile()\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString newLine = System.getProperty(\"line.separator\");\n\t\t\n\t\tfor(CSVItem cItem : itemList)\n\t\t{\n\t\t\tsb.append(cItem.buildCSVString()).append(newLine);\n\t\t\t\n\t\t}\n\t\tString fileString = sb.toString();\n\t\t\n\t\t File newTextFile = new File(filePath);\n\n FileWriter fw;\n\t\ttry {\n\t\t\tfw = new FileWriter(newTextFile);\n\t\t\t fw.write(fileString);\n\t\t fw.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n \n\n\t}",
"public void recordOrder(){ \n PrintWriter output = null;\n try{\n output = \n new PrintWriter(new FileOutputStream(\"record.txt\", true));\n }\n catch(Exception e){\n System.out.println(\"File not found\");\n System.exit(0);\n }\n output.println(Tea);//writes into the file contents of String Tea\n output.close();//closes file\n }",
"public void writeToServiceFile()\r\n {\r\n\ttry(ObjectOutputStream toServiceFile = \r\n new ObjectOutputStream(new FileOutputStream(\"listfiles/servicelist.dta\")))\r\n\t{\r\n toServiceFile.writeObject(serviceList);\r\n\t}\r\n\tcatch(NotSerializableException nse)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Service objektene er ikke \"\r\n + \"serialiserbare.\\nIngen registrering på fil!\"\r\n + nse.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n\tcatch(IOException ioe)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Det oppsto en feil ved skriving \"\r\n + \"til fil.\\n\" + ioe.getMessage());\r\n\t}\r\n }",
"private void saveTuple(ArrayList<Tuple> tupleList) {\n\n\t\ttry {\n\t\t\tFileOutputStream fileOutputStream = context.openFileOutput(\n\t\t\t\t\tSAVE_FILE, Context.MODE_PRIVATE);\n\t\t\tOutputStreamWriter outputStreamWriter = new OutputStreamWriter(\n\t\t\t\t\tfileOutputStream);\n\t\t\tGsonBuilder builder = new GsonBuilder();\n\t\t\tGson gson = builder.create();\n\t\t\tgson.toJson(tupleList, outputStreamWriter); // Serialize to Json\n\t\t\toutputStreamWriter.flush();\n\t\t\toutputStreamWriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void writeFile(String file, SLList list) {\n\t\tObjectOutputStream o = null;\n\t\ttry {\n\t\t\to = new ObjectOutputStream(new FileOutputStream(file));\n\t\t} catch (FileNotFoundException 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\n\t\t/**\n\t\t * try/catch block to verify file has been written/created\n\t\t */\n\t\t\n\t\ttry {\n\t\t\to.writeObject(list);\n\t\t\tSystem.out.println(\"File Successfully Created!\");\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\to.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static synchronized void save() {\n\n String team_fil = config.Server.serverdata_file_location + \"/teams.ser\";\n String team_backup = config.Server.serverdata_file_location + \"/teams\";\n\n Calendar dato = new GregorianCalendar();\n\n team_backup += dato.get(Calendar.YEAR) + \"-\" + dato.get(Calendar.DAY_OF_MONTH) + \"-\" + dato.get(Calendar.MONTH) + \"-\";\n team_backup += dato.get(Calendar.HOUR) + \"-\" + dato.get(Calendar.MINUTE) + \".ser\";\n\n admin.logging.globalserverMsg(\"Saving team data to file.\");\n\n try {\n FileOutputStream fil = new FileOutputStream(team_fil);\n FileOutputStream fil_backup = new FileOutputStream(team_backup);\n\n //Skriv til teams.txt\n ObjectOutputStream out = new ObjectOutputStream(fil);\n out.writeObject(team_list);\n out.flush();\n out.close();\n fil.close();\n\n //Skriv til backup fil.\n out = new ObjectOutputStream(fil_backup);\n out.writeObject(team_list);\n out.flush();\n out.close();\n fil.close();\n } catch (Exception e) {\n e.printStackTrace();\n admin.logging.globalserverMsg(\"Error saving team data to file.\");\n }\n }",
"static void save(Schedules schedules, String filename) throws IOException, RBEConfigObjectException\n {\n\t\tFileWriter fw = new FileWriter(filename);\n\t\tschedules.toXML(fw);\n\t\tfw.close();\n }",
"public static void save(String fname, ArrayList<Tweet> tw) {\n\ttry {\n\t FileOutputStream fout = new FileOutputStream(fname);\n\t ObjectOutputStream oos = new ObjectOutputStream(fout);\n\t oos.writeObject(tw);\n\t oos.close();\n\t} catch (FileNotFoundException ex) {\n\t ex.printStackTrace();\n\t} catch (IOException ioex) {\n\t ioex.printStackTrace();\n\t}\n }",
"private void save() {\n if (mCacheFile.exists()) {\n mCacheFile.delete();\n }\n\n try (JsonWriter writer = new JsonWriter(new BufferedWriter(new FileWriter(mCacheFile)))) {\n writer.beginObject();\n writer.name(PRINTER_LIST_NAMES.get(0));\n writer.beginArray();\n for (DiscoveredPrinter printer : mSavedPrinters) {\n printer.write(writer);\n }\n writer.endArray();\n writer.endObject();\n } catch (NullPointerException | IOException e) {\n Log.w(TAG, \"Error while storing to \" + mCacheFile, e);\n }\n }",
"private void saveInFile() {\n try {\n FileOutputStream fos = openFileOutput(FILENAME,\n Context.MODE_PRIVATE);//goes stream based on filename\n BufferedWriter out = new BufferedWriter(new OutputStreamWriter(fos)); //create buffer writer\n Gson gson = new Gson();\n gson.toJson(countbookList, out);//convert java object to json string & save in output\n out.flush();\n fos.close();\n } catch (FileNotFoundException e) {\n throw new RuntimeException();\n } catch (IOException e) {\n throw new RuntimeException();\n }\n }",
"public void savePerRankListPerformanceFile(List<String> ids, List<Double> scores, String prpFile) {\n/* 1455 */ try (BufferedWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(prpFile)))) {\n/* 1456 */ for (int i = 0; i < ids.size(); i++)\n/* */ {\n/* */ \n/* 1459 */ out.write(this.testScorer.name() + \" \" + (String)ids.get(i) + \" \" + scores.get(i));\n/* 1460 */ out.newLine();\n/* */ }\n/* */ \n/* 1463 */ } catch (Exception ex) {\n/* */ \n/* 1465 */ throw RankLibError.create(\"Error in Evaluator::savePerRankListPerformanceFile(): \", ex);\n/* */ } \n/* */ }",
"private void saveToStorage() {\n FileOutputStream fos = null;\n try {\n fos = context.openFileOutput(\"GeoFences\", Context.MODE_PRIVATE);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n oos.writeObject(currentList);\n oos.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private static void saveToFile(ArrayList<Favourite> allFav) {\n\t\t\n\t\tBufferedWriter writer=null;\n\t\t\n\t\ttry {\n\t\t\twriter=new BufferedWriter(new FileWriter(Constants.KEY_FAV_FILE));\n\t\t\tString save=\"\";\n\t\t\tfor(Favourite f:allFav) {\n\t\t\t\tsave+=fileFormat(f);\n\t\t\t}\n\t\t\twriter.write(save);\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t\n\t\t}finally{\n\t\tif(writer!=null){\n\t\t\ttry{\n\t\t\t\twriter.close();\n\t\t\t}catch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\n\t\n}\n\n\t\t\n\t}",
"public void writeToBookingListFile()\r\n {\r\n\ttry(ObjectOutputStream toBookingListFile = \r\n new ObjectOutputStream(new FileOutputStream(\"listfiles/bookinglist.dta\")))\r\n\t{\r\n toBookingListFile.writeObject(bookingList);\r\n bookingList.saveStaticBookingRunNr(toBookingListFile);\r\n\t}\r\n\tcatch(NotSerializableException nse)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Booking objektene er ikke \"\r\n + \"serialiserbare.\\nIngen registrering på fil!\"\r\n + nse.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n\tcatch(IOException ioe)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Det oppsto en feil ved skriving \"\r\n + \"til fil.\\n\" + ioe.getMessage());\r\n\t}\r\n }",
"private void saveTasks() {\n try {\n Writer writer = new Writer(new File(TASKS_FILE));\n for (Task t1: todoList.getListOfTasks()) {\n writer.write(t1);\n }\n writer.close();\n System.out.println(\"Tasks saved to file \" + TASKS_FILE);\n } catch (FileNotFoundException e) {\n System.out.println(\"Unable to save tasks to \" + TASKS_FILE);\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n }",
"public static void save() {\r\n\t\ttry {\r\n\t\t\tFile csv = new File(\"src/transaction.csv\");\r\n\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(csv, false));\r\n\t\t\tbw.write(\"type,account number,amount,year,month,date,cleared\");\r\n\t\t\tbw.newLine();\r\n\t\t\tfor (int i = 0; i < transList.size(); i++) {\r\n\t\t\t\tbw.write(transList.get(i).toFile());\r\n\t\t\t\tbw.newLine();\r\n\t\t\t}\r\n\t\t\tbw.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void save() {\n\t\tFileOutputStream fos;\n\t\ttry {\n\t\t\tfos = new FileOutputStream(\"studentData.dat\");\n\n\t\t\tObjectOutputStream oos;\n\t\t\ttry {\n\t\t\t\toos = new ObjectOutputStream(fos);\n\n\t\t\t\toos.writeObject(studentList);\n\t\t\t\toos.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"File is finished writing to the hard drive\");\n\t}",
"public void saveToFile() {\n FileOutputStream fos = null;\n try {\n //write the object into file\n fos = new FileOutputStream(file);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n oos.writeObject(travelGUI.getTravelAgent());\n oos.flush();\n oos.close();\n }\n catch (IOException ioe) {\n System.out.println(ioe.getMessage());\n if (fos != null) {\n try {\n fos.close();\n }\n catch (IOException ioe2) {\n System.out.println(ioe2.getMessage());\n }\n }\n return;\n }\n finally {\n if (fos != null) {\n try {\n fos.close();\n }\n catch (IOException ioe2) {\n System.out.println(ioe2.getMessage());\n }\n }\n }\n if (fos != null) {\n try {\n fos.close();\n }\n catch (IOException ioe2) {\n System.out.println(ioe2.getMessage());\n }\n }\n }",
"private void saveInFile() {\n try {\n FileOutputStream fos = openFileOutput(FILENAME, Context.MODE_PRIVATE);\n\n BufferedWriter out = new BufferedWriter(new OutputStreamWriter(fos));\n\n Gson gson = new Gson();\n Log.d(\"PersonList\", personList.toString());\n gson.toJson(personList, out);\n out.flush();\n\n fos.close();\n\n } catch (FileNotFoundException e){\n throw new RuntimeException();\n } catch (IOException e){\n e.printStackTrace();\n }\n\n }",
"private void writeBatchToFile(ArrayList<SensorEntry> batch) {\n\n\t\tFile file = new File(currFolder + \"/\" + entriesRecorded + \".csv\");\n\n\t\ttry {\n\n\t\t\tFileOutputStream outputStream = new FileOutputStream(file);\n\n\t\t\tif (!file.exists()) {\n\t\t\t\tfile.createNewFile();\n\t\t\t\toutputStream.write(Constants.INS_DATA_HEADER.getBytes());\n\t\t\t}\n\n\t\t\tfor (SensorEntry e : batch)\n\t\t\t\toutputStream.write((e.toRawString() + \",\" + e.getTimeRecorded() + \"\\n\").getBytes());\n\n\t\t\toutputStream.close();\n\n\t\t\tsetsOfEntriesRecorded++;\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"@Override\n public void saveToFile(List<Product> elements) throws IOException {\n List<String> collect = elements.stream()\n .map(product -> product.toString()) //z wykorzystanie method referencje .map(String::toString)\n .collect(Collectors.toList());\n\n //korzystamy z new io (nio patrz import) a nie jak wczesniej z io (we wprowadzeniu) bo latwiejsze\n Files.write(Paths.get(path), collect);\n\n\n }",
"public void saveScores(){\n try {\n File f = new File(filePath, highScores);\n FileWriter output = new FileWriter(f);\n BufferedWriter writer = new BufferedWriter(output);\n\n writer.write(topScores.get(0) + \"-\" + topScores.get(1) + \"-\" + topScores.get(2) + \"-\" + topScores.get(3) + \"-\" + topScores.get(4));\n writer.newLine();\n writer.write(topName.get(0) + \"-\" + topName.get(1) + \"-\" + topName.get(2) + \"-\" + topName.get(3) + \"-\" + topName.get(4));\n writer.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"static void recordProcess() {\n try {\n PrintWriter output = new PrintWriter(new FileWriter(file, true));\n output.print(huLuWaList.size() + \" \");\n lock.lock();\n for (Creature creature : huLuWaList) {\n output.print(creature.getCreatureName() + \" \" + creature.getX() + \" \" + creature.getY()+\" \");\n }\n output.print(enemyList.size() + \" \");\n for (Creature creature : enemyList) {\n output.print(creature.getCreatureName() + \" \" + creature.getX() + \" \" + creature.getY()+\" \");\n }\n output.println();\n output.close();\n lock.unlock();\n }catch (Exception ex){\n System.out.println(ex);\n }\n }",
"private void saveHistoryToFile(File file) {\n JSONObject head = new JSONObject();\n\n // Meta information about the run\n JSONObject meta = new JSONObject();\n meta.put(\"TotalCycles\", this.totalCycles == -1 ? getEnvironment().getTime() : this.totalCycles);\n meta.put(\"TotalPackets\", this.totalPackets);\n meta.put(\"PacketsDelivered\", this.historyPackets.values().stream()\n .flatMap(Collection::stream)\n .filter(p -> p.mode == PacketAction.Mode.Delivery)\n .count());\n meta.put(\"EnergyConsumed\", UserPanel.getInstance().score);\n\n\n JSONObject moves = new JSONObject();\n moves.put(\"Key\", new JSONArray(new String[] {\"Cycle\", \"AgentID\", \"FromX\", \"FromY\", \"ToX\", \"ToY\"}));\n moves.put(\"Data\", new JSONArray(historyMoves.entrySet().stream()\n .flatMap(entry -> entry.getValue().stream()\n .map(l -> l.toJSONArray(entry.getKey())))\n .collect(Collectors.toList())));\n\n\n JSONObject packetPickup = new JSONObject();\n packetPickup.put(\"Key\", new JSONArray(new String[] {\"Cycle\", \"AgentID\", \"PacketX\", \"PacketY\"}));\n packetPickup.put(\"Data\", new JSONArray(historyPackets.entrySet().stream()\n .flatMap(entry -> entry.getValue().stream()\n .filter(p -> p.mode == PacketAction.Mode.Pickup)\n .map(p -> p.toJSONArray(entry.getKey())))\n .collect(Collectors.toList())));\n\n\n JSONObject packetDelivery = new JSONObject();\n packetDelivery.put(\"Key\", new JSONArray(new String[] {\"Cycle\", \"AgentID\", \"DestinationX\", \"DestinationY\"}));\n packetDelivery.put(\"Data\", new JSONArray(historyPackets.entrySet().stream()\n .flatMap(entry -> entry.getValue().stream()\n .filter(p -> p.mode == PacketAction.Mode.Delivery)\n .map(l -> l.toJSONArray(entry.getKey())))\n .collect(Collectors.toList())));\n\n\n JSONObject packetDrop = new JSONObject();\n packetDrop.put(\"Key\", new JSONArray(new String[] {\"Cycle\", \"AgentID\", \"DropX\", \"DropY\"}));\n packetDrop.put(\"Data\", new JSONArray(historyPackets.entrySet().stream()\n .flatMap(entry -> entry.getValue().stream()\n .filter(p -> p.mode == PacketAction.Mode.Drop)\n .map(l -> l.toJSONArray(entry.getKey())))\n .collect(Collectors.toList())));\n\n\n JSONObject energyUpdate = new JSONObject();\n energyUpdate.put(\"Key\", new JSONArray(new String[] {\"Cycle\", \"AgentID\", \"Operator\", \"Percentage\"}));\n energyUpdate.put(\"Data\", new JSONArray(historyEnergy.entrySet().stream()\n .flatMap(entry -> entry.getValue().stream()\n .map(l -> l.toJSONArray(entry.getKey())))\n .collect(Collectors.toList())));\n\n\n head.put(\"Meta\", meta);\n head.put(\"Moves\", moves);\n head.put(\"PacketPickups\", packetPickup);\n head.put(\"PacketDeliveries\", packetDelivery);\n head.put(\"PacketDrops\", packetDrop);\n head.put(\"EnergyUpdates\", energyUpdate);\n\n try {\n FileWriter writer = new FileWriter(file);\n head.write(writer, 0, 0);\n writer.close();\n } catch (IOException e) {\n System.err.println(\"Failed to write history to file \" + file.getAbsolutePath());\n e.printStackTrace();\n }\n }",
"public void saveFile() throws FileNotFoundException {\r\n try {\r\n PrintWriter out = new PrintWriter(FILE_NAME);\r\n //This puts back the labels that the loadFile removed\r\n out.println(\"date,cust_email,cust_location,product_id,product_quantity\");\r\n int i = 0;\r\n\r\n while (i < orderInfo.size()) {\r\n String saved = orderInfo.get(i).toString();\r\n out.println(saved);\r\n i++;\r\n }\r\n out.close();\r\n } catch (FileNotFoundException e) {\r\n }\r\n\r\n }",
"public void saveToFile(String fileName, ArrayList<String> namesList, ArrayList<ArrayList<Double>> numList)\r\n {\r\n try\r\n {\r\n fileName = fileName + \"/\" + namesList.size() + \"Cities.txt\";\r\n FileWriter filePointer = new FileWriter(fileName, false); //false will replace what is there (append)\r\n PrintWriter output = new PrintWriter(filePointer);\r\n for(int i = 0; i < namesList.size(); i++)\r\n {\r\n String line = namesList.get(i) + \" \" \r\n + numList.get(i).get(0) + \" \" + numList.get(i).get(1) + \"\\n\";\r\n output.write(line);\r\n }\r\n output.close();\r\n }\r\n catch(IOException exp)\r\n {\r\n JOptionPane.showMessageDialog(null, \"Points not Saved\" \r\n + \"Save Error\" + JOptionPane.WARNING_MESSAGE);\r\n }\r\n }",
"public static void saveTestSequenceToJson(TestSequenceList testSequenceList, String absoluteFilePath) {\n Gson gson = new GsonBuilder().enableComplexMapKeySerialization().setPrettyPrinting().create();\r\n String jsonString = gson.toJson(testSequenceList);\r\n try {\r\n FileWriter fileWriter = new FileWriter(absoluteFilePath);\r\n fileWriter.write(jsonString);\r\n System.out.println(\"File saved successfully\");\r\n fileWriter.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public void task_1_write(List<MonitoredData> timeline) throws IOException {\n FileWorker.writeFile(1, timeline, 0, null, null, null);\n }",
"String saveToFile () throws Exception {\n\n File backupFile = new File(\"../dataBackup.txt\");\n\n// checks if backup file exists, if yes, it attempts to delete it\n if (backupFile.exists() && !backupFile.delete())\n return (\"Save terminated: backup could not be deleted\");\n// attempts to rename file to backup file\n if (!file.renameTo(backupFile))\n return (\"Save terminated: backup could not be created\");\n\n// creates custom writer\n Writer writer = new Writer(new FileWriter(file));\n\n// cycles through all timelines and all their events, writing all into the same file\n for (Timeline timeline : timelines) {\n writer.writeTimeline(timeline);\n for (Event event : timeline.events) {\n writer.writeEvent(event);\n }\n }\n\n writer.close();\n return (\"Save finished successfully\");\n }",
"public static void write(File file, WorkflowTrace trace) throws FileNotFoundException, JAXBException, IOException {\n FileOutputStream fos = new FileOutputStream(file);\n WorkflowTraceSerializer.write(fos, trace);\n }",
"void saveSet() {\n if( file==null ) {\n int returnVal = fc.showSaveDialog(this);\n if (returnVal != JFileChooser.APPROVE_OPTION) {\n System.out.println(\"Open command cancelled by user.\");\n return;\n }\n file = fc.getSelectedFile();\n }\n System.out.println(\"Saving to: \" + file.getName());\n try {\n int count = tabbedPane.getTabCount();\n ArrayList l = new ArrayList();\n for(int i=0; i< count; i++) {\n rrpanel= (RoombaRecorderPanel)tabbedPane.getComponentAt(i);\n l.add(rrpanel.copy());\n }\n FileOutputStream fos = new FileOutputStream(file);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n //oos.writeObject(loopButton);\n //oos.writeObject(\n oos.writeObject(l);\n oos.close();\n } catch( Exception e ) {\n System.out.println(\"Save error \"+e);\n }\n }",
"public void saveFile(TaskList tasklist) {\n try {\n String cwd = System.getProperty(\"user.dir\");\n FileWriter fw = new FileWriter(cwd + filePath);\n for (Task task : tasklist.getTasks()) {\n String data = task.getData();\n fw.write(data + System.lineSeparator());\n }\n fw.close();\n } catch (IOException e) {\n System.out.println(\"Something went wrong: \" + e.getMessage());\n }\n\n }",
"public void save() throws FileNotFoundException {\n PrintWriter myWriter = new PrintWriter(\"duke.txt\");\n for (Task t : TaskList.getTasklist()) {\n myWriter.println(t.toString());\n }\n myWriter.flush();\n myWriter.close();\n }",
"private void writeToFile(String pathName,Object logs) {\r\n try {\r\n File save = new File(pathName);\r\n FileOutputStream fileOutputStream = new FileOutputStream(save);\r\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream);\r\n objectOutputStream.writeObject(logs);\r\n // System.out.println(\"write successful for\"+pathName);\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"private static void saveIntoFile() throws IOException {\n\n\t\tDateFormat format = new SimpleDateFormat(\"yyyy.MM.dd.HH.mm.ss\");\n\t\tString fileName = \"./ipmi.\" + format.format(new Date()) + \".log\";\n\n\t\tBasicConsumptionList file = new BasicConsumptionList();\n\t\tlogger.debug(\"file:\" + fileName);\n\t\tfile.setWriter(new FileWriter(fileName));\n\n\t\tSystem.err.println(ipmi.execute(Command.IPMI_SENSOR_LIST));\n\n\t\twhile (true) {\n\t\t\tDouble watts = ipmi.getWatt();\n\t\t\tfile.addData(System.currentTimeMillis(), watts);\n\t\t\tfile.commit();\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tlogger.trace(\"\", e);\n\t\t\t}\n\t\t}\n\t}",
"public static void writeJsonToFile(List<Object> objLst, File file) throws Exception {\n writeJsonToFile(objLst, file, false);\n }",
"public void saveProgramToFile(ArrayList<String> programNameList, File file) throws IOException {\n\t\tsqlDb.saveProgramToFile(programNameList, file);\n\t}",
"public void writeScores() throws IOException {\n if (this.list.isPresent() && this.toSave) {\n try (DataOutputStream out = new DataOutputStream(new FileOutputStream(this.file))) {\n for (final Pair<String, Integer> p : this.list.get()) {\n out.writeUTF(p.getX());\n out.writeInt(p.getY().intValue());\n }\n this.toSave = false;\n } catch (IOException e) {\n System.out.println(\"IOException on writing scores\");\n }\n }\n\n }",
"private static void writeToFilePriceHistory() throws IOException {\n FileWriter write = new FileWriter(path3, append);\n PrintWriter print_line = new PrintWriter(write);\n ArrayList<Product> stock = Inventory.getStock();\n for (int i = 0; i < stock.size(); i++) {\n Product product = (Product) stock.get(i);\n int UPC = product.getUpc();\n ArrayList<String> priceH = product.price.getArrayPriceHistory();\n for (int j = 0; j < priceH.size(); j++) {\n String price = priceH.get(j);\n textLine = UPC + \" \" + price;\n print_line.printf(\"%s\" + \"%n\", textLine);\n }\n }\n print_line.close();\n }",
"public void writeToHotelRoomListFile()\r\n {\r\n\ttry(ObjectOutputStream toHotelRoomListFile = \r\n new ObjectOutputStream(new FileOutputStream(\"listfiles/hotelroomlist.dta\")))\r\n\t{\r\n toHotelRoomListFile.writeObject(hotelRoomList);\r\n hotelRoomList.saveStaticPrice(toHotelRoomListFile);\r\n\t}\r\n\tcatch(NotSerializableException nse)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Hotelrom objektene er ikke \"\r\n + \"serialiserbare.\\nIngen registrering på fil!\"\r\n + nse.getMessage(), \"Feilmelding\", \r\n JOptionPane.ERROR_MESSAGE);\r\n\t}\r\n\tcatch(IOException ioe)\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"Det oppsto en feil ved skriving \"\r\n + \"til fil.\\n\" + ioe.getMessage());\r\n\t}\r\n }",
"public void saveTimeline(Timeline timeline, File file) throws Exception {\n\n\t\tJAXBContext context = JAXBContext.newInstance(Timeline.class);\n\t\tMarshaller marshaller = context.createMarshaller();\n\t\tmarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\t\tmarshaller.marshal(timeline, file);\n\n\t}",
"public static void writeToFile(String fileName, ArrayList<String> linesList) throws IOException\n {\n PrintWriter printWriter = new PrintWriter(new FileWriter(fileName));\n for(String currentLine : linesList)\n {\n printWriter.println(currentLine);\n }\n printWriter.close();\n }",
"public void writer(List<String> toStore) throws IOException{\n //creates writer and clears file\n PrintWriter writer = new PrintWriter(\"output.txt\", \"UTF-8\");\n //for each loop to store all the values in the file into the file named output.txt\n for(String s : toStore)\n //stores the strings for outputting\n writer.println(s);\n //closes the writer and outputs to the file\n writer.close();\n }",
"private static void saveLogs(boolean append) {\n\t\ttry {\n\t\t\tif (alLogs!=null && alLogs.size()>0) {\n\t\t\t\t// Convert the ArrayList to string array\n\t\t\t\tString[] arrLogs = new String[alLogs.size()];\n\t\t\t\tarrLogs = alLogs.toArray(arrLogs);\n\n\t\t\t\t// Open the log\n\t\t\t\tFileWriter fileWriterLog = new FileWriter(FILE_LOG, append);\n\n\t\t\t\t// User BufferedWriter to add new line\n\t\t\t\tBufferedWriter bufferedWriterLog = new BufferedWriter(fileWriterLog);\n\n\t\t\t\t// Go through all the content and write them to the file\n\t\t\t\tfor(int ix=0; ix < arrLogs.length; ix++) {\n\t\t\t\t\t// Write the current log\n\t\t\t\t\tbufferedWriterLog.write(arrLogs[ix]);\n\t\t\t\t\t// One log one line\n\t\t\t\t\tbufferedWriterLog.newLine();\n\t\t\t\t}\n\n\t\t\t\t// Always close files.\n\t\t\t\tbufferedWriterLog.close();\n\t\t\t}\n\t\t}\n\t\tcatch(FileNotFoundException ex) {\n\t\t\tSystem.out.println(\"Unable to open file '\" + FILE_LOG + \"'\");\n\t\t}\n\t\tcatch(IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}",
"public void saveToDoList() {\n try {\n jsonWriter.open();\n jsonWriter.write(toDoList);\n jsonWriter.close();\n\n System.out.println(\"Saved \" + toDoList.getName() + \" to \" + JSON_STORE);\n } catch (FileNotFoundException e) {\n System.out.println(\"Unable to write to file: \" + JSON_STORE);\n }\n }",
"private void writeArrayToFile(Warship[] wsArr, FileOutputStream fos) throws Exception {\n\t\tPrintWriter pw = null;\n\t\ttry {\n\t\t\tpw = new PrintWriter(fos);\n\t\t\tfor (Warship ws : wsArr) {\n\t\t\t\tif (ws != null) {\n\t\t\t\t\tpw.println(ws);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tthrow new Exception(e.getMessage());\n\t\t} finally {\n\t\t\tif (pw != null) {\n\t\t\t\tpw.close();\n\t\t\t}\n\t\t}\n\t}",
"public void saveTasks() {\n try {\n BufferedWriter taskWriter = new BufferedWriter(new FileWriter(path));\n String tasks = \"\";\n for (Task task : TaskList.getTaskLists()) {\n tasks += task.toSaveString() + \"\\n\";\n }\n taskWriter.write(tasks);\n taskWriter.close();\n } catch (IOException e) {\n System.out.println(\"Sorry Boss, \" + e.getMessage());\n }\n }",
"public static void save(){\n\t\tif(GUIReferences.currentFile != null) {\n\t\t\txml.XMLSaver.saveSensorList(GUIReferences.currentFile);\n\t\t\tGUIReferences.saveMenuItem.setEnabled(false);\n\t\t} else {\n\t\t\tsaveAs();\n\t\t}\n\t}",
"public void writeList() {\n try{\n PrintWriter out = new PrintWriter(new FileWriter(\"OutFile.txt\"));\n\n for (int i = 0; i < SIZE; i++) {\n // The get(int) method throws IndexOutOfBoundsException, which must be caught.\n out.println(\"Value at: \" + i + \" = \" + list.get(i));\n }\n out.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"public void writeToFile(TaskList tasks) {\n try {\n FileWriter fw = new FileWriter(filePath);\n for (Task t : tasks.getListOfTasks()) {\n fw.write(t.getRecordString() + \"\\n\");\n }\n fw.close();\n } catch (IOException e) {\n System.out.println(\"Error writing to data file.\");\n }\n }",
"public void tempSaveToFile() {\n try {\n ObjectOutputStream outputStream = new ObjectOutputStream(\n this.openFileOutput(MenuActivity2048.TEMP_SAVE_FILENAME, MODE_PRIVATE));\n outputStream.writeObject(boardManager);\n outputStream.close();\n } catch (IOException e) {\n Log.e(\"Exception\", \"File write failed: \" + e.toString());\n }\n }",
"public void saveToFile()\n\t{\t\n\t\tsetCourseToFileString(courseToFileString);\n\t\t\ttry \n\t {\n\t FileWriter fw = new FileWriter(fileName);\n\t fw.write (this.getCourseToFileString ( ));\n\t for(Student b : this.getStudents ( ))\t \t\n\t \tfw.write(b.toFileString ( ));\n\t \tfw.close ( );\n\t } \n\t catch (Exception ex) \n\t {\n\t ex.printStackTrace();\n\t }\n\t\t\tthis.saveNeed = false;\n\n\t}",
"public static void writeFile(List<Task> database) {\r\n assert database != null: \"Storage.writeFile(): database cannot be null\";\r\n File dir = new File(\"./tmp/data\");\r\n try {\r\n FileWriter fw = new FileWriter(new File(dir, \"storage.txt\"));\r\n for (Task task : database) {\r\n assert task != null: \"Storage.writeFile(): task to be added cannot be null\";\r\n fw.write(task.serialize() + \"\\n\");\r\n }\r\n fw.close();\r\n } catch (IOException e) {\r\n throw new Error(\"Something went wrong: \" + e.getMessage());\r\n }\r\n }",
"public void saveReport() {\n\t\ttry {\n\t\t\tPrintWriter out = new PrintWriter(new FileOutputStream(reportFile));\n\t\t\tout.println(record.reportToString());\n\t\t\tout.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void saveHistory(OperatorSelectionHistory history,String filename){\n try(ObjectOutputStream os = new ObjectOutputStream(new FileOutputStream(filename));){\n os.writeObject(history);\n os.close();\n } catch (IOException ex) {\n Logger.getLogger(IOSelectionHistory.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"void write(File file) throws IOException {\n Files.createParentDirs(file);\n FileWriter fileWriter = new FileWriter(file);\n try {\n for (Map.Entry<String, Status> record : records.entrySet()) {\n fileWriter.write(String.format(\"%s,%s\", record.getValue(), record.getKey()));\n fileWriter.write(\"\\n\");\n }\n } finally {\n fileWriter.close();\n }\n }",
"private void exportFile()\n\t{\n\t\ttry\n\t\t{\n\t\t\tdrinkListFileOutput = new BufferedWriter(new FileWriter(drinkListFile));\n\t\t\tdrinkListFileOutput.write(exportDrinkList);//insert string of drinks\n\t\t\tdrinkListFileOutput.close();\n\t\t\tJOptionPane.showMessageDialog(null, \"Successfully saved drinks\");\n\t\t}\n\t\tcatch(IOException e)\n\t\t{\n\t\t\te.toString();//change this\n\t\t\tJOptionPane.showMessageDialog(null, \"Drink save error: \" + e.toString());//change this);\n\t\t}\n\n\n\n\t}",
"public void save() {\n\t\tWriteFile data = new WriteFile( this.name + \".txt\" );\n\t\ttry {\n\t\t\t data.writeToFile(this.toString());\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.out.println(\"Couldn't print to file\");\n\t\t}\n\t}",
"public void writeVisits() {\n try {\n FileOutputStream fileOut = new FileOutputStream(\"temp/visits.ser\");\n ObjectOutputStream out = new ObjectOutputStream(fileOut);\n out.writeObject(visits);\n out.close();\n fileOut.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"public static void saveBlockESPList(){\n try {\n \tCE_ForgeLoader.instance().log(\"Writting BlockESP block list configuration file...\");\n File file = new File( someDir, \"\" );\n BufferedWriter bufferedwritter = new BufferedWriter( new FileWriter( file ) );\n for( int i : BlockESP.espList ) {\n bufferedwritter.write( i + \"\\r\\n\" );\n }\n bufferedwritter.close( );\n\n } catch( Exception ex ) {\n \tCE_ForgeLoader.instance().log(\"Can't write BlockESP configuration file! Custom blocks for X-Ray will be disabled!\");\n \tCE_ForgeLoader.instance().log(\"Error in CE init: \" + ex.toString( ) );\n }\n }",
"private void saveIds(ArrayList<String> idList) {\n\n\t\ttry {\n\t\t\tFileOutputStream fileOutputStream = context.openFileOutput(\n\t\t\t\t\tSAVE_FILE, Context.MODE_PRIVATE);\n\t\t\tOutputStreamWriter outputStreamWriter = new OutputStreamWriter(\n\t\t\t\t\tfileOutputStream);\n\t\t\tGsonBuilder builder = new GsonBuilder();\n\t\t\tGson gson = builder.create();\n\t\t\tgson.toJson(idList, outputStreamWriter); // Serialize to Json\n\t\t\toutputStreamWriter.flush();\n\t\t\toutputStreamWriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void rewriteLocationList(List<Location> newLocationList) {\n Log.d(\"debugMode\", \"writing new contents\");\n for (Location location : newLocationList) {\n String line = \"\\n\" + location.returnFull();\n byte[] bytes = line.getBytes();\n\n FileOutputStream out;\n try {\n Log.d(\"debugMode\", location.returnFull());\n out = openFileOutput(\"Locations.txt\", MODE_APPEND);\n out.write(bytes);\n out.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }",
"private static void writeToOrder() throws IOException {\n FileWriter write = new FileWriter(path5, append);\n PrintWriter print_line = new PrintWriter(write);\n ArrayList<Order> orders = Inventory.getOrderHistory();\n for (int i = 0; i < orders.size(); i++) {\n Order o = (Order) orders.get(i);\n\n String orderNum = String.valueOf(o.getOrderNumber());\n String UPC = String.valueOf(o.getUpc());\n String productName = o.getProductName();\n String distName = o.getDistributorName();\n String cost = String.valueOf(o.getCost());\n String quantity = String.valueOf(o.getQuantity());\n String isProcesed = String.valueOf(o.isProcessed());\n\n textLine =\n orderNum + \", \" + UPC + \", \" + quantity + \",\" + productName + \", \" + distName + \", \" + cost\n + \", \" + isProcesed;\n print_line.printf(\"%s\" + \"%n\", textLine);\n\n }\n print_line.close();\n\n }",
"private static void writeToStudentsFile() throws IOException{\n\t\tFileWriter fw = new FileWriter(STUDENTS_FILE, false); //overwrites the students.txt file\n\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\n\t\tIterator<StudentDetails> iter = ALL_STUDENTS.listIterator(1); //Get all StudentDetails objects from index 1 of ALL_STUDENTS. This is because the value at index 0 is just a dummy student\n\t\twhile(iter.hasNext()){\n\t\t\tStudentDetails student = iter.next();\n\t\t\tbw.write(student.ParseForTextFile()); //writes the Parsed Form of the StudentDetails object to the students.txt file\n\t\t}\n\t\t\n\t\tbw.close();\n\t}",
"private void saveLocalFile(ByteArrayOutputStream out) {\n //sava in local files\n FileWriter fw;\n File file = new File(\"/home/shaowen2/testdata/\" + \"vm\" +servers.getServerAddress().substring(15, 17) +\"-ouput.log\");\n\n try {\n if (!file.exists()) {\n file.createNewFile();\n }\n fw = new FileWriter(file);\n BufferedWriter bw = new BufferedWriter(fw);\n bw.write(out.toString());\n //bw.write(\"\\n\" + \"Query Count:\" + count + \"|| Time:\" + new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(new Date()) + \"\\n\");\n bw.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void save() {\n CSVWriter csvWriter = new CSVWriter();\n csvWriter.writeToTalks(\"phase1/src/Resources/Talks.csv\", this.getTalkManager()); //Not implemented yet\n }",
"public void save(List<T> data) {\n\t\ttry {\n\t\t\tFile file = new File(getFileLocation());\n\t\t\tif (!file.getParentFile().exists()) {\n\t\t\t\tfile.getParentFile().mkdirs();\n\t\t\t}\n\t\t\tFileWriter fw = new FileWriter(getFileLocation());\n\t\t\tBufferedWriter bw = new BufferedWriter(fw);\n\t\t\tbw.write(gson.toJson(data));\n\t\t\tbw.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void saveOffers() {\n System.out.println(this.currentChild);\n // TODO [assignment_final] ulozeni aktualnich nabidek do souboru (vyberte si nazev souboru a format jaky uznate za vhodny - CSV nebo JSON)\n }",
"private void writeAll(){\n try (BufferedWriter ignored = new BufferedWriter(new FileWriter(this.fileName))) {\n Iterable<E> values=entities.values();\n values.forEach(this::writeToFile);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }"
] | [
"0.81654656",
"0.6976458",
"0.6780514",
"0.6712326",
"0.6583289",
"0.651682",
"0.64076895",
"0.6385375",
"0.63649875",
"0.6343354",
"0.6299355",
"0.6261202",
"0.6203979",
"0.61540854",
"0.6133156",
"0.61277026",
"0.61256206",
"0.61106",
"0.6107782",
"0.60980153",
"0.6097098",
"0.60950387",
"0.6088875",
"0.60634595",
"0.6056366",
"0.6043761",
"0.6042991",
"0.60372186",
"0.6028617",
"0.6017728",
"0.60121244",
"0.600115",
"0.5984657",
"0.59773093",
"0.5971599",
"0.5970856",
"0.5962575",
"0.59551126",
"0.5951977",
"0.59438145",
"0.59419477",
"0.59404266",
"0.59389067",
"0.5935572",
"0.59301925",
"0.59138846",
"0.5913242",
"0.5904049",
"0.5886055",
"0.5873851",
"0.5870495",
"0.58688647",
"0.58677804",
"0.5856606",
"0.5821504",
"0.58197546",
"0.5808939",
"0.5807818",
"0.5806613",
"0.58009183",
"0.5779593",
"0.57760316",
"0.5775879",
"0.5770047",
"0.57640237",
"0.5758997",
"0.5757746",
"0.57501805",
"0.57459223",
"0.57456887",
"0.5745598",
"0.5743884",
"0.57428336",
"0.57402515",
"0.57258105",
"0.5700429",
"0.5697898",
"0.5696708",
"0.56957996",
"0.56939894",
"0.56935966",
"0.5691043",
"0.5690589",
"0.56897515",
"0.5689064",
"0.5670967",
"0.5669388",
"0.5667845",
"0.5667264",
"0.5665611",
"0.5658557",
"0.5653214",
"0.56494826",
"0.5647297",
"0.5643994",
"0.56373376",
"0.56326044",
"0.56312776",
"0.56278545",
"0.5627532"
] | 0.6698151 | 4 |
Helper binding method for function: debug_getMachineType. | public static final SourceModel.Expr debug_getMachineType(SourceModel.Expr calValue) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.debug_getMachineType), calValue});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getMachineType();",
"MachineType getType();",
"com.google.protobuf.ByteString getMachineTypeBytes();",
"public MachineType getMachineType() {\n return machineType;\n }",
"public com.flexnet.opsembedded.webservices.DeviceMachineTypeQueryType getMachineType() {\n return machineType;\n }",
"boolean hasMachineType();",
"public MachineTypeId getMachineTypeId() {\n return machineTypeId;\n }",
"String vmExtensionType();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"public ObjectType getJVMType();",
"private String getType( )\n\t{\n\t\treturn this.getModuleName( ) + \"$\" + this.getSimpleName( ) + \"$\" + this.getSystem( );\n\t}",
"public PlatformType getPlatformType();",
"public String getSystemType() {\n \t\treturn fSystemType;\n \t}",
"public String type();",
"@Override\n public byte getType() {\n return TYPE_MONETARY_SYSTEM;\n }",
"public abstract String getMachineID();",
"public static final SourceModel.Expr inputMachineType(SourceModel.Expr jMachineType) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.inputMachineType), jMachineType});\n\t\t}",
"private String getAltRegType() { // TODO - fix Register reference hardcoded in reg defines parm default?\n\t\tString firstChar = regProperties.getId().substring(0, 1);\n\t\t// change case of first character in name to create type\n\t\tString regTypeParam;\n\t\tif (firstChar.equals(firstChar.toUpperCase()))\n\t\t regTypeParam = regProperties.getId().replaceFirst(firstChar, firstChar.toLowerCase()); // change to lc\n\t\telse\n\t\t regTypeParam = regProperties.getId().replaceFirst(firstChar, firstChar.toUpperCase()); // change to uc \n\t\tString regBaseType = regProperties.isReplicated()? \"RegisterArray\" : \"Register\";\n\t\treturn regBaseType + \" #(\" + getAltBlockType() + \"::\" + regTypeParam + \")\"; // TODO - make parameterizable, getAddressMapName() + \"_\" + regProperties.getBaseName() + \"_t\" \n\t}",
"private String getTelephonyNetworkType() {\n assert NETWORK_TYPES[14].compareTo(\"EHRPD\") == 0;\n\n int networkType = telephonyManager.getNetworkType();\n if (networkType < NETWORK_TYPES.length) {\n return NETWORK_TYPES[telephonyManager.getNetworkType()];\n } else {\n return \"Unrecognized: \" + networkType;\n }\n }",
"so.sao.test.protobuf.TestServer.PhoneType getPhoneType();",
"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 void setMachineType(com.flexnet.opsembedded.webservices.DeviceMachineTypeQueryType machineType) {\n this.machineType = machineType;\n }",
"public String getClientMachine();",
"public static final SourceModel.Expr jMachineType_G() {\n\t\t\treturn SourceModel.Expr.Var.make(Functions.jMachineType_G);\n\t\t}",
"public JvmType getClassx();",
"java.lang.String getMachineId();",
"public String getrType() {\n return rType;\n }",
"public org.apache.axis2.databinding.types.soapencoding.String getGetTerminalCardTypeReturn(){\n return localGetTerminalCardTypeReturn;\n }",
"String getSType();",
"String getTypeAsString();",
"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 VarTypeNative getFieldVarType();",
"private String getType(){\r\n return type;\r\n }",
"public java.lang.String getMachineId() {\n java.lang.Object ref = machineId_;\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 machineId_ = s;\n }\n return s;\n }\n }",
"public String getDevice_type() {\r\n\t\treturn device_type;\r\n\t}",
"java.lang.String getAppType();",
"public abstract String getWorldType();",
"OperatingSystemTypes osType();",
"@Override\r\n\tpublic String typeV() {\n\t\treturn hio.TyreType();\r\n\t}",
"public String getType(JmmNode node) {\n switch (node.getKind()) {\n case \"Add\":\n case \"Sub\":\n case \"Mul\":\n case \"Div\":\n return \"int\";\n\n case \"LessThan\":\n case \"And\":\n case \"Not\":\n return \"boolean\";\n\n case \"Var\":\n return getVariableSymbol(node.get(\"name\")).getType().getName();\n default:\n return null;\n }\n }",
"@Override\n public String getDeviceTypeId() {\n \n return this.strTypId;\n }",
"public static native int GetType(long lpjFbxDataType);",
"public Class getRunTimeType() {\n return lho.getRuntimeType();\n }",
"type getType();",
"int getTypeValue();"
] | [
"0.8389934",
"0.77487195",
"0.74681294",
"0.71882504",
"0.6974482",
"0.6913132",
"0.6430879",
"0.6376484",
"0.60244334",
"0.60244334",
"0.60244334",
"0.60244334",
"0.60244334",
"0.60244334",
"0.60244334",
"0.60244334",
"0.60244334",
"0.60244334",
"0.60244334",
"0.60244334",
"0.60244334",
"0.60244334",
"0.60244334",
"0.60244334",
"0.60244334",
"0.60244334",
"0.60244334",
"0.60244334",
"0.6007258",
"0.60026187",
"0.58195794",
"0.5800561",
"0.57961375",
"0.5761647",
"0.5730692",
"0.5703664",
"0.56496197",
"0.5648343",
"0.560206",
"0.5596197",
"0.5596197",
"0.5596197",
"0.5596197",
"0.5596197",
"0.5596197",
"0.5596197",
"0.5596197",
"0.5596197",
"0.5596197",
"0.5596197",
"0.5596197",
"0.5596197",
"0.5596197",
"0.5596197",
"0.5596197",
"0.5596197",
"0.5596197",
"0.5596197",
"0.5596197",
"0.5596197",
"0.5596197",
"0.5596197",
"0.5596197",
"0.5596197",
"0.55940205",
"0.5566501",
"0.55507207",
"0.55000305",
"0.5499457",
"0.5490188",
"0.5489173",
"0.5478218",
"0.5470506",
"0.54093",
"0.54093",
"0.54093",
"0.54093",
"0.54093",
"0.54093",
"0.54093",
"0.54093",
"0.54093",
"0.54093",
"0.54093",
"0.54093",
"0.54093",
"0.54053855",
"0.5405289",
"0.5394382",
"0.53488106",
"0.5348273",
"0.53477484",
"0.53376067",
"0.5336098",
"0.5329778",
"0.5310635",
"0.53076184",
"0.5302544",
"0.5299699",
"0.5293665"
] | 0.7245324 | 3 |
Helper binding method for function: executionContext_addTracedFunction. | public static final SourceModel.Expr executionContext_addTracedFunction(SourceModel.Expr executionContext, SourceModel.Expr tracedFunction) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_addTracedFunction), executionContext, tracedFunction});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static final SourceModel.Expr executionContext_getTracedFunctions(SourceModel.Expr executionContext) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_getTracedFunctions), executionContext});\n\t\t}",
"public static final SourceModel.Expr executionContext_removeTracedFunction(SourceModel.Expr executionContext, SourceModel.Expr tracedFunction) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_removeTracedFunction), executionContext, tracedFunction});\n\t\t}",
"@External\r\n\t@SharedFunc\r\n\tpublic MetaVar Trace(){throw new RuntimeException(\"Should never be executed directly, there is probably an error in the Aspect-coding.\");}",
"@Override\r\n\tpublic ExecutedFunctionsProgramPoint addExecutedFuncsProgramPoint(\r\n\t\t\tString name, String lineNo) {\n\t\treturn null;\r\n\t}",
"public static final SourceModel.Expr executionContext_setTracingEnabled(SourceModel.Expr executionContext, SourceModel.Expr tracingEnabled) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_setTracingEnabled), executionContext, tracingEnabled});\n\t\t}",
"public void addFunctionSerialization(String name, String expressionString) {\n wrappedSerializationContext.addFunctionSerialization(name, expressionString);\n }",
"public boolean addFunction(Accessibility pPAccess, SubRoutine pExec, MoreData pMoreData);",
"public static final SourceModel.Expr executionContext_isTracingEnabled(SourceModel.Expr executionContext) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_isTracingEnabled), executionContext});\n\t\t}",
"public Function getFunctionAt(Address entryPoint);",
"@Override\n public void visitFunction(Function function) {\n }",
"protected void addToThreadExecutionContext(ExecutionContext threadContext, Partition partition) {\n // There is not any default implementation.\n }",
"@Override\n\tpublic void trace(MessageSupplier msgSupplier, Throwable t) {\n\n\t}",
"void addLiftedLetVarFunction (MachineFunction letVarFunction, String originatingFunction) {\r\n this.liftedLetVarMachineFunctions.put(letVarFunction.getName(), letVarFunction);\r\n Set<String> cl = this.functionNameToLiftedFunctions.get(originatingFunction);\r\n if (cl == null) {\r\n cl = new HashSet<String>();\r\n this.functionNameToLiftedFunctions.put(originatingFunction, cl);\r\n }\r\n cl.add(letVarFunction.getName());\r\n }",
"@Override\n\tpublic void trace(Marker marker, MessageSupplier msgSupplier, Throwable t) {\n\n\t}",
"public final void addFunction(DepFunction function) {\n\t\tthis.functionMap.put(function.getName(), function);\n\t}",
"@Override\n\tpublic void trace(Supplier<?> msgSupplier, Throwable t) {\n\n\t}",
"public void addFunctionTypeSerialization(String functionName, TensorType type) {\n wrappedSerializationContext.addFunctionTypeSerialization(functionName, type);\n }",
"@Override\n\tpublic void trace(Marker marker, Supplier<?> msgSupplier, Throwable t) {\n\n\t}",
"public void addFunction( Object obj)\r\n {\r\n functionClasses.add(obj);\r\n }",
"private void instrumentCode(NodeTraversal traversal, Node block, String fnName) {\n block.addChildToFront(newInstrumentationNode(traversal, block, fnName));\n compiler.reportChangeToEnclosingScope(block);\n }",
"void add(T context);",
"InterpreterRuntimeContext createInterpreterRuntimeContext();",
"@Override\r\n\tpublic void addFunction(Function function) {\n\t\tgetHibernateTemplate().save(function);\r\n\t}",
"protected void sequence_FunctionOperation(ISerializationContext context, FunctionOperation semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}",
"org.globus.swift.language.Function addNewFunction();",
"public FuncCallExecutor(ThreadRuntime rt) {\r\n\t\tthis.rt = rt;\r\n\t}",
"@Override\r\n\tpublic FuncCallProgramPoint addFuncCallProgramPoint(String name,\r\n\t\t\tString lineNo) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic void trace(MessageSupplier msgSupplier) {\n\n\t}",
"void threadAdded(String threadId);",
"@Override\n\tpublic void visit(Function arg0) {\n\t\t\n\t}",
"public void trace(String loggerFqcn, Object message, Throwable t)\n/* */ {\n/* 153 */ this.logger.trace(loggerFqcn, message, t);\n/* */ }",
"private void constrainTraceMethod(ServletContextHandler ctxHandler) {\n Constraint c = new Constraint();\n c.setAuthenticate(true);\n\n ConstraintMapping cmt = new ConstraintMapping();\n cmt.setConstraint(c);\n cmt.setMethod(\"TRACE\");\n cmt.setPathSpec(\"/*\");\n\n ConstraintSecurityHandler securityHandler = new ConstraintSecurityHandler();\n securityHandler.setConstraintMappings(new ConstraintMapping[] {cmt});\n\n ctxHandler.setSecurityHandler(securityHandler);\n }",
"@Override\n\tpublic void trace(String message, Throwable t) {\n\n\t}",
"@Override\n\tpublic void visit(Function arg0) {\n\n\t}",
"static <T extends Throwable> T augmentStackTrace(T e) {\n RandomizedContext context = RandomizedContext.current();\n return augmentStackTraceNoContext(e, context.getRandomnesses());\n }",
"private Node newInstrumentationNode(NodeTraversal traversal, Node node, String fnName) {\n\n String type = \"Type.FUNCTION\";\n\n String encodedParam = parameterMapping.getEncodedParam(traversal.getSourceName(), fnName, type);\n\n Node innerProp = IR.getprop(IR.name(MODULE_RENAMING), IR.string(INSTRUMENT_CODE_INSTANCE));\n Node outerProp = IR.getprop(innerProp, IR.string(INSTRUMENT_CODE_FUNCTION_NAME));\n Node functionCall = IR.call(outerProp, IR.string(encodedParam), IR.number(node.getLineno()));\n Node exprNode = IR.exprResult(functionCall);\n\n return exprNode.useSourceInfoIfMissingFromForTree(node);\n }",
"public abstract int trace();",
"@Override\n\tpublic void trace(Object message, Throwable t) {\n\n\t}",
"public static final SourceModel.Expr executionContext_traceShowsFunctionArgs(SourceModel.Expr executionContext) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_traceShowsFunctionArgs), executionContext});\n\t\t}",
"public boolean addFuncDynamic(Accessibility pAccess, ExecSignature pES, MoreData pMoreData);",
"void trace(String a, String b) {\n\t\t}",
"public Function getFunction();",
"public static final SourceModel.Expr executionContext_setTraceShowsFunctionArgs(SourceModel.Expr executionContext, SourceModel.Expr traceShowsFunctionArgs) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_setTraceShowsFunctionArgs), executionContext, traceShowsFunctionArgs});\n\t\t}",
"@Override\n\t<T> T runWithContext(Callable<T> callable) throws Exception;",
"@Override\r\n\tpublic Trainee addTrainee(Trainee t) {\n\t\treturn dao.addTrainee(t);\r\n\t}",
"<T> T runWithDebugging(Environment env, String threadName, DebugCallable<T> callable)\n throws EvalException, InterruptedException;",
"protected int addTracedRelations(boolean forward, EntityInstance e, RelationClass rc, ResultBox resultBox, boolean groupingFlag, int steps, boolean traceLifted)\r\n\t{\r\n\t\tVector\t\t\tlist = new Vector();\r\n\t\tint\t\t\t\tsize;\r\n\r\n\t\taddToTracedList(forward, e, e, rc, true /* MarkFlag */, groupingFlag, list, steps, traceLifted);\r\n\r\n\t\tsize = list.size();\r\n\t\tif (size > 0) {\r\n\t\t\tclearFoundList(list);\r\n\t\t\tresultBox.addRelations(e, rc, list, forward, (rc == null));\r\n\t\t}\r\n\t\treturn size;\r\n\t}",
"public interface TraceInfo {\n TraceMode traceMode();\n\n String userName();\n\n String dbInstance();\n\n default <R> R trace(String operationName, String sql, TraceableSQL<R> code) throws SQLException {\n if (traceMode() == TraceMode.OFF) {\n return code.execute();\n }\n Tracer tracer = GlobalTracer.get();\n // skip if there is no active parent\n if (traceMode() == TraceMode.ACTIVE && tracer.activeSpan() == null) {\n return code.execute();\n }\n\n Tracer.SpanBuilder builder = tracer.buildSpan(operationName)\n .withTag(Tags.DB_TYPE.getKey(), \"sql\")\n .withTag(Tags.DB_USER.getKey(), userName());\n\n if (sql != null) {\n builder.withTag(Tags.DB_STATEMENT.getKey(), sql);\n }\n if (dbInstance() != null ) {\n builder.withTag(Tags.DB_INSTANCE.getKey(), dbInstance());\n }\n\n try (Scope scope = builder.startActive(true)) {\n return code.execute();\n }\n }\n\n}",
"Object getTrace();",
"public void trace(Object message, Throwable t)\n/* */ {\n/* 107 */ debug(message, t);\n/* */ }",
"public void asHigherOrderFunctions() {\nThreadLocal<DateFormat> localFormatter\n = ThreadLocal.withInitial(() -> new SimpleDateFormat());\n\n// Usage\nDateFormat formatter = localFormatter.get();\n// END local_formatter\n\n// BEGIN local_thread_id\n// Or...\nAtomicInteger threadId = new AtomicInteger();\nThreadLocal<Integer> localId\n = ThreadLocal.withInitial(() -> threadId.getAndIncrement());\n\n// Usage\nint idForThisThread = localId.get();\n// END local_thread_id\n }",
"protected DDLambda(Context cxt, String xrayTraceInfo) {\n this();\n this.tracing = new Tracing(xrayTraceInfo);\n this.enhanced = checkEnhanced();\n recordEnhanced(INVOCATION, cxt);\n addTraceContextToMDC();\n startSpan(new HashMap<>(), cxt);\n }",
"protected void sequence_FunctionName(ISerializationContext context, FunctionName semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, SiddhiPackage.eINSTANCE.getFunctionName_Id()) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, SiddhiPackage.eINSTANCE.getFunctionName_Id()));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getFunctionNameAccess().getIdIDTerminalRuleCall_0(), semanticObject.getId());\n\t\tfeeder.finish();\n\t}",
"@Override\n\tpublic CommandFunction getNewFunction() {\n\t\treturn new txnscript();\n\t}",
"@Test\n public void testAdd() throws Exception {\n runTX(new Callable<Void>() {\n public Void call() throws Exception {\n doTestAdd();\n return null;\n }\n });\n runTX(new Callable<Void>() {\n public Void call() throws Exception {\n doTestAddCheck();\n return null;\n }\n });\n }",
"public FunctionExecutionContext() {\n }",
"@Override\n\tpublic void trace(Supplier<?> msgSupplier) {\n\n\t}",
"protected abstract Object invokeInContext(MethodInvocation paramMethodInvocation)\r\n/* 111: */ throws Throwable;",
"@Override\n\tpublic void trace(String message, Supplier<?>... paramSuppliers) {\n\n\t}",
"public void trace(Object message, Throwable t)\n/* */ {\n/* 130 */ this.logger.trace(message, t);\n/* */ }",
"@Override\n\tpublic void trace(Marker marker, MessageSupplier msgSupplier) {\n\n\t}",
"@FunctionalInterface\npublic interface MtAmazonDynamoDbContextProvider {\n\n Optional<String> getContextOpt();\n\n /**\n * Returns a String representation of the current context that can be used to qualify DynamoDB table names. Also\n * used by the shared table strategy in stream ARNs. The String must contain only the following characters:\n * <ol>\n * <li>A-Z</li>\n * <li>a-z</li>\n * <li>0-9</li>\n * <li>_ (underscore)</li>\n * <li>- (hyphen)</li>\n * <li>. (dot)</li>\n * </ol>\n * In addition, combined with the virtual table name and escape characters the String must not exceed 255\n * characters.\n *\n * @return String representation of currently active context.\n */\n default String getContext() {\n return getContextOpt().orElseThrow(IllegalStateException::new);\n }\n\n /**\n * Sets the tenant context.\n *\n * @param tenantId the tenantId being set into the context\n */\n default void setContext(String tenantId) {\n // defaults to no-op\n }\n\n /**\n * Sets the context to the specific tenantId, executes the runnable, resets back to original tenantId.\n *\n * @param tenantId the tenantId being set into the context\n * @param runnable the procedure to run after the context is set\n */\n default void withContext(String tenantId, Runnable runnable) {\n final Optional<String> origContext = getContextOpt();\n setContext(tenantId);\n try {\n runnable.run();\n } finally {\n setContext(origContext.orElse(null));\n }\n }\n\n /**\n * Sets the context to the specified tenantId, executes the function with the given argument, resets back to the\n * original tenantId, and returns the result of calling the function.\n *\n * @param tenantId context tenantId to use when calling the function\n * @param function function to call within tenant context\n * @param t parameter to function\n * @param <T> input type of function\n * @param <R> output type of function\n * @return the result of calling {@code function} on {@code t}\n */\n default <T, R> R withContext(String tenantId, Function<T, R> function, T t) {\n final Optional<String> origContext = getContextOpt();\n setContext(tenantId);\n try {\n return function.apply(t);\n } finally {\n setContext(origContext.orElse(null));\n }\n }\n\n /**\n * Sets the context to the specified tenantId, obtains a value from the given supplier, resets back to the original\n * tenantId, and returns the value.\n *\n * @param tenantId context tenantId to use when calling the function\n * @param supplier supplier to call with tenant context\n * @param <T> input type of supplier\n * @return the result of calling the supplier.\n */\n default <T> T withContext(String tenantId, Supplier<T> supplier) {\n final Optional<String> origContext = getContextOpt();\n setContext(tenantId);\n try {\n return supplier.get();\n } finally {\n setContext(origContext.orElse(null));\n }\n }\n\n}",
"void addThreadFilter(ThreadReference thread);",
"public void addTrace(\n\t\t\tfinal String id,\n\t\t\tfinal String param,\n\t\t\tfinal boolean result) {\n\t\ttrace.add(id\n\t\t\t\t+ \" (\" + param + \") \"\n\t\t\t\t+ \": \"\n\t\t\t\t+ result);\n\t}",
"@Test\n public void testAddSynchronousResponseHandler() {\n System.out.println(\"addSynchronousResponseHandler\");\n String sa = \"testhandler\";\n SynchronousResponseHandler h = (SpineSOAPRequest r) -> {\n };\n instance.addSynchronousResponseHandler(sa, h);\n }",
"@Deprecated\n public HttpUriRequest addTraceHeaders(HttpUriRequest httpRequest) {\n if (this.tracing == null) {\n DDLogger.getLoggerImpl()\n .error(\"Unable to add trace headers from an untraceable request. Did you pass LambdaInstrumenter a request?\");\n return httpRequest;\n }\n\n Map<String, String> traceHeaders = tracing.makeOutboundHttpTraceHeaders();\n traceHeaders.forEach(httpRequest::setHeader);\n\n return httpRequest;\n }",
"public void addFunction(FunctionItem _functionItem) {\n\t\tfunctionItem.add(_functionItem);\n\t\t_functionItem.parentClass=this;\n\t}",
"public void fireTraceEvent(ElemTemplateElement styleNode)\r\n {\r\n\r\n if (hasTraceListeners())\r\n {\r\n int sourceNode = m_transformer.getXPathContext().getCurrentNode();\r\n Node source = m_transformer.getXPathContext().getDTM(\r\n sourceNode).getNode(sourceNode);\r\n\r\n fireTraceEvent(new TracerEvent(m_transformer, source, \r\n m_transformer.getMode(), /*sourceNode, mode,*/\r\n styleNode));\r\n }\r\n }",
"public static Supplier<ScriptNode> internalParseForTiming(JSContext context, Source source) {\n com.oracle.js.parser.ir.FunctionNode ast = GraalJSParserHelper.parseScript(source, new GraalJSParserOptions());\n return () -> JavaScriptTranslator.translateFunction(NodeFactory.getInstance(context), context, null, source, false, ast);\n }",
"protected Expression setFunctionOnContext(DynaBean contextBean, Object contextModelNode, Expression xPath, String prefix, QName leafQName) {\n \n if (xPath.toString().contains(DataStoreValidationUtil.CURRENT_PATTERN)) {\n Expression xpression = xPath;\n if (xpression instanceof LocationPath) {\n Step[] originalSteps = ((LocationPath) xpression).getSteps();\n Step[] newSteps = new Step[originalSteps.length];\n for (int i=0;i<originalSteps.length;i++) {\n boolean stepChanged = false;\n Expression[] predicates = originalSteps[i].getPredicates();\n Expression[] newPredicates = new Expression[predicates.length];\n for (int j=0;j<predicates.length;j++) {\n if (predicates[j].toString().contains(DataStoreValidationUtil.CURRENT_PATTERN)) {\n if (predicates[j] instanceof CoreOperation) {\n Expression childExpression[] = ((Operation) predicates[j]).getArguments();\n Expression newChildExpression[] = new Expression[childExpression.length];\n for (int k = 0; k < childExpression.length; k++) {\n if (childExpression[k] instanceof ExtensionFunction) {\n String leafName = childExpression[k-1].toString();\n newChildExpression[k] = evaluateCurrent((ExtensionFunction) childExpression[k], contextBean,\n contextModelNode, prefix, leafName);\n } else if (childExpression[k] instanceof ExpressionPath) {\n newChildExpression[k] = evaluateCurrent((ExpressionPath) childExpression[k], contextModelNode,\n prefix, leafQName);\n\t\t\t\t\t\t\t\t\t} else if (childExpression[k] instanceof CoreOperation) {\n\t\t\t\t\t\t\t\t\t\tnewChildExpression[k] = setFunctionOnContext(contextBean, contextModelNode,\n\t\t\t\t\t\t\t\t\t\t\t\t(CoreOperation) childExpression[k], prefix, leafQName);\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tnewChildExpression[k] = childExpression[k];\n\t\t\t\t\t\t\t\t\t}\n }\n newPredicates[j] = JXPathUtils.getCoreOperation((CoreOperation) predicates[j], newChildExpression);\n stepChanged = true;\n }\n } else {\n newPredicates[j] = predicates[j];\n }\n }\n \n if (stepChanged) {\n NodeTest nodeTest = originalSteps[i].getNodeTest();\n if (nodeTest instanceof NodeNameTest) {\n NodeNameTest nameNode = (NodeNameTest) nodeTest;\n newSteps[i] = new YangStep(nameNode.getNodeName(), nameNode.getNamespaceURI(), newPredicates);\n } else {\n newSteps[i] = originalSteps[i];\n }\n } else {\n newSteps[i] = originalSteps[i];\n }\n }\n return new LocationPath(((LocationPath)xpression).isAbsolute(), newSteps);\n } else if (xpression instanceof ExpressionPath) {\n return evaluateCurrent((ExpressionPath)xpression, contextModelNode, prefix, leafQName);\n } else if (xpression instanceof ExtensionFunction) {\n return evaluateCurrent((ExtensionFunction) xpression, contextBean, contextModelNode, prefix, leafQName.getLocalName());\n } else if (xpression instanceof CoreOperation) {\n Expression[] newExpressions = new Expression[((CoreOperation) xpression).getArguments().length];\n Expression[] expressions = ((CoreOperation) xpression).getArguments();\n int index = 0;\n for (Expression expression:expressions) {\n newExpressions[index++] = setFunctionOnContext(contextBean, contextModelNode, expression, prefix, leafQName);\n }\n return JXPathUtils.getCoreOperation((CoreOperation) xpression, newExpressions);\n } else if (xpression instanceof CoreFunction) {\n Expression[] expressions = ((CoreFunction) xpression).getArguments();\n Expression[] newExpressions = new Expression[expressions.length];\n int index = 0;\n for (Expression expression:expressions) {\n newExpressions[index++] = setFunctionOnContext(contextBean, contextModelNode, expression, prefix, leafQName);\n }\n return JXPathUtils.getCoreFunction( ((CoreFunction) xpression).getFunctionCode(), newExpressions);\n }\n }\n return xPath;\n }",
"abstract public IValue executeRVMFunctionInVisit(Frame root);",
"public abstract AbstractSctlThreadEntry addThread();",
"abstract public void execute(FunctionContext context) throws Exception;",
"void addRuleContext(RuleContextContainer rccContext, ITrigger tTrigger)\r\n throws StorageProviderException;",
"public static final SourceModel.Expr executionContext_traceShowsThreadName(SourceModel.Expr executionContext) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_traceShowsThreadName), executionContext});\n\t\t}",
"interface DebugCallable<T> {\n\n /**\n * The invocation that will be tracked.\n *\n * @return the result\n */\n T call() throws EvalException, InterruptedException;\n }",
"@Advice.OnMethodEnter\n public static void onMethodEnter(@Advice.This ThreadPoolExecutor thiz,\n @Advice.Argument(value = 0, readOnly = false) Runnable r) {\n r = decorate(thiz, r);\n }",
"public static void addStepHandler(OperationContext context) {\n context.addStep(new AbstractDeploymentChainStep() {\n public void execute(DeploymentProcessorTarget processorTarget) {\n processorTarget.addDeploymentProcessor(\n Constants.SUBSYSTEM_NAME, PHASE, PRIORITY, INSTANCE);\n }\n }, OperationContext.Stage.RUNTIME);\n }",
"public CFun addDirectiveBeforeFunction(CPreProcessorDirective... directive);",
"@Override\n\tpublic void trace(Marker marker, Supplier<?> msgSupplier) {\n\n\t}",
"public void registerInvocation(Invocation inv) {\r\n\t\tif(inv == null) return;\r\n\t\t//If it is already used we were already here\r\n\t\tboolean alreadyChecked = inv.isUsed();\r\n\t\t\r\n\t\t//The invocation is used indeed\r\n\t\tinv.use();\r\n\t\t\r\n\t\tAbstractFunction invocationTarget = inv.getWhichFunction();\r\n\t\t\r\n\t\t//XPilot: invocationTarget is null for default constructors\r\n\t\tif(invocationTarget == null) return;\r\n\t\t\r\n\t\tif(!alreadyChecked&&invocationTarget.getScope().getInclusionType() != AndromedaFileInfo.TYPE_NATIVE) {\r\n\t\t\t//Only check it if it is no function defined in blizzard's libs\r\n\t\t\tinvocationTarget.getDefinition().accept(parent);\r\n\t\t}\r\n\r\n\t\t//Check if we can inline this function call\r\n\t\tint inlineType = InlineDecider.decide(inv);\r\n\t\tif(inlineType != InlineDecider.INLINE_NO) {\r\n\t\t\tinvocationTarget.addInline();\r\n\t\t\tthrow new Error(\"inline not yet supported.\");\r\n\t\t} else {\r\n\t\t\tinvocationTarget.addInvocation();\r\n\t\t\t//visit(invocationTarget);\r\n\t\t}\r\n\t}",
"public void addFunction(Function function) {\n String nameInLowerCase = Ascii.toLowerCase(function.getName());\n Preconditions.checkState(!registered);\n Preconditions.checkArgument(!customFunctions.containsKey(nameInLowerCase));\n customFunctions.put(nameInLowerCase, function);\n if (!function.getOptions().getAliasName().isEmpty()\n && !function.getOptions().getAliasName().equals(function.getName())) {\n String aliasInLowerCase = Ascii.toLowerCase(function.getOptions().getAliasName());\n Preconditions.checkArgument(!customFunctions.containsKey(aliasInLowerCase));\n customFunctions.put(aliasInLowerCase, function);\n }\n addFunctionToFullNameMap(function);\n }",
"protected String doInsertIntoTransitiveClosure(\r\n \t\t\tString prefix,\r\n \t\t\tString associationPredicateId, \r\n \t\t\tString sourceEntityCode,\r\n \t\t\tString sourceEntityCodeNamespace, \r\n \t\t\tString targetEntityCode,\r\n \t\t\tString targetEntityCodeNamespace, \r\n \t\t\tIbatisInserter executor) {\r\n \t\t\r\n \t\tString id = this.createUniqueId();\r\n \t\t\r\n \t\tInsertTransitiveClosureBean bean = new InsertTransitiveClosureBean();\r\n \t\tbean.setPrefix(prefix);\r\n \t\tbean.setUId(id);\r\n \t\tbean.setAssociationPredicateUId(associationPredicateId);\r\n \t\tbean.setSourceEntityCode(sourceEntityCode);\r\n \t\tbean.setSourceEntityCodeNamespace(sourceEntityCodeNamespace);\r\n \t\tbean.setTargetEntityCode(targetEntityCode);\r\n \t\tbean.setTargetEntityCodeNamespace(targetEntityCodeNamespace);\r\n \t\t\r\n \t\texecutor.insert(INSERT_TRANSITIVE_CLOSURE_SQL, bean);\r\n \t\t\r\n \t\treturn id;\r\n \t\t\r\n \t}",
"public interface Function extends Scriptable, Callable\n{\n /**\n * Call the function.\n *\n * Note that the array of arguments is not guaranteed to have\n * length greater than 0.\n *\n * @param cx the current Context for this thread\n * @param scope the scope to execute the function relative to. This is\n * set to the value returned by getParentScope() except\n * when the function is called from a closure.\n * @param thisObj the JavaScript <code>this</code> object\n * @param args the array of arguments\n * @return the result of the call\n */\n public Object call(Context cx, Scriptable scope, Scriptable thisObj,\n Object[] args);\n\n /**\n * Call the function as a constructor.\n *\n * This method is invoked by the runtime in order to satisfy a use\n * of the JavaScript <code>new</code> operator. This method is\n * expected to create a new object and return it.\n *\n * @param cx the current Context for this thread\n * @param scope an enclosing scope of the caller except\n * when the function is called from a closure.\n * @param args the array of arguments\n * @return the allocated object\n */\n public Scriptable construct(Context cx, Scriptable scope, Object[] args);\n}",
"childLambda func();",
"public void addTrace(\n\t\t\tfinal String id,\n\t\t\tfinal boolean result) {\n\t\ttrace.add(id\n\t\t\t\t+ \": \"\n\t\t\t\t+ result);\n\t}",
"@Override\n public void initFunctionDelegates() {\n\n }",
"@Override\n\tpublic void trace(Object message) {\n\n\t}",
"@Override\n\tpublic void trace(Marker marker, String message, Supplier<?>... paramSuppliers) {\n\n\t}",
"private void addDerivedInstanceFunction(SourceModel.FunctionDefn.Algebraic functionDefn, TypeExpr declaredFunctionTypeExpr, SourceRange sourceRange) {\r\n \r\n CALTypeChecker typeChecker = compiler.getTypeChecker();\r\n String functionName = functionDefn.getName();\r\n ParseTreeNode functionParseTree = functionDefn.toParseTreeNode();\r\n \r\n functionParseTree.setInternallyGenerated(sourceRange);\r\n \r\n if (derivedInstanceFunctions == null) {\r\n derivedInstanceFunctions = functionParseTree;\r\n } else {\r\n functionParseTree.setNextSibling(derivedInstanceFunctions);\r\n derivedInstanceFunctions = functionParseTree;\r\n }\r\n \r\n typeChecker.addDerivedInstanceFunction(functionName, functionParseTree, declaredFunctionTypeExpr);\r\n }",
"@Override\n\tpublic void trace(Message msg, Throwable t) {\n\n\t}",
"@Override\n\tpublic void trace(String message, Object... params) {\n\n\t}",
"private static void addDependency(TopologyElement te,\n BOperatorInvocation bop, Object function) {\n te.topology().getDependencyResolver().addJarDependency(bop, function);\n }",
"@Override\n\tpublic void trace(Marker marker, Object message, Throwable t) {\n\n\t}",
"public void trace(String message, Throwable throwable);",
"void applyExtensions(ReaderContext context, Operation operation, Method method);",
"public DDLambda(Context cxt) {\n this();\n this.tracing = new Tracing();\n this.enhanced = checkEnhanced();\n recordEnhanced(INVOCATION, cxt);\n addTraceContextToMDC();\n startSpan(new HashMap<>(), cxt);\n }",
"@Override\n\tpublic void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7, Object p8, Object p9) {\n\n\t}",
"boolean getDoFunctionInlining();",
"@Override\n\tpublic int addRFunc(FRolefuncCustom fRolefuncCustom) throws Exception {\n\t\treturn froleMapper.addRFunc(fRolefuncCustom);\n\t}"
] | [
"0.6274561",
"0.5896189",
"0.5402555",
"0.5350891",
"0.52297455",
"0.4908374",
"0.48886186",
"0.48541057",
"0.48353902",
"0.4747615",
"0.4707457",
"0.469301",
"0.46898592",
"0.46835306",
"0.46816653",
"0.46757457",
"0.4662335",
"0.46209583",
"0.45973668",
"0.45965627",
"0.45694196",
"0.45495588",
"0.45362863",
"0.45201552",
"0.4493228",
"0.44863632",
"0.44818488",
"0.44610372",
"0.4453969",
"0.4453411",
"0.44384",
"0.44331774",
"0.44291037",
"0.4424178",
"0.44114393",
"0.44098252",
"0.44063744",
"0.44046998",
"0.43882942",
"0.43870038",
"0.4380971",
"0.4380114",
"0.43715099",
"0.436834",
"0.4348903",
"0.4348018",
"0.43459174",
"0.43371558",
"0.43230945",
"0.43216437",
"0.43103328",
"0.430673",
"0.42973852",
"0.4295464",
"0.4291873",
"0.42871538",
"0.4283161",
"0.4262213",
"0.42513376",
"0.42454565",
"0.4241811",
"0.42368126",
"0.4232029",
"0.42271024",
"0.42213687",
"0.4221103",
"0.42140993",
"0.4212221",
"0.42094785",
"0.42069677",
"0.42060545",
"0.4201969",
"0.42009342",
"0.41991943",
"0.41986507",
"0.41946334",
"0.419253",
"0.41824228",
"0.41792268",
"0.4175518",
"0.41697282",
"0.41557878",
"0.41528255",
"0.41501635",
"0.41475698",
"0.4144342",
"0.4138359",
"0.41376066",
"0.41365328",
"0.41364238",
"0.4135574",
"0.41303563",
"0.41272548",
"0.41272026",
"0.4118414",
"0.41126117",
"0.41084486",
"0.41083053",
"0.410718",
"0.41039473"
] | 0.8096004 | 0 |
Helper binding method for function: executionContext_getTracedFunctions. | public static final SourceModel.Expr executionContext_getTracedFunctions(SourceModel.Expr executionContext) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_getTracedFunctions), executionContext});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static final SourceModel.Expr executionContext_addTracedFunction(SourceModel.Expr executionContext, SourceModel.Expr tracedFunction) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_addTracedFunction), executionContext, tracedFunction});\n\t\t}",
"public FunctionInfo[] getFunctions() {\n/* 236 */ return this.functions;\n/* */ }",
"public FunctionIterator getExternalFunctions();",
"public FunctionIterator getFunctions(AddressSetView asv, boolean forward);",
"public static final SourceModel.Expr executionContext_removeTracedFunction(SourceModel.Expr executionContext, SourceModel.Expr tracedFunction) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_removeTracedFunction), executionContext, tracedFunction});\n\t\t}",
"public FunctionIterator getFunctions(boolean forward);",
"public final List<DepFunction> getFunctions() {\n\t\treturn new LinkedList<>(this.functionMap.values());\n\t}",
"public List<Function> getFunctions(){\n\t\t\n\t\treturn null;\n\t}",
"Iterable<T> getFunctions();",
"public FunctionIterator getFunctions(Address start, boolean forward);",
"@Override\n public List<Function> getFunctions() {\n if (!isLoaded()) {\n throw new IllegalStateException(\"Error: The module is not loaded\");\n }\n\n return new ArrayList<Function>(m_functions);\n }",
"public static final SourceModel.Expr executionContext_isTracingEnabled(SourceModel.Expr executionContext) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_isTracingEnabled), executionContext});\n\t\t}",
"public String getFunctions();",
"public Function getFunction();",
"public Function getFunction()\n\t{\n\t\treturn function;\n\t}",
"public Set<String> getEnteringFunctionNames() {\n Set<String> results = new HashSet<>();\n Set<CFANode> visited = new HashSet<>();\n Queue<CFANode> waitlist = new ArrayDeque<>();\n waitlist.offer(this);\n while (!waitlist.isEmpty()) {\n CFANode current = waitlist.poll();\n if (visited.add(current)) {\n if (current.getFunctionName()\n .equals(CFASingleLoopTransformation.ARTIFICIAL_PROGRAM_COUNTER_FUNCTION_NAME)) {\n waitlist.addAll(CFAUtils.allPredecessorsOf(current).toList());\n } else {\n results.add(current.getFunctionName());\n }\n }\n }\n return results;\n }",
"Object getTrace();",
"private Function[] getFunctionObjects() throws Exception{\n String[] sFunctions = getStringProperty(ParameterList.FUNCTION_LIST, false).split(\",\");\n ArrayList<Function> functionArray = new ArrayList<Function>();\n \n for(String str : sFunctions){\n try{\n str = str.trim();\n Class<?> function = Class.forName(str);\n functionArray.add((Function)function.newInstance());\n }\n catch(ClassNotFoundException e){\n throw new ClassNotFoundException(\"Error loading the function set. Class \" + str + \" not found\", e);\n }\n }\n \n return functionArray.toArray(new Function[functionArray.size()]);\n }",
"org.globus.swift.language.Function[] getFunctionArray();",
"public ExpressionFunction getFunction(String name) { return wrappedSerializationContext.getFunction(name); }",
"public Object[] visibaleRefencesMatchingFunctionType(final EObject ctx, final ExpressionVariable fd) {\n final HashSet<ExpressionVariable> exprVars = FunctionValidatorUtil.allInscopeExpressionVariables(ctx);\n final Predicate<ExpressionVariable> _function = (ExpressionVariable e) -> {\n return (e.getName().equals(fd.getName()) && FunctionValidatorUtil.isGlobalFuncType(e));\n };\n final Object[] funcArray = exprVars.stream().filter(_function).toArray();\n return funcArray;\n }",
"public Set<String> getRegisteredFunctions();",
"public MathFunction[] getFunctions() {\n return func.clone ();\n }",
"public List<Function> getFunctions(String namespace, String name);",
"public List<Function> getGlobalFunctions(String name);",
"public Function getFunctionAt(Address entryPoint);",
"private String getFunctionName() {\n StackTraceElement[] sts = Thread.currentThread().getStackTrace();\n if (sts == null) {\n return null;\n }\n for (StackTraceElement st : sts) {\n if (st.isNativeMethod()) {\n continue;\n }\n if (st.getClassName().equals(Thread.class.getName())) {\n continue;\n }\n if (st.getClassName().equals(LogUtils.this.getClass().getName())) {\n continue;\n }\n return \"[ \" + Thread.currentThread().getName() + \": \"\n + st.getFileName() + \":\" + st.getLineNumber() + \" \"\n + st.getMethodName() + \" ]\";\n }\n return null;\n }",
"public List< FunctionCall > getFunctionCallsRecursively() {\r\n List< FunctionCall > calls = new ArrayList< FunctionCall >();\r\n calls.add( this );\r\n if ( arguments != null ) {\r\n for ( Object arg : arguments ) {\r\n FunctionCall argCall = null;\r\n try {\r\n argCall = Expression.evaluate( arg, FunctionCall.class, false, false );\r\n } catch ( IllegalAccessException e ) {\r\n // TODO Auto-generated catch block\r\n //e.printStackTrace();\r\n } catch ( InvocationTargetException e ) {\r\n // TODO Auto-generated catch block\r\n //e.printStackTrace();\r\n } catch ( InstantiationException e ) {\r\n // TODO Auto-generated catch block\r\n //e.printStackTrace();\r\n } catch ( ClassCastException e ) {\r\n ; // ignore -- this is expected\r\n }\r\n if ( argCall != null ) {\r\n calls.addAll( argCall.getFunctionCallsRecursively() );\r\n }\r\n }\r\n }\r\n return calls;\r\n }",
"public byte[] getIntegrateFunctionsInfo() {\n return integrateFunctionsInfo;\n }",
"@Override\n public java.util.List<UserFunction> getUserFunctionsList() {\n return userFunctions_;\n }",
"public Expression getFunction()\n\t{\n\t\treturn function;\n\t}",
"@Override\n public UserFunction getUserFunctions(int index) {\n return userFunctions_.get(index);\n }",
"java.util.List<UserFunction>\n getUserFunctionsList();",
"protected Set<AeScriptFuncDef> findFunctions() {\r\n AeXPathFunctionNodeVisitor visitor = new AeXPathFunctionNodeVisitor();\r\n getXPathAST().visitAll(visitor);\r\n return visitor.getFunctions();\r\n }",
"public List<Trace> getTraces() {\n if (!isLoaded()) {\n throw new IllegalStateException(\"Error: The module is not loaded\");\n }\n\n return new ArrayList<Trace>(m_traces);\n }",
"public static final SourceModel.Expr executionContext_traceShowsFunctionArgs(SourceModel.Expr executionContext) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_traceShowsFunctionArgs), executionContext});\n\t\t}",
"public Map<String, String> getTraceContext() {\n if (this.tracing == null) {\n DDLogger.getLoggerImpl().debug(\"No tracing context; unable to get Trace ID\");\n return null;\n }\n return this.tracing.getLogCorrelationTraceAndSpanIDsMap();\n }",
"public Function[] getFunctionSet() {\n Function[] copyFunctionSet = new Function[functionSet.length];\n for(int i = 0; i < functionSet.length; i++){\n copyFunctionSet[i] = functionSet[i].softClone();\n }\n return copyFunctionSet;\n }",
"private void getTraceExpressionsInformation()\r\n {\r\n \tif (traceExpressionDataTable == null) {\r\n\t\t\t// getTraceExpressionsInformation is called implicitly when\r\n\t\t\t// super(config) is called in the constructor. Thus, we have to\r\n\t\t\t// initialize it here.\r\n \t\ttraceExpressionDataTable = new Hashtable<String, TraceExpressionInformationHolder>();\r\n \t}\r\n // erase existing information\r\n traceExpressionDataTable.clear();\r\n\r\n /*\r\n * Retrieve the TE file and create a document provider. This document\r\n * provider will be used to connect to the file editor input for\r\n * the TE file so that a Document representation of the file can\r\n * be created in the following try block. We disconnect the document\r\n * provider in the finally block for this try block in order to avoid\r\n * a memory leak.\r\n */\r\n IFile teFile = getModel().getTraceExplorerTLAFile();\r\n FileEditorInput teFileEditorInput = new FileEditorInput((IFile) teFile);\r\n\t\t// Use LegacyFileDocumentProvider to fix race condition which causes Trace\r\n\t\t// Explorer Exploration to label the expression as __trace_var_XXXXXXXX instead\r\n\t\t// of the actual expression. The broken label is accompanied by an exception:\r\n // java.lang.IllegalArgumentException: Attempted to beginRule: F/DijkstraMutex/Model_1, \r\n // does not match outer scope rule: org.lamport.tla.toolbox.tool.tlc.launch.TLCModelLaunchDelegate$MutexRule@1e6cad2d\r\n FileDocumentProvider teFileDocumentProvider = new LegacyFileDocumentProvider();\r\n try\r\n {\r\n\r\n teFileDocumentProvider.connect(teFileEditorInput);\r\n\r\n // the document connected to the TE file\r\n IDocument teDocument = teFileDocumentProvider.getDocument(teFileEditorInput);\r\n\r\n // the search adapter on the TE file\r\n FindReplaceDocumentAdapter teSearcher = new FindReplaceDocumentAdapter(teDocument);\r\n\r\n // search for comments containing the information about trace explorer expressions\r\n String regularExpression = FindReplaceDocumentAdapter.escapeForRegExPattern(\"\\\\* \") + \":[0-2]:\"\r\n + ModelWriter.TRACE_EXPR_VAR_SCHEME + \"_[0-9]{17,}:[\\\\s\\\\S]*?\"\r\n + Pattern.quote(ModelWriter.CONSTANT_EXPRESSION_EVAL_IDENTIFIER) + \"\\n\";\r\n IRegion region = teSearcher.find(0, regularExpression, true, true, false, true);\r\n\r\n while (region != null)\r\n {\r\n // found a region\r\n // first character should be the level of the expression\r\n String commentString = teDocument.get(region.getOffset(), region.getLength());\r\n // commentString should be of the form \"\\* :x:___trace_var_12321312312312:expr\"$!@$!@$!@$!@$!\"\"\r\n // where x is the level of the expression\r\n String[] stringSections = commentString.split(\":\", 4);\r\n int level = Integer.parseInt(stringSections[1]);\r\n String variableName = stringSections[2];\r\n // should be expr\"$!@$!@$!@$!@$!\" where \"$!@$!@$!@$!@$!\" is the delimiter\r\n String expressionAndDelimiter = stringSections[3];\r\n String expression = expressionAndDelimiter.substring(0, expressionAndDelimiter\r\n .indexOf(ModelWriter.CONSTANT_EXPRESSION_EVAL_IDENTIFIER));\r\n\r\n TraceExpressionInformationHolder expressionData = new TraceExpressionInformationHolder(expression,\r\n null, variableName);\r\n expressionData.setLevel(level);\r\n this.traceExpressionDataTable.put(variableName.trim(), expressionData);\r\n\r\n region = teSearcher.find(region.getOffset() + region.getLength(), regularExpression, true, true, false,\r\n true);\r\n }\r\n\r\n } catch (CoreException e)\r\n {\r\n TLCUIActivator.getDefault().logError(\"Error finding trace expression information in TE.tla file.\", e);\r\n } catch (BadLocationException e)\r\n {\r\n TLCUIActivator.getDefault().logError(\"Error finding trace expression information in TE.tla file.\", e);\r\n } finally\r\n {\r\n /*\r\n * The document provider is not needed. Always disconnect it to avoid a memory leak.\r\n * \r\n * Keeping it connected only seems to provide synchronization of\r\n * the document with file changes. That is not necessary in this context.\r\n */\r\n teFileDocumentProvider.disconnect(teFileEditorInput);\r\n }\r\n }",
"@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/include/llvm/IR/Module.h\", line = 497,\n FQN=\"llvm::Module::getFunctionList\", NM=\"_ZN4llvm6Module15getFunctionListEv\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.ir/llvmToClangType ${LLVM_SRC}/llvm/lib/IR/AsmWriter.cpp -nm=_ZN4llvm6Module15getFunctionListEv\")\n //</editor-fold>\n public SymbolTableList<Function, Module> /*&*/ getFunctionList() {\n return FunctionList;\n }",
"public List<CALFunction> getFunctions() {\n List<CALFunction> result = new ArrayList<>(functionsObject.functions.values());\n Collections.sort(result, new Comparator<CALFunction>() {\n public int compare(CALFunction f1, CALFunction f2) {\n return f1.toString().compareTo(f2.toString());\n }\n });\n return result;\n }",
"protected List<Object> getInterceptors()\r\n/* 29: */ {\r\n/* 30:68 */ List<Object> interceptors = new ArrayList();\r\n/* 31:69 */ for (InterceptorRegistration registration : this.registrations) {\r\n/* 32:70 */ interceptors.add(registration.getInterceptor());\r\n/* 33: */ }\r\n/* 34:72 */ return interceptors;\r\n/* 35: */ }",
"UserFunction getUserFunctions(int index);",
"protected FunctionDefinition getEnclosingFunction() {\n return enclosingFunction;\n }",
"@Override\n\tpublic StackTraceElement[] getStackTrace() {\n\t\treturn super.getStackTrace();\n\t}",
"@External\r\n\t@SharedFunc\r\n\tpublic MetaVar Trace(){throw new RuntimeException(\"Should never be executed directly, there is probably an error in the Aspect-coding.\");}",
"protected List<FunctionPrototype> getEncounteredFunctionPrototypes() {\n return Collections.unmodifiableList(encounteredFunctionPrototypes);\n }",
"@Override\n public UserFunctionOrBuilder getUserFunctionsOrBuilder(\n int index) {\n return userFunctions_.get(index);\n }",
"static List<ZoneRegionFunction> getSiblingRegionFunctions(Zone zone) {\n return zone.getParent().getChildZones().stream()\n .map(Zone::getRegionFunction)\n .collect(Collectors.toList());\n }",
"org.globus.swift.language.Function getFunctionArray(int i);",
"public static List<String> getFunctions(String toAppend) {\n return appendAll(FUNCTIONS, toAppend);\n }",
"protected String getScopeChain(Function func) {\n String ret = \"[\";\n List<Scope> chain = scopeChainMap.get(func);\n boolean first = true;\n for (Scope s : chain) {\n if (first) {\n first = false;\n } else {\n ret += \",\";\n }\n\n if (s == null) {\n ret += \"'#null'\"; \n } else {\n Exp e = s.getRootExp();\n if (e.isFunction()) {\n Function f = cg.getFunctionForExp(e);\n assert f != null;\n ret += \"'##\" + f.getName() + \"'\";\n } else {\n ret += \"'#Global'\";\n }\n }\n }\n ret += \"]\";\n\n return ret;\n }",
"public List<StackTraceElement> getStackTraceLines() {\n return this.stackTraceLines;\n }",
"static List<String> getStackFrameList(final Throwable t) {\n final String stackTrace = getStackTrace(t);\n final String linebreak = LINE_SEPARATOR;\n final StringTokenizer frames = new StringTokenizer(stackTrace, linebreak);\n final List<String> list = new ArrayList<String>();\n boolean traceStarted = false;\n while (frames.hasMoreTokens()) {\n final String token = frames.nextToken();\n // Determine if the line starts with <whitespace>at\n final int at = token.indexOf(\"at\");\n if (at != -1 && token.substring(0, at).trim().isEmpty()) {\n traceStarted = true;\n list.add(token);\n } else if (traceStarted) {\n break;\n }\n }\n return list;\n }",
"public FunctionTypeSignatures getFunctionTypeSignatures() {\n return functionTypeSignatures;\n }",
"default Set<String> getContextHandles() {\n Response response = execute(DriverCommand.GET_CONTEXT_HANDLES, ImmutableMap.of());\n Object value = response.getValue();\n try {\n //noinspection unchecked\n List<String> returnedValues = (List<String>) value;\n return new LinkedHashSet<>(returnedValues);\n } catch (ClassCastException ex) {\n throw new WebDriverException(\n \"Returned value cannot be converted to List<String>: \" + value, ex);\n }\n }",
"public CompiledFunctionDefinition getFunction() {\n return _function;\n }",
"public List<Object> getTraversalStack()\n {\n return Collections.unmodifiableList(traversalStack);\n }",
"@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/include/llvm/IR/Module.h\", line = 495,\n FQN=\"llvm::Module::getFunctionList\", NM=\"_ZNK4llvm6Module15getFunctionListEv\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.ir/llvmToClangType ${LLVM_SRC}/llvm/lib/IR/AsmWriter.cpp -nm=_ZNK4llvm6Module15getFunctionListEv\")\n //</editor-fold>\n public /*const*/ SymbolTableList<Function, Module> /*&*/ getFunctionList$Const() /*const*/ {\n return FunctionList;\n }",
"public static final SourceModel.Expr executionContext_setTracingEnabled(SourceModel.Expr executionContext, SourceModel.Expr tracingEnabled) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_setTracingEnabled), executionContext, tracingEnabled});\n\t\t}",
"boolean getDoFunctionInlining();",
"@Override\n\tpublic Map<String, FREFunction> getFunctions() \n\t{\n\t\tLog.d(TAG, \"Registering Extension Functions\");\n\t\tMap<String, FREFunction> functionMap = new HashMap<String, FREFunction>();\n\t\tfunctionMap.put(\"isInstalled\", new IsInstalledFunction());\n\t\tfunctionMap.put(\"shareText\", new ShareTextFunction());\n\t\tfunctionMap.put(\"shareImage\", new ShareImageFunction());\n\t\t// add other functions here\n\t\treturn functionMap;\t\n\t}",
"@Override\n public java.util.List<? extends UserFunctionOrBuilder>\n getUserFunctionsOrBuilderList() {\n return userFunctions_;\n }",
"java.util.List<? extends UserFunctionOrBuilder>\n getUserFunctionsOrBuilderList();",
"public Function getFunctionContaining(Address addr);",
"public EvalFunction getEvalFunction() {\n return evalFct;\n }",
"public interface IFunctions {\n\t/**\n\t * Interprets the function.\n\t * @param commandDict: command dictionary for current workspace.\n\t * @param varDict: variable dictionary for current workspace.\n\t * @return value that the function evaluates to.\n\t * @throws ClassNotFoundException\n\t */\n\tdouble interpret(CommandDictionary commandDict, VariableDictionary varDict) throws ClassNotFoundException;\n\n\t/**\n\t * Gets the children of the function.\n\t * @return list of children.\n\t */\n\tList<IFunctions> getChildren();\n\n\t/**\n\t * Returns a string representation of the function.\n\t * @return string representation of the function.\n\t */\n\tString toString();\n}",
"public byte getInvocationContext() {\r\n return invocationContext;\r\n }",
"public CallStackFrame[] getCallStack () {\n return getThread ().getCallStack ();\n }",
"InterpreterRuntimeContext createInterpreterRuntimeContext();",
"public ExecutionContext getContext();",
"public String getTrace() throws RemoteException;",
"private static void lookForFunctionCycles(\n XQueryFunction f, Stack<Object> referees, XQueryFunctionLibrary globalFunctionLibrary) throws XPathException {\n Expression body = f.getBody();\n referees.push(f);\n List<Binding> list = new ArrayList<Binding>(10);\n ExpressionTool.gatherReferencedVariables(body, list);\n for (Binding b : list) {\n if (b instanceof GlobalVariable) {\n ((GlobalVariable) b).lookForCycles(referees, globalFunctionLibrary);\n }\n }\n List<SymbolicName> flist = new ArrayList<SymbolicName>();\n ExpressionTool.gatherCalledFunctionNames(body, flist);\n for (SymbolicName s : flist) {\n XQueryFunction qf = globalFunctionLibrary.getDeclarationByKey(s);\n if (!referees.contains(qf)) {\n // recursive function calls are allowed\n lookForFunctionCycles(qf, referees, globalFunctionLibrary);\n }\n }\n referees.pop();\n }",
"public List<TbccFunction> getUserFunction(TbccBaseUser user) {\n\t\treturn userdao.getUserFunction(user);\n\t}",
"@Override\n public void visitFunction(Function function) {\n }",
"public String getFunctionClass() {\n return functionClass;\n }",
"Object getExceptionHandlers();",
"public Collection<IFunction> getAllFunctions()\r\n\t{\r\n\t\treturn expressionRegistry.getAllFunctions();\r\n\t}",
"public StackTraceElement[] getCallerData() {\n return null;\n }",
"public LocalDebugInfo[] locals();",
"public java.util.List<UserFunction> getUserFunctionsList() {\n if (userFunctionsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(userFunctions_);\n } else {\n return userFunctionsBuilder_.getMessageList();\n }\n }",
"public String[] getNames() {\n\t\tString[] names = new String[functions.size()];\n\t\tint index = 0;\n\t\tfor (Enumeration en = functions.keys(); en.hasMoreElements(); index++) {\n\t\t\tnames[index] = (String) en.nextElement();\n\t\t}\n\t\treturn names;\n\t}",
"public static final SubLObject declare_inference_trampolines_file() {\n declareFunction(myName, \"inference_collectionP\", \"INFERENCE-COLLECTION?\", 1, 1, false);\n declareFunction(myName, \"inference_predicate_p\", \"INFERENCE-PREDICATE-P\", 1, 0, false); new $inference_predicate_p$UnaryFunction();\n declareFunction(myName, \"inference_commutative_relationP\", \"INFERENCE-COMMUTATIVE-RELATION?\", 1, 0, false);\n declareFunction(myName, \"inference_symmetric_predicateP\", \"INFERENCE-SYMMETRIC-PREDICATE?\", 1, 0, false); new $inference_symmetric_predicateP$UnaryFunction();\n declareFunction(myName, \"inference_commutative_predicate_p\", \"INFERENCE-COMMUTATIVE-PREDICATE-P\", 1, 0, false); new $inference_commutative_predicate_p$UnaryFunction();\n declareFunction(myName, \"inference_partially_commutative_predicate_p_internal\", \"INFERENCE-PARTIALLY-COMMUTATIVE-PREDICATE-P-INTERNAL\", 1, 0, false);\n declareFunction(myName, \"inference_partially_commutative_predicate_p\", \"INFERENCE-PARTIALLY-COMMUTATIVE-PREDICATE-P\", 1, 0, false); new $inference_partially_commutative_predicate_p$UnaryFunction();\n declareFunction(myName, \"inference_at_least_partially_commutative_predicate_p\", \"INFERENCE-AT-LEAST-PARTIALLY-COMMUTATIVE-PREDICATE-P\", 1, 0, false);\n //declareFunction(myName, \"inference_asymmetric_predicateP\", \"INFERENCE-ASYMMETRIC-PREDICATE?\", 1, 0, false);\n declareFunction(myName, \"inference_transitive_predicateP\", \"INFERENCE-TRANSITIVE-PREDICATE?\", 1, 0, false); new $inference_transitive_predicateP$UnaryFunction();\n declareFunction(myName, \"inference_evaluatable_predicateP\", \"INFERENCE-EVALUATABLE-PREDICATE?\", 1, 0, false); new $inference_evaluatable_predicateP$UnaryFunction();\n declareFunction(myName, \"inference_reflexive_predicateP\", \"INFERENCE-REFLEXIVE-PREDICATE?\", 1, 0, false); new $inference_reflexive_predicateP$UnaryFunction();\n declareFunction(myName, \"inference_irreflexive_predicateP\", \"INFERENCE-IRREFLEXIVE-PREDICATE?\", 1, 0, false);\n declareFunction(myName, \"inference_indeterminate_termP\", \"INFERENCE-INDETERMINATE-TERM?\", 1, 0, false);\n declareFunction(myName, \"clear_indeterminate_term_p\", \"CLEAR-INDETERMINATE-TERM-P\", 0, 0, false); new $clear_indeterminate_term_p$ZeroArityFunction();\n //declareFunction(myName, \"remove_indeterminate_term_p\", \"REMOVE-INDETERMINATE-TERM-P\", 1, 0, false);\n declareFunction(myName, \"indeterminate_term_p_internal\", \"INDETERMINATE-TERM-P-INTERNAL\", 1, 0, false);\n declareFunction(myName, \"indeterminate_term_p\", \"INDETERMINATE-TERM-P\", 1, 0, false);\n declareFunction(myName, \"memoized_inference_indeterminate_termP_internal\", \"MEMOIZED-INFERENCE-INDETERMINATE-TERM?-INTERNAL\", 1, 0, false);\n declareFunction(myName, \"memoized_inference_indeterminate_termP\", \"MEMOIZED-INFERENCE-INDETERMINATE-TERM?\", 1, 0, false);\n declareFunction(myName, \"inference_some_genl_pred_or_inverseP\", \"INFERENCE-SOME-GENL-PRED-OR-INVERSE?\", 1, 0, false); new $inference_some_genl_pred_or_inverseP$UnaryFunction();\n declareFunction(myName, \"inference_some_spec_pred_or_inverseP\", \"INFERENCE-SOME-SPEC-PRED-OR-INVERSE?\", 1, 0, false); new $inference_some_spec_pred_or_inverseP$UnaryFunction();\n //declareFunction(myName, \"inference_some_negation_pred_or_inverseP\", \"INFERENCE-SOME-NEGATION-PRED-OR-INVERSE?\", 1, 0, false);\n //declareFunction(myName, \"inference_all_genl_predicates_internal\", \"INFERENCE-ALL-GENL-PREDICATES-INTERNAL\", 1, 0, false);\n //declareFunction(myName, \"inference_all_genl_predicates\", \"INFERENCE-ALL-GENL-PREDICATES\", 1, 0, false);\n declareFunction(myName, \"inference_all_spec_predicates\", \"INFERENCE-ALL-SPEC-PREDICATES\", 1, 0, false);\n declareFunction(myName, \"inference_all_spec_predicates_int_internal\", \"INFERENCE-ALL-SPEC-PREDICATES-INT-INTERNAL\", 1, 0, false);\n declareFunction(myName, \"inference_all_spec_predicates_int\", \"INFERENCE-ALL-SPEC-PREDICATES-INT\", 1, 0, false);\n //declareFunction(myName, \"inference_all_genl_inverses_internal\", \"INFERENCE-ALL-GENL-INVERSES-INTERNAL\", 1, 0, false);\n //declareFunction(myName, \"inference_all_genl_inverses\", \"INFERENCE-ALL-GENL-INVERSES\", 1, 0, false);\n declareFunction(myName, \"inference_all_spec_inverses\", \"INFERENCE-ALL-SPEC-INVERSES\", 1, 0, false);\n declareFunction(myName, \"inference_all_spec_inverses_int_internal\", \"INFERENCE-ALL-SPEC-INVERSES-INT-INTERNAL\", 1, 0, false);\n declareFunction(myName, \"inference_all_spec_inverses_int\", \"INFERENCE-ALL-SPEC-INVERSES-INT\", 1, 0, false);\n //declareFunction(myName, \"inference_all_proper_genl_predicates_with_axiom_index_internal\", \"INFERENCE-ALL-PROPER-GENL-PREDICATES-WITH-AXIOM-INDEX-INTERNAL\", 2, 0, false);\n //declareFunction(myName, \"inference_all_proper_genl_predicates_with_axiom_index\", \"INFERENCE-ALL-PROPER-GENL-PREDICATES-WITH-AXIOM-INDEX\", 2, 0, false);\n declareFunction(myName, \"inference_all_proper_spec_predicates_with_axiom_index\", \"INFERENCE-ALL-PROPER-SPEC-PREDICATES-WITH-AXIOM-INDEX\", 2, 0, false);\n declareFunction(myName, \"inference_all_proper_spec_predicates_with_axiom_index_int_internal\", \"INFERENCE-ALL-PROPER-SPEC-PREDICATES-WITH-AXIOM-INDEX-INT-INTERNAL\", 2, 0, false);\n declareFunction(myName, \"inference_all_proper_spec_predicates_with_axiom_index_int\", \"INFERENCE-ALL-PROPER-SPEC-PREDICATES-WITH-AXIOM-INDEX-INT\", 2, 0, false);\n //declareFunction(myName, \"inference_all_negation_predicates_with_axiom_index_internal\", \"INFERENCE-ALL-NEGATION-PREDICATES-WITH-AXIOM-INDEX-INTERNAL\", 2, 0, false);\n //declareFunction(myName, \"inference_all_negation_predicates_with_axiom_index\", \"INFERENCE-ALL-NEGATION-PREDICATES-WITH-AXIOM-INDEX\", 2, 0, false);\n declareFunction(myName, \"inference_some_max_floor_mts\", \"INFERENCE-SOME-MAX-FLOOR-MTS\", 1, 0, false);\n declareFunction(myName, \"clear_some_max_floor_mtsP_cached\", \"CLEAR-SOME-MAX-FLOOR-MTS?-CACHED\", 0, 0, false);\n //declareFunction(myName, \"remove_some_max_floor_mtsP_cached\", \"REMOVE-SOME-MAX-FLOOR-MTS?-CACHED\", 1, 0, false);\n declareFunction(myName, \"some_max_floor_mtsP_cached_internal\", \"SOME-MAX-FLOOR-MTS?-CACHED-INTERNAL\", 1, 0, false);\n declareFunction(myName, \"some_max_floor_mtsP_cached\", \"SOME-MAX-FLOOR-MTS?-CACHED\", 1, 0, false);\n declareFunction(myName, \"inference_max_floor_mts_with_cycles_pruned\", \"INFERENCE-MAX-FLOOR-MTS-WITH-CYCLES-PRUNED\", 1, 1, false);\n declareFunction(myName, \"clear_inference_max_floor_mts_with_cycles_pruned_cached\", \"CLEAR-INFERENCE-MAX-FLOOR-MTS-WITH-CYCLES-PRUNED-CACHED\", 0, 0, false);\n //declareFunction(myName, \"remove_inference_max_floor_mts_with_cycles_pruned_cached\", \"REMOVE-INFERENCE-MAX-FLOOR-MTS-WITH-CYCLES-PRUNED-CACHED\", 1, 0, false);\n declareFunction(myName, \"inference_max_floor_mts_with_cycles_pruned_cached_internal\", \"INFERENCE-MAX-FLOOR-MTS-WITH-CYCLES-PRUNED-CACHED-INTERNAL\", 1, 0, false);\n declareFunction(myName, \"inference_max_floor_mts_with_cycles_pruned_cached\", \"INFERENCE-MAX-FLOOR-MTS-WITH-CYCLES-PRUNED-CACHED\", 1, 0, false);\n //declareFunction(myName, \"inference_max_floor_mts_of_nat_internal\", \"INFERENCE-MAX-FLOOR-MTS-OF-NAT-INTERNAL\", 1, 0, false);\n //declareFunction(myName, \"inference_max_floor_mts_of_nat\", \"INFERENCE-MAX-FLOOR-MTS-OF-NAT\", 1, 0, false);\n declareFunction(myName, \"some_max_floor_mtsP\", \"SOME-MAX-FLOOR-MTS?\", 1, 0, false);\n //declareFunction(myName, \"inference_applicable_sdctP_internal\", \"INFERENCE-APPLICABLE-SDCT?-INTERNAL\", 1, 0, false);\n //declareFunction(myName, \"inference_applicable_sdctP\", \"INFERENCE-APPLICABLE-SDCT?\", 1, 0, false);\n //declareMacro(myName, \"do_inference_gaf_lookup_index\", \"DO-INFERENCE-GAF-LOOKUP-INDEX\");\n declareFunction(myName, \"inference_gaf_lookup_index_internal\", \"INFERENCE-GAF-LOOKUP-INDEX-INTERNAL\", 2, 0, false);\n declareFunction(myName, \"inference_gaf_lookup_index\", \"INFERENCE-GAF-LOOKUP-INDEX\", 2, 0, false);\n declareFunction(myName, \"inference_num_gaf_lookup_index_internal\", \"INFERENCE-NUM-GAF-LOOKUP-INDEX-INTERNAL\", 2, 0, false);\n declareFunction(myName, \"inference_num_gaf_lookup_index\", \"INFERENCE-NUM-GAF-LOOKUP-INDEX\", 2, 0, false);\n //declareFunction(myName, \"inference_relevant_num_gaf_lookup_index_internal\", \"INFERENCE-RELEVANT-NUM-GAF-LOOKUP-INDEX-INTERNAL\", 3, 0, false);\n //declareFunction(myName, \"inference_relevant_num_gaf_lookup_index\", \"INFERENCE-RELEVANT-NUM-GAF-LOOKUP-INDEX\", 3, 0, false);\n //declareFunction(myName, \"inference_key_gaf_arg_index_internal\", \"INFERENCE-KEY-GAF-ARG-INDEX-INTERNAL\", 1, 2, false);\n //declareFunction(myName, \"inference_key_gaf_arg_index\", \"INFERENCE-KEY-GAF-ARG-INDEX\", 1, 2, false);\n declareFunction(myName, \"problem_backchain_requiredP\", \"PROBLEM-BACKCHAIN-REQUIRED?\", 1, 0, false);\n declareFunction(myName, \"inference_some_backchain_required_asent_in_clauseP\", \"INFERENCE-SOME-BACKCHAIN-REQUIRED-ASENT-IN-CLAUSE?\", 1, 0, false);\n declareFunction(myName, \"inference_backchain_required_contextualized_asentP\", \"INFERENCE-BACKCHAIN-REQUIRED-CONTEXTUALIZED-ASENT?\", 1, 0, false);\n declareFunction(myName, \"inference_backchain_required_asentP\", \"INFERENCE-BACKCHAIN-REQUIRED-ASENT?\", 2, 0, false);\n declareFunction(myName, \"inference_predicate_backchain_requiredP_internal\", \"INFERENCE-PREDICATE-BACKCHAIN-REQUIRED?-INTERNAL\", 2, 0, false);\n declareFunction(myName, \"inference_predicate_backchain_requiredP\", \"INFERENCE-PREDICATE-BACKCHAIN-REQUIRED?\", 2, 0, false);\n declareFunction(myName, \"inference_backchain_forbiddenP_internal\", \"INFERENCE-BACKCHAIN-FORBIDDEN?-INTERNAL\", 2, 0, false);\n declareFunction(myName, \"inference_backchain_forbiddenP\", \"INFERENCE-BACKCHAIN-FORBIDDEN?\", 2, 0, false);\n //declareFunction(myName, \"inference_collection_isa_backchain_encouragedP_internal\", \"INFERENCE-COLLECTION-ISA-BACKCHAIN-ENCOURAGED?-INTERNAL\", 2, 0, false);\n //declareFunction(myName, \"inference_collection_isa_backchain_encouragedP\", \"INFERENCE-COLLECTION-ISA-BACKCHAIN-ENCOURAGED?\", 2, 0, false);\n //declareFunction(myName, \"inference_collection_genls_backchain_encouragedP_internal\", \"INFERENCE-COLLECTION-GENLS-BACKCHAIN-ENCOURAGED?-INTERNAL\", 2, 0, false);\n //declareFunction(myName, \"inference_collection_genls_backchain_encouragedP\", \"INFERENCE-COLLECTION-GENLS-BACKCHAIN-ENCOURAGED?\", 2, 0, false);\n //declareFunction(myName, \"inference_collection_backchain_encouragedP_internal\", \"INFERENCE-COLLECTION-BACKCHAIN-ENCOURAGED?-INTERNAL\", 2, 0, false);\n //declareFunction(myName, \"inference_collection_backchain_encouragedP\", \"INFERENCE-COLLECTION-BACKCHAIN-ENCOURAGED?\", 2, 0, false);\n declareFunction(myName, \"inference_collection_backchain_requiredP_internal\", \"INFERENCE-COLLECTION-BACKCHAIN-REQUIRED?-INTERNAL\", 2, 0, false);\n declareFunction(myName, \"inference_collection_backchain_requiredP\", \"INFERENCE-COLLECTION-BACKCHAIN-REQUIRED?\", 2, 0, false);\n declareFunction(myName, \"inference_collection_isa_backchain_requiredP_internal\", \"INFERENCE-COLLECTION-ISA-BACKCHAIN-REQUIRED?-INTERNAL\", 2, 0, false);\n declareFunction(myName, \"inference_collection_isa_backchain_requiredP\", \"INFERENCE-COLLECTION-ISA-BACKCHAIN-REQUIRED?\", 2, 0, false);\n declareFunction(myName, \"inference_collection_genls_backchain_requiredP_internal\", \"INFERENCE-COLLECTION-GENLS-BACKCHAIN-REQUIRED?-INTERNAL\", 2, 0, false);\n declareFunction(myName, \"inference_collection_genls_backchain_requiredP\", \"INFERENCE-COLLECTION-GENLS-BACKCHAIN-REQUIRED?\", 2, 0, false);\n declareFunction(myName, \"backchain_control_mt\", \"BACKCHAIN-CONTROL-MT\", 1, 0, false);\n declareFunction(myName, \"inference_relevant_mtP\", \"INFERENCE-RELEVANT-MT?\", 1, 1, false);\n //declareFunction(myName, \"inference_relevant_assertionP\", \"INFERENCE-RELEVANT-ASSERTION?\", 1, 1, false);\n //declareFunction(myName, \"inference_relevant_predicate_assertionP\", \"INFERENCE-RELEVANT-PREDICATE-ASSERTION?\", 2, 1, false);\n //declareFunction(myName, \"inference_relevant_termP\", \"INFERENCE-RELEVANT-TERM?\", 1, 1, false);\n declareFunction(myName, \"inference_irrelevant_mtP\", \"INFERENCE-IRRELEVANT-MT?\", 1, 1, false);\n //declareFunction(myName, \"inference_irrelevant_assertionP\", \"INFERENCE-IRRELEVANT-ASSERTION?\", 1, 1, false);\n //declareFunction(myName, \"inference_irrelevant_predicate_assertionP\", \"INFERENCE-IRRELEVANT-PREDICATE-ASSERTION?\", 2, 1, false);\n //declareFunction(myName, \"inference_irrelevant_termP\", \"INFERENCE-IRRELEVANT-TERM?\", 1, 1, false);\n //declareFunction(myName, \"inference_rule_has_utilityP\", \"INFERENCE-RULE-HAS-UTILITY?\", 1, 1, false);\n //declareFunction(myName, \"inference_rule_utility\", \"INFERENCE-RULE-UTILITY\", 1, 1, false);\n //declareFunction(myName, \"inference_known_sentence_removal_query_internal\", \"INFERENCE-KNOWN-SENTENCE-REMOVAL-QUERY-INTERNAL\", 2, 1, false);\n //declareFunction(myName, \"inference_known_sentence_removal_query\", \"INFERENCE-KNOWN-SENTENCE-REMOVAL-QUERY\", 2, 1, false);\n //declareFunction(myName, \"inference_known_sentence_recursive_query\", \"INFERENCE-KNOWN-SENTENCE-RECURSIVE-QUERY\", 2, 1, false);\n //declareFunction(myName, \"inference_true_sentence_recursion_cycleP\", \"INFERENCE-TRUE-SENTENCE-RECURSION-CYCLE?\", 1, 0, false);\n //declareFunction(myName, \"inference_true_sentence_recursive_query_internal\", \"INFERENCE-TRUE-SENTENCE-RECURSIVE-QUERY-INTERNAL\", 2, 1, false);\n //declareFunction(myName, \"inference_true_sentence_recursive_query\", \"INFERENCE-TRUE-SENTENCE-RECURSIVE-QUERY\", 2, 1, false);\n //declareFunction(myName, \"inference_mts_where_gaf_sentence_true_internal\", \"INFERENCE-MTS-WHERE-GAF-SENTENCE-TRUE-INTERNAL\", 1, 0, false);\n //declareFunction(myName, \"inference_mts_where_gaf_sentence_true\", \"INFERENCE-MTS-WHERE-GAF-SENTENCE-TRUE\", 1, 0, false);\n //declareFunction(myName, \"inference_mts_where_gaf_sentence_true_justified_memoized_internal\", \"INFERENCE-MTS-WHERE-GAF-SENTENCE-TRUE-JUSTIFIED-MEMOIZED-INTERNAL\", 1, 0, false);\n //declareFunction(myName, \"inference_mts_where_gaf_sentence_true_justified_memoized\", \"INFERENCE-MTS-WHERE-GAF-SENTENCE-TRUE-JUSTIFIED-MEMOIZED\", 1, 0, false);\n //declareFunction(myName, \"inference_mts_where_gaf_sentence_true_justified\", \"INFERENCE-MTS-WHERE-GAF-SENTENCE-TRUE-JUSTIFIED\", 1, 0, false);\n //declareFunction(myName, \"determine_sentence_recursive_query_properties\", \"DETERMINE-SENTENCE-RECURSIVE-QUERY-PROPERTIES\", 2, 0, false);\n //declareFunction(myName, \"determine_sentence_recursive_query_properties_recursive\", \"DETERMINE-SENTENCE-RECURSIVE-QUERY-PROPERTIES-RECURSIVE\", 2, 0, false);\n //declareFunction(myName, \"inference_rule_type_constraints_internal\", \"INFERENCE-RULE-TYPE-CONSTRAINTS-INTERNAL\", 1, 0, false);\n //declareFunction(myName, \"inference_rule_type_constraints\", \"INFERENCE-RULE-TYPE-CONSTRAINTS\", 1, 0, false);\n return NIL;\n }",
"public FunctionExecutionContext() {\n }",
"UserFunctionOrBuilder getUserFunctionsOrBuilder(\n int index);",
"public List<?> getAllFuncs() throws DataAccessException {\n\t\treturn (List<?>) mapper.getAllFuncs();\r\n\t}",
"public Collection findPartnerFunctionsKeys(IDataFilter filter)\n throws FindEntityException, SystemException, RemoteException;",
"public String[] getOperationCallerNames ()\n {\n org.omg.CORBA.portable.InputStream $in = null;\n try {\n org.omg.CORBA.portable.OutputStream $out = _request (\"getOperationCallerNames\", true);\n $in = _invoke ($out);\n String $result[] = RTT.corba.COperationCallerNamesHelper.read ($in);\n return $result;\n } catch (org.omg.CORBA.portable.ApplicationException $ex) {\n $in = $ex.getInputStream ();\n String _id = $ex.getId ();\n throw new org.omg.CORBA.MARSHAL (_id);\n } catch (org.omg.CORBA.portable.RemarshalException $rm) {\n return getOperationCallerNames ( );\n } finally {\n _releaseReply ($in);\n }\n }",
"public final Map[] getStackTrace() {\n return this.stackTrace;\n }",
"protected Map<String, Function> getFuncMap() {\n\t\treturn myFuncMap;\n\t}",
"public int getFreezeTicks ( ) {\n\t\treturn extract ( handle -> handle.getFreezeTicks ( ) );\n\t}",
"private static String[] traceAll(StackTraceElement[] stackTraceElements, int depth) {\n if (null == stackTraceElements) {\n return null;\n }\n if ((null != stackTraceElements) && (stackTraceElements.length >= depth)) {\n StackTraceElement source = stackTraceElements[depth];\n StackTraceElement caller = (stackTraceElements.length > (depth + 1))\n ? stackTraceElements[depth + 1]\n : ((stackTraceElements.length > depth) ? stackTraceElements[depth] : stackTraceElements[stackTraceElements.length - 1]);\n if (null != source) {\n if (null != caller) {\n String[] out = new String[8];\n out[0] = source.getFileName();\n out[1] = source.getMethodName();\n out[2] = Integer.toString(source.getLineNumber());\n out[3] = source.getClassName().substring(source.getClassName().lastIndexOf('.') + 1);\n out[4] = caller.getFileName();\n out[5] = caller.getMethodName();\n out[6] = Integer.toString(caller.getLineNumber());\n out[7] = caller.getClassName().substring(caller.getClassName().lastIndexOf('.') + 1);\n return out;\n }\n }\n }\n return null;\n }",
"@Override\n\tpublic List<Function> list() {\n\t\treturn null;\n\t}",
"protected List<String> getFunctionAliases(Function f) {\n List<String> ret = new ArrayList<String>();\n\n for (String curF : callMap.keySet()) {\n for (Function curFunc : callMap.get(curF)) {\n if(curFunc.getName().equals(f.getName())) {\n ret.add(curF);\n break;\n }\n }\n }\n\n return ret;\n }",
"public StringArray getTraversalIDs() {\n return (StringArray) (_getFeatureValueNc(wrapGetIntCatchException(_FH_traversalIDs)));\n }",
"public TensorFunction<Reference> function() { return function; }",
"public static final SourceModel.Expr executionContext_traceShowsThreadName(SourceModel.Expr executionContext) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_traceShowsThreadName), executionContext});\n\t\t}",
"public static final SubLObject setup_inference_trampolines_file() {\n memoization_state.note_memoized_function($sym1$INFERENCE_PARTIALLY_COMMUTATIVE_PREDICATE_P);\n memoization_state.note_globally_cached_function($sym3$INDETERMINATE_TERM_P);\n memoization_state.note_memoized_function($sym7$MEMOIZED_INFERENCE_INDETERMINATE_TERM_);\n memoization_state.note_memoized_function($sym8$INFERENCE_ALL_GENL_PREDICATES);\n memoization_state.note_memoized_function($sym9$INFERENCE_ALL_SPEC_PREDICATES_INT);\n memoization_state.note_memoized_function($sym10$INFERENCE_ALL_GENL_INVERSES);\n memoization_state.note_memoized_function($sym11$INFERENCE_ALL_SPEC_INVERSES_INT);\n memoization_state.note_memoized_function($sym12$INFERENCE_ALL_PROPER_GENL_PREDICATES_WITH_AXIOM_INDEX);\n memoization_state.note_memoized_function($sym27$INFERENCE_ALL_PROPER_SPEC_PREDICATES_WITH_AXIOM_INDEX_INT);\n memoization_state.note_memoized_function($sym28$INFERENCE_ALL_NEGATION_PREDICATES_WITH_AXIOM_INDEX);\n memoization_state.note_globally_cached_function($sym30$SOME_MAX_FLOOR_MTS__CACHED);\n memoization_state.note_globally_cached_function($sym34$INFERENCE_MAX_FLOOR_MTS_WITH_CYCLES_PRUNED_CACHED);\n memoization_state.note_memoized_function($sym37$INFERENCE_MAX_FLOOR_MTS_OF_NAT);\n memoization_state.note_memoized_function($sym38$INFERENCE_APPLICABLE_SDCT_);\n memoization_state.note_memoized_function($sym44$INFERENCE_GAF_LOOKUP_INDEX);\n memoization_state.note_memoized_function($sym47$INFERENCE_NUM_GAF_LOOKUP_INDEX);\n memoization_state.note_memoized_function($sym48$INFERENCE_RELEVANT_NUM_GAF_LOOKUP_INDEX);\n memoization_state.note_memoized_function($sym49$INFERENCE_KEY_GAF_ARG_INDEX);\n memoization_state.note_memoized_function($sym54$INFERENCE_PREDICATE_BACKCHAIN_REQUIRED_);\n memoization_state.note_memoized_function($sym55$INFERENCE_BACKCHAIN_FORBIDDEN_);\n memoization_state.note_memoized_function($sym56$INFERENCE_COLLECTION_ISA_BACKCHAIN_ENCOURAGED_);\n memoization_state.note_memoized_function($sym57$INFERENCE_COLLECTION_GENLS_BACKCHAIN_ENCOURAGED_);\n memoization_state.note_memoized_function($sym58$INFERENCE_COLLECTION_BACKCHAIN_ENCOURAGED_);\n memoization_state.note_memoized_function($sym59$INFERENCE_COLLECTION_BACKCHAIN_REQUIRED_);\n memoization_state.note_memoized_function($sym60$INFERENCE_COLLECTION_ISA_BACKCHAIN_REQUIRED_);\n memoization_state.note_memoized_function($sym61$INFERENCE_COLLECTION_GENLS_BACKCHAIN_REQUIRED_);\n memoization_state.note_memoized_function($sym72$INFERENCE_KNOWN_SENTENCE_REMOVAL_QUERY);\n memoization_state.note_memoized_function($sym76$INFERENCE_TRUE_SENTENCE_RECURSIVE_QUERY);\n memoization_state.note_memoized_function($sym78$INFERENCE_MTS_WHERE_GAF_SENTENCE_TRUE);\n memoization_state.note_memoized_function($sym80$INFERENCE_MTS_WHERE_GAF_SENTENCE_TRUE_JUSTIFIED_MEMOIZED);\n memoization_state.note_memoized_function($sym85$INFERENCE_RULE_TYPE_CONSTRAINTS);\n return NIL;\n }",
"public String getSuppressedStackTrace() {\n final ThrowableProxy[] suppressed = getSuppressedProxies();\n if (suppressed == null || suppressed.length == 0) {\n return \"\";\n }\n final StringBuilder sb = new StringBuilder(\"Suppressed Stack Trace Elements:\\n\");\n for (final ThrowableProxy proxy : suppressed) {\n sb.append(proxy.getExtendedStackTrace());\n }\n return sb.toString();\n }",
"public abstract List<FunctionDescriptor> getModifiedDescriptors(FunctionDescriptor functionDescriptor);"
] | [
"0.61382395",
"0.5878982",
"0.57693535",
"0.56391466",
"0.5590145",
"0.55480224",
"0.5510028",
"0.5448403",
"0.5408329",
"0.5327493",
"0.5214111",
"0.5212591",
"0.5156165",
"0.51482785",
"0.5139614",
"0.5083922",
"0.49869537",
"0.49809936",
"0.49153724",
"0.4907948",
"0.49001747",
"0.48610175",
"0.48534298",
"0.4852934",
"0.48074165",
"0.48026678",
"0.47983122",
"0.4790699",
"0.4771006",
"0.4762643",
"0.47583997",
"0.47569492",
"0.47462994",
"0.47418082",
"0.47164035",
"0.47036114",
"0.46865097",
"0.46675467",
"0.4663166",
"0.46421024",
"0.463368",
"0.4627681",
"0.462239",
"0.46030205",
"0.45960727",
"0.45858163",
"0.45627594",
"0.45549703",
"0.45538023",
"0.45371246",
"0.45049605",
"0.44954062",
"0.4490617",
"0.44574222",
"0.44495532",
"0.4438083",
"0.44369525",
"0.4434734",
"0.4431341",
"0.44275898",
"0.44243392",
"0.44125965",
"0.440705",
"0.43800348",
"0.43651608",
"0.43533894",
"0.43498483",
"0.4344434",
"0.43434006",
"0.43320107",
"0.43306825",
"0.43254307",
"0.43251225",
"0.43203136",
"0.43194276",
"0.4317573",
"0.43163595",
"0.43125582",
"0.43116367",
"0.4295864",
"0.4292935",
"0.42925277",
"0.42921686",
"0.42908272",
"0.4288842",
"0.42885783",
"0.42855474",
"0.4278232",
"0.42758882",
"0.42733473",
"0.42730555",
"0.42720518",
"0.4269292",
"0.42661074",
"0.4264722",
"0.42401722",
"0.42400974",
"0.42344776",
"0.42281637",
"0.4220523"
] | 0.8269877 | 0 |
Helper binding method for function: executionContext_isTracingEnabled. | public static final SourceModel.Expr executionContext_isTracingEnabled(SourceModel.Expr executionContext) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_isTracingEnabled), executionContext});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isTracing();",
"public static boolean isTracing() {\n return Trace.isTracing();\n }",
"public static final SourceModel.Expr executionContext_setTracingEnabled(SourceModel.Expr executionContext, SourceModel.Expr tracingEnabled) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_setTracingEnabled), executionContext, tracingEnabled});\n\t\t}",
"public boolean isTraceEnabled();",
"public static boolean isEnabled() {\n return log.isTraceEnabled();\n }",
"public static boolean isTrace() {\n return getInstance().trace;\n }",
"boolean hasTraceTag();",
"public boolean isTraceEnabled()\n/* */ {\n/* 282 */ return getLogger().isDebugEnabled();\n/* */ }",
"protected boolean checkTraceEnabled() {\n String sysTraceEnabled = System.getenv(TRACE_ENABLED_ENV);\n if (sysTraceEnabled == null) {\n return false;\n }\n\n if (sysTraceEnabled.toLowerCase().equals(\"true\")) {\n return true;\n }\n return false;\n }",
"@Override\n\tpublic boolean isTraceEnabled(Marker marker) {\n\t\treturn false;\n\t}",
"public int getTracing() {\n if (Trace.getMask() == Trace.MASK_NONE)\n return 0;\n else\n return 1;\n }",
"boolean hasTelemetry();",
"public boolean hasTraceListeners()\r\n {\r\n return (null != m_traceListeners);\r\n }",
"boolean hasContext();",
"boolean hasContext();",
"Object getTrace();",
"boolean profilerEnabled();",
"@Override\n public String getTrace() {\n return trace;\n }",
"boolean isSwitchingScope();",
"public boolean hasTraceTag() {\n return ((bitField0_ & 0x00004000) == 0x00004000);\n }",
"@Override\n public boolean isDebugEnabled() {\n return innerLog.isDebugEnabled();\n }",
"protected boolean isTelemetryEnabled() {\n if(!this.telemetryEnabled){\n InternalLogging.warn(TAG, \"Could not track telemetry item, because telemetry \" +\n \"feature is disabled.\");\n }\n return this.telemetryEnabled;\n }",
"public boolean hasTraceTag() {\n return ((bitField0_ & 0x00004000) == 0x00004000);\n }",
"public boolean isDebugEnabled()\n/* */ {\n/* 250 */ return getLogger().isDebugEnabled();\n/* */ }",
"public static void traceOn() {\r\n\t\ttraceOn = true;\r\n\t}",
"public Map<String, String> getTraceContext() {\n if (this.tracing == null) {\n DDLogger.getLoggerImpl().debug(\"No tracing context; unable to get Trace ID\");\n return null;\n }\n return this.tracing.getLogCorrelationTraceAndSpanIDsMap();\n }",
"boolean hasPipelineRunContext();",
"public void traceStatus() {\n logger.trace(\"jvmThread: {}, jvmMethod: {}\", jvmThread, jvmMethod);\n logger.trace(\"localVariables: {}\", localVariables);\n logger.trace(\"operandStacks: {}\", operandStacks);\n }",
"@External\r\n\t@SharedFunc\r\n\tpublic MetaVar Trace(){throw new RuntimeException(\"Should never be executed directly, there is probably an error in the Aspect-coding.\");}",
"public synchronized boolean isLoggingFeatureEnabled(){\n\t\treturn isLoggingFeatureEnabled;\n\t}",
"boolean hasPipelineContext();",
"public boolean isLogging();",
"public String getTraceInformation() {\n\t\treturn (traceInformation);\n\t}",
"public TraceInformation getTraceInformation() {\n\t\treturn this.traceInformation;\n\t}",
"@Override\n\tprotected boolean traceDisplayerContentApplicable() {\n\t\treturn true;\n\t}",
"boolean isLocalExecutionEnabled();",
"@Bean\n Filter tracingFilter(HttpTracing httpTracing) {\n return TracingFilter.create(httpTracing);\n\n }",
"public abstract int trace();",
"public boolean containsContextNodes();",
"public boolean isBrowserSideLog() {\n return browserSideLog;\n }",
"@DISPID(37)\r\n\t// = 0x25. The runtime will prefer the VTID if present\r\n\t@VTID(42)\r\n\tboolean enabled();",
"public String getTrace() {\n return trace;\n }",
"public TraceFormatting getTraceFormatting() {\n return traces;\n }",
"public boolean isInfoEnabled()\n/* */ {\n/* 274 */ return getLogger().isInfoEnabled();\n/* */ }",
"@Override\n public boolean test(StackWalker.StackFrame t) {\n final String cname = t.getClassName();\n // We should skip all frames until we have found the logger,\n // because these frames could be frames introduced by e.g. custom\n // sub classes of Handler.\n if (lookingForLogger) {\n // Skip all frames until we have found the first logger frame.\n lookingForLogger = !isLoggerImplFrame(cname);\n return false;\n }\n // Continue walking until we've found the relevant calling frame.\n // Skips logging/logger infrastructure.\n return !Formatting.isFilteredFrame(t);\n }",
"@Override\n public boolean containsContext(HttpServletRequest request) {\n return false;\n }",
"public boolean isLoggingEnabledNow() {\n return this.decider.isLoggingEnabledNow();\n }",
"public String getTraceId() {\n return traceId;\n }",
"@Override\n\tpublic String toString(@javax.annotation.Nullable Event arg0, boolean arg1) {\n\t\treturn \"get visibility\";\n\t}",
"private final static boolean doTrace(String component, String level,\n\t String type) {\n\t\tif (!enableTraces) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\tif (component == null || component.trim().length() == 0) {\n\t\t\t\tcomponent = COMPONENT_UNASSIGNED;\n\t\t\t}\n\t\t\tLogger log = Logger.getLogger(component);\n\t\t\tPriority pri = getPriority(type);\n\t\t\treturn (log.isEnabledFor(pri));\n\t\t}\n\t}",
"@DISPID(79)\r\n\t// = 0x4f. The runtime will prefer the VTID if present\r\n\t@VTID(77)\r\n\tboolean enabled();",
"@Property\n public native boolean isHandledWhileDebugging ();",
"public boolean needContext() {\n\t\treturn false;\n\t}",
"@NotNull\n GenerationTrace getTrace();",
"public boolean inService() throws PolicyContextException{\n\tcheckSetPolicyPermission();\t\n\tboolean rvalue = stateIs(INSERVICE_STATE);\n \n if (logger.isLoggable(Level.FINE)) {\n logger.fine(\"JACC Policy Provider: inService: \" +\n (rvalue ? \"true \" : \"false \") +\n CONTEXT_ID);\n }\n \n return rvalue;\n }",
"public String getTrace() throws RemoteException;",
"public boolean isDebugEnabled();",
"public boolean isVerbose();",
"public boolean canGetCurrent (CallContext context);",
"default boolean isActivityLoggingEnabled() {\n return false;\n }",
"public boolean isDebugEnabled() {\n return getFormat().getConverterService().isDebugEnabled();\n }",
"boolean isScope();",
"@Override\n public boolean isEnabled() {\n synchronized (mLocationListeners) {\n return mEnabledProviders.contains(getName());\n }\n }",
"public static void setTrace(boolean traceOn) {\r\n\t\ttrace = traceOn;\r\n\t}",
"public boolean useNormsTracer() {\n\t\treturn true;\n\t}",
"public String getTraceContextString() {\n Map<String, String> traceInfo = getTraceContext();\n if (traceInfo == null) {\n DDLogger.getLoggerImpl().debug(\"No Trace/Log correlation IDs returned\");\n return \"\";\n }\n\n String traceID = traceInfo.get(this.tracing.TRACE_ID_KEY);\n String spanID = traceInfo.get(this.tracing.SPAN_ID_KEY);\n return formatTraceContext(this.tracing.TRACE_ID_KEY, traceID, this.tracing.SPAN_ID_KEY, spanID);\n }",
"public boolean isSprinting ( ) {\n\t\treturn extract ( handle -> handle.isSprinting ( ) );\n\t}",
"@java.lang.Override\n public boolean getEnableStackdriverLogging() {\n return enableStackdriverLogging_;\n }",
"public interface TraceInfo {\n TraceMode traceMode();\n\n String userName();\n\n String dbInstance();\n\n default <R> R trace(String operationName, String sql, TraceableSQL<R> code) throws SQLException {\n if (traceMode() == TraceMode.OFF) {\n return code.execute();\n }\n Tracer tracer = GlobalTracer.get();\n // skip if there is no active parent\n if (traceMode() == TraceMode.ACTIVE && tracer.activeSpan() == null) {\n return code.execute();\n }\n\n Tracer.SpanBuilder builder = tracer.buildSpan(operationName)\n .withTag(Tags.DB_TYPE.getKey(), \"sql\")\n .withTag(Tags.DB_USER.getKey(), userName());\n\n if (sql != null) {\n builder.withTag(Tags.DB_STATEMENT.getKey(), sql);\n }\n if (dbInstance() != null ) {\n builder.withTag(Tags.DB_INSTANCE.getKey(), dbInstance());\n }\n\n try (Scope scope = builder.startActive(true)) {\n return code.execute();\n }\n }\n\n}",
"public void setContextEnabled(Boolean contextEnabled) {\n this.contextEnabled = contextEnabled;\n }",
"@java.lang.Override\n public boolean getEnableStackdriverLogging() {\n return enableStackdriverLogging_;\n }",
"boolean isDebugEnabled();",
"public void setTraceEnabled(final boolean enabled) {\n traceEnabled = enabled;\n }",
"public boolean isContextConductionInd() {\n\t\treturn contextConductionInd;\n\t}",
"protected boolean isTraced(HttpServletRequest httpServletRequest) {\n if (skipPattern != null) {\n int contextLength =\n httpServletRequest.getContextPath() == null\n ? 0\n : httpServletRequest.getContextPath().length();\n String url = httpServletRequest.getRequestURI().substring(contextLength);\n return !skipPattern.matcher(url).matches();\n }\n\n return true;\n }",
"public boolean logVerbose()\r\n {\r\n return verboseLevelHandler.getBoolean();\r\n }",
"public boolean isServiceExecutionCheckPointingRequired() {\r\n\t\treturn false;\r\n\t}",
"private DDSpanContext buildSpanContext() {\n final DDId traceId;\n final DDId spanId = idGenerationStrategy.generate();\n final DDId parentSpanId;\n final Map<String, String> baggage;\n final PendingTrace parentTrace;\n final int samplingPriority;\n final String origin;\n final Map<String, String> coreTags;\n final Map<String, ?> rootSpanTags;\n\n final DDSpanContext context;\n final Object requestContextData;\n\n // FIXME [API] parentContext should be an interface implemented by ExtractedContext,\n // TagContext, DDSpanContext, AgentSpan.Context\n Object parentContext = parent;\n if (parentContext == null && !ignoreScope) {\n // use the Scope as parent unless overridden or ignored.\n final AgentSpan activeSpan = scopeManager.activeSpan();\n if (activeSpan != null) {\n parentContext = activeSpan.context();\n }\n }\n\n String parentServiceName = null;\n\n // Propagate internal trace.\n // Note: if we are not in the context of distributed tracing and we are starting the first\n // root span, parentContext will be null at this point.\n if (parentContext instanceof DDSpanContext) {\n final DDSpanContext ddsc = (DDSpanContext) parentContext;\n traceId = ddsc.getTraceId();\n parentSpanId = ddsc.getSpanId();\n baggage = ddsc.getBaggageItems();\n parentTrace = ddsc.getTrace();\n samplingPriority = PrioritySampling.UNSET;\n origin = null;\n coreTags = null;\n rootSpanTags = null;\n parentServiceName = ddsc.getServiceName();\n if (serviceName == null) {\n serviceName = parentServiceName;\n }\n RequestContext<Object> requestContext = ddsc.getRequestContext();\n requestContextData = null == requestContext ? null : requestContext.getData();\n } else {\n if (parentContext instanceof ExtractedContext) {\n // Propagate external trace\n final ExtractedContext extractedContext = (ExtractedContext) parentContext;\n traceId = extractedContext.getTraceId();\n parentSpanId = extractedContext.getSpanId();\n samplingPriority = extractedContext.getSamplingPriority();\n baggage = extractedContext.getBaggage();\n } else {\n // Start a new trace\n traceId = IdGenerationStrategy.RANDOM.generate();\n parentSpanId = DDId.ZERO;\n samplingPriority = PrioritySampling.UNSET;\n baggage = null;\n }\n\n // Get header tags and set origin whether propagating or not.\n if (parentContext instanceof TagContext) {\n TagContext tc = (TagContext) parentContext;\n coreTags = tc.getTags();\n origin = tc.getOrigin();\n requestContextData = tc.getRequestContextData();\n } else {\n coreTags = null;\n origin = null;\n requestContextData = null;\n }\n\n rootSpanTags = localRootSpanTags;\n\n parentTrace = createTrace(traceId);\n }\n\n if (serviceName == null) {\n serviceName = CoreTracer.this.serviceName;\n }\n\n final CharSequence operationName =\n this.operationName != null ? this.operationName : resourceName;\n\n final int tagsSize =\n (null == tags ? 0 : tags.size())\n + defaultSpanTags.size()\n + (null == coreTags ? 0 : coreTags.size())\n + (null == rootSpanTags ? 0 : rootSpanTags.size());\n // some attributes are inherited from the parent\n context =\n new DDSpanContext(\n traceId,\n spanId,\n parentSpanId,\n parentServiceName,\n serviceName,\n operationName,\n resourceName,\n samplingPriority,\n origin,\n baggage,\n errorFlag,\n spanType,\n tagsSize,\n parentTrace,\n requestContextData);\n\n // By setting the tags on the context we apply decorators to any tags that have been set via\n // the builder. This is the order that the tags were added previously, but maybe the `tags`\n // set in the builder should come last, so that they override other tags.\n context.setAllTags(defaultSpanTags);\n context.setAllTags(tags);\n context.setAllTags(coreTags);\n context.setAllTags(rootSpanTags);\n return context;\n }",
"public boolean diagnosticsEnabled() {\n return mDiagnosticsEnabled;\n }",
"@Override\n\tpublic ITrace getCurrentTrace() {\n\t\treturn tracePerThread.get();\n\t}",
"private boolean isIncluded(StackTraceElementProxy step) {\n if (!excludes.isEmpty()) {\n StackTraceElement stackTraceElement = step.getStackTraceElement();\n String testString = stackTraceElement.getClassName() + \".\" + stackTraceElement.getMethodName();\n \n for (Pattern exclusionPattern : excludes) {\n if (exclusionPattern.matcher(testString).find()) {\n return false;\n }\n }\n }\n return true;\n }",
"@Override\r\n\tpublic boolean checkIfOnTraineeship() {\n\t\treturn false;\r\n\t}",
"public boolean getIsServiceBound () ;",
"@Override\n public boolean isContextPathInUrl() {\n return false;\n }",
"@Override\n public boolean isContextPathInUrl() {\n return false;\n }",
"@Before\n public void checkStackTraceIsIncluded() {\n assumeTrue(InternalFlags.getIncludeStackTraceOption() != IncludeStackTraceOption.OFF);\n }",
"public boolean isVisualSignEnabled()\n {\n return visualSignEnabled;\n }",
"public boolean isWarnEnabled()\n/* */ {\n/* 290 */ return getLogger().isWarnEnabled();\n/* */ }",
"public synchronized boolean isEnabled() {\n \t\t\treturn listenerEnabled;\n \t\t}",
"public boolean supportsDebugArgument();",
"public boolean isGliding ( ) {\n\t\treturn extract ( handle -> handle.isGliding ( ) );\n\t}",
"public static boolean isEnabled() {\n return true;\n }",
"boolean hasDelegatedOutput();",
"public boolean isEnabled() {\n\t\treturn true;\n\t}",
"boolean isMonitoringEnabled();",
"@Override\n public boolean isStatisticsEnabled() {\n return counter != null && counter.isStatisticsEnabled();\n }",
"@Override\r\n\t\t\tpublic boolean onIntercept() {\n\t\t\t\treturn false;\r\n\t\t\t}",
"public interface IConditionFindingTracer {\n\n /**\n * @return the usage (e.g. 'A' for pricing).\n */\n public String getUsage();\n\n /**\n * @return the application (e.g. 'V' for sales).\n */\n public String getApplication();\n\n /**\n * @return an enumeration of my trace-objects.\n */\n public Iterator getTracesIterator();\n\n /**\n * @return the current tracer\n */\n public ITracer getCurrentTracer();\n\n /**\n * @return the name of the procedure used for the search of condition records.\n */\n public String getProcedureName();\n\n /**\n * @return the description of the procedure.\n */\n public String getProcedureDescription();\n \n \n /**\n * @return error message\n */\n public Vector getProcedureErrorMessage();\n}",
"public boolean isVerbose() {\n \n // return it\n return showVerboseOutput;\n }",
"@java.lang.Override\n public boolean getEnableStackdriverMonitoring() {\n return enableStackdriverMonitoring_;\n }"
] | [
"0.7689879",
"0.70224583",
"0.6640658",
"0.6574229",
"0.62392133",
"0.6218444",
"0.61472106",
"0.6085125",
"0.5921332",
"0.59202164",
"0.5686969",
"0.56802976",
"0.5645893",
"0.54814065",
"0.54814065",
"0.545605",
"0.53301626",
"0.52788067",
"0.52476096",
"0.52197826",
"0.5187782",
"0.517132",
"0.5159011",
"0.51195896",
"0.5104803",
"0.50961655",
"0.50862885",
"0.5052795",
"0.50387543",
"0.5032507",
"0.50255615",
"0.50150895",
"0.49957627",
"0.49673396",
"0.49669918",
"0.4952266",
"0.49448955",
"0.4921323",
"0.49204683",
"0.49164128",
"0.49114618",
"0.49105963",
"0.4906692",
"0.4901327",
"0.48868227",
"0.4865929",
"0.48368004",
"0.48316288",
"0.48300347",
"0.48236865",
"0.4806456",
"0.47973928",
"0.47871915",
"0.47644305",
"0.47631153",
"0.47486064",
"0.47454426",
"0.4738671",
"0.4734643",
"0.47258338",
"0.47248995",
"0.47186127",
"0.47072697",
"0.4706197",
"0.4697741",
"0.46959737",
"0.46804982",
"0.46793485",
"0.46776742",
"0.4676503",
"0.4675417",
"0.46745738",
"0.46650702",
"0.4658316",
"0.46498576",
"0.46409357",
"0.4639382",
"0.46329615",
"0.4629622",
"0.46262863",
"0.461829",
"0.4617706",
"0.4611095",
"0.46061674",
"0.46061674",
"0.45967796",
"0.45795676",
"0.45737222",
"0.45591214",
"0.4556286",
"0.45559877",
"0.45559856",
"0.4555143",
"0.4536726",
"0.45261183",
"0.45242888",
"0.45212358",
"0.45143712",
"0.45102462",
"0.45100433"
] | 0.8225835 | 0 |
Helper binding method for function: executionContext_removeTracedFunction. | public static final SourceModel.Expr executionContext_removeTracedFunction(SourceModel.Expr executionContext, SourceModel.Expr tracedFunction) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_removeTracedFunction), executionContext, tracedFunction});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeFunction(Address entryPoint);",
"void removeExecution(ExecutionContext context, int exeId) throws ExecutorException;",
"public void removeFunction(Function function) {\n removeFunction(function.getFullName());\n }",
"public void removeTableValuedFunction(TableValuedFunction tvf) {\n removeTableValuedFunction(tvf.getFullName());\n }",
"FunctionLibraryDefinition<T> unregisterFunction(String functionName);",
"public static final SourceModel.Expr executionContext_getTracedFunctions(SourceModel.Expr executionContext) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_getTracedFunctions), executionContext});\n\t\t}",
"public static final SourceModel.Expr executionContext_addTracedFunction(SourceModel.Expr executionContext, SourceModel.Expr tracedFunction) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_addTracedFunction), executionContext, tracedFunction});\n\t\t}",
"public void removeBinding(String func) {\n synchronized (BlitzPlugin.class) {\n if (this.mJsFuncTable.containsKey(func)) {\n this.mJsFuncTable.remove(func);\n BlitzPlugin._removeBindingJs(func);\n }\n }\n }",
"void dropFunction(ObjectPath functionPath, boolean ignoreIfNotExists)\n throws FunctionNotExistException, CatalogException;",
"void removeFunction(int i);",
"void threadRemoved(String threadId);",
"private static native void hook_del(long handle) throws UnicornException;",
"public void removeTableValuedFunction(String name) {\n Preconditions.checkState(!registered);\n String lowerCaseName = Ascii.toLowerCase(name);\n TableValuedFunction tvf = getTVFByName(lowerCaseName);\n Preconditions.checkArgument(tvf != null);\n tvfs.remove(lowerCaseName);\n }",
"public void removeContext(LoggerContext context) {\n/* 86 */ for (Map.Entry<String, AtomicReference<WeakReference<LoggerContext>>> entry : CONTEXT_MAP.entrySet()) {\n/* 87 */ LoggerContext ctx = ((WeakReference<LoggerContext>)((AtomicReference<WeakReference<LoggerContext>>)entry.getValue()).get()).get();\n/* 88 */ if (ctx == context) {\n/* 89 */ CONTEXT_MAP.remove(entry.getKey());\n/* */ }\n/* */ } \n/* */ }",
"public static native void _removeBindingJs(String str);",
"public void destructor()\n//\n////////////////////////////////////////////////////////////////////////\n{\n if (setFunction) state.pop();\n //super.destructor();\n}",
"public void delContextNodes();",
"public ChannelProgressivePromise removeListener(GenericFutureListener<? extends Future<? super Void>> listener)\r\n/* 81: */ {\r\n/* 82:113 */ super.removeListener(listener);\r\n/* 83:114 */ return this;\r\n/* 84: */ }",
"@Override\n\tpublic int delRFunc(int roleid) throws Exception {\n\t\treturn froleMapper.delRFunc(roleid);\n\t}",
"@java.lang.Deprecated\n public void removeFromRateBookCalcRoutines(gw.pl.persistence.core.Key elementID);",
"public void attributeRemoved(HttpSessionBindingEvent sbe) {\n }",
"public void attributeRemoved(HttpSessionBindingEvent sbe) {\n }",
"public void deleteFunctionRequirement(final Field fReqToDelete) {\n\t\tif (_functionReq.contains(fReqToDelete)) {\n\t\t\t_functionReq.removeChild(fReqToDelete);\n\t\t}\n\t}",
"@Override\r\n public void removerFuncionario(long id) throws Exception {\n rnFuncionario.remover(id);\r\n }",
"private DictRemoveFunction() {\n functionDefinition = new FunctionDefinitionBuilder().setName(\"dict.remove\").setReturnType(DataType.DICTIONARY)\n .addParameter(\"__dict\", DataType.DICTIONARY)\n .addListVarargsParameter(\"__keys\").toFunctionDefinition();\n }",
"public void attributeRemoved(HttpSessionBindingEvent sbe) {\r\n }",
"public void attributeRemoved(HttpSessionBindingEvent sbe) {\r\n }",
"public void removeFunction(String fullName) {\n Preconditions.checkState(!registered);\n Function function = getFunctionByFullName(fullName);\n Preconditions.checkArgument(function != null);\n String functionNameInLowerCase = Ascii.toLowerCase(function.getName());\n Preconditions.checkArgument(customFunctions.containsKey(functionNameInLowerCase));\n customFunctions.remove(functionNameInLowerCase);\n if (!function.getOptions().getAliasName().isEmpty()) {\n customFunctions.remove(Ascii.toLowerCase(function.getOptions().getAliasName()));\n }\n removeFunctionFromFullNameMap(function);\n }",
"public void remove ( ) {\n\t\texecute ( handle -> handle.remove ( ) );\n\t}",
"public Future<CtxModelObject> remove(CtxIdentifier identifier);",
"public Node removeFromChain();",
"@Override\n public SerializationContext withoutBindings() {\n SerializationContext serializationContext = new SerializationContext(getFunctions(), null, typeContext(), serializedFunctions());\n return new ExpressionToStringContext(serializationContext, null, path, parent);\n }",
"void removeExecutionListener(ExecutionListener listener);",
"void removeListener(RiakFutureListener<V,T> listener);",
"private void removeEvaluator(Object key)\n {\n this.evaluators.remove(key);\n }",
"public void removeFactListener(GenericFactListener<Fact> listener);",
"@FunctionalInterface\npublic interface HasBeenCancelledFactory extends Function<WebContext, Boolean> {\n}",
"public void clearFns() {\n genClient.clear(CacheKey.fns);\n }",
"void removeNarratorChain(Object oldNarratorChain);",
"private native void removeCallback(String name)\n /*-{\n var target = $wnd;\n var parts = name.split('.');\n \n for(var i = 0; i < parts.length - 1; i++) {\n var part = parts[i];\n if (target[part] === undefined) {\n $wnd.console.log(part,'not defined in',target);\n // No longer attached -> nothing more to do\n return;\n }\n target = target[part];\n }\n\n $wnd.console.log('removing',parts[parts.length - 1],'from',target);\n delete target[parts[parts.length - 1]];\n }-*/;",
"public static Object remove(String key){\n return getThreadContext().remove(key);\n }",
"@Nullable U remove(Iterable<T> codePoints);",
"public /* synthetic */ void remove() {\n this.a.remove();\n }",
"protected void handlerRemoved0(ChannelHandlerContext ctx) throws Exception {}",
"public static void remove() {\n contexts.remove();\n log.finest(\"FHIRRequestContext.remove invoked.\");\n }",
"@Override\n\tpublic void contextDeleted(String context, boolean toolPlacement) {\n\t}",
"public static DictRemoveFunction getDictRemoveFunction() {\n return INSTANCE;\n }",
"public void removeRoute(String attribute, TElement listener, String targetName);",
"T noHook();",
"void deleteFunctionLibrary(String functionLibraryName, String tenantDomain)\n throws FunctionLibraryManagementException;",
"void unregisterAttributeOnChangeHandler(String attribute);",
"public void removed() {\n }",
"@java.lang.Deprecated\n public void removeFromCallbacks(gw.pl.persistence.core.Key elementID);",
"void unsetMethod();",
"public void removeListener(T listener);",
"@Override\n protected void remover(Funcionario funcionario) {\n\n }",
"public void removeAttribute(Execution exec, String name);",
"public void removed(IExtensionPoint[] extensionPoints) {\r\n\r\n\t\t// Do nothing\r\n\t}",
"public void removeChangeListener(ChangeListener stackEngineListener);",
"protected void onBindingUnset(@NonNull AutoRef<Context> context, @NonNull AutoRef<TBinding> oldBinding) {\n }",
"@Override\n public RowExpression rewrite(RowExpression expression, Rule.Context context)\n {\n if (expression instanceof CallExpression && ((CallExpression) expression).getArguments().stream().anyMatch(OriginalExpressionUtils::isExpression)) {\n return removeOriginalExpressionArguments((CallExpression) expression, context.getSession(), context.getSymbolAllocator(), context);\n }\n return removeOriginalExpression(expression, context, new HashMap<>());\n }",
"public void removeEnumerateCallback(OctaveReference listener) {\n\t\tlistenerEnumerate.remove(listener);\n\t}",
"void removeRemoteConnectionContextObject( String key );",
"public synchronized void remove(T e){\n callbackList.remove(e);\n }",
"@Override\r\n\tpublic ExecutedFunctionsProgramPoint addExecutedFuncsProgramPoint(\r\n\t\t\tString name, String lineNo) {\n\t\treturn null;\r\n\t}",
"public static void remove(String id) {\r\n\t\tinvocations.remove(id);\r\n\t}",
"public final ListS3 removeSslContextService() {\n properties.remove(SSL_CONTEXT_SERVICE_PROPERTY);\n return this;\n }",
"@Override\n public void attributeRemoved(ServletContextAttributeEvent event) {\n }",
"void alterFunction(\n ObjectPath functionPath, CatalogFunction newFunction, boolean ignoreIfNotExists)\n throws FunctionNotExistException, CatalogException;",
"public static void unsetExecutionContext() {\r\n\t\tServletLoggingOutput.servlets.set(null);\r\n\t}",
"public <T> boolean removeFunc(T entity) throws DataAccessException {\n\t\tboolean flag = false;\r\n\t\ttry {\r\n\t\t\tmapper.removeFunc((FuncVO) entity);\r\n\t\t\tflag = true;\r\n\t\t} catch (DataAccessException e) {\r\n\t\t\tflag = false;\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t\treturn flag;\r\n\t}",
"@Override\r\n\tpublic void removeLockToken(String lt) {\n\t\t\r\n\t}",
"public void removeListeners() {\n listeners = new ArrayList<MinMaxListener>();\n listeners.add(evalFct);\n }",
"public void mo81218a() {\n HandlerC16593b bVar = this.f57893b;\n if (bVar != null) {\n bVar.removeCallbacksAndMessages(null);\n this.f57893b = null;\n }\n }",
"private void removeJavascript(ServletContext scontext)\r\n {\r\n String webApp = scontext.getContextPath();\r\n javascriptService.remove(scontext);\r\n }",
"public void removeDeepChangeListener(DeepChangeListener aLstnr) { removeListener(DeepChangeListener.class, aLstnr); }",
"public void removeFromRateBookCalcRoutines(entity.RateBookCalcRoutine element);",
"@Override\n\tpublic void attributeRemoved(HttpSessionBindingEvent event) {\n\t\t\n\t}",
"public interface ScriptHandlerBoundaryInterface {\n void remove();\n}",
"void removeInjection() throws Exception;",
"void canceledPendingNodeStop();",
"public void removeObserver(DriverObserver driver);",
"public void\t\tremoveUCallbackListener(String\t\ttag);",
"@Override\r\npublic void attributeRemoved(ServletContextAttributeEvent arg0) {\n\t\r\n}",
"@Override\n\tpublic Object remove(String name) {\n\t\tMap<String, Object> scope = threadLocal.get();\n\t\treturn scope.remove(name);\n\t}",
"public Boolean unregisterTopologyChangeCallback();",
"@Override\n\t/**\n\t * feature is not supported\n\t */\n\tpublic void remove() {\n\t}",
"@Override\r\n\tpublic void deleteFunction(Function function) {\n\t\tgetHibernateTemplate().delete(function);\r\n\t}",
"public void removeScript() {\n scriptHistory = null;\n }",
"public void deregisterScope(OntologyScope scope);",
"void removeListener(BotListener l);",
"public Object remove();",
"Object remove();",
"void removeCalcValueListener(CalcValueListener l);",
"@Override\n\tpublic void attributeRemoved(ServletContextAttributeEvent event) {\n\t\t\n\t}",
"private void removeDestroyTask() {\n // If we registered a JVM shutdown hook, we don't need it anymore now:\n // We've already explicitly closed the context.\n if (this.shutdownTask != null) {\n ShutdownHook.removeTask(this.shutdownTask);\n this.shutdownTask = null;\n }\n }",
"public void callHandlerRemoved0(AbstractChannelHandlerContext abstractChannelHandlerContext) {\n try {\n abstractChannelHandlerContext.handler().handlerRemoved(abstractChannelHandlerContext);\n abstractChannelHandlerContext.setRemoved();\n } catch (Throwable th) {\n StringBuilder sb = new StringBuilder();\n sb.append(abstractChannelHandlerContext.handler().getClass().getName());\n sb.append(\".handlerRemoved() has thrown an exception.\");\n fireExceptionCaught((Throwable) new ChannelPipelineException(sb.toString(), th));\n }\n }",
"ISlot remove(IStrongSlot target);",
"public void removeInterpretedBy( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(this.model, this.getResource(), INTERPRETEDBY, value);\r\n\t}",
"public void entityRemoved() {}"
] | [
"0.64926463",
"0.5609273",
"0.5548885",
"0.5546025",
"0.5408249",
"0.54052556",
"0.53196585",
"0.53050864",
"0.52155316",
"0.51428413",
"0.50841635",
"0.5056882",
"0.50183505",
"0.50055426",
"0.49787933",
"0.4929747",
"0.49094734",
"0.4887329",
"0.48637745",
"0.48340073",
"0.48239535",
"0.48239535",
"0.48008922",
"0.4766073",
"0.47614545",
"0.47596967",
"0.47596967",
"0.47473902",
"0.47432485",
"0.47128516",
"0.47118872",
"0.4693373",
"0.46920648",
"0.46695325",
"0.4657001",
"0.46504873",
"0.46493384",
"0.46419337",
"0.46373174",
"0.46358168",
"0.46281293",
"0.4625835",
"0.46133193",
"0.45937765",
"0.45775422",
"0.4576709",
"0.45741546",
"0.45680386",
"0.45676452",
"0.4559587",
"0.4552733",
"0.4547679",
"0.45472103",
"0.45431998",
"0.45364252",
"0.45321068",
"0.45252356",
"0.45234108",
"0.45221284",
"0.45116985",
"0.44907773",
"0.4489983",
"0.44853815",
"0.4477053",
"0.44691876",
"0.44683146",
"0.44604707",
"0.44578534",
"0.44568256",
"0.44563463",
"0.4452871",
"0.4450183",
"0.44443676",
"0.44400203",
"0.44389385",
"0.4428855",
"0.44168925",
"0.44122708",
"0.4408582",
"0.44076198",
"0.44031623",
"0.43708852",
"0.43668646",
"0.43652412",
"0.4359825",
"0.43582058",
"0.43546098",
"0.43498904",
"0.4348328",
"0.4345854",
"0.43441102",
"0.43383262",
"0.4337879",
"0.43268943",
"0.43245193",
"0.43202525",
"0.43199354",
"0.431816",
"0.43156248",
"0.43063575"
] | 0.7994612 | 0 |
Helper binding method for function: executionContext_setTraceShowsFunctionArgs. | public static final SourceModel.Expr executionContext_setTraceShowsFunctionArgs(SourceModel.Expr executionContext, SourceModel.Expr traceShowsFunctionArgs) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_setTraceShowsFunctionArgs), executionContext, traceShowsFunctionArgs});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static final SourceModel.Expr executionContext_traceShowsFunctionArgs(SourceModel.Expr executionContext) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_traceShowsFunctionArgs), executionContext});\n\t\t}",
"public static final SourceModel.Expr executionContext_setTraceShowsThreadName(SourceModel.Expr executionContext, SourceModel.Expr traceShowsThreadName) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_setTraceShowsThreadName), executionContext, traceShowsThreadName});\n\t\t}",
"@Override\n\tpublic void trace(String message, Supplier<?>... paramSuppliers) {\n\n\t}",
"public void setInterpreterSpecificArgumentsVisible(boolean visible) {\n \t\tfUseDynamicArea = visible;\n \t}",
"@Override\n\tpublic void trace(Marker marker, String message, Supplier<?>... paramSuppliers) {\n\n\t}",
"public void addFilterToMethodArguments(ViewerFilter filter);",
"public static void setCallerShown(boolean callerShown) {\n\t\tlogger.callerShown = callerShown;\n\t}",
"public static final SourceModel.Expr executionContext_traceShowsThreadName(SourceModel.Expr executionContext) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_traceShowsThreadName), executionContext});\n\t\t}",
"@Override\n\tpublic void trace(Supplier<?> msgSupplier) {\n\n\t}",
"public boolean supportsDebugArgument();",
"@Override\n\tpublic void trace(MessageSupplier msgSupplier) {\n\n\t}",
"@External\r\n\t@SharedFunc\r\n\tpublic MetaVar Trace(){throw new RuntimeException(\"Should never be executed directly, there is probably an error in the Aspect-coding.\");}",
"public static final SourceModel.Expr executionContext_setTracingEnabled(SourceModel.Expr executionContext, SourceModel.Expr tracingEnabled) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_setTracingEnabled), executionContext, tracingEnabled});\n\t\t}",
"@Override\n\tpublic void trace(String message, Object... params) {\n\n\t}",
"@Override\n\tpublic void trace(Marker marker, Supplier<?> msgSupplier) {\n\n\t}",
"public CALL(Exp f, ExpList a) {func=f; args=a;}",
"void trace(String a, String b) {\n\t\t}",
"@Override\n\tpublic void trace(Marker marker, MessageSupplier msgSupplier) {\n\n\t}",
"public boolean addFuncDlgAttr(Accessibility pAccess, ExecSignature pES, String pTName, MoreData pMoreData);",
"public abstract int trace();",
"static String frameToString(RecordedFrame frame, boolean lineNumbers) {\n StringBuilder builder = new StringBuilder();\n RecordedMethod method = frame.getMethod();\n RecordedClass clazz = method.getType();\n if (clazz == null) {\n builder.append(\"<<\");\n builder.append(frame.getType());\n builder.append(\">>\");\n } else {\n builder.append(clazz.getName());\n }\n builder.append(\"#\");\n builder.append(method.getName());\n builder.append(\"()\");\n if (lineNumbers) {\n builder.append(\":\");\n if (frame.getLineNumber() == -1) {\n builder.append(\"(\" + frame.getType() + \" code)\");\n } else {\n builder.append(frame.getLineNumber());\n }\n }\n return builder.toString();\n }",
"@Override\n\tpublic void trace(Supplier<?> msgSupplier, Throwable t) {\n\n\t}",
"@Override\n public void setFunctionName(String functionName) {\n\n }",
"public void setVarArgs(boolean on) {\n if (on)\n setAccessFlags(getAccessFlags() | Constants.ACCESS_VARARGS);\n else\n setAccessFlags(getAccessFlags() & ~Constants.ACCESS_VARARGS);\n }",
"public void addBusinessFilterToMethodArguments(ViewerFilter filter);",
"private void constrainTraceMethod(ServletContextHandler ctxHandler) {\n Constraint c = new Constraint();\n c.setAuthenticate(true);\n\n ConstraintMapping cmt = new ConstraintMapping();\n cmt.setConstraint(c);\n cmt.setMethod(\"TRACE\");\n cmt.setPathSpec(\"/*\");\n\n ConstraintSecurityHandler securityHandler = new ConstraintSecurityHandler();\n securityHandler.setConstraintMappings(new ConstraintMapping[] {cmt});\n\n ctxHandler.setSecurityHandler(securityHandler);\n }",
"public abstract JSFunctionDefinition createShowMenuEventFunction();",
"@Override\n\tpublic void trace(Marker marker, Supplier<?> msgSupplier, Throwable t) {\n\n\t}",
"private void printStackTraceInvoke(Method method, Object... args){\n\t\ttry {\n\t\t\tmethod.invoke(null, args);\n\t\t} catch (IllegalArgumentException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalAccessException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (InvocationTargetException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n\tpublic String toString(@javax.annotation.Nullable Event arg0, boolean arg1) {\n\t\treturn \"get visibility\";\n\t}",
"@Override\n\tpublic void trace(Marker marker, String message, Object... params) {\n\n\t}",
"@Override\n\tpublic void createAddArgumentViewForFunctions(List<CQLFunctionArgument> argumentList) {\n\t\tcellTablePanel.clear();\n\t\tcellTablePanel.setStyleName(\"cellTablePanel\");\n\t\tisEditable = MatContext.get().getMeasureLockService().checkForEditPermission();\n\t\t\n\t\tif ((argumentList != null) && (argumentList.size() > 0)) {\n\t\t\tupdateFunctionArgumentNameMap(argumentList);\n\t\t\targumentListTable = new CellTable<CQLFunctionArgument>();\n\t\t\targumentListTable.setStriped(true);\n\t\t\targumentListTable.setCondensed(true);\n\t\t\targumentListTable.setBordered(true);\n\t\t\targumentListTable.setHover(true);\n\t\t\t\n\t\t\targumentListTable.setPageSize(TABLE_ROW_COUNT);\n\t\t\targumentListTable.redraw();\n\t\t\tlistDataProvider = new ListDataProvider<CQLFunctionArgument>();\n\t\t\tlistDataProvider.refresh();\n\t\t\tlistDataProvider.getList().addAll(argumentList);\n\t\t\tListHandler<CQLFunctionArgument> sortHandler = new ListHandler<CQLFunctionArgument>(\n\t\t\t\t\tlistDataProvider.getList());\n\t\t\targumentListTable.addColumnSortHandler(sortHandler);\n\t\t\targumentListTable = addColumnToTable(argumentListTable, sortHandler);\n\t\t\tlistDataProvider.addDataDisplay(argumentListTable);\n\t\t\tCustomPager.Resources pagerResources = GWT.create(CustomPager.Resources.class);\n\t\t\tspager = new MatSimplePager(CustomPager.TextLocation.CENTER, pagerResources, false, 0, true);\n\t\t\tspager.setDisplay(argumentListTable);\n\t\t\tspager.setPageStart(0);\n\t\t\tcellTablePanel.add(argumentListTable);\n\t\t\t// cellTablePanel.add(new SpacerWidget());\n\t\t\tcellTablePanel.add(spager);\n\t\t} else {\n\t\t\tcom.google.gwt.user.client.ui.Label tableHeader = new com.google.gwt.user.client.ui.Label(\n\t\t\t\t\t\"Added Arguments List\");\n\t\t\ttableHeader.getElement().setId(\"tableHeader_Label\");\n\t\t\ttableHeader.setStyleName(\"measureGroupingTableHeader\");\n\t\t\ttableHeader.getElement().setAttribute(\"tabIndex\", \"0\");\n\t\t\tHTML desc = new HTML(\"<p> No Arguments Added.</p>\");\n\t\t\tcellTablePanel.add(tableHeader);\n\t\t\tcellTablePanel.add(new SpacerWidget());\n\t\t\tcellTablePanel.add(desc);\n\t\t}\n\t\t/*\n\t\t * } else { com.google.gwt.user.client.ui.Label tableHeader = new\n\t\t * com.google.gwt.user.client.ui.Label(\"Added Arguments List\");\n\t\t * tableHeader.getElement().setId(\"tableHeader_Label\");\n\t\t * tableHeader.setStyleName(\"measureGroupingTableHeader\");\n\t\t * tableHeader.getElement().setAttribute(\"tabIndex\", \"0\"); HTML desc =\n\t\t * new HTML(\"<p> No Arguments Added.</p>\");\n\t\t * cellTablePanel.add(tableHeader); cellTablePanel.add(new\n\t\t * SpacerWidget()); cellTablePanel.add(desc); }\n\t\t */\n\t\t\n\t}",
"@Override\n\tpublic EntryMessage traceEntry(Supplier<?>... paramSuppliers) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic EntryMessage traceEntry(String format, Supplier<?>... paramSuppliers) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic void trace(Marker marker, MessageSupplier msgSupplier, Throwable t) {\n\n\t}",
"void onArgumentsChanged();",
"public void enterMethod(String methodName, String... methodArgs) {\n checkNotNull(methodName);\n checkNotNull(methodArgs);\n String argString = join(\", \", methodArgs);\n addLine(methodName + \" = function(\" + argString + \") {\");\n currentDepth++;\n }",
"@Override\n\tpublic void setStackTrace(StackTraceElement[] stackTrace) {\n\t\tsuper.setStackTrace(stackTrace);\n\t}",
"@Override\n public void setStackTrace(StackTraceElement[] stackTrace) {\n super.setStackTrace(stackTrace);\n }",
"@Override\n public void prepareArguments(ActionInvocation invocation)\n throws InvalidValueException {\n setInput(invocation,\"boolean\", \"DesiredInvisible\", desiredInvisible == null ? null : desiredInvisible.getValue());\n }",
"public static void showArgs(String[] asArgs)\n {\n out();\n int cArgs = asArgs.length;\n out(cArgs + \" command line arguments:\");\n for (int i = 0; i < cArgs; ++i)\n {\n out(\"[\" + i + \"]=\\\"\" + asArgs[i] + \"\\\"\");\n }\n out();\n }",
"static public void displayExceptionStack( boolean display ) {\n Debug.displayExceptionStack=display;\n }",
"@Override\n protected BDDState handleFunctionCallEdge(\n CFunctionCallEdge cfaEdge,\n List<CExpression> args,\n List<CParameterDeclaration> params,\n String calledFunction)\n throws UnsupportedCodeException {\n BDDState newState = state;\n\n // var_args cannot be handled: func(int x, ...) --> we only handle the first n parameters\n assert args.size() >= params.size();\n\n for (int i = 0; i < params.size(); i++) {\n\n // make variable (predicate) for param, this variable is not global\n final String varName = params.get(i).getQualifiedName();\n final CType targetType = params.get(i).getType();\n final Partition partition = varClass.getPartitionForParameterOfEdge(cfaEdge, i);\n final Region[] var =\n predmgr.createPredicate(\n varName,\n targetType,\n cfaEdge.getSuccessor(),\n bvComputer.getBitsize(partition, targetType),\n precision);\n final Region[] arg =\n bvComputer.evaluateVectorExpression(\n partition, args.get(i), targetType, cfaEdge.getSuccessor(), precision);\n newState = newState.addAssignment(var, arg);\n }\n\n return newState;\n }",
"public void trace(Object message)\n/* */ {\n/* 95 */ debug(message);\n/* */ }",
"@Override\n\tpublic void trace(MessageSupplier msgSupplier, Throwable t) {\n\n\t}",
"public static final SourceModel.Expr executionContext_isTracingEnabled(SourceModel.Expr executionContext) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_isTracingEnabled), executionContext});\n\t\t}",
"@Override\r\n\tpublic ExecutedFunctionsProgramPoint addExecutedFuncsProgramPoint(\r\n\t\t\tString name, String lineNo) {\n\t\treturn null;\r\n\t}",
"public static native void traceRoute(int trace_id, int source_address, int target_address, int pice_mode, AEWin32AccessCallback callback)\n\n throws AEWin32AccessException;",
"public void printToViewConsole(String arg);",
"public boolean isVarArgs() {\n return (getAccessFlags() & Constants.ACCESS_VARARGS) > 0;\n }",
"WasmCallInstruction( FunctionName name, int javaCodePos, int lineNumber, @Nonnull TypeManager types, boolean needThisParameter ) {\n this( name, javaCodePos, lineNumber, types, needThisParameter, null );\n }",
"public void trace(long startNanoTime, long endNanoTime, MethodSignature signature) {\n trace(\"{}\\t{}\\t{} {}.{}{}\", METHOD_PROCESSING_TIME,\n (endNanoTime - startNanoTime) / nanosToMicros, signature.getReturnType().getSimpleName(),\n signature.getMethod().getDeclaringClass().getName(), signature.getMethod().getName(),\n Arrays.stream(signature.getParameterTypes()).map(c -> c.getSimpleName())\n .collect(Collectors.joining(\",\", \"(\", \")\")));\n }",
"TraceInstructionsView instructions();",
"boolean appendFrameInfo(StringBuilder sb, Frame ctx, int frameNumber, boolean showThis, boolean showFileId) throws PlayerDebugException\n\t{\n\t\tboolean validFrame = true;\n\n\t\t// some formatting properties\n\t\tint i = frameNumber;\n\n\t\tLocation loc = ctx.getLocation();\n\t\tSourceFile file = loc.getFile();\n\t\tint line = loc.getLine();\n\t\tString name = (file == null) ? \"<null>\" : file.getName(); //$NON-NLS-1$\n\t\tString sig = ctx.getCallSignature();\n\t\tString func = extractFunctionName(sig);\n\n\t\t// file == null or line < 0 appears to be a terminator for stack info\n\t\tif (file == null && line < 0)\n {\n validFrame = false;\n }\n else\n\t\t{\n\t\t\tVariable[] var = ctx.getArguments(m_session);\n\t\t\tVariable dis = ctx.getThis(m_session);\n\t\t\tboolean displayArgs = (func != null) || (var != null);\n\n\t\t\tsb.append('#');\n\t\t\tFieldFormat.formatLong(sb, i, 3);\n\t\t\tsb.append(' ');\n\n\t\t\tif (showThis && dis != null)\n\t\t\t{\n\t\t\t\tExpressionCache.appendVariable(sb, dis);\n\t\t\t\tsb.append(\".\"); //$NON-NLS-1$\n\t\t\t}\n\n\t\t\tif (func != null)\n\t\t\t\tsb.append(func);\n\n\t\t\tif (displayArgs)\n\t\t\t{\n\t\t\t\tsb.append('(');\n\t\t\t\tfor (int j=0; j<var.length; j++)\n\t\t\t\t{\n\t\t\t\t\tVariable v = var[j];\n\t\t\t\t\tsb.append(v.getName());\n\t\t\t\t\tsb.append('=');\n\t\t\t\t\tExpressionCache.appendVariableValue(sb, v.getValue());\n\t\t\t\t\tif ((j+1)<var.length)\n\t\t\t\t\t\tsb.append(\", \"); //$NON-NLS-1$\n\t\t\t\t}\n\t\t\t\tsb.append(\")\"); //$NON-NLS-1$\n\t\t\t\tsb.append(getLocalizationManager().getLocalizedTextString(\"atFilename\")); //$NON-NLS-1$\n\t\t\t}\n\n\t\t\tsb.append(name);\n\n\t\t\t// if this file is currently being filtered put the source file id after it\n\t\t\tif (file != null && (showFileId || !m_fileInfo.inFileList(file)))\n\t\t\t{\n\t\t\t\tsb.append('#');\n\t\t\t\tsb.append( file.getId() );\n\n\t\t\t}\n\t\t\tsb.append(':');\n\t\t\tsb.append(line);\n\t\t}\n return validFrame;\n\t}",
"void info( boolean enabled, Object... args ) ;",
"public void trace(String loggerFqcn, Object message, Throwable t)\n/* */ {\n/* 153 */ this.logger.trace(loggerFqcn, message, t);\n/* */ }",
"@Override\n public Node rewriteFunctionExpression(FunctionExpression functionExpression) {\n RewriteItem varargRewriteItem = getVarargRewriteItem(functionExpression);\n if (varargRewriteItem != null) {\n functionExpression =\n FunctionExpression.Builder.from(functionExpression)\n .setStatements(\n redeclareItems(\n functionExpression.getBody(), ImmutableList.of(varargRewriteItem))\n .getStatements())\n .build();\n }\n\n // Redeclare non-final parameters.\n return FunctionExpression.Builder.from(functionExpression)\n .setStatements(\n redeclareItems(\n functionExpression.getBody(),\n getNonFinalRewriteItems(functionExpression))\n .getStatements())\n .build();\n }",
"void plotLine(int argbA, boolean tScreenedA, int argbB, boolean tScreenedB,\n int xA, int yA, int zA, int xB, int yB, int zB,\n boolean clipped) {\n x1t = xA;\n x2t = xB;\n y1t = yA;\n y2t = yB;\n z1t = zA;\n z2t = zB;\n //if (xA != 250 && xB != 250)return;\n //System.out.println(\"\\t\\t\\t\" + xA + \",\" + yA + \" \" + xB + \",\" + yB);\n\n if (clipped)\n switch (getTrimmedLine()) {\n case VISIBILITY_UNCLIPPED:\n clipped = false;\n break;\n case VISIBILITY_OFFSCREEN:\n return;\n }\n plotLineClipped(argbA, tScreenedA, argbB, tScreenedB, xA, yA, zA, xB - xA,\n yB - yA, zB - zA, clipped, 0, 0);\n }",
"@Override\n public String visit(PassArgStmt n) {\n // 直接将参数保存到下一个栈帧\n // PASSARG 起始1\n int offset = Integer.parseInt(n.f1.f0.tokenImage);\n String r1 = this.reg[n.f2.f0.which];\n Global.outputString += \"sw $\" + r1 + \", -\" + ((offset + 2) * 4)\n + \"($sp)\\n\";\n return null;\n }",
"private void editArguments() {\n\t\tDialog d = new EditArgumentsDialog(creator.modpack.minecraft.arguments, frame, true);\n\t\td.setVisible(true);\n\t}",
"protected void trace(String headline, String qName) {\r\n\t\ttee.writelnMessage(headline + Strings.padRight(qName, 25) + \" - context : \" + Strings.padRight(context.name(), 11) + \" - stack : \" + dump(contexts));\r\n\t}",
"public static void logBooleanFunction(String name, String funcName, Object value, boolean isSuccess) {\r\n\t\tString str = \"[b]\" + name + \": \\t\" + funcName + \"(\" + value + \") => \" + isSuccess;\r\n\t\tif (isSuccess) {\r\n\t\t\tSystem.out.println(str);\r\n\t\t} else {\r\n\t\t\tSystem.err.println(str);\r\n\t\t}\r\n\t}",
"public static void debug(String string, Object... val) {\n\n }",
"public void trace(String message);",
"public void trace(String message);",
"public void setLocals(LocalDebugInfo[] locals);",
"@Override\n\tpublic void debug(String message, Supplier<?>... paramSuppliers) {\n\n\t}",
"@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }",
"@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }",
"@Override\n\tpublic void showLaneInfo(AMapLaneInfo[] arg0, byte[] arg1, byte[] arg2) {\n\n\t}",
"@Override\n public void generateArg(PhpWriter out, boolean isTop)\n throws IOException\n {\n ExprGenerator objGen = ((ExprPro) _objExpr).getGenerator();\n\n objGen.generateArg(out, false);\n out.print(\".getFieldArg(env, \");\n out.printIntern(_name);\n out.print(\", \" + isTop + \")\");\n }",
"public void setExposeAccessContext(boolean exposeAccessContext)\r\n/* 34: */ {\r\n/* 35: 95 */ this.exposeAccessContext = exposeAccessContext;\r\n/* 36: */ }",
"public static void setTrace(boolean traceOn) {\r\n\t\ttrace = traceOn;\r\n\t}",
"public String toString ()\n {\n return \"function:\" + _vname;\n }",
"@Override\n\t\t\t\tpublic void showLaneInfo(AMapLaneInfo[] arg0, byte[] arg1,\n\t\t\t\t\t\tbyte[] arg2) {\n\t\t\t\t\t\n\t\t\t\t}",
"void showNoneParametersView();",
"@Override\n\tpublic void trace(CharSequence message) {\n\n\t}",
"@Override\n\tpublic void trace(String message, Object p0, Object p1, Object p2) {\n\n\t}",
"public String getCppMangledArgumentList() {\n\t\tif (this.sig.size() == 0)\n\t\t\treturn \"\";\n\t\n\t\tString ret = \"_\";\n\t\tfor (TypeContainer c : this.sig)\n\t\t\tret += c.type.getName() + \"_\";\n\t\t\n\t\treturn ret.substring(0, ret.length() - 1).replace(\".\", \"_\");\n\t}",
"@Override\n\tpublic void debug(Marker marker, String message, Supplier<?>... paramSuppliers) {\n\n\t}",
"public void setArgs(java.lang.String value) {\n this.args = value;\n }",
"public void renderV8Style(StringBuilder sb) {\n sb.append(\" at \");\n\n if ((functionName == null) || \"anonymous\".equals(functionName) || \"undefined\".equals(functionName)) {\n // Anonymous functions in V8 don't have names in the stack trace\n appendV8Location(sb);\n\n } else {\n sb.append(functionName).append(\" (\");\n appendV8Location(sb);\n sb.append(')');\n }\n }",
"@Override\n\tpublic void trace(String message, Object p0, Object p1) {\n\n\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\n\tpublic void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7) {\n\n\t}",
"@Override\n public void analyze(Analyzer analyzer) throws VerifierException {\n VarTypes[] paramTypes = this.paramList.getParamsTypes(analyzer);\n if (!analyzer.has(this.callee, paramTypes)) {\n StringJoiner joiner = new StringJoiner(\", \");\n for (VarTypes type : paramTypes) {\n joiner.add(type.getName());\n }\n String signature = String.format(\"%s(%s)\", this.callee, joiner.toString());\n throw new InvalidMethodException(signature);\n }\n }",
"@Override\n public void setTooltip(String arg0)\n {\n \n }",
"@Override\n\tpublic void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7, Object p8, Object p9) {\n\n\t}",
"@Override\r\n\tpublic String getPrintArgs() {\n\t\treturn null;\r\n\t}",
"public static final SourceModel.Expr executionContext_addTracedFunction(SourceModel.Expr executionContext, SourceModel.Expr tracedFunction) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_addTracedFunction), executionContext, tracedFunction});\n\t\t}",
"private static String[] processArgs(String[] args) {\r\n if (args.length == 0) {\r\n args = new String[1];\r\n args[0] = config.getProperty(ConfigParam.inputTrace.name());\r\n System.out.println(\"Args:\"+args[0]);\r\n } else if (args.length > 1) {\r\n System.out.println(\"Usage: [Trace_File]\");\r\n System.out.println(\"Example: ./traces/fdct_trace_without_optimization.txt\");\r\n System.out.println(\"If no arguments are given, the trace file defined in \" +\r\n configFile + \" is used.\");\r\n System.exit(1);\r\n }\r\n\r\n return args;\r\n }",
"private void addEmitEventCall(ExecutableElement originalMethod,\n MethodSpec.Builder proxyMethodBuilder, String methodCallParameters) {\n String methodName = \"$emit\";\n if (methodCallParameters != null && !\"\".equals(methodCallParameters)) {\n proxyMethodBuilder.addStatement(\"vue().$L($S, $T.asAny($L))\",\n methodName,\n methodToEventName(originalMethod),\n Js.class,\n methodCallParameters);\n } else {\n proxyMethodBuilder.addStatement(\"vue().$L($S)\",\n methodName,\n methodToEventName(originalMethod));\n }\n }",
"abstract /*package*/ Object executeRVMFunction(Function func, IValue[] posArgs, Map<String,IValue> kwArgs);",
"@Override\n\tprotected List<Object> buildInvokeParameters(Object stateful, String event, List<Object> parmList) { Add the Entity and Event to the parm list to pass to the Controller\n\t\t// TODO : Inspect method signature - make entity and event optional\n\t\t//\n\t\tArrayList<Object> invokeParmList = new ArrayList<Object>(parmList.size() + 1);\n\t\tinvokeParmList.add(event);\n\t\tinvokeParmList.addAll(parmList);\n\t\t\n\t\treturn invokeParmList;\n\t}",
"public void addArgumentTypeSerialization(String functionName, String argumentName, TensorType type) {\n wrappedSerializationContext.addArgumentTypeSerialization(functionName, argumentName, type);\n }",
"@Override\n\tpublic void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7, Object p8) {\n\n\t}",
"protected abstract void showHint();",
"private static void printFunctionCalls() {\n dvm.printFunctionCalls();\n }",
"public void setTraceInformation(String trace) {\n\t\ttraceInformation = trace;\n\t}",
"@Override\n\tpublic void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6) {\n\n\t}"
] | [
"0.7885293",
"0.5365259",
"0.52531993",
"0.51266474",
"0.5055804",
"0.48241544",
"0.48000586",
"0.47960654",
"0.47666302",
"0.47236007",
"0.4717944",
"0.4696216",
"0.46817666",
"0.4653976",
"0.45468023",
"0.45207992",
"0.45007795",
"0.44506362",
"0.43894494",
"0.43663427",
"0.43629155",
"0.43179354",
"0.43037882",
"0.43022636",
"0.42589417",
"0.42426106",
"0.42392555",
"0.42276472",
"0.42181674",
"0.4208674",
"0.41982007",
"0.41659164",
"0.41424698",
"0.4135899",
"0.4118458",
"0.4115907",
"0.41032508",
"0.41015962",
"0.40917766",
"0.4063334",
"0.40581378",
"0.4057781",
"0.40572077",
"0.40499756",
"0.40491182",
"0.4034402",
"0.40330458",
"0.40261087",
"0.40260756",
"0.40204158",
"0.40143225",
"0.40120488",
"0.39930037",
"0.3991898",
"0.39860174",
"0.39814958",
"0.39607117",
"0.3960608",
"0.39571965",
"0.39549434",
"0.39546064",
"0.39459246",
"0.39457893",
"0.39440253",
"0.39440253",
"0.39429003",
"0.39379817",
"0.39357677",
"0.39357677",
"0.39349696",
"0.3928049",
"0.39163497",
"0.39148864",
"0.39043975",
"0.3901367",
"0.38996",
"0.38922286",
"0.3869779",
"0.38667905",
"0.38574663",
"0.38479778",
"0.38470915",
"0.38414353",
"0.38405174",
"0.38395405",
"0.38309243",
"0.382827",
"0.38249224",
"0.38147736",
"0.38135877",
"0.38127086",
"0.38121468",
"0.38119456",
"0.38107485",
"0.38036066",
"0.38029152",
"0.3795305",
"0.37906638",
"0.37898827",
"0.37891126"
] | 0.78324395 | 1 |
Helper binding method for function: executionContext_setTraceShowsThreadName. | public static final SourceModel.Expr executionContext_setTraceShowsThreadName(SourceModel.Expr executionContext, SourceModel.Expr traceShowsThreadName) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_setTraceShowsThreadName), executionContext, traceShowsThreadName});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static final SourceModel.Expr executionContext_traceShowsThreadName(SourceModel.Expr executionContext) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_traceShowsThreadName), executionContext});\n\t\t}",
"public void setThreadName(String name) {\n threadName = name;\n }",
"public void printThreadStack(String threadName) {\n\t\tthis.toSlave.println(MasterProcessInterface.THREAD_STACK_COMMAND + ((threadName == null) ? \"\" : (\":\" + threadName)));\n\t}",
"public String getThreadName() {\n return null;\n }",
"public String getThreadName() {\n return threadName;\n }",
"public String toString()\n\t{\n\t\treturn threadName;\n\t}",
"protected void trace(String headline, String qName) {\r\n\t\ttee.writelnMessage(headline + Strings.padRight(qName, 25) + \" - context : \" + Strings.padRight(context.name(), 11) + \" - stack : \" + dump(contexts));\r\n\t}",
"private static String m62902a(Thread thread) {\n StringBuffer stringBuffer = new StringBuffer();\n stringBuffer.append(\"Thread: \");\n stringBuffer.append(thread.getName());\n return stringBuffer.toString();\n }",
"String getThreadId();",
"public String getTraceId() {\n return traceId;\n }",
"public void setTraceInformation(String trace) {\n\t\ttraceInformation = trace;\n\t}",
"public static final SourceModel.Expr executionContext_setTraceShowsFunctionArgs(SourceModel.Expr executionContext, SourceModel.Expr traceShowsFunctionArgs) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_setTraceShowsFunctionArgs), executionContext, traceShowsFunctionArgs});\n\t\t}",
"private void writeThreadToStringBuilder(ThreadInfo thread, StringBuilder string) {\n string.append(\"------------------------------\\n\");\n //\n string.append(\"Current Thread: \" + thread.getThreadName() + \"\\n\");\n string.append(\"\\tPID: \" + thread.getThreadId() + \" | Suspended: \" + thread.isSuspended() + \" | Native: \" +\n thread.isInNative() + \" | State: \" + thread.getThreadState() + \"\\n\");\n if (thread.getLockedMonitors().length != 0) {\n string.append(\"\\tThread is waiting on monitor(s):\\n\");\n for (MonitorInfo monitor : thread.getLockedMonitors()) {\n string.append(\"\\t\\tLocked on:\" + monitor.getLockedStackFrame() + \"\\n\");\n }\n }\n string.append(\"\\tStack:\\n\");\n //\n for (StackTraceElement stack : thread.getStackTrace()) {\n string.append(\"\\t\\t\" + stack + \"\\n\");\n }\n }",
"public void trace(String loggerFqcn, Object message, Throwable t)\n/* */ {\n/* 153 */ this.logger.trace(loggerFqcn, message, t);\n/* */ }",
"void trace(String a, String b) {\n\t\t}",
"@Override\n public void run(){\n System.out.println(\"Running thread name: \"+Thread.currentThread().getName());\n }",
"@Override\n public void run() {\n threadLocalTest.setName(Thread.currentThread().getName());\n System.out.println(Thread.currentThread().getName() + \":\" + threadLocalTest.getName());\n }",
"int hint_for(ThreadContext tc, RakudoObject classHandle, String name);",
"public static final SourceModel.Expr executionContext_traceShowsFunctionArgs(SourceModel.Expr executionContext) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_traceShowsFunctionArgs), executionContext});\n\t\t}",
"public void run(){\n System.out.println(\"Thread class extends \" + getName());\n }",
"public String getThread()\n\t{\n\t\treturn this.thread;\n\t}",
"private Constants$TraceNames() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.mName = var3_1;\n }",
"@Override\n\tpublic void trace(MessageSupplier msgSupplier) {\n\n\t}",
"public void run(){\n String threadName = Thread.currentThread().getName();\n System.out.println(\"Hello \" + threadName);\n }",
"public static void trace(Object arg0) {\n\n MDC.put(classNameProp, \"\");\n debugLogger.trace(\"{}\", arg0);\n }",
"@Override\n public String getTrace() {\n return trace;\n }",
"public String getThreadNameFor(DataFlowID inFlowID) {\r\n synchronized (this) {\r\n return mThreadNames.get(inFlowID);\r\n }\r\n }",
"public void setThreadId(Integer threadId) {\n\t\tthis.threadId = threadId;\n\t}",
"public void setTraceFile(String fileName)\r\n {\r\n this.filename = fileName;\r\n }",
"@Override\n public String toString()\n {\n return String.format(\"request in Thread %d(%s): \", reqID, masterThread); \n }",
"void threadAdded(String threadId);",
"public static void trace(String className, String arg0) {\n MDC.put(classNameProp, className);\n debugLogger.trace(MessageCodes.GENERAL_INFO, arg0);\n }",
"@Override\n\tpublic void trace(Supplier<?> msgSupplier, Throwable t) {\n\n\t}",
"@Override\n\tpublic void trace(Supplier<?> msgSupplier) {\n\n\t}",
"void set_str(ThreadContext tc, RakudoObject classHandle, String Value);",
"public void setThreadId(Long threadId) {\n this.threadId = threadId;\n }",
"public void trace(String message);",
"public void trace(String message);",
"@Override\n\tpublic void trace(String message, Throwable t) {\n\n\t}",
"@Override\n\tpublic void trace(Marker marker, Supplier<?> msgSupplier, Throwable t) {\n\n\t}",
"private void sessionStartTrace() {\n \n try {\n if (ConnectWindow.isSysdba()) {\n // prompt for the sid to trace\n String msg =\n \"A 10046 trace will enabled on the specified session (not including wait events).\\n\\n\" +\n \"The chosen sid must be from THIS instance.\\n\\nEnter the SID:\";\n String tmp = JOptionPane.showInputDialog(this, msg, \"Session Trace\", JOptionPane.QUESTION_MESSAGE);\n int sid = Integer.valueOf(tmp).intValue();\n\n int instanceNumber = getThisInstanceNumber();\n\n // check the sid exists\n int serial = SessionPanel.getSid(instanceNumber, sid);\n try {\n if (serial != 0) {\n // start trace\n msg = \"Starting a 10046 trace on Sid \" + sid + \", serial# \" + serial;\n JOptionPane.showMessageDialog(this, msg, \"Session Trace\", JOptionPane.INFORMATION_MESSAGE);\n\n try {\n ConnectWindow.getDatabase().startSessionTrace(sid, serial, dbVersion);\n } catch (Exception e) {\n displayError(e, this);\n }\n } else {\n throw new NoSuchSessionExistsException(\"Sid: \" + sid);\n }\n } catch (Exception e) {\n displayError(e, this);\n }\n } else {\n throw new InsufficientPrivilegesException(\"SYSDBA privilege required\");\n }\n } catch (Exception ee) {\n ConsoleWindow.displayError(ee, this);\n }\n }",
"@Override\n\tpublic void trace(Marker marker, MessageSupplier msgSupplier, Throwable t) {\n\n\t}",
"@Override\n\tpublic void trace(MessageSupplier msgSupplier, Throwable t) {\n\n\t}",
"public static void setTLSContextName(String name) {\n TLSContextName = name;\n }",
"@Override\n\tpublic void trace(Marker marker, Supplier<?> msgSupplier) {\n\n\t}",
"public void wakeThread(String threadName) {\n\t\tthis.toSlave.println(MasterProcessInterface.WAKE_THREAD_COMMAND + ((threadName == null) ? \"\" : (\":\" + threadName)));\n\t}",
"static void threadMessage(String message) {\r\n\t\tString threadName = Thread.currentThread().getName();\r\n\t\tSystem.out.format(\"%s: %s%n\", threadName, message);\r\n\t}",
"@Override\n\tpublic void trace(CharSequence message, Throwable t) {\n\n\t}",
"@Override\n\tpublic void trace(String message, Supplier<?>... paramSuppliers) {\n\n\t}",
"@Override\n\tpublic void trace(Marker marker, MessageSupplier msgSupplier) {\n\n\t}",
"public void setTraceId(String traceId) {\n\n this.traceId = traceId;\n\n }",
"private static boolean ignore(Thread thread) {\n String threadName = thread.getName();\n if (IGNORED_THREADS_REGEX.matcher(threadName).matches())\n return true;\n\n if (thread.getName().startsWith(\"Thread-\")) {\n // Special check for ByteMan, because nobody calls TransformListener.terminate()\n if (thread.getClass().getName().equals(\"org.jboss.byteman.agent.TransformListener\"))\n return true;\n\n // Special check for Arquillian, because it uses an unnamed thread to read from the container console\n StackTraceElement[] s = thread.getStackTrace();\n for (StackTraceElement ste : s) {\n if (ste.getClassName().equals(ARQUILLIAN_CONSOLE_CONSUMER)) {\n return true;\n }\n }\n }\n return false;\n }",
"public String getTrace() {\n return trace;\n }",
"public void setQtlName(String value) {\n setAttributeInternal(QTLNAME, value);\n }",
"String get_str(ThreadContext tc, RakudoObject classHandle);",
"public void setPerformanceName(String ticketPerformance)\r\n {\r\n performanceName = ticketPerformance;\r\n }",
"public String call() {\n return Thread.currentThread().getName() + \" executing ...\";\n }",
"private String getFunctionName() {\n StackTraceElement[] sts = Thread.currentThread().getStackTrace();\n if (sts == null) {\n return null;\n }\n for (StackTraceElement st : sts) {\n if (st.isNativeMethod()) {\n continue;\n }\n if (st.getClassName().equals(Thread.class.getName())) {\n continue;\n }\n if (st.getClassName().equals(LogUtils.this.getClass().getName())) {\n continue;\n }\n return \"[ \" + Thread.currentThread().getName() + \": \"\n + st.getFileName() + \":\" + st.getLineNumber() + \" \"\n + st.getMethodName() + \" ]\";\n }\n return null;\n }",
"private void printThreadingNotes(String currentMethodLabel) {\n System.out.println(\"\\n###########################################\");\n System.out.println(\"current method = \" + currentMethodLabel);\n System.out.println(\"In application thread? = \" + Platform.isFxApplicationThread());\n System.out.println(\"Current system time = \" + java.time.LocalDateTime.now().toString().replace('T', ' '));\n }",
"public final /* bridge */ /* synthetic */ String mo50910a(Object obj) {\n return m62902a((Thread) obj);\n }",
"public static void m751a() {\n for (Entry entry : Thread.getAllStackTraces().entrySet()) {\n C0562j.m756b(\"Thread: \" + ((Thread) entry.getKey()).toString());\n for (StackTraceElement stackTraceElement : (StackTraceElement[]) entry.getValue()) {\n C0562j.m756b(stackTraceElement.toString());\n }\n C0562j.m756b(\"----\");\n }\n }",
"public void setObjectName(java.lang.String param){\n localObjectNameTracker = true;\n \n this.localObjectName=param;\n \n\n }",
"@Override\n\t\tpublic void setTaskName(String arg0) {\n\n\t\t}",
"@SuppressWarnings(\"unused\")\n protected void trace(String msg) {\n if (this.getContainer() != null && this.getContainer().getLogger().isTraceEnabled()) {\n this.getContainer().getLogger().trace(msg);\n }\n }",
"@Override\n\tpublic void trace(String message, Object... params) {\n\n\t}",
"private static void demoRunnable() {\n new Thread(() -> System.out.println(Thread.currentThread().getName()), \"thread-λ\").start();\n new Thread(ToLambdaP5::printThread, \"thread-method-ref\").start();\n }",
"public String getTraceContextString() {\n Map<String, String> traceInfo = getTraceContext();\n if (traceInfo == null) {\n DDLogger.getLoggerImpl().debug(\"No Trace/Log correlation IDs returned\");\n return \"\";\n }\n\n String traceID = traceInfo.get(this.tracing.TRACE_ID_KEY);\n String spanID = traceInfo.get(this.tracing.SPAN_ID_KEY);\n return formatTraceContext(this.tracing.TRACE_ID_KEY, traceID, this.tracing.SPAN_ID_KEY, spanID);\n }",
"public static void main(String[] args) {\n Thread thread = new Thread(\"New Thread\") {\n public void run(){\n System.out.println(\"run by: \" + getName());\n }\n };\n\n thread.start();\n System.out.println(thread.getName());\n\n }",
"@NotNull\n private static String getMainThreadForProcess(@NotNull ProcessModel process) {\n String name = process.getName();\n if (name.startsWith(\"<\")) {\n for (ThreadModel threads : process.getThreads()) {\n if (threads.getId() == process.getId()) {\n return threads.getName();\n }\n }\n }\n return name;\n }",
"@Override\n public String getName() {\n return getSoftwareSystem().getName() + \" - System Context\";\n }",
"NewThread (String threadname) {\r\n name = threadname;\r\n t = new Thread(this, name); // Constructor de un nuevo thread\r\n System.out.println(\"Nuevo hilo: \" +t);\r\n t.start(); // Aquí comienza el hilo\r\n }",
"public String getThreadKey() {\n\t\treturn Integer.toString(this.hashCode());\n\t}",
"private void YeWuMethod(String name) {\n\n for (int j = 0; j < 10; j++) {\n\n\n// Runnable task = new RunnableTask();\n// Runnable ttlRunnable = TtlRunnable.get(task);\n\n// executor.execute(ttlRunnable);\n\n executor.execute(() -> {\n System.out.println(\"==========\"+name+\"===\"+threadLocal.get());\n });\n }\n\n// for (int i = 0; i < 10; i++) {\n// new Thread(() -> {\n// System.out.println(name+\"===\"+threadLocal.get());\n// }, \"input thread name\").start();\n// }\n\n\n\n\n }",
"public abstract AbstractSctlThreadEntry addThread();",
"@Override\n public void run(){\n System.out.println(\"we are in thread : \" + this.getName());\n }",
"public void trace(Object message)\n/* */ {\n/* 95 */ debug(message);\n/* */ }",
"@Override\n\tpublic void trace(Marker marker, String message, Supplier<?>... paramSuppliers) {\n\n\t}",
"public int getTraceID(){\r\n\t\treturn this.traceID;\r\n\t}",
"@Override\n\tpublic void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7, Object p8, Object p9) {\n\n\t}",
"public static final SourceModel.Expr executionContext_setTracingEnabled(SourceModel.Expr executionContext, SourceModel.Expr tracingEnabled) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_setTracingEnabled), executionContext, tracingEnabled});\n\t\t}",
"public void trace(Object message, Throwable t)\n/* */ {\n/* 107 */ debug(message, t);\n/* */ }",
"@Override\n\tpublic void trace(CharSequence message) {\n\n\t}",
"@Override\n\tpublic void getName() {\n\t\tSystem.out.println(\"TESLA\");\n\t}",
"@Test\n @DisplayName(\"Plain Runnable\")\n void testRunnable() {\n Runnable task = this::printThreadName;\n\n task.run();\n\n Thread thread = new Thread(task);\n thread.start();\n\n System.out.println(\"Done!\");\n }",
"@Override\n\tpublic void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6) {\n\n\t}",
"private static void printTrace(Integer runId, String traceString ) throws java.io.FileNotFoundException,UnsupportedEncodingException{\n\n\t\t// writing the trace report\n\t\t// <inputFilename>_<method>_<cutoff>_<runID>*.sol\n\t\tString fileName = String.format(\"%s_%s_%.0f\",Project.name,Project.method,Project.cutoffTimeSeconds);\n\n\t\tif ( runId != -1 ){\n\t\t\tfileName = fileName +\"_\"+runId+\".trace\";\n\t\t} else {\n\t\t\tfileName = fileName +\".trace\";\n\t\t}\n\n\t\tPrintWriter repWriter = new PrintWriter(fileName, \"UTF-8\");\n\n\t\trepWriter.printf(\"%s\\n\",traceString);\n\n\t repWriter.close();\n\n\t}",
"public void setTcintmsourcename(java.lang.String _tcintmsourcename)\r\n {\r\n this._tcintmsourcename = _tcintmsourcename;\r\n }",
"public final void setName(java.lang.String name)\n\t{\n\t\tsetName(getContext(), name);\n\t}",
"private VirtualThread createThread(String threadName) {\n\t\tJavaObjectReference threadObj = new JavaObjectReference(new LazyClassfile(\"java/lang/Thread\"));\n\t\t\n\t\t// TODO: We should invoke constructors here...\n\t\tthreadObj.setValueOfField(\"priority\", new JavaInteger(1));\n\t\tthreadObj.setValueOfField(\"name\", JavaArray.str2char(vm,threadName));\n\t\tthreadObj.setValueOfField(\"group\", new JavaObjectReference(bcl.load(\"java/lang/ThreadGroup\")));\n\t\t\n\t\tmainThread = new VirtualThread(vm, rda, threadName, threadObj);\n\t\tthreadAreas.add(mainThread);\n\t\treturn mainThread;\n\t}",
"public final void setName(java.lang.String name)\r\n\t{\r\n\t\tsetName(getContext(), name);\r\n\t}",
"@External\r\n\t@SharedFunc\r\n\tpublic MetaVar Trace(){throw new RuntimeException(\"Should never be executed directly, there is probably an error in the Aspect-coding.\");}",
"public abstract void setThreadNumber(int threadIdx);",
"public interface TraceInfo {\n TraceMode traceMode();\n\n String userName();\n\n String dbInstance();\n\n default <R> R trace(String operationName, String sql, TraceableSQL<R> code) throws SQLException {\n if (traceMode() == TraceMode.OFF) {\n return code.execute();\n }\n Tracer tracer = GlobalTracer.get();\n // skip if there is no active parent\n if (traceMode() == TraceMode.ACTIVE && tracer.activeSpan() == null) {\n return code.execute();\n }\n\n Tracer.SpanBuilder builder = tracer.buildSpan(operationName)\n .withTag(Tags.DB_TYPE.getKey(), \"sql\")\n .withTag(Tags.DB_USER.getKey(), userName());\n\n if (sql != null) {\n builder.withTag(Tags.DB_STATEMENT.getKey(), sql);\n }\n if (dbInstance() != null ) {\n builder.withTag(Tags.DB_INSTANCE.getKey(), dbInstance());\n }\n\n try (Scope scope = builder.startActive(true)) {\n return code.execute();\n }\n }\n\n}",
"@Override\n\tpublic void trace(String message, Object p0, Object p1) {\n\n\t}",
"Object getTrace();",
"@Override\n\tpublic void trace(Message msg) {\n\n\t}",
"@Override\n\tpublic void trace(String message, Object p0, Object p1, Object p2, Object p3, Object p4,\n\t\t\tObject p5, Object p6, Object p7) {\n\n\t}",
"public static void m5838k(String str) {\n Answers.getInstance().logCustom((CustomEvent) new CustomEvent(\"Tab_Selection\").putCustomAttribute(\"Tab Name\", str));\n }",
"public void startTrace() throws MqttException {\r\n \tSystem.out.println(\"starttrace....\");\r\n }",
"public void setThreadId(long id) {\n threadId = id;\n }"
] | [
"0.80727684",
"0.61878103",
"0.5897184",
"0.5887313",
"0.5814786",
"0.5659874",
"0.5592923",
"0.55454445",
"0.52298087",
"0.51553714",
"0.5142629",
"0.5078319",
"0.5064243",
"0.5046334",
"0.503718",
"0.50124466",
"0.5004418",
"0.49950638",
"0.49707085",
"0.49133858",
"0.49047634",
"0.49036524",
"0.4892284",
"0.48842418",
"0.48662028",
"0.48646304",
"0.48561165",
"0.48447177",
"0.48443598",
"0.48328313",
"0.482193",
"0.47998253",
"0.47874278",
"0.47738436",
"0.47730976",
"0.4767583",
"0.47583613",
"0.47583613",
"0.47458586",
"0.47185567",
"0.4715134",
"0.47103682",
"0.4688643",
"0.4677217",
"0.4676163",
"0.46755555",
"0.46730584",
"0.466819",
"0.46672302",
"0.46484563",
"0.4646144",
"0.4645453",
"0.46340686",
"0.46189433",
"0.4618521",
"0.4616377",
"0.4604413",
"0.4590963",
"0.45836064",
"0.45789367",
"0.45598692",
"0.45527646",
"0.45504227",
"0.45481336",
"0.45471823",
"0.45453075",
"0.45304626",
"0.45145673",
"0.4514416",
"0.4514023",
"0.45077798",
"0.45059556",
"0.44999018",
"0.44945064",
"0.44929996",
"0.4486916",
"0.4485601",
"0.44796968",
"0.44726673",
"0.4464088",
"0.4463599",
"0.4449164",
"0.44424397",
"0.44362915",
"0.44316477",
"0.4426593",
"0.4424724",
"0.44246778",
"0.4422813",
"0.44217113",
"0.44191533",
"0.44184145",
"0.44155887",
"0.44147846",
"0.4411873",
"0.44066998",
"0.44043508",
"0.4403575",
"0.43978122",
"0.43974102"
] | 0.7665482 | 1 |
Helper binding method for function: executionContext_setTracingEnabled. | public static final SourceModel.Expr executionContext_setTracingEnabled(SourceModel.Expr executionContext, SourceModel.Expr tracingEnabled) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_setTracingEnabled), executionContext, tracingEnabled});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static final SourceModel.Expr executionContext_isTracingEnabled(SourceModel.Expr executionContext) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_isTracingEnabled), executionContext});\n\t\t}",
"public boolean isTracing();",
"public static boolean isTracing() {\n return Trace.isTracing();\n }",
"public boolean isTraceEnabled();",
"public static void setTrace(boolean traceOn) {\r\n\t\ttrace = traceOn;\r\n\t}",
"public void setTracing(int traceFlag) {\n if (traceFlag == 0)\n Trace.setMask(Trace.MASK_NONE);\n else\n Trace.setMask(Trace.MASK_ALL);\n }",
"public void setContextEnabled(Boolean contextEnabled) {\n this.contextEnabled = contextEnabled;\n }",
"public void setTraceEnabled(final boolean enabled) {\n traceEnabled = enabled;\n }",
"public abstract void setEnabled(Context context, boolean enabled);",
"public static void traceOn() {\r\n\t\ttraceOn = true;\r\n\t}",
"public void enableCtxRecording();",
"protected boolean checkTraceEnabled() {\n String sysTraceEnabled = System.getenv(TRACE_ENABLED_ENV);\n if (sysTraceEnabled == null) {\n return false;\n }\n\n if (sysTraceEnabled.toLowerCase().equals(\"true\")) {\n return true;\n }\n return false;\n }",
"public synchronized void setDebugTraceEnabled(TrcDbgTrace tracer, boolean enabled)\n {\n debugTracer = enabled ? tracer : null;\n }",
"@External\r\n\t@SharedFunc\r\n\tpublic MetaVar Trace(){throw new RuntimeException(\"Should never be executed directly, there is probably an error in the Aspect-coding.\");}",
"public static void toggleService(Context context, final boolean enabled){\r\n \t\tinvokeLoggerService(context, enabled ? MainPipeline.ACTION_ENABLE : MainPipeline.ACTION_DISABLE);\r\n \t}",
"@Bean\n Filter tracingFilter(HttpTracing httpTracing) {\n return TracingFilter.create(httpTracing);\n\n }",
"public static boolean isEnabled() {\n return log.isTraceEnabled();\n }",
"public void enableCtxMonitoring(CtxAttributeValueType type);",
"void setLocalExecutionEnabled(final boolean localExecutionEnabled);",
"@Override\n public void addInterceptors(InterceptorRegistry registry) {\n registry.addInterceptor(webMvcTracingCustomizer);\n }",
"@Override\n\tpublic boolean isTraceEnabled(Marker marker) {\n\t\treturn false;\n\t}",
"public boolean isTraceEnabled()\n/* */ {\n/* 282 */ return getLogger().isDebugEnabled();\n/* */ }",
"public Builder withTraceAnnotations() {\n this.traceAll = false;\n return this;\n }",
"@SuppressWarnings(\"unused\")\n private void setTrafficEnabled(final JSONArray args, final CallbackContext callbackContext) throws JSONException {\n Boolean isEnabled = args.getBoolean(1);\n map.setTrafficEnabled(isEnabled);\n this.sendNoResult(callbackContext);\n }",
"@Override\n\tpublic void customize(ManagedChannelBuilder<?> managedChannelBuilder) {\n\t\tmanagedChannelBuilder.intercept(this.grpcTracing.newClientInterceptor());\n\t}",
"public void traceStatus() {\n logger.trace(\"jvmThread: {}, jvmMethod: {}\", jvmThread, jvmMethod);\n logger.trace(\"localVariables: {}\", localVariables);\n logger.trace(\"operandStacks: {}\", operandStacks);\n }",
"public void setExposeAccessContext(boolean exposeAccessContext)\r\n/* 34: */ {\r\n/* 35: 95 */ this.exposeAccessContext = exposeAccessContext;\r\n/* 36: */ }",
"public void enableLogging();",
"@Bean\n HttpTracing httpTracing(Tracing tracing) {\n return HttpTracing.create(tracing);\n }",
"public traceProperties() { \n //setProperty(\"WorkingDirectory\",\"null\");\n //setProperty(\"situated\",\"false\"); \n \n }",
"public Builder setEnableStackdriverLogging(boolean value) {\n\n enableStackdriverLogging_ = value;\n bitField0_ |= 0x00000008;\n onChanged();\n return this;\n }",
"public static boolean isTrace() {\n return getInstance().trace;\n }",
"public static void traceOff() {\r\n\t\ttraceOn = false;\r\n\r\n\t}",
"private void constrainTraceMethod(ServletContextHandler ctxHandler) {\n Constraint c = new Constraint();\n c.setAuthenticate(true);\n\n ConstraintMapping cmt = new ConstraintMapping();\n cmt.setConstraint(c);\n cmt.setMethod(\"TRACE\");\n cmt.setPathSpec(\"/*\");\n\n ConstraintSecurityHandler securityHandler = new ConstraintSecurityHandler();\n securityHandler.setConstraintMappings(new ConstraintMapping[] {cmt});\n\n ctxHandler.setSecurityHandler(securityHandler);\n }",
"@DISPID(37)\r\n\t// = 0x25. The runtime will prefer the VTID if present\r\n\t@VTID(42)\r\n\tboolean enabled();",
"public interface CloudTracingInterceptor {\n /**\n * Trace information.\n * \n * @param message\n * The information to trace.\n */\n void information(String message);\n\n /**\n * Probe configuration for the value of a setting.\n * \n * @param source\n * The configuration source.\n * @param name\n * The name of the setting.\n * @param value\n * The value of the setting in the source.\n */\n void configuration(String source, String name, String value);\n\n /**\n * Enter a method.\n * \n * @param invocationId\n * Method invocation identifier.\n * @param instance\n * The instance with the method.\n * @param method\n * Name of the method.\n * @param parameters\n * Method parameters.\n */\n void enter(String invocationId, Object instance, String method,\n HashMap<String, Object> parameters);\n\n /**\n * Send an HTTP request.\n * \n * @param invocationId\n * Method invocation identifier.\n * @param request\n * The request about to be sent.\n */\n void sendRequest(String invocationId, HttpRequest request);\n\n /**\n * Receive an HTTP response.\n * \n * @param invocationId\n * Method invocation identifier.\n * @param response\n * The response instance.\n */\n void receiveResponse(String invocationId, HttpResponse response);\n\n /**\n * Raise an error.\n * \n * @param invocationId\n * Method invocation identifier.\n * @param exception\n * The error.\n */\n void error(String invocationId, Exception exception);\n\n /**\n * Exit a method. Note: Exit will not be called in the event of an error.\n * \n * @param invocationId\n * Method invocation identifier.\n * @param returnValue\n * Method return value.\n */\n void exit(String invocationId, Object returnValue);\n}",
"@Override\n public void onEnabled(Context context) {\n super.onEnabled(context);\n }",
"void setScopeRelevant(boolean scopeRelevant);",
"@Bean\n Tracing tracing(@Value(\"${dubbo.application.name}\") String applicationName, @Value(\"${zipkin.enable:false}\") Boolean enable, @Autowired(required = false) AsyncReporter spanReporter) {\n Tracing.Builder builder = Tracing.newBuilder()\n .localServiceName(applicationName)\n .propagationFactory(ExtraFieldPropagation.newFactory(B3Propagation.FACTORY, \"user-name\"))\n .currentTraceContext(ThreadLocalCurrentTraceContext.newBuilder()\n // puts trace IDs into logs\n .addScopeDecorator(MDCScopeDecorator.create())\n .build()\n );\n if (enable) {\n builder.spanReporter(spanReporter);\n builder.sampler(Sampler.ALWAYS_SAMPLE);\n } else {\n builder.sampler(Sampler.NEVER_SAMPLE);\n }\n return builder.build();\n }",
"public int getTracing() {\n if (Trace.getMask() == Trace.MASK_NONE)\n return 0;\n else\n return 1;\n }",
"public static final SourceModel.Expr executionContext_addTracedFunction(SourceModel.Expr executionContext, SourceModel.Expr tracedFunction) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_addTracedFunction), executionContext, tracedFunction});\n\t\t}",
"public void onEnabled(Context context) {\n\t}",
"boolean profilerEnabled();",
"@Override\r\n public void onEnabled(Context context) {\n }",
"@Override\r\n public void onEnabled(Context context) {\n }",
"@Override\n public void onEnabled(Context context) {\n }",
"@Override\n public void onEnabled(Context context) {\n }",
"@Override\n public void onEnabled(Context context) {\n }",
"@Override\n public void onEnabled(Context context) {\n }",
"@Override\n public void onEnabled(Context context) {\n }",
"@Override\n public void onEnabled(Context context) {\n }",
"@Override\n public void onEnabled(Context context) {\n }",
"@Override\n public void onEnabled(Context context) {\n }",
"@Override\n public void onEnabled(Context context) {\n }",
"@Override\n public void onEnabled(Context context) {\n }",
"@Override\n public void onEnabled(Context context) {\n }",
"@Override\n public void onEnabled(Context context) {\n }",
"@Override\n public void onEnabled(Context context) {\n }",
"@Override\n public void onEnabled(Context context) {\n }",
"@Override\n public void onEnabled(Context context) {\n }",
"@Override\n public void onEnabled(Context context) {\n }",
"@Override\n public void onEnabled(Context context) {\n }",
"@Override\n public void onEnabled(Context context) {\n }",
"@Override\n public void onEnabled(Context context) {\n }",
"@Override\n public void onEnabled(Context context) {\n }",
"@Override\n public void onEnabled(Context context) {\n }",
"@Override\n public void onEnabled(Context context) {\n }",
"@Override\n public void onEnabled(Context context) {\n }",
"@Override\n public void onEnabled(Context context) {\n }",
"@Override\n public void onEnabled(Context context) {\n }",
"@Override\n public void onEnabled(Context context) {\n }",
"@Override\n public void onEnabled(Context context) {\n }",
"@Override\n public void onEnabled(Context context) {\n }",
"@Override\n public void onEnabled(Context context) {\n }",
"@Override\n public void onEnabled(Context context) {\n }",
"@Override\n public void onEnabled(Context context) {\n }",
"@Override\n public void onEnabled(Context context) {\n }",
"@Override\n public void onEnabled(Context context) {\n }",
"@Override\n public void onEnabled(Context context) {\n }",
"@Override\n public void onEnabled(Context context) {\n }",
"@Override\n public void onEnabled(Context context) {\n }",
"@DISPID(79)\r\n\t// = 0x4f. The runtime will prefer the VTID if present\r\n\t@VTID(77)\r\n\tboolean enabled();",
"@Override\n\tpublic String enable() throws Throwable {\n\t\treturn null;\n\t}",
"public synchronized static void addTraceMetricsSource() {\n try {\n QueryServicesOptions options = QueryServicesOptions.withDefaults();\n if (!initialized && options.isTracingEnabled()) {\n traceSpanReceiver = new TraceSpanReceiver();\n Trace.addReceiver(traceSpanReceiver);\n TraceWriter traceWriter = new TraceWriter(options.getTableName(), options.getTracingThreadPoolSize(), options.getTracingBatchSize());\n traceWriter.start();\n }\n } catch (RuntimeException e) {\n LOGGER.warn(\"Tracing will outputs will not be written to any metrics sink! No \"\n + \"TraceMetricsSink found on the classpath\", e);\n } catch (IllegalAccessError e) {\n // This is an issue when we have a class incompatibility error, such as when running\n // within SquirrelSQL which uses an older incompatible version of commons-collections.\n // Seeing as this only results in disabling tracing, we swallow this exception and just\n // continue on without tracing.\n LOGGER.warn(\"Class incompatibility while initializing metrics, metrics will be disabled\", e);\n }\n initialized = true;\n }",
"public void setAgentContext(String value) {\n setAttributeInternal(AGENTCONTEXT, value);\n }",
"private DDSpanContext buildSpanContext() {\n final DDId traceId;\n final DDId spanId = idGenerationStrategy.generate();\n final DDId parentSpanId;\n final Map<String, String> baggage;\n final PendingTrace parentTrace;\n final int samplingPriority;\n final String origin;\n final Map<String, String> coreTags;\n final Map<String, ?> rootSpanTags;\n\n final DDSpanContext context;\n final Object requestContextData;\n\n // FIXME [API] parentContext should be an interface implemented by ExtractedContext,\n // TagContext, DDSpanContext, AgentSpan.Context\n Object parentContext = parent;\n if (parentContext == null && !ignoreScope) {\n // use the Scope as parent unless overridden or ignored.\n final AgentSpan activeSpan = scopeManager.activeSpan();\n if (activeSpan != null) {\n parentContext = activeSpan.context();\n }\n }\n\n String parentServiceName = null;\n\n // Propagate internal trace.\n // Note: if we are not in the context of distributed tracing and we are starting the first\n // root span, parentContext will be null at this point.\n if (parentContext instanceof DDSpanContext) {\n final DDSpanContext ddsc = (DDSpanContext) parentContext;\n traceId = ddsc.getTraceId();\n parentSpanId = ddsc.getSpanId();\n baggage = ddsc.getBaggageItems();\n parentTrace = ddsc.getTrace();\n samplingPriority = PrioritySampling.UNSET;\n origin = null;\n coreTags = null;\n rootSpanTags = null;\n parentServiceName = ddsc.getServiceName();\n if (serviceName == null) {\n serviceName = parentServiceName;\n }\n RequestContext<Object> requestContext = ddsc.getRequestContext();\n requestContextData = null == requestContext ? null : requestContext.getData();\n } else {\n if (parentContext instanceof ExtractedContext) {\n // Propagate external trace\n final ExtractedContext extractedContext = (ExtractedContext) parentContext;\n traceId = extractedContext.getTraceId();\n parentSpanId = extractedContext.getSpanId();\n samplingPriority = extractedContext.getSamplingPriority();\n baggage = extractedContext.getBaggage();\n } else {\n // Start a new trace\n traceId = IdGenerationStrategy.RANDOM.generate();\n parentSpanId = DDId.ZERO;\n samplingPriority = PrioritySampling.UNSET;\n baggage = null;\n }\n\n // Get header tags and set origin whether propagating or not.\n if (parentContext instanceof TagContext) {\n TagContext tc = (TagContext) parentContext;\n coreTags = tc.getTags();\n origin = tc.getOrigin();\n requestContextData = tc.getRequestContextData();\n } else {\n coreTags = null;\n origin = null;\n requestContextData = null;\n }\n\n rootSpanTags = localRootSpanTags;\n\n parentTrace = createTrace(traceId);\n }\n\n if (serviceName == null) {\n serviceName = CoreTracer.this.serviceName;\n }\n\n final CharSequence operationName =\n this.operationName != null ? this.operationName : resourceName;\n\n final int tagsSize =\n (null == tags ? 0 : tags.size())\n + defaultSpanTags.size()\n + (null == coreTags ? 0 : coreTags.size())\n + (null == rootSpanTags ? 0 : rootSpanTags.size());\n // some attributes are inherited from the parent\n context =\n new DDSpanContext(\n traceId,\n spanId,\n parentSpanId,\n parentServiceName,\n serviceName,\n operationName,\n resourceName,\n samplingPriority,\n origin,\n baggage,\n errorFlag,\n spanType,\n tagsSize,\n parentTrace,\n requestContextData);\n\n // By setting the tags on the context we apply decorators to any tags that have been set via\n // the builder. This is the order that the tags were added previously, but maybe the `tags`\n // set in the builder should come last, so that they override other tags.\n context.setAllTags(defaultSpanTags);\n context.setAllTags(tags);\n context.setAllTags(coreTags);\n context.setAllTags(rootSpanTags);\n return context;\n }",
"public void setVerbose(boolean value);",
"public static void setTraceLevel(int level) {\n outLevel = level;\n }",
"@java.lang.Override\n public boolean getEnableStackdriverLogging() {\n return enableStackdriverLogging_;\n }",
"public AwTracingController() {\n mNativeAwTracingController = nativeInit();\n }",
"public void markAsPropagated() {\n returnValueHasBeenPropagated = true;\n }",
"public void setTraceInformation(String trace) {\n\t\ttraceInformation = trace;\n\t}",
"@Override\n public String getTrace() {\n return trace;\n }",
"@java.lang.Override\n public boolean getEnableStackdriverLogging() {\n return enableStackdriverLogging_;\n }",
"public void setServiceContext(org.apache.axis2.context.xsd.ServiceContext param){\n localServiceContextTracker = true;\n \n this.localServiceContext=param;\n \n\n }",
"@Override\n public ExpressionToStringContext withBindings(Map<String, String> bindings) {\n SerializationContext serializationContext = new SerializationContext(getFunctions(), bindings, typeContext(), serializedFunctions());\n return new ExpressionToStringContext(serializationContext, wrappedToStringContext, path, parent);\n }",
"public TraceFormatting getTraceFormatting() {\n return traces;\n }",
"@Deprecated\n public HttpUriRequest addTraceHeaders(HttpUriRequest httpRequest) {\n if (this.tracing == null) {\n DDLogger.getLoggerImpl()\n .error(\"Unable to add trace headers from an untraceable request. Did you pass LambdaInstrumenter a request?\");\n return httpRequest;\n }\n\n Map<String, String> traceHeaders = tracing.makeOutboundHttpTraceHeaders();\n traceHeaders.forEach(httpRequest::setHeader);\n\n return httpRequest;\n }",
"public boolean useNormsTracer() {\n\t\treturn true;\n\t}",
"public abstract int trace();"
] | [
"0.7568947",
"0.6207013",
"0.5437785",
"0.5429976",
"0.5420926",
"0.54156244",
"0.5334572",
"0.52976674",
"0.5269451",
"0.52611405",
"0.52520645",
"0.50883543",
"0.50681615",
"0.5035892",
"0.49986565",
"0.4972557",
"0.49013102",
"0.49008912",
"0.48942354",
"0.48662326",
"0.48557",
"0.48383075",
"0.47466102",
"0.473599",
"0.47247598",
"0.47206214",
"0.47196272",
"0.47075638",
"0.46872893",
"0.46855056",
"0.46793935",
"0.46774593",
"0.4668899",
"0.4658147",
"0.4645854",
"0.46350136",
"0.4604091",
"0.45943618",
"0.4588286",
"0.4578889",
"0.4567079",
"0.45501527",
"0.45458585",
"0.44997546",
"0.44997546",
"0.4483228",
"0.4483228",
"0.4483228",
"0.4483228",
"0.4483228",
"0.4483228",
"0.4483228",
"0.4483228",
"0.4483228",
"0.4483228",
"0.4483228",
"0.4483228",
"0.4483228",
"0.4483228",
"0.4483228",
"0.4483228",
"0.4483228",
"0.4483228",
"0.4483228",
"0.4483228",
"0.4483228",
"0.4483228",
"0.4483228",
"0.4483228",
"0.4483228",
"0.4483228",
"0.4483228",
"0.4483228",
"0.4483228",
"0.4483228",
"0.4483228",
"0.4483228",
"0.4483228",
"0.4483228",
"0.4483228",
"0.4483228",
"0.44827586",
"0.4471127",
"0.44634584",
"0.4453779",
"0.44537428",
"0.44466248",
"0.4443929",
"0.4443383",
"0.44403133",
"0.44334877",
"0.44274232",
"0.44256303",
"0.44101116",
"0.43959653",
"0.4372531",
"0.43646652",
"0.4342677",
"0.43366027",
"0.43160823"
] | 0.8029492 | 0 |
Helper binding method for function: executionContext_traceShowsFunctionArgs. | public static final SourceModel.Expr executionContext_traceShowsFunctionArgs(SourceModel.Expr executionContext) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_traceShowsFunctionArgs), executionContext});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static final SourceModel.Expr executionContext_setTraceShowsFunctionArgs(SourceModel.Expr executionContext, SourceModel.Expr traceShowsFunctionArgs) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_setTraceShowsFunctionArgs), executionContext, traceShowsFunctionArgs});\n\t\t}",
"public static final SourceModel.Expr executionContext_traceShowsThreadName(SourceModel.Expr executionContext) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_traceShowsThreadName), executionContext});\n\t\t}",
"@Override\n\tpublic void trace(String message, Supplier<?>... paramSuppliers) {\n\n\t}",
"public boolean supportsDebugArgument();",
"@Override\n\tpublic void trace(Marker marker, String message, Supplier<?>... paramSuppliers) {\n\n\t}",
"public static final SourceModel.Expr executionContext_setTraceShowsThreadName(SourceModel.Expr executionContext, SourceModel.Expr traceShowsThreadName) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_setTraceShowsThreadName), executionContext, traceShowsThreadName});\n\t\t}",
"public void setInterpreterSpecificArgumentsVisible(boolean visible) {\n \t\tfUseDynamicArea = visible;\n \t}",
"public void addFilterToMethodArguments(ViewerFilter filter);",
"@Override\n\tpublic void trace(Supplier<?> msgSupplier) {\n\n\t}",
"public static void showArgs(String[] asArgs)\n {\n out();\n int cArgs = asArgs.length;\n out(cArgs + \" command line arguments:\");\n for (int i = 0; i < cArgs; ++i)\n {\n out(\"[\" + i + \"]=\\\"\" + asArgs[i] + \"\\\"\");\n }\n out();\n }",
"static String frameToString(RecordedFrame frame, boolean lineNumbers) {\n StringBuilder builder = new StringBuilder();\n RecordedMethod method = frame.getMethod();\n RecordedClass clazz = method.getType();\n if (clazz == null) {\n builder.append(\"<<\");\n builder.append(frame.getType());\n builder.append(\">>\");\n } else {\n builder.append(clazz.getName());\n }\n builder.append(\"#\");\n builder.append(method.getName());\n builder.append(\"()\");\n if (lineNumbers) {\n builder.append(\":\");\n if (frame.getLineNumber() == -1) {\n builder.append(\"(\" + frame.getType() + \" code)\");\n } else {\n builder.append(frame.getLineNumber());\n }\n }\n return builder.toString();\n }",
"public abstract JSFunctionDefinition createShowMenuEventFunction();",
"@Override\n\tpublic String toString(@javax.annotation.Nullable Event arg0, boolean arg1) {\n\t\treturn \"get visibility\";\n\t}",
"@Override\n\tpublic void trace(MessageSupplier msgSupplier) {\n\n\t}",
"public CALL(Exp f, ExpList a) {func=f; args=a;}",
"@Override\n\tpublic void trace(Marker marker, Supplier<?> msgSupplier) {\n\n\t}",
"public String toString ()\n {\n return \"function:\" + _vname;\n }",
"@Override\n\tpublic void trace(String message, Object... params) {\n\n\t}",
"public static void setCallerShown(boolean callerShown) {\n\t\tlogger.callerShown = callerShown;\n\t}",
"@Override\n public String visit(PassArgStmt n) {\n // 直接将参数保存到下一个栈帧\n // PASSARG 起始1\n int offset = Integer.parseInt(n.f1.f0.tokenImage);\n String r1 = this.reg[n.f2.f0.which];\n Global.outputString += \"sw $\" + r1 + \", -\" + ((offset + 2) * 4)\n + \"($sp)\\n\";\n return null;\n }",
"@External\r\n\t@SharedFunc\r\n\tpublic MetaVar Trace(){throw new RuntimeException(\"Should never be executed directly, there is probably an error in the Aspect-coding.\");}",
"public String getFunctionLocation() {\n return \" [\" + name + \"]\";\n }",
"static void show(String info, Object[] a) {\n System.out.print(info + \": \");\n show(a);\n }",
"String getArguments();",
"@Override\n\tpublic void trace(Marker marker, MessageSupplier msgSupplier) {\n\n\t}",
"public void addBusinessFilterToMethodArguments(ViewerFilter filter);",
"private static void printFunctionCalls() {\n dvm.printFunctionCalls();\n }",
"@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\n public String getCustomFunctionInvocation(String functionName, int argumentCount) {\n if (argumentCount == 0) {\n return \"OPERATOR('\" + functionName + \"',''\";\n }\n\n return \"OPERATOR('\" + functionName + \"',\";\n }",
"@Override\n\tpublic void debug(String message, Supplier<?>... paramSuppliers) {\n\n\t}",
"boolean appendFrameInfo(StringBuilder sb, Frame ctx, int frameNumber, boolean showThis, boolean showFileId) throws PlayerDebugException\n\t{\n\t\tboolean validFrame = true;\n\n\t\t// some formatting properties\n\t\tint i = frameNumber;\n\n\t\tLocation loc = ctx.getLocation();\n\t\tSourceFile file = loc.getFile();\n\t\tint line = loc.getLine();\n\t\tString name = (file == null) ? \"<null>\" : file.getName(); //$NON-NLS-1$\n\t\tString sig = ctx.getCallSignature();\n\t\tString func = extractFunctionName(sig);\n\n\t\t// file == null or line < 0 appears to be a terminator for stack info\n\t\tif (file == null && line < 0)\n {\n validFrame = false;\n }\n else\n\t\t{\n\t\t\tVariable[] var = ctx.getArguments(m_session);\n\t\t\tVariable dis = ctx.getThis(m_session);\n\t\t\tboolean displayArgs = (func != null) || (var != null);\n\n\t\t\tsb.append('#');\n\t\t\tFieldFormat.formatLong(sb, i, 3);\n\t\t\tsb.append(' ');\n\n\t\t\tif (showThis && dis != null)\n\t\t\t{\n\t\t\t\tExpressionCache.appendVariable(sb, dis);\n\t\t\t\tsb.append(\".\"); //$NON-NLS-1$\n\t\t\t}\n\n\t\t\tif (func != null)\n\t\t\t\tsb.append(func);\n\n\t\t\tif (displayArgs)\n\t\t\t{\n\t\t\t\tsb.append('(');\n\t\t\t\tfor (int j=0; j<var.length; j++)\n\t\t\t\t{\n\t\t\t\t\tVariable v = var[j];\n\t\t\t\t\tsb.append(v.getName());\n\t\t\t\t\tsb.append('=');\n\t\t\t\t\tExpressionCache.appendVariableValue(sb, v.getValue());\n\t\t\t\t\tif ((j+1)<var.length)\n\t\t\t\t\t\tsb.append(\", \"); //$NON-NLS-1$\n\t\t\t\t}\n\t\t\t\tsb.append(\")\"); //$NON-NLS-1$\n\t\t\t\tsb.append(getLocalizationManager().getLocalizedTextString(\"atFilename\")); //$NON-NLS-1$\n\t\t\t}\n\n\t\t\tsb.append(name);\n\n\t\t\t// if this file is currently being filtered put the source file id after it\n\t\t\tif (file != null && (showFileId || !m_fileInfo.inFileList(file)))\n\t\t\t{\n\t\t\t\tsb.append('#');\n\t\t\t\tsb.append( file.getId() );\n\n\t\t\t}\n\t\t\tsb.append(':');\n\t\t\tsb.append(line);\n\t\t}\n return validFrame;\n\t}",
"@Override\n\tpublic void showLaneInfo(AMapLaneInfo[] arg0, byte[] arg1, byte[] arg2) {\n\n\t}",
"public void printToViewConsole(String arg);",
"void onArgumentsChanged();",
"public void Show_Item_Information(MouseEvent mouseEvent) {\n }",
"public boolean isVarArgs() {\n return (getAccessFlags() & Constants.ACCESS_VARARGS) > 0;\n }",
"@Override\r\n\tpublic String getPrintArgs() {\n\t\treturn null;\r\n\t}",
"@Profile(\"trace\")\n @Bean\n @Autowired\n public CommandLineRunner viewBeansInContext(final ApplicationContext ctx) {\n return args -> {\n\n StringBuilder sb = new StringBuilder(1_000);\n sb.append(\"\\n\").append(LINE);\n sb.append(\"Let's inspect the beans provided by Spring Boot:\");\n sb.append(\"\\n\").append(LINE);\n\n String[] beanNames = ctx.getBeanDefinitionNames();\n Arrays.sort(beanNames);\n for (String beanName : beanNames) {\n sb.append(beanName);\n }\n\n sb.append(\"\\n\").append(LINE).append(\"\\n\");\n\n log.debug(sb.toString());\n };\n }",
"@Override\n\t\t\t\tpublic void showLaneInfo(AMapLaneInfo[] arg0, byte[] arg1,\n\t\t\t\t\t\tbyte[] arg2) {\n\t\t\t\t\t\n\t\t\t\t}",
"public boolean isCallerShown() {\n\t\treturn callerShown;\n\t}",
"private static String printOptionalArgs() {\n String output = \"\";\n for (int i = 0; i < MAX_OPTIONAL_ARGS; i++)\n output += \" [-\" + VALID_OPTIONAL_ARGS[i] + \"]\";\n return output + \" \";\n }",
"@Override\n\tpublic void debug(Marker marker, String message, Supplier<?>... paramSuppliers) {\n\n\t}",
"@Override\n\tpublic EntryMessage traceEntry(String format, Supplier<?>... paramSuppliers) {\n\t\treturn null;\n\t}",
"public abstract int trace();",
"public static final SourceModel.Expr executionContext_isTracingEnabled(SourceModel.Expr executionContext) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_isTracingEnabled), executionContext});\n\t\t}",
"public static void main(String[] args) {\n\t\t\n\t\tprint(s -> s.substring(0, 3)); //mnow we are passing the action not the variable\n\t}",
"void info( boolean enabled, Object... args ) ;",
"boolean isVarargs();",
"boolean isVarargs();",
"boolean isVarargs();",
"@Override\n public void analyze(Analyzer analyzer) throws VerifierException {\n VarTypes[] paramTypes = this.paramList.getParamsTypes(analyzer);\n if (!analyzer.has(this.callee, paramTypes)) {\n StringJoiner joiner = new StringJoiner(\", \");\n for (VarTypes type : paramTypes) {\n joiner.add(type.getName());\n }\n String signature = String.format(\"%s(%s)\", this.callee, joiner.toString());\n throw new InvalidMethodException(signature);\n }\n }",
"TraceInstructionsView instructions();",
"public static ObjectInspector[] getArgInspectors(\n HiveShim hiveShim, HiveFunctionArguments arguments) {\n ObjectInspector[] inspectors = new ObjectInspector[arguments.size()];\n for (int i = 0; i < inspectors.length; i++) {\n if (arguments.isLiteral(i)) {\n Object constant = arguments.getArg(i);\n PrimitiveTypeInfo primitiveTypeInfo =\n (PrimitiveTypeInfo)\n HiveTypeUtil.toHiveTypeInfo(arguments.getDataType(i), false);\n constant =\n getConversion(\n getObjectInspector(primitiveTypeInfo),\n arguments.getDataType(i).getLogicalType(),\n hiveShim)\n .toHiveObject(constant);\n inspectors[i] =\n getObjectInspectorForPrimitiveConstant(\n primitiveTypeInfo, constant, hiveShim);\n } else {\n inspectors[i] =\n TypeInfoUtils.getStandardJavaObjectInspectorFromTypeInfo(\n HiveTypeUtil.toHiveTypeInfo(arguments.getDataType(i), false));\n }\n }\n return inspectors;\n }",
"void showNoneParametersView();",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getArgumentSource();",
"@Override\n\tpublic EntryMessage traceEntry(Supplier<?>... paramSuppliers) {\n\t\treturn null;\n\t}",
"@Override public String getToolTipText(MouseEvent evt)\n{\n String rslt = null;\n\n int pos = evt.getX();\n int minpos = getX() + 16;\n int maxpos = getX() + getWidth() - 16;\n double relpos = (pos - minpos);\n if (relpos < 0) relpos = 0;\n relpos /= (maxpos - minpos);\n double timer = getMinimum() + relpos * (getMaximum() - getMinimum()) + 0.5;\n long time = (long) timer;\n if (time > getMaximum()) time = getMaximum();\n\n BicexEvaluationContext ctx = for_bubble.getExecution().getCurrentContext();\n if (ctx == null) return null;\n\n BicexValue bv = ctx.getValues().get(\"*LINE*\");\n List<Integer> times = bv.getTimeChanges();\n String line = null;\n for (Integer t : times) {\n if (t <= time) {\n\t line = bv.getStringValue(t+1);\n\t}\n else break;\n }\n if (line != null) rslt = \"Line \" + line;\n\n if (ctx != null) {\n String what = \"In\";\n if (ctx.getInnerContexts() != null) {\n\t for (BicexEvaluationContext sctx : ctx.getInnerContexts()) {\n\t if (sctx.getStartTime() <= time && sctx.getEndTime() >= time) {\n\t ctx = sctx;\n\t what = \"Calling\";\n\t break;\n\t }\n\t }\n }\n if (rslt == null) rslt = what + \" \" + ctx.getMethod();\n else rslt += \" \" + what + \" \" + ctx.getShortName();\n }\n\n return rslt;\n}",
"protected Type[] getJoinPointArgumentTypes() {\n return new Type[]{Type.getType(m_calleeMemberDesc)};\n }",
"@Override\n public String toString() {\n return String.format(\"REIL function %s\", getName());\n }",
"public String getCppMangledArgumentList() {\n\t\tif (this.sig.size() == 0)\n\t\t\treturn \"\";\n\t\n\t\tString ret = \"_\";\n\t\tfor (TypeContainer c : this.sig)\n\t\t\tret += c.type.getName() + \"_\";\n\t\t\n\t\treturn ret.substring(0, ret.length() - 1).replace(\".\", \"_\");\n\t}",
"WasmCallInstruction( FunctionName name, int javaCodePos, int lineNumber, @Nonnull TypeManager types, boolean needThisParameter ) {\n this( name, javaCodePos, lineNumber, types, needThisParameter, null );\n }",
"void trace(String a, String b) {\n\t\t}",
"private void printStackTraceInvoke(Method method, Object... args){\n\t\ttry {\n\t\t\tmethod.invoke(null, args);\n\t\t} catch (IllegalArgumentException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalAccessException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (InvocationTargetException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public boolean addFuncDlgAttr(Accessibility pAccess, ExecSignature pES, String pTName, MoreData pMoreData);",
"void debug(String messageKey, Object... args);",
"public void enterMethod(String methodName, String... methodArgs) {\n checkNotNull(methodName);\n checkNotNull(methodArgs);\n String argString = join(\", \", methodArgs);\n addLine(methodName + \" = function(\" + argString + \") {\");\n currentDepth++;\n }",
"@Override\n\tpublic void trace(Marker marker, String message, Object... params) {\n\n\t}",
"public void show(Context arg0) {\n\t\tsuper.show(arg0, null);\n\t}",
"@FXML\n public void Show_List(MouseEvent mouseEvent) {\n }",
"public static void debug(String string, Object... val) {\n\n }",
"void showTooltip();",
"protected boolean isUseOutputArgumentAccessors(ActionInvocation<LocalService> actionInvocation) {\n/* 120 */ for (ActionArgument argument : actionInvocation.getAction().getOutputArguments()) {\n/* */ \n/* 122 */ if (getOutputArgumentAccessors().get(argument) != null) {\n/* 123 */ return true;\n/* */ }\n/* */ } \n/* 126 */ return false;\n/* */ }",
"@Override\n protected BDDState handleFunctionCallEdge(\n CFunctionCallEdge cfaEdge,\n List<CExpression> args,\n List<CParameterDeclaration> params,\n String calledFunction)\n throws UnsupportedCodeException {\n BDDState newState = state;\n\n // var_args cannot be handled: func(int x, ...) --> we only handle the first n parameters\n assert args.size() >= params.size();\n\n for (int i = 0; i < params.size(); i++) {\n\n // make variable (predicate) for param, this variable is not global\n final String varName = params.get(i).getQualifiedName();\n final CType targetType = params.get(i).getType();\n final Partition partition = varClass.getPartitionForParameterOfEdge(cfaEdge, i);\n final Region[] var =\n predmgr.createPredicate(\n varName,\n targetType,\n cfaEdge.getSuccessor(),\n bvComputer.getBitsize(partition, targetType),\n precision);\n final Region[] arg =\n bvComputer.evaluateVectorExpression(\n partition, args.get(i), targetType, cfaEdge.getSuccessor(), precision);\n newState = newState.addAssignment(var, arg);\n }\n\n return newState;\n }",
"@Override\n\tpublic void createAddArgumentViewForFunctions(List<CQLFunctionArgument> argumentList) {\n\t\tcellTablePanel.clear();\n\t\tcellTablePanel.setStyleName(\"cellTablePanel\");\n\t\tisEditable = MatContext.get().getMeasureLockService().checkForEditPermission();\n\t\t\n\t\tif ((argumentList != null) && (argumentList.size() > 0)) {\n\t\t\tupdateFunctionArgumentNameMap(argumentList);\n\t\t\targumentListTable = new CellTable<CQLFunctionArgument>();\n\t\t\targumentListTable.setStriped(true);\n\t\t\targumentListTable.setCondensed(true);\n\t\t\targumentListTable.setBordered(true);\n\t\t\targumentListTable.setHover(true);\n\t\t\t\n\t\t\targumentListTable.setPageSize(TABLE_ROW_COUNT);\n\t\t\targumentListTable.redraw();\n\t\t\tlistDataProvider = new ListDataProvider<CQLFunctionArgument>();\n\t\t\tlistDataProvider.refresh();\n\t\t\tlistDataProvider.getList().addAll(argumentList);\n\t\t\tListHandler<CQLFunctionArgument> sortHandler = new ListHandler<CQLFunctionArgument>(\n\t\t\t\t\tlistDataProvider.getList());\n\t\t\targumentListTable.addColumnSortHandler(sortHandler);\n\t\t\targumentListTable = addColumnToTable(argumentListTable, sortHandler);\n\t\t\tlistDataProvider.addDataDisplay(argumentListTable);\n\t\t\tCustomPager.Resources pagerResources = GWT.create(CustomPager.Resources.class);\n\t\t\tspager = new MatSimplePager(CustomPager.TextLocation.CENTER, pagerResources, false, 0, true);\n\t\t\tspager.setDisplay(argumentListTable);\n\t\t\tspager.setPageStart(0);\n\t\t\tcellTablePanel.add(argumentListTable);\n\t\t\t// cellTablePanel.add(new SpacerWidget());\n\t\t\tcellTablePanel.add(spager);\n\t\t} else {\n\t\t\tcom.google.gwt.user.client.ui.Label tableHeader = new com.google.gwt.user.client.ui.Label(\n\t\t\t\t\t\"Added Arguments List\");\n\t\t\ttableHeader.getElement().setId(\"tableHeader_Label\");\n\t\t\ttableHeader.setStyleName(\"measureGroupingTableHeader\");\n\t\t\ttableHeader.getElement().setAttribute(\"tabIndex\", \"0\");\n\t\t\tHTML desc = new HTML(\"<p> No Arguments Added.</p>\");\n\t\t\tcellTablePanel.add(tableHeader);\n\t\t\tcellTablePanel.add(new SpacerWidget());\n\t\t\tcellTablePanel.add(desc);\n\t\t}\n\t\t/*\n\t\t * } else { com.google.gwt.user.client.ui.Label tableHeader = new\n\t\t * com.google.gwt.user.client.ui.Label(\"Added Arguments List\");\n\t\t * tableHeader.getElement().setId(\"tableHeader_Label\");\n\t\t * tableHeader.setStyleName(\"measureGroupingTableHeader\");\n\t\t * tableHeader.getElement().setAttribute(\"tabIndex\", \"0\"); HTML desc =\n\t\t * new HTML(\"<p> No Arguments Added.</p>\");\n\t\t * cellTablePanel.add(tableHeader); cellTablePanel.add(new\n\t\t * SpacerWidget()); cellTablePanel.add(desc); }\n\t\t */\n\t\t\n\t}",
"@Override\n\tprotected boolean traceDisplayerContentApplicable() {\n\t\treturn true;\n\t}",
"public void trace(long startNanoTime, long endNanoTime, MethodSignature signature) {\n trace(\"{}\\t{}\\t{} {}.{}{}\", METHOD_PROCESSING_TIME,\n (endNanoTime - startNanoTime) / nanosToMicros, signature.getReturnType().getSimpleName(),\n signature.getMethod().getDeclaringClass().getName(), signature.getMethod().getName(),\n Arrays.stream(signature.getParameterTypes()).map(c -> c.getSimpleName())\n .collect(Collectors.joining(\",\", \"(\", \")\")));\n }",
"@Override\r\n\tpublic Object visitFrameOpChain(FrameOpChain frameOpChain, Object arg) throws Exception {\n\t\tKind kind = frameOpChain.getFirstToken().kind;\r\n\r\n\t\tframeOpChain.getArg().visit(this, arg);\r\n\r\n\t\tif (kind.equals(Kind.KW_SHOW)) {\r\n\t\t\tmv.visitMethodInsn(INVOKEVIRTUAL, \"cop5556sp17/PLPRuntimeFrame\", \"showImage\",\r\n\t\t\t\t\t\"()Lcop5556sp17/PLPRuntimeFrame;\", false);\r\n\t\t} else if (kind.equals(Kind.KW_HIDE)) {\r\n\t\t\tmv.visitMethodInsn(INVOKEVIRTUAL, \"cop5556sp17/PLPRuntimeFrame\", \"hideImage\",\r\n\t\t\t\t\t\"()Lcop5556sp17/PLPRuntimeFrame;\", false);\r\n\t\t} else if (kind.equals(Kind.KW_MOVE)) {\r\n\t\t\tmv.visitMethodInsn(INVOKEVIRTUAL, \"cop5556sp17/PLPRuntimeFrame\", \"moveFrame\",\r\n\t\t\t\t\t\"(II)Lcop5556sp17/PLPRuntimeFrame;\", false);\r\n\t\t} else if (kind.equals(Kind.KW_XLOC)) {\r\n\t\t\tmv.visitMethodInsn(INVOKEVIRTUAL, \"cop5556sp17/PLPRuntimeFrame\", \"getXVal\", \"()I\", false);\r\n\t\t} else if (kind.equals(Kind.KW_YLOC)) {\r\n\t\t\tmv.visitMethodInsn(INVOKEVIRTUAL, \"cop5556sp17/PLPRuntimeFrame\", \"getYVal\", \"()I\", false);\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}",
"public LocalDebugInfo[] locals();",
"public String getArgumentLine() {\n return \"\";\n }",
"public boolean toolTipRequest(float[] point, DiagramContext context);",
"public static void functionCalled(String message) {\n if(enabled) {\n for (int i = 0; i < depth; i++)\n System.out.print(\"\\t\");\n System.out.println(message);\n depth++;\n }\n }",
"@Override\n public int getNumberArguments() {\n return 1;\n }",
"private String getFunctionName() {\n StackTraceElement[] sts = Thread.currentThread().getStackTrace();\n if (sts == null) {\n return null;\n }\n for (StackTraceElement st : sts) {\n if (st.isNativeMethod()) {\n continue;\n }\n if (st.getClassName().equals(Thread.class.getName())) {\n continue;\n }\n if (st.getClassName().equals(LogUtils.this.getClass().getName())) {\n continue;\n }\n return \"[ \" + Thread.currentThread().getName() + \": \"\n + st.getFileName() + \":\" + st.getLineNumber() + \" \"\n + st.getMethodName() + \" ]\";\n }\n return null;\n }",
"String getFullEffectWithExampleParametersAsString();",
"@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }",
"@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }",
"public void tokenizeFunctionArguments(){\n for (int i = 0; i < tokenization.size(); i++){\n if (tokenization.get(i).kind == Token.Kind.FUN && tokenization.get(i+1).kind == Token.Kind.LEFT){\n int argIn = i + 2;\n HashMap<String, String> argNameMap = new HashMap<>();\n int argNum = 1;\n while (tokenization.get(argIn).kind == Token.Kind.ID || tokenization.get(argIn).kind == Token.Kind.COMMA || tokenization.get(argIn).kind == Token.Kind.RIGHT){\n if (tokenization.get(argIn).kind == Token.Kind.ID){\n argNameMap.put(tokenization.get(argIn).varName,\"$\" + argNum);\n tokenization.get(argIn).varName = \"$\" + argNum;\n argNum++;\n }\n argIn++;\n }\n //By here argIn is the index of the right parenthesis if there are arguments\n int funBodyIn = argIn;\n if (tokenization.get(funBodyIn).kind != Token.Kind.LBRACE){\n\n }\n else{\n int bracketBalance = 1;\n funBodyIn = funBodyIn + 1;\n while (bracketBalance > 0){\n if (tokenization.get(funBodyIn).kind == Token.Kind.ID && argNameMap.containsKey(tokenization.get(funBodyIn).varName)){\n tokenization.get(funBodyIn).varName = argNameMap.get(tokenization.get(funBodyIn).varName);\n }\n else if (tokenization.get(funBodyIn).kind == Token.Kind.LBRACE){\n bracketBalance++;\n }\n else if (tokenization.get(funBodyIn).kind == Token.Kind.RBRACE){\n bracketBalance--;\n }\n funBodyIn++;\n }\n }\n }\n }\n }",
"private String getSuperMethodCallParameters(ExecutableElement sourceMethod) {\n return sourceMethod\n .getParameters()\n .stream()\n .map(parameter -> parameter.getSimpleName().toString())\n .collect(Collectors.joining(\", \"));\n }",
"java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();",
"java.util.List<com.mwr.jdiesel.api.Protobuf.Message.Argument> \n getArgumentList();",
"default String args() {\n return (String) metadata().get(\"x-uri-args\");\n }",
"@Override\r\n public int getSecondArg() {\n return localsNum;\r\n }",
"protected abstract void showHint();",
"public void renderV8Style(StringBuilder sb) {\n sb.append(\" at \");\n\n if ((functionName == null) || \"anonymous\".equals(functionName) || \"undefined\".equals(functionName)) {\n // Anonymous functions in V8 don't have names in the stack trace\n appendV8Location(sb);\n\n } else {\n sb.append(functionName).append(\" (\");\n appendV8Location(sb);\n sb.append(')');\n }\n }",
"int getArgIndex();",
"private void listParameters(JavaSamplerContext context)\n {\n if (getLogger().isDebugEnabled())\n {\n Iterator argsIt = context.getParameterNamesIterator();\n while (argsIt.hasNext())\n {\n String name = (String) argsIt.next();\n getLogger().debug(name + \"=\" + context.getParameter(name));\n }\n }\n }",
"@Override\n\tpublic void trace(Supplier<?> msgSupplier, Throwable t) {\n\n\t}",
"private static INaviFunction getFunctionToInline(final JFrame parent,\n final IViewContainer viewContainer, final INaviFunction function,\n final int forwarderModuleId, final IAddress forwarderAddress) {\n if (forwarderAddress == null) {\n return function;\n } else {\n final IDatabase database = viewContainer.getDatabase();\n\n final INaviModule module = database.getContent().getModule(forwarderModuleId);\n\n if (!viewContainer.containsModule(module)) {\n CMessageBox.showInformation(parent, String\n .format(\"You are trying to inline an external function into a module view. \"\n + \"This is not possible.\\n\"\n + \"To inline external functions it is necessary to create projects.\"));\n\n return null;\n }\n\n if (!module.isLoaded()) {\n try {\n module.load();\n } catch (final CouldntLoadDataException | LoadCancelledException e) {\n CUtilityFunctions.logException(e);\n return null;\n }\n }\n\n return module.getContent().getFunctionContainer().getFunction(forwarderAddress);\n }\n }",
"public void lambdaDiffParamSamples() {\n\t\tSystem.out.println(\"\\n\\n************Lambda Parameters: zero, one or many**********\");\n\t\t// Zero Params\n\t\tPrint ob = () -> System.out.println(\"Print Something\");\n\t\tob.print();\n\n\t\t// One Params\n\t\tSayable ob2 = name -> \"Hello \" + name;\n\t\tSystem.out.println(ob2.say(\"Prabu\"));\n\n\t\t// Two Params\n\t\tAddable ob3 = (a, b) -> a + b;\n\t\tSystem.out.println(\"Add: \" + ob3.add(5, 8));\n\t}",
"public void addArgumentTypeSerialization(String functionName, String argumentName, TensorType type) {\n wrappedSerializationContext.addArgumentTypeSerialization(functionName, argumentName, type);\n }"
] | [
"0.7376101",
"0.5184134",
"0.50752467",
"0.49678782",
"0.494467",
"0.48342982",
"0.46943933",
"0.46837214",
"0.45943138",
"0.45730838",
"0.45303565",
"0.44887903",
"0.4472373",
"0.44471803",
"0.4439134",
"0.4416239",
"0.4410467",
"0.4343856",
"0.43182656",
"0.4311919",
"0.4309742",
"0.43021873",
"0.42715645",
"0.4268463",
"0.4258597",
"0.42488432",
"0.42382833",
"0.42341417",
"0.42249066",
"0.42235714",
"0.42221323",
"0.4212637",
"0.4211629",
"0.4208077",
"0.42008448",
"0.4163843",
"0.41627663",
"0.4158425",
"0.41546428",
"0.41546384",
"0.41512278",
"0.4150691",
"0.41449067",
"0.4131853",
"0.41027358",
"0.41017112",
"0.41010877",
"0.40995452",
"0.40995452",
"0.40995452",
"0.40992188",
"0.4092404",
"0.40874147",
"0.40810135",
"0.40777954",
"0.40675783",
"0.40595296",
"0.4059142",
"0.4052497",
"0.40505075",
"0.40490443",
"0.404718",
"0.40400326",
"0.40346235",
"0.40295056",
"0.40226966",
"0.4022532",
"0.40165636",
"0.4012211",
"0.4008645",
"0.40067378",
"0.3981202",
"0.3973275",
"0.39640015",
"0.3956698",
"0.39563587",
"0.39525348",
"0.39490268",
"0.39453724",
"0.3939367",
"0.39307603",
"0.3930739",
"0.392853",
"0.39279217",
"0.39256197",
"0.39256197",
"0.3923705",
"0.39227796",
"0.39077598",
"0.39077598",
"0.39057678",
"0.39039972",
"0.3900468",
"0.38969418",
"0.38964733",
"0.38944134",
"0.38941357",
"0.38934782",
"0.38898775",
"0.38796037"
] | 0.84478384 | 0 |
Helper binding method for function: executionContext_traceShowsThreadName. | public static final SourceModel.Expr executionContext_traceShowsThreadName(SourceModel.Expr executionContext) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_traceShowsThreadName), executionContext});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static final SourceModel.Expr executionContext_setTraceShowsThreadName(SourceModel.Expr executionContext, SourceModel.Expr traceShowsThreadName) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_setTraceShowsThreadName), executionContext, traceShowsThreadName});\n\t\t}",
"public String getThreadName() {\n return null;\n }",
"public String toString()\n\t{\n\t\treturn threadName;\n\t}",
"public String getThreadName() {\n return threadName;\n }",
"private static String m62902a(Thread thread) {\n StringBuffer stringBuffer = new StringBuffer();\n stringBuffer.append(\"Thread: \");\n stringBuffer.append(thread.getName());\n return stringBuffer.toString();\n }",
"String getThreadId();",
"public void printThreadStack(String threadName) {\n\t\tthis.toSlave.println(MasterProcessInterface.THREAD_STACK_COMMAND + ((threadName == null) ? \"\" : (\":\" + threadName)));\n\t}",
"public void setThreadName(String name) {\n threadName = name;\n }",
"public String getThread()\n\t{\n\t\treturn this.thread;\n\t}",
"private String getFunctionName() {\n StackTraceElement[] sts = Thread.currentThread().getStackTrace();\n if (sts == null) {\n return null;\n }\n for (StackTraceElement st : sts) {\n if (st.isNativeMethod()) {\n continue;\n }\n if (st.getClassName().equals(Thread.class.getName())) {\n continue;\n }\n if (st.getClassName().equals(LogUtils.this.getClass().getName())) {\n continue;\n }\n return \"[ \" + Thread.currentThread().getName() + \": \"\n + st.getFileName() + \":\" + st.getLineNumber() + \" \"\n + st.getMethodName() + \" ]\";\n }\n return null;\n }",
"public String getThreadNameFor(DataFlowID inFlowID) {\r\n synchronized (this) {\r\n return mThreadNames.get(inFlowID);\r\n }\r\n }",
"@NotNull\n private static String getMainThreadForProcess(@NotNull ProcessModel process) {\n String name = process.getName();\n if (name.startsWith(\"<\")) {\n for (ThreadModel threads : process.getThreads()) {\n if (threads.getId() == process.getId()) {\n return threads.getName();\n }\n }\n }\n return name;\n }",
"protected void trace(String headline, String qName) {\r\n\t\ttee.writelnMessage(headline + Strings.padRight(qName, 25) + \" - context : \" + Strings.padRight(context.name(), 11) + \" - stack : \" + dump(contexts));\r\n\t}",
"@Override\n public void run(){\n System.out.println(\"Running thread name: \"+Thread.currentThread().getName());\n }",
"@Override\n public String toString()\n {\n return String.format(\"request in Thread %d(%s): \", reqID, masterThread); \n }",
"public String call() {\n return Thread.currentThread().getName() + \" executing ...\";\n }",
"public void run(){\n String threadName = Thread.currentThread().getName();\n System.out.println(\"Hello \" + threadName);\n }",
"public static final SourceModel.Expr executionContext_traceShowsFunctionArgs(SourceModel.Expr executionContext) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.executionContext_traceShowsFunctionArgs), executionContext});\n\t\t}",
"String get_str(ThreadContext tc, RakudoObject classHandle);",
"private void writeThreadToStringBuilder(ThreadInfo thread, StringBuilder string) {\n string.append(\"------------------------------\\n\");\n //\n string.append(\"Current Thread: \" + thread.getThreadName() + \"\\n\");\n string.append(\"\\tPID: \" + thread.getThreadId() + \" | Suspended: \" + thread.isSuspended() + \" | Native: \" +\n thread.isInNative() + \" | State: \" + thread.getThreadState() + \"\\n\");\n if (thread.getLockedMonitors().length != 0) {\n string.append(\"\\tThread is waiting on monitor(s):\\n\");\n for (MonitorInfo monitor : thread.getLockedMonitors()) {\n string.append(\"\\t\\tLocked on:\" + monitor.getLockedStackFrame() + \"\\n\");\n }\n }\n string.append(\"\\tStack:\\n\");\n //\n for (StackTraceElement stack : thread.getStackTrace()) {\n string.append(\"\\t\\t\" + stack + \"\\n\");\n }\n }",
"public void run(){\n System.out.println(\"Thread class extends \" + getName());\n }",
"public String getThreadKey() {\n\t\treturn Integer.toString(this.hashCode());\n\t}",
"private void printThreadingNotes(String currentMethodLabel) {\n System.out.println(\"\\n###########################################\");\n System.out.println(\"current method = \" + currentMethodLabel);\n System.out.println(\"In application thread? = \" + Platform.isFxApplicationThread());\n System.out.println(\"Current system time = \" + java.time.LocalDateTime.now().toString().replace('T', ' '));\n }",
"private static void demoRunnable() {\n new Thread(() -> System.out.println(Thread.currentThread().getName()), \"thread-λ\").start();\n new Thread(ToLambdaP5::printThread, \"thread-method-ref\").start();\n }",
"static void threadMessage(String message) {\r\n\t\tString threadName = Thread.currentThread().getName();\r\n\t\tSystem.out.format(\"%s: %s%n\", threadName, message);\r\n\t}",
"@NonNls\n String getDebugName();",
"@NonNls\n String getDebugName();",
"public static String getCurrentClassName(){\n\t\tString s2 = Thread.currentThread().getStackTrace()[2].getClassName();\n// System.out.println(\"s0=\"+s0+\" s1=\"+s1+\" s2=\"+s2);\n\t\t//s0=java.lang.Thread s1=g1.tool.Tool s2=g1.TRocketmq1Application\n\t\treturn s2;\n\t}",
"@Override\n public void run() {\n threadLocalTest.setName(Thread.currentThread().getName());\n System.out.println(Thread.currentThread().getName() + \":\" + threadLocalTest.getName());\n }",
"java.lang.String getExecutionStageName();",
"public final /* bridge */ /* synthetic */ String mo50910a(Object obj) {\n return m62902a((Thread) obj);\n }",
"int hint_for(ThreadContext tc, RakudoObject classHandle, String name);",
"public abstract String getQueueDisplayName();",
"String getTaskName();",
"String getTaskName();",
"String GetTaskName(int Catalog_ID);",
"long getThreadId();",
"String activity_name () throws BaseException;",
"@Override\n public String getName() {\n return getSoftwareSystem().getName() + \" - System Context\";\n }",
"@Test\n @DisplayName(\"Plain Runnable\")\n void testRunnable() {\n Runnable task = this::printThreadName;\n\n task.run();\n\n Thread thread = new Thread(task);\n thread.start();\n\n System.out.println(\"Done!\");\n }",
"public String getTaskName();",
"@Override\n public Object process(Map.Entry<String, EntryProcessorOffloadableTest.SimpleValue> entry) {\n return Thread.currentThread().getName();\n }",
"@Override\n public Object process(Map.Entry<String, EntryProcessorOffloadableTest.SimpleValue> entry) {\n return Thread.currentThread().getName();\n }",
"private void YeWuMethod(String name) {\n\n for (int j = 0; j < 10; j++) {\n\n\n// Runnable task = new RunnableTask();\n// Runnable ttlRunnable = TtlRunnable.get(task);\n\n// executor.execute(ttlRunnable);\n\n executor.execute(() -> {\n System.out.println(\"==========\"+name+\"===\"+threadLocal.get());\n });\n }\n\n// for (int i = 0; i < 10; i++) {\n// new Thread(() -> {\n// System.out.println(name+\"===\"+threadLocal.get());\n// }, \"input thread name\").start();\n// }\n\n\n\n\n }",
"public String getTraceContextString() {\n Map<String, String> traceInfo = getTraceContext();\n if (traceInfo == null) {\n DDLogger.getLoggerImpl().debug(\"No Trace/Log correlation IDs returned\");\n return \"\";\n }\n\n String traceID = traceInfo.get(this.tracing.TRACE_ID_KEY);\n String spanID = traceInfo.get(this.tracing.SPAN_ID_KEY);\n return formatTraceContext(this.tracing.TRACE_ID_KEY, traceID, this.tracing.SPAN_ID_KEY, spanID);\n }",
"private static boolean ignore(Thread thread) {\n String threadName = thread.getName();\n if (IGNORED_THREADS_REGEX.matcher(threadName).matches())\n return true;\n\n if (thread.getName().startsWith(\"Thread-\")) {\n // Special check for ByteMan, because nobody calls TransformListener.terminate()\n if (thread.getClass().getName().equals(\"org.jboss.byteman.agent.TransformListener\"))\n return true;\n\n // Special check for Arquillian, because it uses an unnamed thread to read from the container console\n StackTraceElement[] s = thread.getStackTrace();\n for (StackTraceElement ste : s) {\n if (ste.getClassName().equals(ARQUILLIAN_CONSOLE_CONSUMER)) {\n return true;\n }\n }\n }\n return false;\n }",
"public static void getThreadInfo(){\r\n ThreadMeasurement currentThreadState = new ThreadMeasurement();\r\n threadList.add(currentThreadState);\r\n //ThreadMeasurement.printThreadState(currentThreadState);\r\n }",
"private String whoAmI()\n {\n StringBuffer sb = new StringBuffer();\n sb.append(Thread.currentThread().toString());\n sb.append(\"@\");\n sb.append(Integer.toHexString(hashCode()));\n return sb.toString();\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}",
"void threadAdded(String threadId);",
"public String getContextString();",
"public void run() \n {\n System.out.println(Thread.currentThread().getName().hashCode()); \n }",
"public static void m751a() {\n for (Entry entry : Thread.getAllStackTraces().entrySet()) {\n C0562j.m756b(\"Thread: \" + ((Thread) entry.getKey()).toString());\n for (StackTraceElement stackTraceElement : (StackTraceElement[]) entry.getValue()) {\n C0562j.m756b(stackTraceElement.toString());\n }\n C0562j.m756b(\"----\");\n }\n }",
"public static void main(String[] args) {\n Thread thread = new Thread(\"New Thread\") {\n public void run(){\n System.out.println(\"run by: \" + getName());\n }\n };\n\n thread.start();\n System.out.println(thread.getName());\n\n }",
"public String getTraceId() {\n return traceId;\n }",
"private String getCallerInfo() {\n Optional<StackWalker.StackFrame> frame = new CallerFinder().get();\n if (frame.isPresent()) {\n return frame.get().getClassName() + \" \" + frame.get().getMethodName();\n } else {\n return name;\n }\n }",
"@Override\n\tpublic String getSymbolName()\n\t{\n\t\tVariableDeclarationContext ctx = getContext();\n\t\tNameContextExt nameContextExt = (NameContextExt)getExtendedContext(ctx.name());\n\t\treturn nameContextExt.getFormattedText();\n\t}",
"public Thread getThread();",
"public long threadId();",
"public String toString() {\n StringBuffer sb = new StringBuffer();\n\n // Print the connection ID\n sb.append(\"id=\" + connId + \", \");\n\n // Print the thread information\n if (threadName != null) {\n sb.append(\"thread=\" + threadName + \" (\" + threadId + \")\");\n } else {\n sb.append(\"thread=\" + threadId);\n }\n\n return sb.toString();\n }",
"String process_name () throws BaseException;",
"@Override public String getToolTipText(MouseEvent evt)\n{\n String rslt = null;\n\n int pos = evt.getX();\n int minpos = getX() + 16;\n int maxpos = getX() + getWidth() - 16;\n double relpos = (pos - minpos);\n if (relpos < 0) relpos = 0;\n relpos /= (maxpos - minpos);\n double timer = getMinimum() + relpos * (getMaximum() - getMinimum()) + 0.5;\n long time = (long) timer;\n if (time > getMaximum()) time = getMaximum();\n\n BicexEvaluationContext ctx = for_bubble.getExecution().getCurrentContext();\n if (ctx == null) return null;\n\n BicexValue bv = ctx.getValues().get(\"*LINE*\");\n List<Integer> times = bv.getTimeChanges();\n String line = null;\n for (Integer t : times) {\n if (t <= time) {\n\t line = bv.getStringValue(t+1);\n\t}\n else break;\n }\n if (line != null) rslt = \"Line \" + line;\n\n if (ctx != null) {\n String what = \"In\";\n if (ctx.getInnerContexts() != null) {\n\t for (BicexEvaluationContext sctx : ctx.getInnerContexts()) {\n\t if (sctx.getStartTime() <= time && sctx.getEndTime() >= time) {\n\t ctx = sctx;\n\t what = \"Calling\";\n\t break;\n\t }\n\t }\n }\n if (rslt == null) rslt = what + \" \" + ctx.getMethod();\n else rslt += \" \" + what + \" \" + ctx.getShortName();\n }\n\n return rslt;\n}",
"@DISPID(73)\r\n\t// = 0x49. The runtime will prefer the VTID if present\r\n\t@VTID(71)\r\n\tjava.lang.String name();",
"public String getContext() {\n\t\treturn this.getClass().getSimpleName();\n\t}",
"public String getName()\r\n {\r\n return screenName;\r\n }",
"public String call() {\n\t\treturn Thread.currentThread().getName() + \" executing ...\" + count.incrementAndGet(); // Consumer\n\t}",
"public java.lang.String getCallingNameGenericString() {\r\n return callingNameGenericString;\r\n }",
"@DISPID(9)\r\n\t// = 0x9. The runtime will prefer the VTID if present\r\n\t@VTID(15)\r\n\tjava.lang.String name();",
"@Override\n public void run(){\n System.out.println(\"we are in thread : \" + this.getName());\n }",
"String displayName();",
"String displayName();",
"@Override\n public String getTrace() {\n return trace;\n }",
"public String getTraceInformation() {\n\t\treturn (traceInformation);\n\t}",
"private static void print_thread_info(PrintStream out, Thread t, String indent) {\n\tif (t == null) return;\n\tout.println(indent + \"Thread: \" + t.getName() + \" Priority: \" +\n\t\t t.getPriority() + (t.isDaemon()?\"Daemon\":\"Not Daemon\") +\n\t\t (t.isAlive()?\" Alive\":\" Not Alive\"));\n }",
"public abstract int getThreadNumber();",
"public static String collect(Thread t) {\r\n StringBuilder result = new StringBuilder();\r\n if (t != null) {\r\n\r\n result.append(\"id=\").append(t.getId()).append(\"\\n\");\r\n result.append(\"name=\").append(t.getName()).append(\"\\n\");\r\n result.append(\"priority=\").append(t.getPriority()).append(\"\\n\");\r\n if (t.getThreadGroup() != null) {\r\n result.append(\"groupName=\").append(t.getThreadGroup().getName()).append(\"\\n\");\r\n }\r\n } else {\r\n result.append(\"No broken thread, this might be a silent exception.\");\r\n }\r\n return result.toString();\r\n }",
"@ThreadConfined(type = ThreadConfined.ThreadType.AWT)\n String getSelectedTabName() {\n return selectedTabName;\n }",
"public String getName()\n {\n return m_functionName;\n }",
"@VTID(7)\r\n java.lang.String name();",
"public String getName()\r\n {\r\n return taskName;\r\n }",
"public String screenName() {\n return screenName;\n }",
"public String getName ( ) {\n\t\treturn extract ( handle -> handle.getName ( ) );\n\t}",
"public String getName() {\n return this.lineName;\n }",
"@DISPID(5)\n\t// = 0x5. The runtime will prefer the VTID if present\n\t@VTID(11)\n\tjava.lang.String name();",
"private Constants$TraceNames() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.mName = var3_1;\n }",
"public static void printName() {\n\t\t\n\t\tSystem.out.println(staName); \t// static only accepts static\n\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(Thread.currentThread().getName()+new Date().toLocaleString());\r\n\t\t\t}",
"@Override\n\tpublic String call() throws Exception {\n\t\t\n\t\tString name = Thread.currentThread().getName();\n\t\tSystem.out.println(name + \" is running...\");\n\t\tlong s = getRandomSleep();\n\t\tSystem.out.println(name + \" will sleep \" + s);\n\t\tThread.sleep(s);\n\t\treturn name + \" \"+runtimeFmt();\n\t}",
"private String getTaskName() {\n \n \t\treturn this.environment.getTaskName() + \" (\" + (this.environment.getIndexInSubtaskGroup() + 1) + \"/\"\n \t\t\t+ this.environment.getCurrentNumberOfSubtasks() + \")\";\n \t}",
"@Override\n public String getName() {\n return this.getClass().getSimpleName();\n }",
"public ThreadLattice determineThread(SInvokeNode sInvokeNode){\n ThreadLattice result = ThreadLatticeManager.getUNDETERMINED();\n CInvokeNode cInvokeNode = (CInvokeNode) sInvokeNode.getSource();\n UInvokeNode uInvokeNode = (UInvokeNode) cInvokeNode.getSource();\n if(uInvokeNode == null){\n LOG.logln(String.format(\"Why UInvokeNode of %s is null? Thread CaSFGenerator\", cInvokeNode), LOG.ERROR);\n return result;\n }\n Stmt stmt = uInvokeNode.getSource();\n if(stmt == null)\n return result;\n if(!stmt.containsInvokeExpr() || !(stmt.getInvokeExpr() instanceof InstanceInvokeExpr))\n return result;\n InstanceInvokeExpr instanceInvokeExpr = (InstanceInvokeExpr) stmt.getInvokeExpr();\n Local base = (Local) instanceInvokeExpr.getBase();\n if (Util.v().isSubclass(base.getType(), \"java.util.TimerTask\")){\n result = ThreadLatticeManager.getUNKNOWNThreadLattice();\n }\n return result;\n }",
"@Override\n\tpublic void run() {\n\t\tSystem.out.println(\" \"+Thread.currentThread().getName());\n\t}",
"ActivityDiagram.Thread getNestedThread();",
"public static void trace(Object arg0) {\n\n MDC.put(classNameProp, \"\");\n debugLogger.trace(\"{}\", arg0);\n }",
"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 toString ()\n {\n return \"function:\" + _vname;\n }",
"@Override\n\tpublic void getName() {\n\t\tSystem.out.println(\"TESLA\");\n\t}",
"String intermediateSystemName();",
"@Override\n\tpublic void trace(Supplier<?> msgSupplier) {\n\n\t}",
"private StringBuilder createThreadDump() {\n StringBuilder string = new StringBuilder();\n string.append(\"------------------------------\\n\");\n //\n string.append(\"Entire Thread Dump:\\n\");\n ThreadInfo[] threads = ManagementFactory.getThreadMXBean().dumpAllThreads(true, true);\n\n for (ThreadInfo thread : threads) {\n writeThreadToStringBuilder(thread, string);\n }\n\n string.append(\"------------------------------\\n\");\n\n return string;\n }"
] | [
"0.7102794",
"0.66179633",
"0.64969426",
"0.64751506",
"0.62569463",
"0.6002296",
"0.60017794",
"0.59510595",
"0.5642172",
"0.56358683",
"0.5564901",
"0.55187327",
"0.54961514",
"0.5474387",
"0.54658395",
"0.5378409",
"0.5347777",
"0.53313357",
"0.52804065",
"0.52319837",
"0.5222313",
"0.520089",
"0.5163354",
"0.5143945",
"0.5134987",
"0.51335514",
"0.51335514",
"0.5097647",
"0.50770956",
"0.50620496",
"0.5061615",
"0.5053636",
"0.50341505",
"0.50050545",
"0.50050545",
"0.49889627",
"0.49757165",
"0.49738184",
"0.49690464",
"0.49592885",
"0.4935706",
"0.49341694",
"0.49341694",
"0.4926342",
"0.4916974",
"0.4901622",
"0.48995954",
"0.4896991",
"0.48891085",
"0.4888295",
"0.4882618",
"0.48593652",
"0.48585302",
"0.48522732",
"0.48345983",
"0.4830793",
"0.48264045",
"0.48234558",
"0.48192918",
"0.4818111",
"0.4816913",
"0.4814647",
"0.48133624",
"0.47980782",
"0.47928327",
"0.4783338",
"0.47795326",
"0.47758627",
"0.4767384",
"0.47528124",
"0.47528124",
"0.4745184",
"0.47449142",
"0.47380453",
"0.47361428",
"0.47308874",
"0.47229517",
"0.47195616",
"0.47148776",
"0.4706478",
"0.47063053",
"0.47053987",
"0.47047594",
"0.4696547",
"0.46863446",
"0.46690142",
"0.46664006",
"0.46659383",
"0.46598536",
"0.4659208",
"0.4657956",
"0.46578434",
"0.46554947",
"0.46529675",
"0.46483094",
"0.4641579",
"0.46391127",
"0.4638968",
"0.46361303",
"0.4633325"
] | 0.8645438 | 0 |
Helper binding method for function: inputMachineType. | public static final SourceModel.Expr inputMachineType(SourceModel.Expr jMachineType) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.inputMachineType), jMachineType});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"MachineType getType();",
"java.lang.String getMachineType();",
"public IInputType[] getInputTypes();",
"@Override final protected Class<?>[] getInputTypes() { return this.InputTypes; }",
"public static final SourceModel.Expr inputMachineTypeFromJObject(SourceModel.Expr jMachineType) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.inputMachineTypeFromJObject), jMachineType});\n\t\t}",
"com.google.protobuf.ByteString getMachineTypeBytes();",
"com.indosat.eai.catalist.standardInputOutput.DummyInputType getInput();",
"public IInputType getPrimaryInputType();",
"public String getInputType() {\n\t\treturn StringUtils.upperCase(props.getProperty(ARGUMENT_INPUT_TYPE, INPUT_TYPE_XLS));\n\t}",
"public IInputType getInputType(String inputExtension);",
"boolean hasMachineType();",
"public MachineType getMachineType() {\n return machineType;\n }",
"private ScalarEnum getInputType(final String inputType) {\n String temp = inputType.replaceAll(\"-\", \"_\");\n INPUT_TYPE answer = Arrays.stream(\n INPUT_TYPE.values()\n )\n .filter(value -> value.name().equals(temp))\n .findFirst()\n .orElse(INPUT_TYPE.unknown);\n return answer.getScalar();\n }",
"InputsType getInputs();",
"@Override\n public void inputTypeChange(ModelInputTypes m) {\n \n }",
"public com.flexnet.opsembedded.webservices.DeviceMachineTypeQueryType getMachineType() {\n return machineType;\n }",
"public void setInputSystemType(int inputSystemType) {\n\t\tthis.inputSystemType = inputSystemType;\n\t}",
"private void getUserTypeChoice() {\n mTypeInput = \"(\";\n if (mBinding.chipApartment.isChecked()) {\n if (!mTypeInput.equals(\"(\"))\n mTypeInput += \", \";\n mTypeInput = mTypeInput + \"'Apartment'\";\n }\n if (mBinding.chipLoft.isChecked()) {\n if (!mTypeInput.equals(\"(\"))\n mTypeInput += \", \";\n mTypeInput += \"'Loft'\";\n }\n if (mBinding.chipHouse.isChecked()) {\n if (!mTypeInput.equals(\"(\"))\n mTypeInput += \", \";\n mTypeInput += \"'House'\";\n }\n if (mBinding.chipVilla.isChecked()) {\n if (!mTypeInput.equals(\"(\"))\n mTypeInput += \", \";\n mTypeInput += \"'Villa'\";\n }\n if (mBinding.chipManor.isChecked()) {\n if (!mTypeInput.equals(\"(\"))\n mTypeInput += \", \";\n mTypeInput += \"'Manor'\";\n }\n mTypeInput += \")\";\n }",
"@Override\n\tpublic TypeName[] getInputNames()\n\t{\n\t\tTypeName[] inputNames = new TypeName[1];\n\t\tinputNames[0] = new TypeName(IMAGE, \"Image\");\n\t\treturn inputNames;\n\t}",
"public abstract Object getInput ();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"public IInputType getInputTypeById(String id);",
"protected void validateType(StateVariable stateVariable, Class type) throws LocalServiceBindingException {\n/* 306 */ Datatype.Default expectedDefaultMapping = ModelUtil.isStringConvertibleType(getStringConvertibleTypes(), type) ? Datatype.Default.STRING : Datatype.Default.getByJavaType(type);\n/* */ \n/* 308 */ log.finer(\"Expecting '\" + stateVariable + \"' to match default mapping: \" + expectedDefaultMapping);\n/* */ \n/* 310 */ if (expectedDefaultMapping != null && \n/* 311 */ !stateVariable.getTypeDetails().getDatatype().isHandlingJavaType(expectedDefaultMapping.getJavaType()))\n/* */ {\n/* */ \n/* 314 */ throw new LocalServiceBindingException(\"State variable '\" + stateVariable + \"' datatype can't handle action \" + \"argument's Java type (change one): \" + expectedDefaultMapping\n/* */ \n/* 316 */ .getJavaType());\n/* */ }\n/* */ \n/* 319 */ if (expectedDefaultMapping == null && stateVariable.getTypeDetails().getDatatype().getBuiltin() != null) {\n/* 320 */ throw new LocalServiceBindingException(\"State variable '\" + stateVariable + \"' should be custom datatype \" + \"(action argument type is unknown Java type): \" + type\n/* */ \n/* 322 */ .getSimpleName());\n/* */ }\n/* */ \n/* */ \n/* 326 */ log.finer(\"State variable matches required argument datatype (or can't be validated because it is custom)\");\n/* */ }",
"IInputType getEditableInputType(IInputType base);",
"com.indosat.eai.catalist.standardInputOutput.DummyInputType addNewInput();",
"InputObjectTypeDefinition createInputObjectTypeDefinition();",
"private void updateEditorInputTypes() {\n IEditorPart editorPart = workBenchPart.getSite().getWorkbenchWindow().getActivePage().getActiveEditor();\n if(editorPart instanceof DataMapperDiagramEditor) {\n if(SCHEMA_TYPE_INPUT.equals(this.schemaType)) {\n ((DataMapperDiagramEditor)editorPart).setInputSchemaType(schemaTypeCombo.getText());\n } else if (SCHEMA_TYPE_OUTPUT.equals(this.schemaType)){\n ((DataMapperDiagramEditor)editorPart).setOutputSchemaType(schemaTypeCombo.getText());\n }\n }\n }",
"public static final SourceModel.Expr debug_getMachineType(SourceModel.Expr calValue) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.debug_getMachineType), calValue});\n\t\t}",
"static int type_of_in(String passed){\n\t\treturn 1;\n\t}",
"Type getHtmlInputFieldType();",
"private static native int getInputTypeForHandle(long pointer, long controllerHandle);",
"void setInput(com.indosat.eai.catalist.standardInputOutput.DummyInputType input);",
"public abstract void newPromptType(long ms, PromptType type);",
"public interface IwInput extends IwNode {\r\n\tIwCustomizableNode getIwInputProcessingNode();\r\n\tvoid setIwInputProcessingNode(IwCustomizableNode iwInputProcessingNode);\r\n\tvoid explore(IwStep currentStep);\r\n\t\r\n\tram.Class getRamInputData();\r\n\tvoid setRamInputData(ram.Class ramInputData);\r\n}",
"public void setInputType(int inputType) {\n/* 1759 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"private boolean checkTypes(Table thisTable, Hashtable<String, Object> inputColNameValue) throws BPlusEngineException {\n Enumeration<String> colNameValue = inputColNameValue.keys();\n Hashtable<String, String> tableColNameType = thisTable.colNameType;\n while (colNameValue.hasMoreElements()) {\n String currInColName = colNameValue.nextElement();\n String inputType = (String) tableColNameType.get(currInColName);\n Object inObject = inputColNameValue.get(currInColName);\n if (!switchTypes(inputType, inObject)) {\n\t\t\t\treturn false;\n\t\t\t}\n }\n return true;\n }",
"@Override\n public String getFunctionName() {\n return \"internalChoice\";\n }",
"StateMachineType createStateMachineType();",
"InputValueDefinition createInputValueDefinition();",
"Input createInput();",
"public String type();",
"public abstract TypeSerializer<IN> getInputTypeSerializer();",
"abstract public Type type();",
"public abstract KnockType getKnockType();",
"SourceType sourceType();",
"String provideType();",
"public int getInputType() {\n/* 1743 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Specify the input format.\")\n @JsonProperty(JSON_PROPERTY_INPUT)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public InputEnum getInput() {\n return input;\n }",
"public RecognizeInputTypeInternal getRecognizeInputType() {\n return this.recognizeInputType;\n }",
"@Override abstract public String type();",
"public String[] getInputTypes() {\n\t\tString[] types = {\"ncsa.d2k.modules.projects.mbabbar.optimize.ga.IGANsgaPopulation\"};\n\t\treturn types;\n\t}",
"int getPlaceholderTypeValue();",
"public MachineTypeId getMachineTypeId() {\n return machineTypeId;\n }",
"public void setMachineType(com.flexnet.opsembedded.webservices.DeviceMachineTypeQueryType machineType) {\n this.machineType = machineType;\n }",
"public T caseInput(Input object) {\n\t\treturn null;\n\t}",
"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 T caseInputInterface(InputInterface object)\n {\n return null;\n }"
] | [
"0.6572323",
"0.65385526",
"0.60818064",
"0.6060549",
"0.58987075",
"0.5761566",
"0.57220715",
"0.5695889",
"0.5653232",
"0.5651242",
"0.5636268",
"0.5613717",
"0.5605001",
"0.55631083",
"0.53744596",
"0.5291722",
"0.5280911",
"0.5211612",
"0.51972526",
"0.5181559",
"0.51755065",
"0.51755065",
"0.51755065",
"0.51755065",
"0.51755065",
"0.51755065",
"0.51755065",
"0.51755065",
"0.51755065",
"0.51755065",
"0.51755065",
"0.51755065",
"0.51755065",
"0.51755065",
"0.51755065",
"0.51755065",
"0.51755065",
"0.51755065",
"0.51755065",
"0.51755065",
"0.5173869",
"0.51549786",
"0.5138051",
"0.5135069",
"0.5121143",
"0.5089732",
"0.5075411",
"0.5075239",
"0.5063386",
"0.505086",
"0.5031595",
"0.5030336",
"0.5023582",
"0.5021947",
"0.50110036",
"0.50060016",
"0.500299",
"0.49976024",
"0.49960637",
"0.49920258",
"0.49617594",
"0.49594927",
"0.49535164",
"0.49522597",
"0.49420246",
"0.49329832",
"0.4931478",
"0.49194154",
"0.49080357",
"0.4897927",
"0.48581478",
"0.48444924",
"0.48412514",
"0.4835069",
"0.4832781",
"0.4832781",
"0.4832781",
"0.4832781",
"0.4832781",
"0.4832781",
"0.4832781",
"0.4832781",
"0.4832781",
"0.4832781",
"0.4832781",
"0.4832781",
"0.4832781",
"0.4832781",
"0.4832781",
"0.4832781",
"0.4832781",
"0.4832781",
"0.4832781",
"0.4832781",
"0.4832781",
"0.4832781",
"0.4832781",
"0.4832781",
"0.4832781",
"0.48228928"
] | 0.68949103 | 0 |
Helper binding method for function: inputMachineTypeFromJObject. | public static final SourceModel.Expr inputMachineTypeFromJObject(SourceModel.Expr jMachineType) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.inputMachineTypeFromJObject), jMachineType});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static final SourceModel.Expr inputMachineType(SourceModel.Expr jMachineType) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.inputMachineType), jMachineType});\n\t\t}",
"public static final SourceModel.Expr outputMachineTypeToJObject(SourceModel.Expr machineType) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.outputMachineTypeToJObject), machineType});\n\t\t}",
"java.lang.String getMachineType();",
"public Object elConvertType(Object value);",
"MachineType getType();",
"public IInputType getInputType(String inputExtension);",
"@SuppressWarnings(\"all\")\n static Object aiJValue(final Object input, final Class<?> type) {\n return aiValue(input, type, Value::aiJType, (sourceType, targetType) -> aiExecute(sourceType, targetType, input,\n (source) -> {\n /*\n * If String, check whether it's date\n */\n if (String.class != type && Ut.isDate(source.toString())) {\n /*\n * String to\n */\n return V.vInstant().to(source, sourceType);\n } else {\n return input.toString();\n }\n }));\n }",
"InputObjectTypeDefinition createInputObjectTypeDefinition();",
"public void fromNative() {\n fromNative(nativeType);\n }",
"public abstract TypeSerializer<IN> getInputTypeSerializer();",
"public String getInputType() {\n\t\treturn StringUtils.upperCase(props.getProperty(ARGUMENT_INPUT_TYPE, INPUT_TYPE_XLS));\n\t}",
"public IInputType[] getInputTypes();",
"com.google.protobuf.ByteString getMachineTypeBytes();",
"@Test\n public void readSystemObjectClassAppointmentRequest() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"AppointmentRequest\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return AppointmentRequest properly\", object.getClass(), actual.getClass());\n }",
"@JsonCreator\n public static JobInputType fromString(String name) {\n return fromString(name, JobInputType.class);\n }",
"public IInputType getInputTypeById(String id);",
"public abstract JType unboxify();",
"@Test\n public void readSystemObjectClassMedicineOrderRequest() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"MedicineOrderRequest\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return MedicineOrderRequest properly\", object.getClass(), actual.getClass());\n }",
"private static native int getInputTypeForHandle(long pointer, long controllerHandle);",
"@JsProperty(name = \"msType\")\n public native String getMsType();",
"ValueType getJsonValueType();",
"@Override\n\tpublic JavaType getInputType(TypeFactory typeFactory) {\n\t\treturn null;\n\t}",
"@Test\n public void readSystemObjectClassAccCrRequest() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"AccountCreationRequest\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return AccountCreationRequest properly\", object.getClass(), actual.getClass());\n }",
"@Test\n public void readSystemObjectClassMessage() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"Message\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Message properly\", object.getClass(), actual.getClass());\n }",
"public JType getType()\n\t{ return jType; }",
"@Override final protected Class<?>[] getInputTypes() { return this.InputTypes; }",
"public abstract jq_Type getDeclaredType();",
"public IInputType getPrimaryInputType();",
"Coding getType();",
"<T> T fromJson(String source, JavaType type);",
"public abstract JavaType resolveType(java.lang.reflect.Type jdkType);",
"protected abstract Object toObject(InputStream inputStream, Type targetType) throws BeanConversionException;",
"public T caseInputModel(InputModel object) {\n\t\treturn null;\n\t}",
"Object transform(String cellValue, Type toValueType) throws Throwable;",
"@Test\n public void readSystemObjectClassMedicine() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"Medicine\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Medicine properly\", object.getClass(), actual.getClass());\n }",
"private void updateEditorInputTypes() {\n IEditorPart editorPart = workBenchPart.getSite().getWorkbenchWindow().getActivePage().getActiveEditor();\n if(editorPart instanceof DataMapperDiagramEditor) {\n if(SCHEMA_TYPE_INPUT.equals(this.schemaType)) {\n ((DataMapperDiagramEditor)editorPart).setInputSchemaType(schemaTypeCombo.getText());\n } else if (SCHEMA_TYPE_OUTPUT.equals(this.schemaType)){\n ((DataMapperDiagramEditor)editorPart).setOutputSchemaType(schemaTypeCombo.getText());\n }\n }\n }",
"public interface IObjectInput {\r\n\r\n\t/**\r\n\t * Reads a boolean.\r\n\t *\r\n\t * @return The next boolean.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic boolean readBoolean() throws IOException;\r\n\r\n\t/**\r\n\t * Reads a char.\r\n\t *\r\n\t * @return The next char.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic char readChar() throws IOException;\r\n\r\n\t/**\r\n\t * Reads a 32 bit integer.\r\n\t *\r\n\t * @return The next 32 bit integer.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic int readInt() throws IOException;\r\n\r\n\t/**\r\n\t * Reads a 64 bit integer.\r\n\t *\r\n\t * @return The next 64 bit integer.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic long readLong() throws IOException;\r\n\r\n\t/**\r\n\t * Reads a 16 bit integer.\r\n\t *\r\n\t * @return The next 16 bit integer.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic short readShort() throws IOException;\r\n\r\n\t/**\r\n\t * Reads a utf encoded string.\r\n\t *\r\n\t * @return The next utf encoded string.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic String readUTF() throws IOException;\r\n\t\r\n\t/**\r\n\t * Reads a byte.\r\n\t *\r\n\t * @return The next byte.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic byte readByte() throws IOException;\r\n\r\n\t/**\r\n\t * Reads a number of bytes and writes them into the buffer.\r\n\t * The number of bytes read is defined by the lenght of the\r\n\t * buffer.\r\n\t * \r\n\t * @param buffer The buffer to fill.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic void readBytes(byte[] buffer) throws IOException;\r\n\t\r\n\t/**\r\n\t * Reads a number of bytes and writes them into the buffer\r\n\t * starting from the specified offset. The number of bytes\r\n\t * read is defined by the length parameter.\r\n\t * \r\n\t * @param buffer The buffer to fill.\r\n\t * @param offset The offset to start from.\r\n\t * @param length The number of bytes to fill.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic void readBytes(byte[] buffer, int offset, int length) throws IOException;\r\n\r\n\t/**\r\n\t * Reads an object.\r\n\t * \r\n\t * @return The object that has been read.\r\n\t * @throws IOException Thrown if a problem occurs.\r\n\t */\r\n\tpublic Object readObject() throws IOException;\r\n\r\n}",
"IJvmTypeReferenceProvider getTypeProvider();",
"private TypeFieldModel parseField(JsonNode field, SchemaModel schemaModel) {\n TypeFieldModel answer = null;\n String type = getTextProperty(field, DIALOG_FIELD_TYPE);\n String inputType = getTextProperty(field, DIALOG_FIELD_INPUT_TYPE);\n String model = getTextProperty(field, DIALOG_FIELD_MODEL);\n if (type == null || model == null) {\n logger.warn(\"Field: {} does not have a property 'type' or 'model' -> ignored\", field);\n } else {\n TYPE aType = getType(type);\n switch (aType) {\n case input:\n answer = new TypeFieldModel()\n .setName(model)\n .setType(getInputType(inputType));\n break;\n case material_textarea:\n case pathbrowser:\n case object_definition_reference:\n case texteditor:\n case material_radios:\n case material_select:\n answer = new TypeFieldModel()\n .setName(model)\n .setType(ScalarEnum.String);\n break;\n case materialswitch:\n answer = new TypeFieldModel()\n .setName(model)\n .setType(ScalarEnum.Boolean);\n break;\n case collection:\n TypeModel collectionType = null;\n JsonNode fields = field.get(DIALOG_FIELDS_PROPERTY);\n if(fields.isArray()) {\n collectionType = new TypeModel(SUB_COMPONENT_TYPE, model, null);\n Iterator<JsonNode> i = fields.iterator();\n while(i.hasNext()) {\n JsonNode collectionField = i.next();\n TypeFieldModel typeField = parseField(collectionField, schemaModel);\n if(typeField != null) {\n collectionType.addField(typeField);\n }\n }\n schemaModel.addType(collectionType);\n }\n answer = new TypeFieldModel()\n .setName(model)\n .setArray(true);\n if(collectionType != null) {\n answer.setCustomType(collectionType);\n } else {\n answer.setType(ScalarEnum.String);\n }\n break;\n default:\n logger.warn(\"Unknown Type of Field: {}\", field);\n }\n }\n return answer;\n }",
"public static final SourceModel.Expr jMachineType_G() {\n\t\t\treturn SourceModel.Expr.Var.make(Functions.jMachineType_G);\n\t\t}",
"public T caseInputInterface(InputInterface object)\n {\n return null;\n }",
"@Test\n public void readSystemObjectClassAppointment() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"Appointment\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return Appointment properly\", object.getClass(), actual.getClass());\n }",
"public T caseInput(Input object) {\n\t\treturn null;\n\t}",
"Type getHtmlInputFieldType();",
"String getModeledType(Object elementID) throws Exception;",
"public Integer getJtype() {\n return jtype;\n }",
"private String getNativeNameForJavaType(TypeName typeName) {\n\n if (isNumber(typeName)) {\n return \"Number\";\n } else if (isBoolean(typeName)) {\n return \"Boolean\";\n } else if (isString(typeName)) {\n return \"String\";\n } else if (isArray(typeName)) {\n return \"Array\";\n } else {\n return \"Object\";\n }\n }",
"@Test\n public void readSystemObjectClassDoctorFeedback() throws UnsupportedEncodingException, IOException {\n ISystemObject object = Factory.createObject(\"DoctorFeedback\");\n testJson = gson.toJson(object);\n\n //convert string to input stream\n InputStream inputStream = new ByteArrayInputStream(testJson.getBytes(Charset.forName(\"UTF-8\")));\n //convert inputstream to jsonReader\n JsonReader reader = new JsonReader(new InputStreamReader(inputStream, \"UTF-8\"));\n\n //read json string into resultant\n ISystemObject actual = DataHandler.readSystemObjectClass(reader);\n\n //compare results \n assertEquals(\"Fails to return DoctorFeedback properly\", object.getClass(), actual.getClass());\n }",
"com.indosat.eai.catalist.standardInputOutput.DummyInputType getInput();",
"public ObjectType getJVMType();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"@JsProperty(name = \"type\")\n public native String getType();",
"Object convert(Object source, TypeToken<?> targetTypeToken);",
"public Object getTypeValueForInternalValue(String value) {\n\t\tObject r = null;\n\t\tString prefix = value.split(getValueConcatenator())[0] + getValueConcatenator();\n\t\tEntityObject eo = getEntityObject(prefix);\n\t\tif (eo!=null) {\n\t\t\tr = eo.getTypeValueForInternalValue(value);\n\t\t}\n\t\treturn r;\n\t}",
"public static Input parse(javax.xml.stream.XMLStreamReader reader)\r\n throws java.lang.Exception {\r\n Input object = new Input();\r\n\r\n int event;\r\n javax.xml.namespace.QName currentQName = null;\r\n java.lang.String nillableValue = null;\r\n java.lang.String prefix = \"\";\r\n java.lang.String namespaceuri = \"\";\r\n\r\n try {\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n currentQName = reader.getName();\r\n\r\n if (reader.getAttributeValue(\r\n \"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\") != null) {\r\n java.lang.String fullTypeName = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"type\");\r\n\r\n if (fullTypeName != null) {\r\n java.lang.String nsPrefix = null;\r\n\r\n if (fullTypeName.indexOf(\":\") > -1) {\r\n nsPrefix = fullTypeName.substring(0,\r\n fullTypeName.indexOf(\":\"));\r\n }\r\n\r\n nsPrefix = (nsPrefix == null) ? \"\" : nsPrefix;\r\n\r\n java.lang.String type = fullTypeName.substring(fullTypeName.indexOf(\r\n \":\") + 1);\r\n\r\n if (!\"Input\".equals(type)) {\r\n //find namespace for the prefix\r\n java.lang.String nsUri = reader.getNamespaceContext()\r\n .getNamespaceURI(nsPrefix);\r\n\r\n return (Input) ExtensionMapper.getTypeObject(nsUri,\r\n type, reader);\r\n }\r\n }\r\n }\r\n\r\n // Note all attributes that were handled. Used to differ normal attributes\r\n // from anyAttributes.\r\n java.util.Vector handledAttributes = new java.util.Vector();\r\n\r\n reader.next();\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"SourceName\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"SourceName\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"SourceName\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setSourceName(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"OpNum\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"OpNum\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"OpNum\" + \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setOpNum(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"OpControl\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"OpControl\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"OpControl\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setOpControl(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"OpData\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"OpData\").equals(\r\n reader.getName())) {\r\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\r\n \"nil\");\r\n\r\n if (\"true\".equals(nillableValue) ||\r\n \"1\".equals(nillableValue)) {\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"The element: \" + \"OpData\" +\r\n \" cannot be null\");\r\n }\r\n\r\n java.lang.String content = reader.getElementText();\r\n\r\n object.setOpData(org.apache.axis2.databinding.utils.ConverterUtil.convertToString(\r\n content));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if ((reader.isStartElement() &&\r\n new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"Picture\").equals(\r\n reader.getName())) ||\r\n new javax.xml.namespace.QName(\"\", \"Picture\").equals(\r\n reader.getName())) {\r\n object.setPicture(org.apache.axiom.util.stax.XMLStreamReaderUtils.getDataHandlerFromElement(\r\n reader));\r\n\r\n reader.next();\r\n } // End of if for expected property start element\r\n\r\n else {\r\n }\r\n\r\n while (!reader.isStartElement() && !reader.isEndElement())\r\n reader.next();\r\n\r\n if (reader.isStartElement()) {\r\n // 2 - A start element we are not expecting indicates a trailing invalid property\r\n throw new org.apache.axis2.databinding.ADBException(\r\n \"Unexpected subelement \" + reader.getName());\r\n }\r\n } catch (javax.xml.stream.XMLStreamException e) {\r\n throw new java.lang.Exception(e);\r\n }\r\n\r\n return object;\r\n }",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"java.lang.String getType();",
"private Object getTypeObjectPair() throws MathLinkException, NumberRangeException {\n Object result = null;\n int type = this.getInteger();\n if (type % -17 == -15) {\n type = -7 + -17 * (type / -17);\n } else if (type % -17 == -16) {\n type = -8 + -17 * (type / -17);\n }\n switch (type) {\n case -5: {\n result = new Integer(this.getInteger());\n break;\n }\n case -6: {\n result = new Long(this.getLongInteger());\n break;\n }\n case -4: {\n int i = this.getInteger();\n if (i < -32768 || i > 32767) {\n throw new NumberRangeException(i, \"short\");\n }\n result = new Short((short)i);\n break;\n }\n case -2: {\n int i = this.getInteger();\n if (i < -128 || i > 127) {\n throw new NumberRangeException(i, \"byte\");\n }\n result = new Byte((byte)i);\n break;\n }\n case -3: {\n int i = this.getInteger();\n if (i < 0 || i > 65535) {\n throw new NumberRangeException(i, \"char\");\n }\n result = new Character((char)i);\n break;\n }\n case -15: \n case -7: {\n double d = this.getDouble();\n if (d < -3.4028234663852886E38 || d > 3.4028234663852886E38) {\n throw new NumberRangeException(d, \"float\");\n }\n result = new Float((float)d);\n break;\n }\n case -16: \n case -8: {\n result = new Double(this.getDouble());\n break;\n }\n case -9: {\n int tok = this.getType();\n if (tok == 100000) {\n result = this.getObject();\n break;\n }\n result = this.getString();\n if (tok != 35 || !result.equals(\"Null\")) break;\n result = null;\n break;\n }\n case -1: {\n String s = this.getSymbol();\n if (s.equals(\"True\")) {\n result = Boolean.TRUE;\n break;\n }\n result = Boolean.FALSE;\n break;\n }\n case -13: {\n long mark = this.createMark();\n try {\n int tok = this.getNext();\n if (tok == 100000) {\n result = this.getObject();\n break;\n }\n if (tok == 35) {\n result = this.getSymbol();\n if (result.equals(\"Null\")) {\n result = null;\n break;\n }\n this.seekMark(mark);\n result = this.getComplex();\n break;\n }\n this.seekMark(mark);\n result = this.getComplex();\n }\n finally {\n this.destroyMark(mark);\n }\n }\n case -10: {\n long mark = this.createMark();\n try {\n int tok = this.getType();\n if (tok == 100000) {\n result = this.getObject();\n break;\n }\n if (tok == 35) {\n result = this.getSymbol();\n if (result.equals(\"Null\")) {\n result = null;\n break;\n }\n result = new BigInteger((String)result);\n break;\n }\n result = new BigInteger(this.getString());\n }\n finally {\n this.destroyMark(mark);\n }\n }\n case -11: {\n long mark = this.createMark();\n try {\n int tok = this.getType();\n if (tok == 100000) {\n result = this.getObject();\n break;\n }\n if (tok == 35) {\n result = this.getSymbol();\n if (result.equals(\"Null\")) {\n result = null;\n break;\n }\n result = Utils.bigDecimalFromString((String)result);\n break;\n }\n result = Utils.bigDecimalFromString(this.getString());\n }\n finally {\n this.destroyMark(mark);\n }\n }\n case -12: {\n long mark = this.createMark();\n try {\n int tok = this.getNext();\n if (tok == 100000 && (result = this.getObject()) != null) break;\n this.seekMark(mark);\n result = this.getExpr();\n }\n finally {\n this.destroyMark(mark);\n }\n }\n case -14: {\n result = this.getObject();\n break;\n }\n case -10000: {\n break;\n }\n default: {\n int tok = this.getNext();\n result = tok == 100000 || tok == 35 ? this.getObject() : (type > -34 ? this.getArray(type - -17, 1) : (type > -51 ? this.getArray(type - -34, 2) : (type > -68 ? this.getArray(type - -51, 3) : (type > -85 ? this.getArray(type - -68, 4) : this.getArray(type - -85, 5)))));\n }\n }\n return result;\n }",
"private ScalarEnum getInputType(final String inputType) {\n String temp = inputType.replaceAll(\"-\", \"_\");\n INPUT_TYPE answer = Arrays.stream(\n INPUT_TYPE.values()\n )\n .filter(value -> value.name().equals(temp))\n .findFirst()\n .orElse(INPUT_TYPE.unknown);\n return answer.getScalar();\n }",
"public String getType(JmmNode node) {\n switch (node.getKind()) {\n case \"Add\":\n case \"Sub\":\n case \"Mul\":\n case \"Div\":\n return \"int\";\n\n case \"LessThan\":\n case \"And\":\n case \"Not\":\n return \"boolean\";\n\n case \"Var\":\n return getVariableSymbol(node.get(\"name\")).getType().getName();\n default:\n return null;\n }\n }",
"String provideType();",
"public Object readInternal(Class<? extends Object> clazz, HttpInputMessage inputMessage) throws IOException {\n return this.conversionService.convert(this.stringHttpMessageConverter.readInternal(String.class, inputMessage), clazz);\n }",
"public VarTypeNative getFieldVarType();",
"private boolean checkTypes(Table thisTable, Hashtable<String, Object> inputColNameValue) throws BPlusEngineException {\n Enumeration<String> colNameValue = inputColNameValue.keys();\n Hashtable<String, String> tableColNameType = thisTable.colNameType;\n while (colNameValue.hasMoreElements()) {\n String currInColName = colNameValue.nextElement();\n String inputType = (String) tableColNameType.get(currInColName);\n Object inObject = inputColNameValue.get(currInColName);\n if (!switchTypes(inputType, inObject)) {\n\t\t\t\treturn false;\n\t\t\t}\n }\n return true;\n }",
"Object convertJavaValueToDBValue(Object value, Class<?> javaType);",
"private void initJavaType() { // FIXME move this logic to core module\n\t\tif (javaTypeMap == null) {\n\t\t\tjavaTypeMap = new TreeMap<String, List<String>>();\n\t\t}\n\t\tif (!javaTypeMap.containsKey(\"1\")) {\n\t\t\tList<String> list = new ArrayList<String>();\n\t\t\tlist.add(\"java.lang.String\");\n\t\t\tlist.add(\"java.sql.Date\");\n\t\t\tlist.add(\"java.sql.Time\");\n\t\t\tlist.add(\"java.sql.Timestamp\");\n\t\t\tlist.add(\"java.lang.Byte\");\n\t\t\tlist.add(\"java.lang.Short\");\n\t\t\tlist.add(\"java.lang.Integer\");\n\t\t\tlist.add(\"java.lang.Long\");\n\t\t\tlist.add(\"java.lang.Float\");\n\t\t\tlist.add(\"java.lang.Double\");\n\t\t\tlist.add(\"java.math.BigDecimal\");\n\t\t\tlist.add(\"byte\");\n\t\t\tlist.add(\"short\");\n\t\t\tlist.add(\"int\");\n\t\t\tlist.add(\"long\");\n\t\t\tlist.add(\"float\");\n\t\t\tlist.add(\"double\");\n\t\t\tjavaTypeMap.put(\"1\", list);\n\t\t}\n\t\tif (!javaTypeMap.containsKey(\"2\")) {\n\t\t\tList<String> list = new ArrayList<String>();\n\t\t\tlist.add(\"java.lang.Byte\");\n\t\t\tlist.add(\"java.lang.Short\");\n\t\t\tlist.add(\"java.lang.Integer\");\n\t\t\tlist.add(\"java.lang.Long\");\n\t\t\tlist.add(\"java.lang.Float\");\n\t\t\tlist.add(\"java.lang.Double\");\n\t\t\tlist.add(\"java.math.BigDecimal\");\n\t\t\tlist.add(\"java.lang.String\");\n\t\t\tlist.add(\"byte\");\n\t\t\tlist.add(\"short\");\n\t\t\tlist.add(\"int\");\n\t\t\tlist.add(\"long\");\n\t\t\tlist.add(\"float\");\n\t\t\tlist.add(\"double\");\n\t\t\tjavaTypeMap.put(\"2\", list);\n\t\t}\n\t\tif (!javaTypeMap.containsKey(\"3\")) {\n\t\t\tList<String> list = new ArrayList<String>();\n\t\t\tlist.add(\"java.sql.Date\");\n\t\t\tlist.add(\"java.sql.Time\");\n\t\t\tlist.add(\"java.sql.Timestamp\");\n\t\t\tlist.add(\"java.lang.String\");\n\t\t\tjavaTypeMap.put(\"3\", list);\n\t\t}\n\t\tif (!javaTypeMap.containsKey(\"4\")) {\n\t\t\tList<String> list = new ArrayList<String>();\n\t\t\tjavaTypeMap.put(\"4\", list);\n\t\t}\n\t\tif (!javaTypeMap.containsKey(\"5\")) {\n\t\t\tList<String> list = new ArrayList<String>();\n\t\t\tif (database != null) {\n\t\t\t\tString jdbcVersion = database.getDatabase().getServer().getJdbcDriverVersion();\n\t\t\t\tif (isAfterJdbc111(jdbcVersion)) {\n\t\t\t\t\tlist.add(\"cubrid.sql.CUBRIDOIDImpl\");\t\t\t\t\t\n\t\t\t\t} else { \n\t\t\t\t\tlist.add(\"cubrid.sql.CUBRIDOID\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlist.add(\"cubrid.sql.CUBRIDOID\");\n\t\t\t}\n\t\t\t\n\t\t\tjavaTypeMap.put(\"5\", list);\n\t\t}\n\t\tif (!javaTypeMap.containsKey(\"6\")) {\n\t\t\tList<String> list = new ArrayList<String>();\n\t\t\tlist.add(\"cubrid.jdbc.driver.CUBRIDResultSet\");\n\t\t\tjavaTypeMap.put(\"6\", list);\n\t\t}\n\t}",
"@JsProperty(name = \"msType\")\n public native void setMsType(String value);",
"@SuppressWarnings(\"all\")\n static Object aiValue(final Object input, final Class<?> type) {\n return aiValue(input, type, Value::aiType, (sourceType, targetType) -> aiExecute(sourceType, targetType, input,\n (source) -> {\n /*\n * If String, check whether it's date\n */\n if (String.class != type && Ut.isDate(source.toString())) {\n /*\n * String to\n */\n return V.vDate().to(source, sourceType);\n } else {\n return input.toString();\n }\n }));\n }",
"public interface IwInput extends IwNode {\r\n\tIwCustomizableNode getIwInputProcessingNode();\r\n\tvoid setIwInputProcessingNode(IwCustomizableNode iwInputProcessingNode);\r\n\tvoid explore(IwStep currentStep);\r\n\t\r\n\tram.Class getRamInputData();\r\n\tvoid setRamInputData(ram.Class ramInputData);\r\n}",
"protected void validateType(StateVariable stateVariable, Class type) throws LocalServiceBindingException {\n/* 306 */ Datatype.Default expectedDefaultMapping = ModelUtil.isStringConvertibleType(getStringConvertibleTypes(), type) ? Datatype.Default.STRING : Datatype.Default.getByJavaType(type);\n/* */ \n/* 308 */ log.finer(\"Expecting '\" + stateVariable + \"' to match default mapping: \" + expectedDefaultMapping);\n/* */ \n/* 310 */ if (expectedDefaultMapping != null && \n/* 311 */ !stateVariable.getTypeDetails().getDatatype().isHandlingJavaType(expectedDefaultMapping.getJavaType()))\n/* */ {\n/* */ \n/* 314 */ throw new LocalServiceBindingException(\"State variable '\" + stateVariable + \"' datatype can't handle action \" + \"argument's Java type (change one): \" + expectedDefaultMapping\n/* */ \n/* 316 */ .getJavaType());\n/* */ }\n/* */ \n/* 319 */ if (expectedDefaultMapping == null && stateVariable.getTypeDetails().getDatatype().getBuiltin() != null) {\n/* 320 */ throw new LocalServiceBindingException(\"State variable '\" + stateVariable + \"' should be custom datatype \" + \"(action argument type is unknown Java type): \" + type\n/* */ \n/* 322 */ .getSimpleName());\n/* */ }\n/* */ \n/* */ \n/* 326 */ log.finer(\"State variable matches required argument datatype (or can't be validated because it is custom)\");\n/* */ }"
] | [
"0.6688154",
"0.59040064",
"0.56743425",
"0.55006015",
"0.54932225",
"0.5467956",
"0.531633",
"0.52635676",
"0.522017",
"0.51942277",
"0.5181293",
"0.51054585",
"0.50364816",
"0.50345206",
"0.50087327",
"0.4986559",
"0.4983542",
"0.49763986",
"0.4937073",
"0.4926449",
"0.49204627",
"0.48956203",
"0.4893095",
"0.48806843",
"0.48790398",
"0.48722625",
"0.48671937",
"0.48625812",
"0.4826324",
"0.4825279",
"0.48180202",
"0.4817533",
"0.47993377",
"0.47965416",
"0.47897118",
"0.47760156",
"0.47753745",
"0.4775013",
"0.47715184",
"0.4763063",
"0.47483882",
"0.47368369",
"0.47155985",
"0.4709294",
"0.4699735",
"0.4676449",
"0.467383",
"0.4664551",
"0.4659503",
"0.46570766",
"0.4648545",
"0.4648545",
"0.4648545",
"0.4648545",
"0.4648545",
"0.4648545",
"0.4648545",
"0.4648545",
"0.4648545",
"0.4648545",
"0.4648545",
"0.4648545",
"0.4648545",
"0.4648545",
"0.4648545",
"0.4648545",
"0.4648545",
"0.4648545",
"0.4648545",
"0.4648545",
"0.4645087",
"0.4631974",
"0.46276656",
"0.46247032",
"0.4609183",
"0.4609183",
"0.4609183",
"0.4609183",
"0.4609183",
"0.4609183",
"0.4609183",
"0.4609183",
"0.4609183",
"0.4609183",
"0.4609183",
"0.4609183",
"0.4609183",
"0.46060252",
"0.4603836",
"0.4602573",
"0.46000132",
"0.45991307",
"0.45932347",
"0.45901144",
"0.45865047",
"0.4585234",
"0.45744842",
"0.4565089",
"0.45636344",
"0.45636234"
] | 0.7799839 | 0 |
Helper binding method for function: internalValueStatsHelper. | public static final SourceModel.Expr internalValueStatsHelper(SourceModel.Expr calValue) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.internalValueStatsHelper), calValue});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public StatValues stats() {\n this.stats.setStatsHolder(this);\n return stats;\n }",
"Stats<Double> stats();",
"public Object getValue() {\n synchronized (mutex) {\n return statisticsAccumulator.getValue();\n }\n }",
"@Test\n public void testInvokeStatsValueMethod() throws MBeanException, InstanceNotFoundException, ReflectionException {\n double result = CSJmxStats.invokeStatsValueMethod();\n //Result should be greater than 0\n assertEquals(true, result > 0);\n }",
"@Test\n public void testInvokeAbsoluteStatsValueMethod() throws MBeanException, InstanceNotFoundException, ReflectionException {\n double result = CSJmxStats.invokeAbsoluteStatsValueMethod();\n //Result should be greater than 0\n assertEquals(true, result > 0);\n }",
"double getBasedOnValue();",
"public StatisticValue(final Statistic<?> statistic) {\n this.statistic = statistic;\n }",
"private void addStats(\n net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats.Builder builderForValue) {\n ensureStatsIsMutable();\n stats_.add(builderForValue.build());\n }",
"public HashMap<String, Double> getStats() {\n return playerStats; // stub\n }",
"Map<String, Object> getStats();",
"public static Stats of(double... values) {\n/* 122 */ StatsAccumulator acummulator = new StatsAccumulator();\n/* 123 */ acummulator.addAll(values);\n/* 124 */ return acummulator.snapshot();\n/* */ }",
"private void addStats(net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureStatsIsMutable();\n stats_.add(value);\n }",
"public static Stats of(Iterable<? extends Number> values) {\n/* 99 */ StatsAccumulator accumulator = new StatsAccumulator();\n/* 100 */ accumulator.addAll(values);\n/* 101 */ return accumulator.snapshot();\n/* */ }",
"private void handlePortStat(String metricKey, MetricHeaderInfo headerInfo, Map<URI, PortStat> portStatMap,\n Map<String, Double> maxValues, Map<String, String> lastSample) {\n StoragePort port = headerInfo.port;\n PortStat stat = portStatMap.get(port.getId());\n if (stat == null) {\n // We don't have a stats entry for this port yet.\n // Create it and add it to the map.\n stat = new PortStat(port, 0, 0, 0);\n portStatMap.put(port.getId(), stat);\n }\n // Which stat is this?\n if (metricKey.contains(FE_PORT_OPS)) {\n stat.iops = maxValues.containsKey(metricKey) ? maxValues.get(metricKey).longValue()\n : Double.valueOf(lastSample.get(metricKey)).longValue();\n } else if (metricKey.contains(FE_PORT_READ)) {\n stat.kbytes += maxValues.containsKey(metricKey) ? maxValues.get(metricKey).longValue()\n : Double.valueOf(lastSample.get(metricKey)).longValue();\n } else if (metricKey.contains(FE_PORT_WRITE)) {\n stat.kbytes += maxValues.containsKey(metricKey) ? maxValues.get(metricKey).longValue()\n : Double.valueOf(lastSample.get(metricKey)).longValue();\n }\n // The sampleTime is not associated with a particular port, so we will\n // check if the stat.sampleTime is not set yet and then set it once.\n if (stat.sampleTime == null || stat.sampleTime == 0) {\n stat.sampleTime = Long.valueOf(lastSample.get(HEADER_KEY_TIME_UTC));\n }\n }",
"private void addStats(\n int index, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureStatsIsMutable();\n stats_.add(index, value);\n }",
"private void setStats(\n int index, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureStatsIsMutable();\n stats_.set(index, value);\n }",
"public interface DataStats {\n \n // publicly accessible methods - replaces original properties\n \n /***************************************************************************\n * Gets the channel number for these stats\n *\n * @return the channel number\n **************************************************************************/\n public int GetChannel();\n \n /***************************************************************************\n * Sets the channel number for these stats\n *\n * @param channel The channel number\n **************************************************************************/\n public void SetChannel(int channel); \n \n /***************************************************************************\n * Gets the date for these stats\n *\n * @return the date\n **************************************************************************/ \n public Date GetDate();\n\n /***************************************************************************\n * Sets the date for these stats\n *\n * @param date The date\n **************************************************************************/ \n public void SetDate(Date date);\n \n /***************************************************************************\n * Gets time type\n *\n * @return time type - TRUE for hourly stats, FALSE for daily stats\n **************************************************************************/ \n public boolean GetHourly();\n \n /***************************************************************************\n * Sets time type \n *\n * @param hourly The time type - TRUE for hourly stats, FALSE for daily stats \n **************************************************************************/ \n public void SetHourly(boolean hourly); \n \n /***************************************************************************\n * Gets the number of points used to make these statistics\n *\n * @return the number of points\n **************************************************************************/ \n public int GetNPoints();\n \n /***************************************************************************\n * Sets the number of points used to make these statistics\n *\n * @param n_points The number of points\n **************************************************************************/ \n public void SetNPoints(int n_points);\n\n /***************************************************************************\n * Gets the number of points missing\n *\n * @return the number of points\n **************************************************************************/ \n public int GetNMissing();\n \n /***************************************************************************\n * Sets the number of points missing\n *\n * @param n_missing The number of points\n **************************************************************************/ \n public void SetNMissing(int n_missing);\n\n /***************************************************************************\n * Gets the minimum value \n *\n * @return the minimum value\n **************************************************************************/ \n public int GetMinVal();\n\n /***************************************************************************\n * Sets the minimum value\n *\n * @param min_val The minimum value\n **************************************************************************/ \n public void SetMinVal(int min_val);\n \n /***************************************************************************\n * Gets the maximum value\n *\n * @return the maximum value\n **************************************************************************/ \n public int GetMaxVal();\n\n /***************************************************************************\n * Sets the maximum value\n *\n * @param max_val The maximum value\n **************************************************************************/ \n public void SetMaxVal(int max_val);\n\n /***************************************************************************\n * Gets the average\n *\n * @return the average\n **************************************************************************/ \n public double GetAverage();\n\n /***************************************************************************\n * Sets the average\n *\n * @param average The average\n **************************************************************************/ \n public void SetAverage(double average);\n\n /***************************************************************************\n * Gets the standard deviation\n *\n * @return the standard deviation\n **************************************************************************/ \n public double GetStandardDev();\n\n /***************************************************************************\n * Sets the standard deviation\n *\n * @param standard_dev The standard deviation\n **************************************************************************/ \n public void SetStandardDev(double standard_dev);\n \n}",
"@JsonProperty(\"stats\")\n@ApiModelProperty(value = \"Stats about this VirtualInstance\")\n public VirtualInstanceStats getStats() {\n return stats;\n }",
"public static Stats of(int... values) {\n/* 133 */ StatsAccumulator acummulator = new StatsAccumulator();\n/* 134 */ acummulator.addAll(values);\n/* 135 */ return acummulator.snapshot();\n/* */ }",
"public Stats getBaseStats() {\n return baseStats;\n }",
"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}",
"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 }",
"@Override\n public Number getValue() {\n return tcpStatWrapper.query().get(entry.getKey());\n }",
"@SuppressWarnings(\"unchecked\")\n private T normalizedToValue(double normalized) {\n double v = absoluteWarningValuePrim + normalized * (absoluteCriticalValuePrim - absoluteWarningValuePrim);\n // TODO parameterize this rounding to allow variable decimal points\n return (T) numberType.toNumber(Math.round(v * 100) / 100d);\n }",
"private void updateStats()\n\t{\n\n\t\tint[] temp = simulation.getStatValue();\n\t\tfor(int i = 0; i < temp.length; i++)\n\t\t{\n\t\t\tthis.statsValues[i].setText(Integer.toString(temp[i]));\n\t\t}\n\t\t\n\t\tint[] temp2 = simulation.getNumberInEachLine();\n\t\tfor(int i = 0; i < temp2.length; i++)\n\t\t{\n\t\t\tthis.eatValues[i].setText(Integer.toString(temp2[i]));\n\t\t}\n\t}",
"org.tensorflow.proto.profiler.XStat getStats(int index);",
"public void modifyStats(Stats s) {\n\r\n\t}",
"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}",
"public static Stats of(Iterator<? extends Number> values) {\n/* 111 */ StatsAccumulator accumulator = new StatsAccumulator();\n/* 112 */ accumulator.addAll(values);\n/* 113 */ return accumulator.snapshot();\n/* */ }",
"public void updateStats( ) {\r\n\t\tperseverance = owner.perseverance;\r\n\t\tobservation = owner.observation;\r\n\t\tintellect = owner.intellect;\r\n\t\tnegotiation = owner.negotiation;\r\n\t\ttact = owner.tact;\r\n\t\tstrength = owner.strength;\r\n\r\n\t\txCoord = owner.xCoord;\r\n\t\tyCoord = owner.yCoord;\r\n\r\n\t\tmaxHealth = 2400 + ( perseverance * 200 );\r\n\r\n\t\thealth = maxHealth;\r\n\r\n\t\tsetDamages( );\r\n\t}",
"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 }",
"private void setStats(\n int index, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats.Builder builderForValue) {\n ensureStatsIsMutable();\n stats_.set(index, builderForValue.build());\n }",
"public Builder setStats(com.google.privacy.dlp.v2.StoredInfoTypeStats.Builder builderForValue) {\n if (statsBuilder_ == null) {\n stats_ = builderForValue.build();\n } else {\n statsBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }",
"private void addStats(\n int index, net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats.Builder builderForValue) {\n ensureStatsIsMutable();\n stats_.add(index, builderForValue.build());\n }",
"@Override\n public void onValueAccessed(int value) {\n }",
"@Override\n public double getValue()\n {\n return value;\n }",
"@Override\n public Double value(TypeOfValue value);",
"public StatisticVariable getStatisticVariable();",
"public SearchResult addStatsEntry(String key, FieldStats value) {\n if (null == this.stats) {\n this.stats = new com.amazonaws.internal.SdkInternalMap<String, FieldStats>();\n }\n if (this.stats.containsKey(key))\n throw new IllegalArgumentException(\"Duplicated keys (\" + key.toString() + \") are provided.\");\n this.stats.put(key, value);\n return this;\n }",
"@Override\n public Double getDoubleValue()\n {\n return aggVal;\n }",
"public abstract Double getDataValue();",
"PolicyStatsManager getStats();",
"@Override\n public double getValue() {\n return healthPackAmount;\n }",
"public Integer getStat() {\r\n return stat;\r\n }",
"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 Builder setStats(com.google.privacy.dlp.v2.StoredInfoTypeStats value) {\n if (statsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n stats_ = value;\n } else {\n statsBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }",
"public com.google.privacy.dlp.v2.StoredInfoTypeStats.Builder getStatsBuilder() {\n bitField0_ |= 0x00000010;\n onChanged();\n return getStatsFieldBuilder().getBuilder();\n }",
"@Updatable\n @ValidStrings({\"SampleCount\", \"Average\", \"Sum\", \"Minimum\", \"Maximum\"})\n public String getStatistic() {\n return statistic;\n }",
"public void computeStats() {\n\t\tstats = new Stats();\t\t\n\t}",
"public Stats getStats() {\n if (this.stats == null) {\n this.stats = (Stats) JavaScriptObject.createObject();\n }\n return this.stats;\n }",
"public PeekedStatisticsResponse getStatValues(StatisticInfo[] infos) throws StatisticsException\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tMap<String, Object> data = new HashMap<>();\r\n\t\t\tdata.put(\"statistics\", infos);\r\n\t\t\tMap<String, Object> body = new HashMap<>();\r\n\t\t\tbody.put(\"data\", data);\r\n\r\n\t\t\treturn api.getStatValues(body);\r\n\t\t}\r\n\t\tcatch (ApiException ex)\r\n\t\t{\r\n\t\t\tthrow new StatisticsException(\"Cannot get statistics values\", ex);\r\n\t\t}\r\n\t}",
"@VTID(14)\r\n double getValue();",
"public void updateStats(Instance inst) {\n\t\t\tstatsTarget.update(inst.classValue()) ;\t\t\t\n//\t\t\tSystem.out.println(\"V:\"+inst.classValue()+\":\"+statsTarget.getCurrentVariance()+ \":\"+statsTarget.getStandardDeviation());\n\t\t\t\n\t\t\tint index = 0 ;\n\t\t\tfor (int j = 0; j < inst.numAttributes(); j++) {\n\t\t\t\tif (inst.classIndex()==j)\n\t\t\t\t\tcontinue ;\n\t\t\t\tstatsAttributes.get(index).update(inst.value(j));\n\t\t\t\tindex++ ;\n\t\t\t}\t\t\t\t\n\t\t}",
"public Integer getStat() {\n return stat;\n }",
"public Integer getStat() {\n return stat;\n }",
"@Override\r\n\tpublic void setStats(Stats s) {\n\t\t\r\n\t}",
"private void addAllStats(\n java.lang.Iterable<? extends net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats> values) {\n ensureStatsIsMutable();\n com.google.protobuf.AbstractMessageLite.addAll(\n values, stats_);\n }",
"public interface StatisticsWriter extends Addressable\n{\n\n\t/**\n\t * Updates the StatisticsWriter with new data, which may trigger data to be\n\t * flushed to the underlying Track, or may just buffer it in memory.\n\t *\n\t * @param timestamp\n\t * @param value\n\t */\n\tpublic void update( long timestamp, Number value );\n\n\t/**\n\t * Forces any buffered but not yet written data to be stored. This should\n\t * manually be called when ending a test Execution.\n\t */\n\tpublic void flush();\n\n\t/**\n\t * Returns an Entry based on raw data acquired from calls to update().\n\t *\n\t * @return\n\t */\n\tpublic Entry output();\n\n\t/**\n\t * Gets the associated StatisticVariable.\n\t *\n\t * @return\n\t */\n\tpublic StatisticVariable getStatisticVariable();\n\n\t/**\n\t * Gets the Track for the StatisticsWriter, for the current Execution.\n\t *\n\t * @return\n\t */\n\tpublic TrackDescriptor getTrackDescriptor();\n\n\t/**\n\t * Gets the type of the StatisticsWriter, which should be unique. This can be\n\t * the same as the associated StatisticsWriterFactory.getType().\n\t *\n\t * @return\n\t */\n\tpublic String getType();\n\n\t/**\n\t * Resets the state of the StatisticsWriter.\n\t */\n\tpublic void reset();\n\n\t/**\n\t * Get a description for a specific metric.\n\t */\n\t@CheckForNull\n\tpublic String getDescriptionForMetric( String metricName );\n\n\tpublic enum SampleStats\n\t{\n\t\tAVERAGE( \"The average %v.\" ),\n\t\tCOUNT,\n\t\tSUM,\n\t\tSTD_DEV( \"The standard deviation of %v.\" ),\n\t\tSTD_DEV_SUM,\n\t\tPERCENTILE_25TH( \"The 25th percentile of %v.\" ),\n\t\tPERCENTILE_75TH( \"The 75th percentile of %v.\" ),\n\t\tPERCENTILE_90TH( \"The 90th percentile of %v.\" ),\n\t\tMEDIAN( \"The median value of %v.\" ),\n\t\tMIN( \"The mininum value of %v.\" ),\n\t\tMAX( \"The maximum value of %v.\" );\n\n\t\tpublic final String description;\n\n\t\tSampleStats()\n\t\t{\n\t\t\tthis.description = this.name() + \" of %v.\";\n\t\t}\n\n\t\tSampleStats( String description )\n\t\t{\n\t\t\tthis.description = description;\n\t\t}\n\t}\n\n\tpublic enum CounterStats\n\t{\n\t\tTOTAL( \"The number of %v in total since the last time the project was started or resetted.\" ),\n\t\tPER_SECOND( \"The number of %v per second.\" );\n\n\t\tpublic final String description;\n\n\t\tCounterStats()\n\t\t{\n\t\t\tthis.description = this.name() + \" of %v.\";\n\t\t}\n\n\t\tCounterStats( String description )\n\t\t{\n\t\t\tthis.description = description;\n\t\t}\n\t}\n\n\tpublic enum VariableStats\n\t{\n\t\tVALUE( \"The number of %v.\" );\n\n\t\tpublic final String description;\n\n\t\tVariableStats()\n\t\t{\n\t\t\tthis.description = this.name() + \" of %v.\";\n\t\t}\n\n\t\tVariableStats( String description )\n\t\t{\n\t\t\tthis.description = description;\n\t\t}\n\t}\n}",
"public Statistic<?> getStatistic() {\n return statistic;\n }",
"@Override\n public Object getValueObject()\n {\n return aggVal;\n }",
"@Override\n public Object getValueObject()\n {\n return aggVal;\n }",
"@VisibleForTesting\n public UsageStatsManagerInternal injectUsageStatsManagerInternal() {\n return (UsageStatsManagerInternal) LocalServices.getService(UsageStatsManagerInternal.class);\n }",
"protected abstract String getStatistics();",
"@Override\n public void agg(Object newVal)\n {\n aggVal += (Double)newVal;\n firstTime = false;\n }",
"public interface StatisticsService {\n /**\n * Returns fed animals percentage which is between 0 and 1.\n *\n * @return fed animals percentage.\n */\n Float getFedAnimalsPercentage();\n}",
"public String[] upStats(int stat) {\n String[] stats = {\"nothing\",\"0\"};\n switch(stat) {\n case 0:\n break;\n case 1:\n stats[0] = \"crit\";\n stats[1] = String.format(\"%.1f\", upCrit(levelCrit));\n addPoint(-1);\n this.pointsSpent++;\n return stats;\n case 2: \n stats[0] = \"health\";\n stats[1] = String.format(\"%.1f\", upHealth(levelHealth));\n addPoint(-1);\n this.pointsSpent++;\n return stats;\n case 3: \n stats[0] = \"damage\";\n stats[1] = String.format(\"%.1f\", upDamage(levelDamage));\n addPoint(-1);\n this.pointsSpent++;\n return stats;\n case 4:\n stats[0] = \"level\";\n stats[1] = \"1\";\n levelUp(1);\n addPoint(-1);\n this.pointsSpent++;\n return stats;\n }\n return stats;\n }",
"public abstract double getValue();",
"@Override\n\tpublic Number computeMetricValue(Map<String, Number> values) {\n\t\treturn values.values().toArray(new Number[1])[0];\n\t}",
"public com.google.privacy.dlp.v2.StoredInfoTypeStats getStats() {\n if (statsBuilder_ == null) {\n return stats_ == null\n ? com.google.privacy.dlp.v2.StoredInfoTypeStats.getDefaultInstance()\n : stats_;\n } else {\n return statsBuilder_.getMessage();\n }\n }",
"private com.google.protobuf.SingleFieldBuilderV3<\n com.google.privacy.dlp.v2.StoredInfoTypeStats,\n com.google.privacy.dlp.v2.StoredInfoTypeStats.Builder,\n com.google.privacy.dlp.v2.StoredInfoTypeStatsOrBuilder>\n getStatsFieldBuilder() {\n if (statsBuilder_ == null) {\n statsBuilder_ =\n new com.google.protobuf.SingleFieldBuilderV3<\n com.google.privacy.dlp.v2.StoredInfoTypeStats,\n com.google.privacy.dlp.v2.StoredInfoTypeStats.Builder,\n com.google.privacy.dlp.v2.StoredInfoTypeStatsOrBuilder>(\n getStats(), getParentForChildren(), isClean());\n stats_ = null;\n }\n return statsBuilder_;\n }",
"public V getValue19();",
"@Override\r\n\tpublic Stats getStats() {\n\t\treturn null;\r\n\t}",
"org.tensorflow.proto.profiler.XStatOrBuilder getStatsOrBuilder(\n int index);",
"public double mean() {\n return StdStats.mean(stats);\r\n }",
"public List<Number> getStatistics() {\n return statistics;\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 }",
"private double getValue() {\n return value;\n }",
"com.rpg.framework.database.Protocol.BonusStats getBonusStats();",
"public Builder mergeStats(com.google.privacy.dlp.v2.StoredInfoTypeStats value) {\n if (statsBuilder_ == null) {\n if (((bitField0_ & 0x00000010) != 0)\n && stats_ != null\n && stats_ != com.google.privacy.dlp.v2.StoredInfoTypeStats.getDefaultInstance()) {\n getStatsBuilder().mergeFrom(value);\n } else {\n stats_ = value;\n }\n } else {\n statsBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }",
"public int FitVal(){\r\n return _FitVal;\r\n}",
"double getValue();",
"double getValue();",
"double getValue();",
"@Override\n\tpublic void getStat(Map<String, String> map) {\n\t\t\n\t}",
"@Override\n public void agg(double newVal)\n {\n aggVal += newVal;\n firstTime = false;\n }",
"public Builder addStats(\n net.iGap.proto.ProtoChannelGetMessagesStats.ChannelGetMessagesStatsResponse.Stats.Builder builderForValue) {\n copyOnWrite();\n instance.addStats(builderForValue);\n return this;\n }",
"public double getSstat() {\n\t\treturn sStatM * speedBase;\n\t}",
"public Builder setBonusStats(com.rpg.framework.database.Protocol.BonusStats value) {\n if (bonusStatsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n bonusStats_ = value;\n onChanged();\n } else {\n bonusStatsBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000004;\n return this;\n }",
"public boolean hasStats() {\n return ((bitField0_ & 0x00000010) != 0);\n }",
"public Stats2D statistics() {\n Stats2D stats = new Stats2D(data.values);\n stats.run();\n return stats;\n }",
"public Bag getStats(){\n\treturn stats;\n }",
"public interface StatisticsAggregator {\r\n\t\t// This is an input. Make note of this price.\r\n\t\tpublic void putNewPrice(String symbol, double price);\r\n\r\n\t\t// Get the average price\r\n\t\tpublic double getAveragePrice(String symbol);\r\n\r\n\t\t// Get the total number of prices recorded\r\n\t\tpublic int getTickCount(String symbol);\r\n\t}",
"public void setAdditionalstatistics(Double v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/additionalStatistics\",v);\n\t\t_Additionalstatistics=null;\n\t\t} catch (Exception e1) {logger.error(e1);}\n\t}",
"private double getBaseValue(EssayInstance instance) {\n Double value = instance.getFeature(baseName);\n if (value == null) {\n // duplicate features\n HashMap<String, Double> values = baseFeature.getFeatureScores(instance);\n instance.setFeature(baseName, values.get(baseName));\n value = values.get(baseName);\n }\n return value.doubleValue();\n }",
"public String toString()\n {\n return statName + \": \" + statValue + \"\\n\";\n }",
"public double getValue();",
"public double getHealth() { return health; }",
"public interface TrackingStatsHelper {\n void addDistanceFromNewLocationToTotalDistance(Location currentLocation);\n\n void setCurrentSessionStats(Stats stats);\n\n Stats getCurrentSessionStats();\n\n void setLastLocation(Location location);\n\n Location getLastLocation();\n\n void addTimeSpentWhileTrackingLastStarted(long startTime, long endTime);\n}",
"com.google.api.servicecontrol.v1.MetricValue getMetricValues(int index);",
"public final flipsParser.throttleValue_return throttleValue() throws RecognitionException {\n flipsParser.throttleValue_return retval = new flipsParser.throttleValue_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n flipsParser.percentValue_return percentValue321 = null;\n\n flipsParser.angularRateValue_return angularRateValue322 = null;\n\n\n RewriteRuleSubtreeStream stream_percentValue=new RewriteRuleSubtreeStream(adaptor,\"rule percentValue\");\n try {\n // flips.g:493:2: ( percentValue -> ^( SPEED percentValue ) | angularRateValue )\n int alt128=2;\n switch ( input.LA(1) ) {\n case 340:\n {\n int LA128_1 = input.LA(2);\n\n if ( ((LA128_1>=BinaryLiteral && LA128_1<=HexLiteral)) ) {\n int LA128_2 = input.LA(3);\n\n if ( (LA128_2==243||(LA128_2>=322 && LA128_2<=328)||(LA128_2>=330 && LA128_2<=337)) ) {\n alt128=2;\n }\n else if ( ((LA128_2>=338 && LA128_2<=339)) ) {\n alt128=1;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 128, 2, input);\n\n throw nvae;\n }\n }\n else if ( (LA128_1==FloatingPointLiteral) ) {\n int LA128_3 = input.LA(3);\n\n if ( ((LA128_3>=322 && LA128_3<=328)||(LA128_3>=330 && LA128_3<=337)) ) {\n alt128=2;\n }\n else if ( ((LA128_3>=338 && LA128_3<=339)) ) {\n alt128=1;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 128, 3, input);\n\n throw nvae;\n }\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 128, 1, input);\n\n throw nvae;\n }\n }\n break;\n case BinaryLiteral:\n case OctalLiteral:\n case DecimalLiteral:\n case HexLiteral:\n {\n int LA128_2 = input.LA(2);\n\n if ( (LA128_2==243||(LA128_2>=322 && LA128_2<=328)||(LA128_2>=330 && LA128_2<=337)) ) {\n alt128=2;\n }\n else if ( ((LA128_2>=338 && LA128_2<=339)) ) {\n alt128=1;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 128, 2, input);\n\n throw nvae;\n }\n }\n break;\n case FloatingPointLiteral:\n {\n int LA128_3 = input.LA(2);\n\n if ( ((LA128_3>=322 && LA128_3<=328)||(LA128_3>=330 && LA128_3<=337)) ) {\n alt128=2;\n }\n else if ( ((LA128_3>=338 && LA128_3<=339)) ) {\n alt128=1;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 128, 3, input);\n\n throw nvae;\n }\n }\n break;\n case 341:\n {\n int LA128_4 = input.LA(2);\n\n if ( (LA128_4==FloatingPointLiteral) ) {\n int LA128_7 = input.LA(3);\n\n if ( ((LA128_7>=322 && LA128_7<=328)||(LA128_7>=330 && LA128_7<=337)) ) {\n alt128=2;\n }\n else if ( ((LA128_7>=338 && LA128_7<=339)) ) {\n alt128=1;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 128, 7, input);\n\n throw nvae;\n }\n }\n else if ( ((LA128_4>=BinaryLiteral && LA128_4<=HexLiteral)) ) {\n int LA128_8 = input.LA(3);\n\n if ( (LA128_8==243||(LA128_8>=322 && LA128_8<=328)||(LA128_8>=330 && LA128_8<=337)) ) {\n alt128=2;\n }\n else if ( ((LA128_8>=338 && LA128_8<=339)) ) {\n alt128=1;\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 128, 8, input);\n\n throw nvae;\n }\n }\n else {\n NoViableAltException nvae =\n new NoViableAltException(\"\", 128, 4, input);\n\n throw nvae;\n }\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 128, 0, input);\n\n throw nvae;\n }\n\n switch (alt128) {\n case 1 :\n // flips.g:493:4: percentValue\n {\n pushFollow(FOLLOW_percentValue_in_throttleValue2673);\n percentValue321=percentValue();\n\n state._fsp--;\n\n stream_percentValue.add(percentValue321.getTree());\n\n\n // AST REWRITE\n // elements: percentValue\n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 494:2: -> ^( SPEED percentValue )\n {\n // flips.g:494:5: ^( SPEED percentValue )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot((CommonTree)adaptor.create(SPEED, \"SPEED\"), root_1);\n\n adaptor.addChild(root_1, stream_percentValue.nextTree());\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = root_0;\n }\n break;\n case 2 :\n // flips.g:495:4: angularRateValue\n {\n root_0 = (CommonTree)adaptor.nil();\n\n pushFollow(FOLLOW_angularRateValue_in_throttleValue2687);\n angularRateValue322=angularRateValue();\n\n state._fsp--;\n\n adaptor.addChild(root_0, angularRateValue322.getTree());\n\n }\n break;\n\n }\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }"
] | [
"0.6167493",
"0.6145103",
"0.5763962",
"0.56734115",
"0.56537753",
"0.5643965",
"0.5640766",
"0.5605858",
"0.55692744",
"0.5533455",
"0.5516439",
"0.55079424",
"0.54604995",
"0.5453717",
"0.5453313",
"0.5452031",
"0.54479134",
"0.5423711",
"0.5389166",
"0.5360907",
"0.5355102",
"0.53145885",
"0.52933973",
"0.5288797",
"0.526999",
"0.52660275",
"0.52616376",
"0.5221653",
"0.52089405",
"0.51973706",
"0.5196755",
"0.5190143",
"0.5175231",
"0.5174866",
"0.51689535",
"0.51494205",
"0.5133676",
"0.5133219",
"0.5122911",
"0.5120437",
"0.5112892",
"0.51030844",
"0.51007",
"0.5099696",
"0.50965565",
"0.5080377",
"0.50796586",
"0.5079091",
"0.5078934",
"0.5073297",
"0.5070914",
"0.50630456",
"0.5059567",
"0.5051795",
"0.5051795",
"0.5050794",
"0.5032931",
"0.5014141",
"0.49995235",
"0.49948898",
"0.49948898",
"0.49928138",
"0.49926636",
"0.4992577",
"0.49871203",
"0.4978426",
"0.4966708",
"0.49665725",
"0.49654883",
"0.49650487",
"0.49644026",
"0.4946628",
"0.494257",
"0.4936827",
"0.4936265",
"0.49317315",
"0.4925693",
"0.49223426",
"0.4909556",
"0.48978648",
"0.4892161",
"0.4892161",
"0.4892161",
"0.48914427",
"0.48903856",
"0.4888005",
"0.48797387",
"0.4879517",
"0.48737186",
"0.48689586",
"0.48682988",
"0.48635894",
"0.4857587",
"0.48510242",
"0.4845962",
"0.48447675",
"0.48443323",
"0.48310497",
"0.48304564",
"0.48247463"
] | 0.72352415 | 0 |
Helper binding method for function: jMachineType_G. | public static final SourceModel.Expr jMachineType_G() {
return SourceModel.Expr.Var.make(Functions.jMachineType_G);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getMachineType();",
"MachineType getType();",
"public static final SourceModel.Expr inputMachineType(SourceModel.Expr jMachineType) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.inputMachineType), jMachineType});\n\t\t}",
"String vmExtensionType();",
"public static final SourceModel.Expr inputMachineTypeFromJObject(SourceModel.Expr jMachineType) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.inputMachineTypeFromJObject), jMachineType});\n\t\t}",
"public static final SourceModel.Expr jMachineType_Lecc() {\n\t\t\treturn SourceModel.Expr.Var.make(Functions.jMachineType_Lecc);\n\t\t}",
"private String getAltRegType() { // TODO - fix Register reference hardcoded in reg defines parm default?\n\t\tString firstChar = regProperties.getId().substring(0, 1);\n\t\t// change case of first character in name to create type\n\t\tString regTypeParam;\n\t\tif (firstChar.equals(firstChar.toUpperCase()))\n\t\t regTypeParam = regProperties.getId().replaceFirst(firstChar, firstChar.toLowerCase()); // change to lc\n\t\telse\n\t\t regTypeParam = regProperties.getId().replaceFirst(firstChar, firstChar.toUpperCase()); // change to uc \n\t\tString regBaseType = regProperties.isReplicated()? \"RegisterArray\" : \"Register\";\n\t\treturn regBaseType + \" #(\" + getAltBlockType() + \"::\" + regTypeParam + \")\"; // TODO - make parameterizable, getAddressMapName() + \"_\" + regProperties.getBaseName() + \"_t\" \n\t}",
"com.google.protobuf.ByteString getMachineTypeBytes();",
"public static final SourceModel.Expr outputMachineTypeToJObject(SourceModel.Expr machineType) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.outputMachineTypeToJObject), machineType});\n\t\t}",
"protected GEDCOMType() {/* intentionally empty block */}",
"static int type_of_jnc(String passed){\n\t\treturn 1;\n\t}",
"public int getG();",
"public String type();",
"public final native String getType() /*-{\n return this.getType();\n }-*/;",
"static int type_of_jm(String passed){\n\t\treturn 1;\n\t}",
"public String getType() {\n\t\treturn gfType;\n\t}",
"public String getType(JmmNode node) {\n switch (node.getKind()) {\n case \"Add\":\n case \"Sub\":\n case \"Mul\":\n case \"Div\":\n return \"int\";\n\n case \"LessThan\":\n case \"And\":\n case \"Not\":\n return \"boolean\";\n\n case \"Var\":\n return getVariableSymbol(node.get(\"name\")).getType().getName();\n default:\n return null;\n }\n }",
"public ObjectType getJVMType();",
"boolean hasMachineType();",
"public JType getType()\n\t{ return jType; }",
"int getG();",
"@Override\r\n\tpublic String typeV() {\n\t\treturn hio.TyreType();\r\n\t}",
"public static native int GetType(long lpjFbxDataType);",
"public double getG();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"@ReflectiveMethod(name = \"g\", types = {})\n public int g(){\n return (int) NMSWrapper.getInstance().exec(nmsObject);\n }",
"public static final SourceModel.Expr debug_getMachineType(SourceModel.Expr calValue) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.debug_getMachineType), calValue});\n\t\t}",
"@JsProperty(name = \"msType\")\n public native String getMsType();",
"static int type_of_jc(String passed){\n\t\treturn 1;\n\t}",
"public Integer getJtype() {\n return jtype;\n }",
"public abstract String getWorldType();",
"public Class<? extends VisualizationSupport> getMGSClass()\r\n {\r\n return myMGSClass;\r\n }",
"abstract public Type type();",
"int mo98967b(C29296g gVar);",
"GetCapabilitiesType createGetCapabilitiesType();",
"public abstract Type getGeneralizedType(Type type);",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"public VarTypeNative getFieldVarType();",
"static int type_of_jpo(String passed){\n\t\treturn 1;\n\t}",
"public void getK_Gelisir(){\n K_Gelistir();\r\n }",
"static int type_of_jnz(String passed){\n\t\treturn 1;\n\t}",
"void mo98970a(C29296g gVar);",
"public JvmType getClassx();",
"int mo98966a(C29296g gVar);",
"EClass getType();",
"EClass getType();",
"public String getLBR_CollectionRegType();",
"public com.google.android.gms.dynamic.d g(com.google.android.gms.maps.model.internal.l param1) throws RemoteException {\n }",
"int getGunType();",
"public String getrType() {\n return rType;\n }",
"@JsProperty(name = \"type\")\n public native String getType();",
"CapabilitiesType createCapabilitiesType();",
"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();"
] | [
"0.6166549",
"0.60491055",
"0.5803279",
"0.57732326",
"0.56406623",
"0.56369853",
"0.55361354",
"0.5511575",
"0.54274344",
"0.535505",
"0.5252896",
"0.5237645",
"0.52256125",
"0.5225285",
"0.52208084",
"0.51942563",
"0.5167848",
"0.516106",
"0.51493424",
"0.5143517",
"0.5132579",
"0.5111993",
"0.5109722",
"0.51052195",
"0.5095969",
"0.5095969",
"0.5095969",
"0.5095969",
"0.5095969",
"0.5095969",
"0.5095969",
"0.5095969",
"0.5095969",
"0.5095969",
"0.5095969",
"0.5095969",
"0.5095969",
"0.5095969",
"0.5095969",
"0.5095969",
"0.5095969",
"0.5095969",
"0.5095969",
"0.5095969",
"0.5088138",
"0.50833666",
"0.5082636",
"0.5073153",
"0.5071859",
"0.5061336",
"0.5055027",
"0.5046394",
"0.50212944",
"0.5018237",
"0.5015665",
"0.5011238",
"0.5011238",
"0.5011238",
"0.5011238",
"0.5011238",
"0.5011238",
"0.5011238",
"0.5011238",
"0.5011238",
"0.5011238",
"0.5011238",
"0.5011238",
"0.5011238",
"0.50014174",
"0.49895367",
"0.49585086",
"0.49557164",
"0.49274886",
"0.49212435",
"0.4914529",
"0.4914029",
"0.4914029",
"0.49058682",
"0.48840463",
"0.48835212",
"0.4880724",
"0.48700348",
"0.48668313",
"0.4859647",
"0.4859647",
"0.4859647",
"0.4859647",
"0.4859647",
"0.4859647",
"0.4859647",
"0.4859647",
"0.4859647",
"0.4859647",
"0.4859647",
"0.4859647",
"0.4859647",
"0.4859647",
"0.4859647",
"0.4859647",
"0.4859647"
] | 0.78596103 | 0 |
Helper binding method for function: jMachineType_Lecc. | public static final SourceModel.Expr jMachineType_Lecc() {
return SourceModel.Expr.Var.make(Functions.jMachineType_Lecc);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getCclmsTrainType();",
"static int type_of_lhld(String passed){\n\t\treturn 1;\n\t}",
"static int type_of_pchl(String passed){\n\t\treturn 1;\n\t}",
"static int type_of_rlc(String passed){\n\t\treturn 1;\n\t}",
"java.lang.String getMachineType();",
"void mo4874b(C4718l c4718l);",
"MachineType getType();",
"public static final SourceModel.Expr jMachineType_G() {\n\t\t\treturn SourceModel.Expr.Var.make(Functions.jMachineType_G);\n\t\t}",
"int mo1505l();",
"void mo4873a(C4718l c4718l);",
"static int type_of_ldax(String passed){\n\t\treturn 1;\n\t}",
"static int type_of_xthl(String passed){\n\t\treturn 1;\n\t}",
"public int getLC() {\n\treturn lc;\n }",
"public static final SourceModel.Expr inputMachineType(SourceModel.Expr jMachineType) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.inputMachineType), jMachineType});\n\t\t}",
"long mo1685a(C2369e c2369e);",
"AlgebraicTerm getAlgebraicTermL();",
"public interface iLL11Ll1 {\n C6860liLi OooO00o(C6773llLi v) throws IOException;\n}",
"static int type_of_cnc(String passed){\n\t\treturn 1;\n\t}",
"String runFoldL(THost host, String accClassname);",
"String vmExtensionType();",
"public HegnaNRK$PBLK21$les_type STM$() {\n TRACE_BEGIN_STM$(\"les_type\",335);\n // JavaLine 28 ==> SourceLine 336\n char$=sysin().inchar();\n // JavaLine 30 ==> SourceLine 337\n while((char$==(((char)32)))) {\n char$=sysin().inchar();\n }\n // JavaLine 34 ==> SourceLine 338\n RESULT$=char$;\n TRACE_END_STM$(\"les_type\",338);\n EBLK();\n return(this);\n }",
"public abstract int mo9747l();",
"public String getcLsh() {\n return cLsh;\n }",
"public String getcLsh() {\n return cLsh;\n }",
"public String getcLsh() {\n return cLsh;\n }",
"static int type_of_jc(String passed){\n\t\treturn 1;\n\t}",
"public void mo3370l() {\n }",
"public java.lang.String getClttype() {\n return clttype;\n }",
"public T caseEOPENCL(EOPENCL object)\n {\n return null;\n }",
"void mo1943l();",
"public String getLtype() {\n return (String) get(2);\n }",
"public Type getType() {\n\t\treturn BaseType.LONG_MATRIX;\n\t}",
"public int getLC() {\n return this.lc;\n }",
"public interface LMCPEnum {\n\n public long getSeriesNameAsLong();\n\n public String getSeriesName();\n\n public int getSeriesVersion();\n\n public String getName(long type);\n\n public long getType(String name);\n\n public LMCPObject getInstance(long type);\n\n public java.util.Collection<String> getAllTypes();\n}",
"static void perform_pchl(String passed){\n\t\tint type = type_of_pchl(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tjump_to_pchl(passed);\n\t\t\tbreak;\n\t\t}\n\t}",
"static int type_of_cpi(String passed){\n\t\treturn 1;\n\t}",
"static int type_of_cz(String passed){\n\t\treturn 1;\n\t}",
"private static String lIlIIllIl(double lllIllIllllIIll, char IlIlllIllllIIll) {\n }",
"static int type_of_cc(String passed){\n\t\treturn 1;\n\t}",
"public String getLcode()\n/* */ {\n/* 47 */ return this.lcode;\n/* */ }",
"public String getLsjgcc() {\n return lsjgcc;\n }",
"public static void c1_vl() {\n\t}",
"<S extends C0218dl> S mo283b();",
"public String getType() {\n\t\treturn ELM_NAME;\n\t}",
"com.google.protobuf.ByteString getMachineTypeBytes();",
"public abstract C1489f mo1187e();",
"public Type ReturnTypeHelper(String type, int linenum) {\n //////System.out.println(\"ReturnTypeHeler()\");\n int dimensionality = 0;\n int i;\n for (i = type.length() - 1; i >= 0; i--) {\n if (type.charAt(i) == ']') {\n dimensionality ++;\n } else if (type.charAt(i) != '[') {\n break;\n }\n }\n type = type.substring(0, i+1); //Base Type\n //////System.out.println(\"Base Type: \" + type + \" Dimensionality: \" + dimensionality);\n return CheckType(type, dimensionality, linenum);\n }",
"public interface C3963a {\n /* renamed from: Ly */\n int mo23521Ly();\n }",
"public String getJnltype() {\n\t\treturn jnltype;\n\t}",
"LspType(int val) {\n value = val;\n }",
"public abstract long mo24410c();",
"static int type_of_cm(String passed){\n\t\treturn 1;\n\t}",
"public String getLccCode() {\n\t\treturn lccCode;\n\t}",
"@Override\r\n protected MachineFunction loadMachineFunction(RecordInputStream s, ModuleTypeInfo mti, CompilerMessageLogger msgLogger) throws IOException {\r\n // Load the record header and determine which actual class we are loading.\r\n RecordHeaderInfo rhi = s.findRecord(ModuleSerializationTags.LECC_MACHINE_FUNCTION);\r\n if (rhi == null) {\r\n throw new IOException (\"Unable to find record header for LECCMachineFunction.\");\r\n }\r\n \r\n LECCMachineFunction mf = new LECCMachineFunction();\r\n mf.readContent(s, rhi.getSchema(), mti, msgLogger);\r\n s.skipRestOfRecord();\r\n \r\n return mf;\r\n }",
"public interface BuiltinTypeValidator {\n // -------------------------------------------------------------------------\n // CONSTANTS\n // -------------------------------------------------------------------------\n\n /** validation error string for Bit String failures */\n String BIT_STRING_VALIDATION_ERROR =\n \"Supplied bytes do not conform to the BIT STRING format. The first byte must be within the range 0x00 - 0x07. Supplied bytes contain a byte with invalid value: \";\n\n /** validation error string for GeneralizedTime failures */\n String GENERALIZEDTIME_VALIDATION_ERROR =\n \"Supplied bytes do not conform to the GeneralizedTime format. Supplied bytes contain a byte with invalid value: \";\n\n /** validation error string for Bit String failures */\n String EMPTY_BYTE_ARRAY_VALIDATION_ERROR =\n \"ASN.1 %s type must contain at least one byte. Supplied array contains 0 bytes\";\n\n /** validation error string for IA5String failures */\n String IA5STRING_VALIDATION_ERROR =\n \"Supplied bytes do not conform to the IA5String format. All bytes must be within the range 0x00 - 0x7f. Supplied bytes contain a byte with invalid value: \";\n\n /** validation error string for Null failures */\n String NULL_VALIDATION_ERROR = \"Null type must be zero length.\";\n\n /** validation error string for NumericString failures */\n String NUMERICSTRING_VALIDATION_ERROR =\n \"Supplied bytes do not conform to the NumericString format. All bytes must be within the range '0' - '9' (0x30 - 0x39). Supplied bytes contain a byte with invalid value: \";\n\n /** validation error string for Oid failures */\n String OID_VALIDATION_ERROR =\n \"Supplied bytes do not conform to the OID format. The first byte must be with the range 0x00 - 0x7F. Supplied bytes contain a byte with invalid value: \";\n\n /** validation error string for incomplete Oid */\n String OID_VALIDATION_ERROR_INCOMPLETE =\n \"Supplied bytes do not conform to the OID format. The OID encoding is incomplete: \";\n\n /** validation error string for PrintableString failures */\n String PRINTABLESTRING_VALIDATION_ERROR =\n \"Supplied bytes do not conform to the PrintableString format. Supplied bytes contain a byte with invalid value: \";\n\n /** validation error string for UTCTime failures */\n String UTCTIME_VALIDATION_ERROR =\n \"Supplied bytes do not conform to the UTCTime format. Supplied bytes contain a byte with invalid value: \";\n\n /** validation error string for VisibleString failures */\n String VISIBLESTRING_VALIDATION_ERROR =\n \"Supplied bytes do not conform to the VisibleString format. All bytes must be within the range 0x20 - 0x7e. Supplied bytes contain invalid values: \";\n\n // -------------------------------------------------------------------------\n // CLASS VARIABLES\n // -------------------------------------------------------------------------\n\n /** null instance */\n BuiltinTypeValidator.Null NULL = new BuiltinTypeValidator.Null();\n\n // -------------------------------------------------------------------------\n // PUBLIC METHODS\n // -------------------------------------------------------------------------\n\n /**\n * Validates the supplied tag in the data based on the the kind of ASN.1 Built-in Type\n * represented by this validator\n *\n * @param tag tag to validate\n * @param asnData data to retrieve tag from\n * @return any failures encountered while validating the tag\n */\n ImmutableSet<DecodedTagValidationFailure> validate(String tag, AsantiAsnData asnData);\n\n /**\n * Validates the supplied bytes based on the the kind of ASN.1 Built-in Type represented by this\n * validator\n *\n * @param bytes bytes to validate\n * @return any failures encountered while validating the bytes\n */\n ImmutableSet<ByteValidationFailure> validate(byte[] bytes);\n\n // -------------------------------------------------------------------------\n // INTERNAL CLASS: Null\n // -------------------------------------------------------------------------\n\n /**\n * Null instance of {@link BuiltinTypeDecoder}.\n *\n * <p>The {@code validate} methods will return an empty set.\n *\n * @author brightSPARK Labs\n */\n class Null implements BuiltinTypeValidator {\n // ---------------------------------------------------------------------\n // CONSTRUCTION\n // ---------------------------------------------------------------------\n\n /**\n * Default constructor. This is private, use {@link BuiltinTypeValidator#NULL} to obtain an\n * instance\n */\n private Null() {}\n\n // ---------------------------------------------------------------------\n // IMPLEMENTATION: BuiltinTypeValidator\n // ---------------------------------------------------------------------\n\n @Override\n public ImmutableSet<DecodedTagValidationFailure> validate(\n final String tag, final AsantiAsnData asnData) {\n return ImmutableSet.of();\n }\n\n @Override\n public ImmutableSet<ByteValidationFailure> validate(final byte[] bytes) {\n return ImmutableSet.of();\n }\n }\n}",
"static int type_of_cnz(String passed){\n\t\treturn 1;\n\t}",
"public void func_70295_k_() {}",
"public abstract long mo13681c();",
"public Class getEvaluationType() {\n return lho.getOperandType();\n }",
"long mo117970a();",
"static int type_of_jnc(String passed){\n\t\treturn 1;\n\t}",
"public int getType() {\n\tif (num_comp == 0)\n\t return(UNCLASSIFIED);\n\treturn(type[num_comp-1]);\n }",
"public abstract C7982k4<E> m39518y();",
"int mo23521Ly();",
"static int type_of_lxi(String passed){\n\t\tchar fourth = passed.charAt(4);\n\t\tif(fourth=='B' || fourth=='D' || fourth=='H')\n\t\t\treturn 1;\n\t\telse\n\t\t\treturn 0;\n\t}",
"long getCryptProviderTypeExt();",
"protected double Klm(Element elem, Integer l, Integer m){\n return elem.getElemFunc().integrate(ElemFuncType.dFdx, ElemFuncType.dFdx, l, m)+elem.getElemFunc().integrate(ElemFuncType.F, ElemFuncType.F, l, m);\r\n }",
"public abstract C17954dh<E> mo45842a();",
"C0139e mo89b();",
"static void perform_jc(String passed){\n\t\tint type = type_of_jc(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tjump_when_carry(passed);\n\t\t\tbreak;\n\t\t}\n\t}",
"public AgwCslOper() {\n super(Epc.NAMESPACE, \"agw-csl-oper\");\n }",
"public native int kbAreaGetType(int areaID);",
"static int type_of_jm(String passed){\n\t\treturn 1;\n\t}",
"boolean hasMachineType();",
"public abstract Number getPrimitiveType();",
"private GetLCCommand() {\n initFields();\n }",
"public static final SourceModel.Expr inputMachineTypeFromJObject(SourceModel.Expr jMachineType) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.inputMachineTypeFromJObject), jMachineType});\n\t\t}",
"public abstract long mo24412e();",
"public abstract long mo9750o();",
"boolean mo6498O(C41531v c41531v);",
"public abstract C0270jy mo5354b();",
"static void perform_lhld(String passed){\n\t\tint type = type_of_lhld(passed);\n\t\tif(type==1)\n\t\t\tlhld_from_mem(passed);\n\t}",
"public void visitLCMP(LCMP o){\n\t\tif (stack().peek() != Type.LONG){\n\t\t\tconstraintViolated(o, \"The value at the stack top is not of type 'long', but of type '\"+stack().peek()+\"'.\");\n\t\t}\n\t\tif (stack().peek(1) != Type.LONG){\n\t\t\tconstraintViolated(o, \"The value at the stack next-to-top is not of type 'long', but of type '\"+stack().peek(1)+\"'.\");\n\t\t}\n\t}",
"AlgDataType getRowType();",
"public abstract String mo11611b();",
"public void mo21787L() {\n }",
"public interface C3196it extends C3208jc {\n /* renamed from: a */\n void mo30275a(long j);\n\n /* renamed from: b */\n C3197iu mo30281b(long j);\n\n /* renamed from: b */\n boolean mo30282b();\n\n /* renamed from: c */\n byte mo30283c();\n\n /* renamed from: c */\n String mo30285c(long j);\n\n /* renamed from: d */\n void mo30290d(long j);\n\n /* renamed from: e */\n int mo30291e();\n\n /* renamed from: f */\n long mo30295f();\n}",
"public static native int GetType(long lpjFbxDataType);",
"public String getLBR_ICMS_TaxReliefType();",
"static void perform_lxi(String passed){\n\t\tint type = type_of_lxi(passed);\n\t\tif(type==1)\n\t\t\tlxi_to_reg_pair(passed);\n\t}",
"public double getL() {\n return l;\n }",
"public String getLBR_CollectionRegType();",
"public RowSet getLookupSharedAppModule_XpeDccDicCustomerTypeLOV() {\n return (RowSet) getAttributeInternal(LOOKUPSHAREDAPPMODULE_XPEDCCDICCUSTOMERTYPELOV);\n }",
"public void setLtype(String value) {\n set(2, value);\n }",
"public static String addDatatypeForParameters( GenerateCVC1 cvc, QueryBlockDetails queryBlock ){\n\t\tString retVal = \"\";\n\t\tIterator<ArrayList<String>> itr = queryBlock.getParamsNodeMap().keySet().iterator();\n\t\tint val = 0;\n\t\tboolean isMaxOrMin = false;\n\t\twhile(itr.hasNext()){\n\t\t\tArrayList<String> params = (ArrayList<String>)itr.next();\n\t\t\tNode n = queryBlock.getParamsNodeMap().get(params);\n\t\t\t//String datatype = getDatatypeFromNode(n);\n\t\t\t//modified by bikash to ensure that datatype is the same as column name to ensure that range constraints get satisfied\n\t\t\t//FIXME: What if left side is aggregation\n\t\t\tString datatype;\n\n\t\t\tif(n.getLeft().getType().equalsIgnoreCase(Node.getAggrNodeType()))//If the left side of node is aggregate function\n\t\t\t\tdatatype = n.getLeft().getAgg().getAggExp().getColumn().getColumnName();\n\t\t\telse if (n.getRight().getType().equalsIgnoreCase(Node.getAggrNodeType()))//If the right side of node is aggregate function\n\t\t\t\tdatatype = n.getRight().getAgg().getAggExp().getColumn().getColumnName();\n\n\t\t\telse if(n.getLeft().getColumn()!=null)//if left side is not aggregate\n\t\t\t\tdatatype = n.getLeft().getColumn().getColumnName();\n\t\t\telse\n\t\t\t\tdatatype = n.getRight().getColumn().getColumnName();\n\t\t\t//System.out.println(\"datatype: \"+datatype);*/\n\t\t\t//String datatype = getDatatypeFromNode(n);\n\t\t\tif(n.getType().equalsIgnoreCase(Node.getBroNodeType())){\n\t\t\t\tif(n.getLeft().getType().equalsIgnoreCase(Node.getAggrNodeType()) ||\n\t\t\t\t\t\tn.getRight().getType().equalsIgnoreCase(Node.getAggrNodeType())){\n\t\t\t\t\tif(n.getAggFuncFromNode().getFunc().equalsIgnoreCase(\"MAX\")){\n\t\t\t\t\t\tisMaxOrMin = true;\n\t\t\t\t\t\tVector<Column> cols = n.getAggFuncFromNode().getAggExp().getColumnsFromNode();\n\t\t\t\t\t\tval = 0;\n\t\t\t\t\t\tfor(int i=0;i<cols.size();i++){\n\t\t\t\t\t\t\tif(val < cols.get(i).getMaxVal())\tval = (int)cols.get(i).getMaxVal();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(n.getAggFuncFromNode().getFunc().equalsIgnoreCase(\"MIN\")){\n\t\t\t\t\t\tisMaxOrMin = true;\n\t\t\t\t\t\tVector<Column> cols = n.getAggFuncFromNode().getAggExp().getColumnsFromNode();\n\t\t\t\t\t\tval = 1000000;\n\t\t\t\t\t\tfor(int i=0;i<cols.size();i++){\n\t\t\t\t\t\t\tif(val > cols.get(i).getMinVal())\tval = (int)cols.get(i).getMinVal();\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\t//Add the data type for all the params to CVC\n\t\t\tfor(int i=0;i<params.size();i++){\n\t\t\t\tretVal += params.get(i) + \" : \" + datatype +\";\\n\";\n\t\t\t\tif(isMaxOrMin)\n\t\t\t\t\tretVal += \"ASSERT \"+params.get(i)+\" = \"+val+\";\\n\";\n\t\t\t}\n\t\t\tisMaxOrMin = false;\n\t\t}\n\n\t\treturn retVal;\n\t}",
"public static final SourceModel.Expr debug_getMachineType(SourceModel.Expr calValue) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.debug_getMachineType), calValue});\n\t\t}",
"static int type_of_rnc(String passed){\n\t\treturn 1;\n\t}",
"public abstract C13619e mo34787a();",
"public String getName()\r\n\t{\r\n\t\treturn \"LS\";\r\n\t}",
"public String getCtype() {\n return ctype;\n }"
] | [
"0.5429636",
"0.54252416",
"0.54085344",
"0.53953636",
"0.529308",
"0.52642584",
"0.518094",
"0.5157501",
"0.513137",
"0.5118835",
"0.509342",
"0.50820404",
"0.5035909",
"0.50230503",
"0.5022585",
"0.49991783",
"0.49719572",
"0.49611986",
"0.4916127",
"0.49106592",
"0.4910502",
"0.49080715",
"0.48995298",
"0.48995298",
"0.48995298",
"0.48975122",
"0.48959568",
"0.48880672",
"0.48284015",
"0.48272642",
"0.48251182",
"0.482175",
"0.48199156",
"0.47963676",
"0.4793526",
"0.4789318",
"0.47855416",
"0.47749296",
"0.47708327",
"0.47620034",
"0.4756049",
"0.4748515",
"0.47475177",
"0.4746686",
"0.4744279",
"0.47437662",
"0.47328457",
"0.47296807",
"0.472343",
"0.47204068",
"0.47152257",
"0.47130874",
"0.47126058",
"0.47119623",
"0.4702945",
"0.47029033",
"0.46986368",
"0.46897733",
"0.4673364",
"0.46702626",
"0.46540216",
"0.46520847",
"0.46502975",
"0.46303335",
"0.4600443",
"0.4598185",
"0.45906487",
"0.4560764",
"0.45573783",
"0.4554099",
"0.45508048",
"0.4550787",
"0.45471495",
"0.45457965",
"0.45426407",
"0.45393765",
"0.45379782",
"0.45327199",
"0.45319855",
"0.45243806",
"0.4513891",
"0.451197",
"0.45058596",
"0.45040447",
"0.45005098",
"0.44978482",
"0.44952443",
"0.44947246",
"0.44943738",
"0.44780105",
"0.44770345",
"0.44752634",
"0.44738364",
"0.44728798",
"0.44720122",
"0.4468118",
"0.44651967",
"0.4460873",
"0.44570547",
"0.44563222"
] | 0.79615295 | 0 |
Helper binding method for function: jPrintToStandardOut. | public static final SourceModel.Expr jPrintToStandardOut(SourceModel.Expr message) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.jPrintToStandardOut), message});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void print (Object output){\r\n \t\tSystem.out.println(output);\r\n \t}",
"static native int jniPrint(long patch, JJJCallback printCb);",
"@VisibleForTesting\n void print();",
"@Override\r\n\tpublic void print() {\n\t}",
"void PrintOnScreen(String toPrnt);",
"public void print();",
"public void print();",
"public void print();",
"public void print();",
"@Override\n\tpublic void print() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void print() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tpublic void print() {\n\n\t}",
"public abstract PrintStream getOutputStream();",
"public String print();",
"public PrintToStringSubscriber() {\n super(System.out::println);\n }",
"@Override\n\t\tpublic void print() {\n\n\t\t}",
"@Override\r\n\t\t\tpublic void print() {\n\t\t\t\t\r\n\t\t\t}",
"public void print(){\r\n System.out.println(toString());\r\n }",
"void printWithJavaFX() {\n }",
"public void print() {\r\n\t\t System.out.println(toString());\r\n\t }",
"protected void print(Object s) throws IOException {\n out.write(Convert.escapeUnicode(s.toString()));\n }",
"@Override\n public void print() {\n }",
"public void setOut(PrintStream out);",
"public void println();",
"private void realPrint(PrintJob job) {\n\t}",
"private void realPrint(PrintJob job) {\n\t}",
"@Override\n\tpublic void print() {\n\t\tdecoratedPrinter.print();\n\t}",
"ProcessRunner print();",
"private ResultHandler print() {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic void printToFile() {\n\t\t\n\t}",
"void print();",
"void print();",
"void print();",
"void print();",
"void print();",
"public StdOutWriter ()\n {\n super (System.out, true);\n }",
"public void println() { System.out.println( toString() ); }",
"public static void print(Object s) {\n\t\tStdOut.println(s);\n\t}",
"private void realPrint(PrintJob job) {\n\t\tout.println(\"Print okay!\");\r\n\t}",
"public void executeOUT(){\n\t\tint asciiVal = mRegisters[0].getValue();\n\t\tchar toPrint = (char)asciiVal;\n\t\tSystem.out.print(toPrint);\n\t}",
"public static\n PrintStream out() {\n return Ansi.out;\n }",
"public void print() {\n System.out.println(toString());\n }",
"public void print () {\n }",
"void writeJavaScriptRenderer(PrintStream writer);",
"public void printMessage() {\n printMessage(System.out::print);\n }",
"public void print() {\n\t\tSystem.out.println(toString());\n\t}",
"public void print(Node node) \n{\n PrintWriter w = new PrintWriter(new OutputStreamWriter(System.out), true);\n print(node, w);\n}",
"public void writeOutput()\n\t{\n\t\tSystem.out.println(this.toString());\n\t}",
"void format(Printer printer);",
"public void writeOut(PrintWriter pw){}",
"public void printToViewConsole(String arg);",
"@After\n public void returnOutStream() { //\n System.setOut(System.out);\n }",
"public void print(Object someObj) {\r\n this.print(someObj.toString());\r\n }",
"ProcessRunner print(PrintStream out, PrintStream err);",
"private void out(Object obj) {\r\n\t\tSystem.out.println(deb + obj.toString());\r\n\t}",
"private void printJMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_printJMenuItemActionPerformed\n // TODO add your handling code here:\n PrintUtilities.printComponent(this);\n }",
"public abstract void print();",
"static final void setSystemOut(\n PrintStream out) /* hard-coded method signature */\n {\n sysOut = out;\n }",
"public abstract void printToStream(PrintStream stream);",
"static void print (){\n \t\tSystem.out.println();\r\n \t}",
"@Override\n\tvoid output() {\n\t\t\n\t}",
"public static void println(String toPrint)\n {\n System.out.println(toPrint);\n }",
"public void printer(double x);",
"@Override\n\tpublic void juxing() {\n\t\tSystem.out.println(\"***************\");\n\t\tSystem.out.println(\"***************\");\n\t\tSystem.out.println(\"***************\");\n\t\tSystem.out.println(\"***************\");\n\t\tSystem.out.println(\"***************\");\n\t}",
"public synchronized String print() {\r\n return super.print();\r\n }",
"public static void print(Object val) {\n Builtins.print(val);\n }",
"protected void printOut(String str)\n { if (stdout!=null) System.out.println(str);\n }",
"public void print(Object o) {\n\t\tsynchronized (out) {\n\t\t\tout.print(o);\n\t\t\tout.flush();\n\t\t}\n\t}",
"public static PrintStream out() {\n return System.out;\n }",
"private static void printToString(Printable p) {\n\t\tp.print();\n\t}",
"public interface Printable {\n\tvoid print();\n}",
"public interface Printable {\n public String printInstance();\n}",
"static void jconsole() {\n\n }",
"public void print() {\n System.out.println(this.toString());\n }",
"public static void printnb(Object o) {\r\n System.out.print(o);\r\n }",
"public static void print() {\r\n System.out.println();\r\n }",
"public void println() {\n\t\tprintln(\"\"); //$NON-NLS-1$\n\t}",
"private void print(String toBeWritten)\n\t\t{ pw.print(getIndentString() + toBeWritten); }",
"public void print() {\n\t\tPrinter.print(doPrint());\n\t}",
"public interface PrintFinishListener {\n void onFinish();\n}",
"public void streamOutput(String type,Object currentObj);",
"public String print() {\n return print(new StringBuffer()).toString();\n }",
"private void actionPrint() {\n // get PrinterJob\n PrinterJob job = PrinterJob.getPrinterJob();\n MyPrintable printable = new MyPrintable(job.defaultPage(), layoutPanel);\n\n // setup Printable, Pageable\n job.setPrintable(printable);\n job.setPageable(printable);\n\n // display print dialog and print\n if (job.printDialog()) {\n try {\n job.print();\n } catch (PrinterException e) {\n e.printStackTrace();\n }\n }\n }",
"void print() {\n\t\n\t}",
"public interface ConsolePrinter {\r\n\r\n\t/**\r\n\t * Prints given text line to console.\r\n\t * \r\n\t * @param line\r\n\t * text to print.\r\n\t */\r\n\tvoid println(String line);\r\n\r\n\t/**\r\n\t * Prints given (formatted) string to current server console.<br>\r\n\t * <i>Note: This method neither throws an exception nor prints anything if a\r\n\t * command line is available but no server console running. Use\r\n\t * {@link EduLog} for that.</i>\r\n\t * \r\n\t * @see Formatter\r\n\t * \r\n\t * @param line\r\n\t * A (format) string that should be printed.\r\n\t * \r\n\t * @param args\r\n\t * Format arguments.\r\n\t * \r\n\t * @throws IllegalFormatException\r\n\t * If a format string contains an illegal syntax, a format\r\n\t * specifier that is incompatible with the given arguments,\r\n\t * insufficient arguments given the format string, or other\r\n\t * illegal conditions. For specification of all possible\r\n\t * formatting errors, see the detail section of\r\n\t * {@link Formatter} class specification.\r\n\t */\r\n\tvoid printlnf(String line, Object... args);\r\n\r\n}",
"@Override\n public String toString() {\n ByteArrayOutputStream bs = new ByteArrayOutputStream();\n PrintStream out = new PrintStream(bs);\n output(out, \"\");\n return bs.toString();\n }",
"public static PrintStream sysOut() {\n return system_out;\n }",
"public void print() {\n\t\tSystem.out.println(\"针式打印机打印了\");\n\t\t\n\t}",
"public void print(PrintStream out)\n {\n for(double io : this.inputs)\n {\n //out.print(\"Inputs variable number\"+counter+\" \"+io+\" \\n\");\n out.printf(Locale.ENGLISH,\"%7.3f\", io);\n }\n out.print(SEPARATOR);\n for(double io : this.outputs)\n {\n //out.print(\"Outputs variable number\"+counter+\" \"+io+\" \\n\");\n out.printf(Locale.ENGLISH,\"%7.3f\", io);\n }\n }",
"public void printYourself(){\n\t}",
"@Override\n public void print() {\n System.out.println(\"Hello World Old Style!!\");\n }",
"public void printer() throws Exception{\n File outputFile = new File(\"output.txt\");\n FileOutputStream is = new FileOutputStream(outputFile);\n OutputStreamWriter osw = new OutputStreamWriter(is);\n Writer w = new BufferedWriter(osw);\n w.write(this.result());\n w.close();\n }",
"public void print() {\n\t\tif(log.isTraceEnabled()) {\n\t\t\tlog.info(\">> print()\");\n\t\t}\n\t\tSystem.out.println(p + \"/\" + q);\n\t\tif(log.isTraceEnabled()) {\n\t\t\tlog.info(\"<< print()\");\n\t\t}\n\t}",
"public String getPrint_optr(){\r\n\t\treturn this.print_optr ;\r\n\t}",
"private void sout() {\n\t\t\n\t}",
"public void actionPerformed(ActionEvent e) {\n \t\tPrinterJob job = PrinterJob.getPrinterJob();\n \t\tjob.setPrintable(this);\n \t\tboolean ok = job.printDialog();\n \t\tif (ok) {\n \t\t\ttry {\n \t\t\t\tjob.print();\n \t\t\t} catch (PrinterException ex) {\n \t\t\t\t/* The job did not successfully complete */\n \t\t\t}\n \t\t}\n \n \t}",
"private void syso() {\nSystem.out();\r\n}",
"abstract void print();",
"public void printQuiet() {\n if (numOut != 0) {\n System.out.println(numIn + \",\" + numOut + \",\" + (totTimeWait / numIn) + \",\" + (totTime / numOut));\n } else {\n System.out.println(numIn + \",\" + numOut + \",\" + (totTimeWait / numIn) + \",0\");\n }\n }",
"public interface Printable {\n void print();\n}"
] | [
"0.61085284",
"0.6044603",
"0.6017632",
"0.6005608",
"0.59946084",
"0.59806687",
"0.59806687",
"0.59806687",
"0.59806687",
"0.59789234",
"0.597252",
"0.5964834",
"0.5944649",
"0.5922603",
"0.5913839",
"0.5906112",
"0.58869493",
"0.5862034",
"0.58153474",
"0.580998",
"0.5808488",
"0.57873356",
"0.5760121",
"0.5756506",
"0.57221204",
"0.57221204",
"0.57134926",
"0.5675531",
"0.5668095",
"0.56516296",
"0.56510454",
"0.56510454",
"0.56510454",
"0.56510454",
"0.56510454",
"0.56492895",
"0.5637488",
"0.5633538",
"0.56288373",
"0.5596759",
"0.55929667",
"0.55921286",
"0.55898976",
"0.5585839",
"0.5551725",
"0.5548827",
"0.5545426",
"0.5538917",
"0.55235577",
"0.5516375",
"0.5515896",
"0.5487715",
"0.5485505",
"0.5476493",
"0.54715246",
"0.5460807",
"0.5460118",
"0.5447636",
"0.54467833",
"0.5444138",
"0.5428939",
"0.5416399",
"0.54156286",
"0.5409384",
"0.54006964",
"0.5398134",
"0.5386071",
"0.5376809",
"0.5363725",
"0.5361845",
"0.5340834",
"0.5338345",
"0.5334395",
"0.5326372",
"0.5321135",
"0.5316025",
"0.5315495",
"0.5302411",
"0.52905685",
"0.5286668",
"0.52830315",
"0.5277205",
"0.5266889",
"0.52570623",
"0.524362",
"0.5239162",
"0.52294093",
"0.5226122",
"0.52221483",
"0.5221615",
"0.5219372",
"0.5218948",
"0.52152437",
"0.52128035",
"0.520422",
"0.51982015",
"0.519617",
"0.5193349",
"0.51914907",
"0.5191066"
] | 0.66428566 | 0 |
Helper binding method for function: outputMachineTypeToJObject. | public static final SourceModel.Expr outputMachineTypeToJObject(SourceModel.Expr machineType) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.outputMachineTypeToJObject), machineType});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static final SourceModel.Expr inputMachineTypeFromJObject(SourceModel.Expr jMachineType) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.inputMachineTypeFromJObject), jMachineType});\n\t\t}",
"java.lang.String getMachineType();",
"public T caseOutputType(OutputType object) {\n\t\treturn null;\n\t}",
"MachineType getType();",
"com.google.protobuf.ByteString getMachineTypeBytes();",
"public static final SourceModel.Expr inputMachineType(SourceModel.Expr jMachineType) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.inputMachineType), jMachineType});\n\t\t}",
"@Override\n public Script.ScriptType getOutputScriptType() {\n return address.getOutputScriptType();\n }",
"public ObjectType getJVMType();",
"@Override\n\tpublic JavaType getOutputType(TypeFactory typeFactory) {\n\t\treturn null;\n\t}",
"public Object elConvertType(Object value);",
"public IOutputType getOutputTypeById(String id);",
"public IOutputType getPrimaryOutputType();",
"@JsProperty(name = \"msType\")\n public native String getMsType();",
"public static final SourceModel.Expr jMachineType_G() {\n\t\t\treturn SourceModel.Expr.Var.make(Functions.jMachineType_G);\n\t\t}",
"public IOutputType getOutputType(String outputExtension);",
"public String getJavaType() throws IOException {\n return JDeserialize.resolveJavaType(this.type, this.classname == null ? null : this.classname.value, true, false);\n }",
"public JType getType()\n\t{ return jType; }",
"public MachineType getMachineType() {\n return machineType;\n }",
"@Override\n public byte getType() {\n return TYPE_MONETARY_SYSTEM;\n }",
"public IOutputType[] getOutputTypes();",
"JavaOutputMapper(final ExecutableOutputField field, final TypeToken<?> javaType) {\n Preconditions.checkArgument(!javaType.getRawType().equals(Object.class));\n // Preconditions.checkArgument(!TypeVariable.class.isAssignableFrom(javaType.getType().getClass()));\n this.javaType = javaType;\n this.modelType = javaType;\n this.apply = UnaryOperator.identity();\n }",
"private static Class<? extends Writable> getNamedOutputValueClass(JobContext job, String namedOutput) {\r\n\t\treturn job.getConfiguration().getClass(MO_PREFIX + namedOutput + VALUE,\r\n\t\t\t\tnull, Writable.class);\r\n\t}",
"@Override final protected Class<?>[] getOutputTypes() { return this.OutputTypes; }",
"public String getOutValueClass() {\n return null;\n }",
"public Integer getJtype() {\n return jtype;\n }",
"@Override\n public Map<String, Class> getReturnedTypes() {\n return outputTypes;\n }",
"public Type getOutputType() {\n Preconditions.checkState(prepared);\n Preconditions.checkState(!closed);\n return outputType;\n }",
"@Override\r\n\tpublic Class getObjectType() {\n\t\treturn mapperInterface;\r\n\t}",
"public abstract jq_Type getDeclaredType();",
"public String getJavaType() {\n return type.getJavaType(isInt52());\n }",
"public static Object toJson(Object nativeObject) throws Exception\n { \n \tObject out = null;\n \tif(nativeObject instanceof String){\n \t\tout = nativeObject.toString();\n \t}\n \telse if(nativeObject instanceof ConsString){\n \t\tout = nativeObject.toString();\n \t}\n \telse if(nativeObject instanceof Integer){\n \t\tout = nativeObject;\n \t}\n \telse if(nativeObject instanceof Boolean){\n \t\tout = nativeObject;\n \t}\n \telse if(nativeObject instanceof Double){\n \t\tout = nativeObject;\n \t}\n \telse if (nativeObject instanceof NativeArray) \n { \n out = new JSONArray(nativeArrayToJSONString((NativeArray)nativeObject)); \n } \n else if (nativeObject instanceof NativeObject) \n { \n \tString kkkk = nativeObjectToJSONString((NativeObject)nativeObject);\n \ttry {\n out = new JSONObject(kkkk); \n \t}\n \tcatch(Throwable e) {\n \t\te.printStackTrace();\n \t\tSystem.out.println(kkkk);\n// \t\tthrow e;\n \t}\n }\n else if(nativeObject instanceof Function){\n \tout = new HAPFunctionType(Context.toString(nativeObject));\n }\n else if(nativeObject instanceof NativeJavaObject){\n \tObject javaObj = ((NativeJavaObject)nativeObject).unwrap();\n \tout = toJson(javaObj);\n \tif(out==null){\n \tString jsonStr = HAPSerializeManager.getInstance().toStringValue(javaObj, HAPSerializationFormat.JSON);\n \tif(javaObj instanceof List || javaObj instanceof Set) out = new JSONArray(jsonStr);\n \telse out = new JSONObject(jsonStr);\n \t}\n }\n else if(nativeObject instanceof Undefined) {\n// \tthrow new HAPCommonException(\"Undefined Value!!!!\");\n }\n \treturn out; \n }",
"@SuppressWarnings(\"all\")\n static Object aiJValue(final Object input, final Class<?> type) {\n return aiValue(input, type, Value::aiJType, (sourceType, targetType) -> aiExecute(sourceType, targetType, input,\n (source) -> {\n /*\n * If String, check whether it's date\n */\n if (String.class != type && Ut.isDate(source.toString())) {\n /*\n * String to\n */\n return V.vInstant().to(source, sourceType);\n } else {\n return input.toString();\n }\n }));\n }",
"ValueType getJsonValueType();",
"public abstract JType unboxify();",
"public com.flexnet.opsembedded.webservices.DeviceMachineTypeQueryType getMachineType() {\n return machineType;\n }",
"protected void writeType ()\n {\n stream.println (\" public org.omg.CORBA.TypeCode _type ()\");\n stream.println (\" {\");\n stream.println (\" return \" + helperClass + \".type ();\");\n stream.println (\" }\");\n stream.println ();\n }",
"public NodeToJexl(TypeRegistry<String> registry) {\n this.registry = registry;\n }",
"@JsProperty(name = \"msType\")\n public native void setMsType(String value);",
"@JsonCreator\n public static OutputType fromString(String name) {\n return fromString(name, OutputType.class);\n }",
"String vmExtensionType();",
"@JsProperty(name = \"type\")\n public native String getType();",
"private static Object mapValueToJava(Object value) {\n if (value instanceof Map) {\n value = ((Map<?, ?>) value).toMap();\n } else if (value instanceof Sequence) {\n value = ((Sequence<?>) value).toMappedList();\n } else if (value instanceof net.ssehub.easy.instantiation.core.model.vilTypes.Set<?>) {\n value = ((net.ssehub.easy.instantiation.core.model.vilTypes.Set<?>) value).toMappedSet();\n }\n return value;\n }",
"public static final SourceModel.Expr debug_getMachineType(SourceModel.Expr calValue) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.debug_getMachineType), calValue});\n\t\t}",
"@Override\r\n\tpublic String typeV() {\n\t\treturn hio.TyreType();\r\n\t}",
"private void initJavaType() { // FIXME move this logic to core module\n\t\tif (javaTypeMap == null) {\n\t\t\tjavaTypeMap = new TreeMap<String, List<String>>();\n\t\t}\n\t\tif (!javaTypeMap.containsKey(\"1\")) {\n\t\t\tList<String> list = new ArrayList<String>();\n\t\t\tlist.add(\"java.lang.String\");\n\t\t\tlist.add(\"java.sql.Date\");\n\t\t\tlist.add(\"java.sql.Time\");\n\t\t\tlist.add(\"java.sql.Timestamp\");\n\t\t\tlist.add(\"java.lang.Byte\");\n\t\t\tlist.add(\"java.lang.Short\");\n\t\t\tlist.add(\"java.lang.Integer\");\n\t\t\tlist.add(\"java.lang.Long\");\n\t\t\tlist.add(\"java.lang.Float\");\n\t\t\tlist.add(\"java.lang.Double\");\n\t\t\tlist.add(\"java.math.BigDecimal\");\n\t\t\tlist.add(\"byte\");\n\t\t\tlist.add(\"short\");\n\t\t\tlist.add(\"int\");\n\t\t\tlist.add(\"long\");\n\t\t\tlist.add(\"float\");\n\t\t\tlist.add(\"double\");\n\t\t\tjavaTypeMap.put(\"1\", list);\n\t\t}\n\t\tif (!javaTypeMap.containsKey(\"2\")) {\n\t\t\tList<String> list = new ArrayList<String>();\n\t\t\tlist.add(\"java.lang.Byte\");\n\t\t\tlist.add(\"java.lang.Short\");\n\t\t\tlist.add(\"java.lang.Integer\");\n\t\t\tlist.add(\"java.lang.Long\");\n\t\t\tlist.add(\"java.lang.Float\");\n\t\t\tlist.add(\"java.lang.Double\");\n\t\t\tlist.add(\"java.math.BigDecimal\");\n\t\t\tlist.add(\"java.lang.String\");\n\t\t\tlist.add(\"byte\");\n\t\t\tlist.add(\"short\");\n\t\t\tlist.add(\"int\");\n\t\t\tlist.add(\"long\");\n\t\t\tlist.add(\"float\");\n\t\t\tlist.add(\"double\");\n\t\t\tjavaTypeMap.put(\"2\", list);\n\t\t}\n\t\tif (!javaTypeMap.containsKey(\"3\")) {\n\t\t\tList<String> list = new ArrayList<String>();\n\t\t\tlist.add(\"java.sql.Date\");\n\t\t\tlist.add(\"java.sql.Time\");\n\t\t\tlist.add(\"java.sql.Timestamp\");\n\t\t\tlist.add(\"java.lang.String\");\n\t\t\tjavaTypeMap.put(\"3\", list);\n\t\t}\n\t\tif (!javaTypeMap.containsKey(\"4\")) {\n\t\t\tList<String> list = new ArrayList<String>();\n\t\t\tjavaTypeMap.put(\"4\", list);\n\t\t}\n\t\tif (!javaTypeMap.containsKey(\"5\")) {\n\t\t\tList<String> list = new ArrayList<String>();\n\t\t\tif (database != null) {\n\t\t\t\tString jdbcVersion = database.getDatabase().getServer().getJdbcDriverVersion();\n\t\t\t\tif (isAfterJdbc111(jdbcVersion)) {\n\t\t\t\t\tlist.add(\"cubrid.sql.CUBRIDOIDImpl\");\t\t\t\t\t\n\t\t\t\t} else { \n\t\t\t\t\tlist.add(\"cubrid.sql.CUBRIDOID\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlist.add(\"cubrid.sql.CUBRIDOID\");\n\t\t\t}\n\t\t\t\n\t\t\tjavaTypeMap.put(\"5\", list);\n\t\t}\n\t\tif (!javaTypeMap.containsKey(\"6\")) {\n\t\t\tList<String> list = new ArrayList<String>();\n\t\t\tlist.add(\"cubrid.jdbc.driver.CUBRIDResultSet\");\n\t\t\tjavaTypeMap.put(\"6\", list);\n\t\t}\n\t}",
"public abstract TypeSerializer<IN> getInputTypeSerializer();",
"public String type();",
"Coding getType();",
"public String getType(JmmNode node) {\n switch (node.getKind()) {\n case \"Add\":\n case \"Sub\":\n case \"Mul\":\n case \"Div\":\n return \"int\";\n\n case \"LessThan\":\n case \"And\":\n case \"Not\":\n return \"boolean\";\n\n case \"Var\":\n return getVariableSymbol(node.get(\"name\")).getType().getName();\n default:\n return null;\n }\n }",
"private String getNativeNameForJavaType(TypeName typeName) {\n\n if (isNumber(typeName)) {\n return \"Number\";\n } else if (isBoolean(typeName)) {\n return \"Boolean\";\n } else if (isString(typeName)) {\n return \"String\";\n } else if (isArray(typeName)) {\n return \"Array\";\n } else {\n return \"Object\";\n }\n }",
"public IOutputType createOutputType(IOutputType superClass, String Id, String name, boolean isExtensionElement);",
"public SystemExportGeneratorType() {\n }",
"@java.lang.Override\n public speech.multilang.Params.OutputControllerParams.Type getType() {\n @SuppressWarnings(\"deprecation\")\n speech.multilang.Params.OutputControllerParams.Type result = speech.multilang.Params.OutputControllerParams.Type.valueOf(type_);\n return result == null ? speech.multilang.Params.OutputControllerParams.Type.UNKNOWN : result;\n }",
"public JavaType getType() { return _type; }",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"String type();",
"public String getBoxedJavaType() {\n return type.getBoxedJavaType(isInt52());\n }",
"public abstract OMElement serialize();",
"public final native String getType() /*-{\n return this.getType();\n }-*/;",
"@Override\n public abstract void serializeWithType(JsonGenerator jgen, SerializerProvider ctxt,\n TypeSerializer typeSer)\n throws JacksonException;",
"public T caseOutputInterface(OutputInterface object)\n {\n return null;\n }",
"protected abstract GenericOutputBean convertSpecificOutputStructureToGenericOutputBean(T fileParsed);",
"public String getTargetTypeAsString() {\n\t\tString type = null;\n\t\t\n\t\tswitch (targetType) {\n\t\tcase PROCEDURE:\n\t\t\ttype = \"procedure\";\n\t\t\tbreak;\n\t\tcase POLICY:\n\t\t\ttype = \"policy\";\n\t\t\tbreak;\n\t\tcase PROCESS:\n\t\t\ttype = \"process\";\n\t\t\tbreak;\n\t\tcase EXTERNAL:\n\t\t\ttype = \"external\";\n\t\t\tbreak;\n\t\tcase NOT_SET:\n\t\t\ttype = \"procedure\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\ttype = \"procedure\";\n\t\t\tbreak;\n\t\t}\n\t\treturn type;\n\t}",
"CapabilitiesType createCapabilitiesType();",
"public interface TypeConvertor {\n Object convert (Class from, Class to, Object obj);\n String getCodeGenString ();\n}",
"private Object getTypeObjectPair() throws MathLinkException, NumberRangeException {\n Object result = null;\n int type = this.getInteger();\n if (type % -17 == -15) {\n type = -7 + -17 * (type / -17);\n } else if (type % -17 == -16) {\n type = -8 + -17 * (type / -17);\n }\n switch (type) {\n case -5: {\n result = new Integer(this.getInteger());\n break;\n }\n case -6: {\n result = new Long(this.getLongInteger());\n break;\n }\n case -4: {\n int i = this.getInteger();\n if (i < -32768 || i > 32767) {\n throw new NumberRangeException(i, \"short\");\n }\n result = new Short((short)i);\n break;\n }\n case -2: {\n int i = this.getInteger();\n if (i < -128 || i > 127) {\n throw new NumberRangeException(i, \"byte\");\n }\n result = new Byte((byte)i);\n break;\n }\n case -3: {\n int i = this.getInteger();\n if (i < 0 || i > 65535) {\n throw new NumberRangeException(i, \"char\");\n }\n result = new Character((char)i);\n break;\n }\n case -15: \n case -7: {\n double d = this.getDouble();\n if (d < -3.4028234663852886E38 || d > 3.4028234663852886E38) {\n throw new NumberRangeException(d, \"float\");\n }\n result = new Float((float)d);\n break;\n }\n case -16: \n case -8: {\n result = new Double(this.getDouble());\n break;\n }\n case -9: {\n int tok = this.getType();\n if (tok == 100000) {\n result = this.getObject();\n break;\n }\n result = this.getString();\n if (tok != 35 || !result.equals(\"Null\")) break;\n result = null;\n break;\n }\n case -1: {\n String s = this.getSymbol();\n if (s.equals(\"True\")) {\n result = Boolean.TRUE;\n break;\n }\n result = Boolean.FALSE;\n break;\n }\n case -13: {\n long mark = this.createMark();\n try {\n int tok = this.getNext();\n if (tok == 100000) {\n result = this.getObject();\n break;\n }\n if (tok == 35) {\n result = this.getSymbol();\n if (result.equals(\"Null\")) {\n result = null;\n break;\n }\n this.seekMark(mark);\n result = this.getComplex();\n break;\n }\n this.seekMark(mark);\n result = this.getComplex();\n }\n finally {\n this.destroyMark(mark);\n }\n }\n case -10: {\n long mark = this.createMark();\n try {\n int tok = this.getType();\n if (tok == 100000) {\n result = this.getObject();\n break;\n }\n if (tok == 35) {\n result = this.getSymbol();\n if (result.equals(\"Null\")) {\n result = null;\n break;\n }\n result = new BigInteger((String)result);\n break;\n }\n result = new BigInteger(this.getString());\n }\n finally {\n this.destroyMark(mark);\n }\n }\n case -11: {\n long mark = this.createMark();\n try {\n int tok = this.getType();\n if (tok == 100000) {\n result = this.getObject();\n break;\n }\n if (tok == 35) {\n result = this.getSymbol();\n if (result.equals(\"Null\")) {\n result = null;\n break;\n }\n result = Utils.bigDecimalFromString((String)result);\n break;\n }\n result = Utils.bigDecimalFromString(this.getString());\n }\n finally {\n this.destroyMark(mark);\n }\n }\n case -12: {\n long mark = this.createMark();\n try {\n int tok = this.getNext();\n if (tok == 100000 && (result = this.getObject()) != null) break;\n this.seekMark(mark);\n result = this.getExpr();\n }\n finally {\n this.destroyMark(mark);\n }\n }\n case -14: {\n result = this.getObject();\n break;\n }\n case -10000: {\n break;\n }\n default: {\n int tok = this.getNext();\n result = tok == 100000 || tok == 35 ? this.getObject() : (type > -34 ? this.getArray(type - -17, 1) : (type > -51 ? this.getArray(type - -34, 2) : (type > -68 ? this.getArray(type - -51, 3) : (type > -85 ? this.getArray(type - -68, 4) : this.getArray(type - -85, 5)))));\n }\n }\n return result;\n }",
"private String getType(){\r\n return type;\r\n }",
"public void serialize(JoyBuffer out) {\n\t\tout.putInt(getModuleType());\n\t}",
"protected abstract Object toObject(ByteBuffer content, Type targetType) throws BeanConversionException;",
"public Type toType() {\n return type;\n }",
"String objectOut (JField jf, Object value, MarshalContext context) {\n\t\tString result = value.toString ();\n\t\tif (jf.isDate ()) {\n\t\t\tSimpleDateFormat sdf = context.getDateFormat ();\n\t\t\tif (sdf == null) // the usuals seconds ..\n\t\t\t\tresult = ((java.sql.Timestamp)value).getTime() + \"\";\n\t\t\telse\n\t\t\t\tresult = sdf.format ((java.sql.Timestamp)value);\n\t\t}\n\t\telse if (jf.getObjectType ().equals (\"char\") && result.charAt (0) == (char)0)\n\t\t\tresult = \"\";\n\t\telse if (jf.getObjectType ().equals (\"double\") && result.equals (\"NaN\"))\n\t\t\tresult = \"\";\n\t\treturn result;\n }",
"public Byte getObjectType() {\n return objectType;\n }",
"private String genWriteCode(String name, String type) {\n\n if (type.equals(\"char\")) {\n return OUTSTREAM_VAR_NAME + \".writeChar( \" + name + \" );\";\n } else if (type.equals(\"short\")) {\n return OUTSTREAM_VAR_NAME + \".writeShort( \" + name + \" );\";\n } else if (type.equals(\"int\")) {\n return OUTSTREAM_VAR_NAME + \".writeInt( \" + name + \" );\";\n } else if (type.equals(\"float\")) {\n return OUTSTREAM_VAR_NAME + \".writeFloat( \" + name + \" );\";\n } else if (type.equals(\"double\")) {\n return OUTSTREAM_VAR_NAME + \".writeDouble( \" + name + \" );\";\n } else if (type.equals(\"std::string\")) {\n return OUTSTREAM_VAR_NAME + \".writeString( \" + name + \" );\";\n } else if (type.equals(\"bool\")) {\n return OUTSTREAM_VAR_NAME + \".writeBoolean( \" + name + \" );\";\n } else {\n throw new IllegalArgumentException(\"unknown primitive type=\" + type);\n }\n }",
"public interface TypeMapper {\n public <T> T sqlToJtype(Object sqlValue, Class<T> jType);\n public <T> T jToSql(Object jValue, String sqlType);\n}",
"IJvmTypeReferenceProvider getTypeProvider();",
"private void emitType (Type t) {\r\n if (t == PrimitiveType.BYTE || t == PrimitiveType.CHAR ||\r\n\tt == PrimitiveType.SHORT || t == PrimitiveType.INT) \r\n Emitter.emit (\"Integer\");\r\n else if (t == PrimitiveType.LONG) \r\n Emitter.emit (\"Long\");\r\n else if (t == PrimitiveType.FLOAT) \r\n Emitter.emit (\"Float\");\r\n else if (t == PrimitiveType.DOUBLE) \r\n Emitter.emit (\"Double\");\r\n else if (t == PrimitiveType.BOOL) \r\n Emitter.emit (\"Boolean\");\r\n }",
"public T caseOutputModel(OutputModel object) {\n\t\treturn null;\n\t}",
"@java.lang.Override public speech.multilang.Params.OutputControllerParams.Type getType() {\n @SuppressWarnings(\"deprecation\")\n speech.multilang.Params.OutputControllerParams.Type result = speech.multilang.Params.OutputControllerParams.Type.valueOf(type_);\n return result == null ? speech.multilang.Params.OutputControllerParams.Type.UNKNOWN : result;\n }",
"GetCapabilitiesType createGetCapabilitiesType();",
"public short getObjtype() {\n\treturn objtype;\n}",
"@Override abstract public String type();",
"private String getType( )\n\t{\n\t\treturn this.getModuleName( ) + \"$\" + this.getSimpleName( ) + \"$\" + this.getSystem( );\n\t}"
] | [
"0.63546884",
"0.6009423",
"0.5639588",
"0.55734736",
"0.5556473",
"0.55420953",
"0.5480474",
"0.5429729",
"0.53507406",
"0.53324705",
"0.52690876",
"0.5221685",
"0.52054405",
"0.516994",
"0.51480496",
"0.5141712",
"0.51302207",
"0.5108381",
"0.51079255",
"0.5100157",
"0.5080741",
"0.50755703",
"0.50548434",
"0.5030461",
"0.502202",
"0.50095767",
"0.49508977",
"0.49490824",
"0.49451295",
"0.49100268",
"0.48805803",
"0.4878475",
"0.48755133",
"0.48688507",
"0.48467478",
"0.4825385",
"0.48083436",
"0.47869518",
"0.47827503",
"0.47656468",
"0.47586337",
"0.47529936",
"0.47526565",
"0.47508204",
"0.47439477",
"0.47413805",
"0.47343647",
"0.47232792",
"0.46936676",
"0.4684462",
"0.467789",
"0.46764436",
"0.46514618",
"0.4645509",
"0.46409953",
"0.46409953",
"0.46409953",
"0.46409953",
"0.46409953",
"0.46409953",
"0.46409953",
"0.46409953",
"0.46409953",
"0.46409953",
"0.46409953",
"0.46409953",
"0.46409953",
"0.46409953",
"0.46409953",
"0.46409953",
"0.46409953",
"0.46409953",
"0.46409953",
"0.46409953",
"0.46383768",
"0.46246618",
"0.46239313",
"0.46194878",
"0.46163285",
"0.46107343",
"0.46010315",
"0.45999384",
"0.4593955",
"0.45937023",
"0.45931873",
"0.45929384",
"0.4591651",
"0.45897263",
"0.4583687",
"0.45779008",
"0.45705152",
"0.45697495",
"0.45665067",
"0.45628175",
"0.45626178",
"0.45617622",
"0.45532253",
"0.45502776",
"0.45445493",
"0.45424524"
] | 0.79498553 | 0 |
Calculates the difference between two values as a percentage of the first value and rounds the result to two decimal places. | public static final SourceModel.Expr percentDif(SourceModel.Expr x, SourceModel.Expr y) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.percentDif), x, y});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String calcularPercentual(String valor1, String valor2) {\r\n\r\n\t\tBigDecimal bigValor1 = new BigDecimal(valor1);\r\n\t\tBigDecimal bigValor2 = new BigDecimal(valor2 != null ? valor2 : \"1\");\r\n\r\n\t\tBigDecimal numeroCem = new BigDecimal(\"100\");\r\n\r\n\t\tBigDecimal primeiroNumero = bigValor1.multiply(numeroCem);\r\n\r\n\t\tBigDecimal resultado = primeiroNumero.divide(bigValor2, 2, BigDecimal.ROUND_HALF_UP);\r\n\r\n\t\treturn (resultado + \"\");\r\n\t}",
"public double percent(double firstNumber, double secondNumber) {\n\t\tdouble result = firstNumber*(secondNumber/100);\n\t\treturn result;\n\t}",
"java.lang.String getPercentage();",
"public double percentage(double value) {\n return basicCalculation(value, 100, Operator.DIVIDE);\n }",
"public double getPercentRem(){\n return ((double)freeSpace / (double)totalSpace) * 100d;\n }",
"private double computeDifferentialPCT(double currentValue, double average) {\n return average <= Double.MIN_VALUE ? 0.0 : (currentValue / average - 1) * 100.0;\n }",
"public BigDecimal getPercentageProfitPStd();",
"public static void main(String[] args) {\n \tdouble num1 = 7.15;\n \tdouble num2 = 10.0;\n\t\t// 创建一个数值格式化对象\n\t\tNumberFormat numberFormat = NumberFormat.getInstance();\n\t\tDecimalFormat decimalFormat = new DecimalFormat(\"#.00\");\n\t\t// 设置精确到小数点后2位\n\t\tnumberFormat.setMaximumFractionDigits(2);\n\t\tString result = numberFormat.format((num1 / num2 * 100));\n\t\tSystem.out.println(\"num1和num2的百分比为:\" + result + \"%\");\n\t\tSystem.out.println(\"num1和num2的百分比为:\" + decimalFormat.format(Double.valueOf(result)) + \"%\");\n\t}",
"public static double calculateValueInPercentage(double value) {\r\n return value * 0.01;\r\n }",
"public void percentualGordura(){\n\n s0 = 4.95 / denscorp;\n s1 = s0 - 4.50;\n percentgord = s1 * 100;\n\n }",
"int getPercentageHeated();",
"public static BigDecimal calcularPercentualBigDecimal(BigDecimal bigValor1, BigDecimal bigValor2) {\r\n\r\n\t\tBigDecimal resultado = new BigDecimal(\"0.0\");\r\n\r\n\t\tif (bigValor2.compareTo(new BigDecimal(\"0.0\")) != 0) {\r\n\r\n\t\t\tBigDecimal numeroCem = new BigDecimal(\"100\");\r\n\r\n\t\t\tBigDecimal primeiroNumero = bigValor1.multiply(numeroCem);\r\n\r\n\t\t\tresultado = primeiroNumero.divide(bigValor2, 2, BigDecimal.ROUND_HALF_UP);\r\n\t\t}\r\n\t\treturn resultado;\r\n\t}",
"double getChangePercent() {\n\t return 100 - (currentPrice * 100 / previousClosingPrice);\n\t }",
"public int percent() {\n\t\tdouble meters = meters();\n\t\tif (meters < MIN_METERS) {\n\t\t\treturn 0;\n\t\t}\n\t\treturn (int) (Math.pow((meters - MIN_METERS)\n\t\t\t\t/ (MAX_METERS - MIN_METERS) * Math.pow(100, CURVE),\n\t\t\t\t1.000d / CURVE));\n\t}",
"public int getPercentage() {\r\n\r\n\t\treturn (getAmount() - offeredQuantity) / 100;\r\n\r\n\t}",
"private float getPercentage(int count, int total) {\n return ((float) count / total) * 100;\n }",
"public static double difference(double num) {\n return Math.round(num * 100.0) / 100.0;\n }",
"public BigDecimal getPercentageProfitPLimit();",
"int getRemainderPercent();",
"Float getFedAnimalsPercentage();",
"private void percent()\n\t{\n\t\tDouble percent;\t\t//holds the right value percentage of the left value\n\t\tString newText = \"\";//Holds the updated text \n\t\tif(calc.getLeftValue ( ) != 0.0 && Fun != null)\n\t\t{\n\t\t\tsetRightValue();\n\t\t\tpercent = calc.getRightValue() * 0.01 * calc.getLeftValue();\n\t\t\tleftValue = calc.getLeftValue();\n\t\t\tnewText += leftValue;\n\t\t\tswitch (Fun)\n\t\t\t{\n\t\t\t\tcase ADD:\n\t\t\t\t\tnewText += \" + \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase SUBTRACT:\n\t\t\t\t\tnewText += \" - \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase DIVIDE:\n\t\t\t\t\tnewText += \" / \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase MULTIPLY:\n\t\t\t\t\tnewText += \" * \";\n\t\t\t\t\tbreak;\n\t\t\t}//end switch\n\t\t\t\n\t\t\tnewText += \" \" + percent;\n\t\t\tentry.setText(newText);\n\t\t\t\n\t\t}//end if\n\t\t\n\t}",
"public double toPercent(double x){\n\t\treturn x/ 100;\n\t}",
"double redPercentage();",
"public double showDifference(Student student) {\r\n\t\treturn Math.abs(student.getPercentage()-this.getPercentage());\r\n\t}",
"private double calcScorePercent() {\n\t\tdouble adjustedLab = totalPP * labWeight;\n\t\tdouble adjustedProj = totalPP * projWeight;\n\t\tdouble adjustedExam = totalPP * examWeight;\n\t\tdouble adjustedCodeLab = totalPP * codeLabWeight;\n\t\tdouble adjustedFinal = totalPP * finalWeight;\n\n\t\tlabScore = (labScore / labPP) * adjustedLab;\n\t\tprojScore = (projScore / projPP) * adjustedProj;\n\t\texamScore = (examScore / examPP) * adjustedExam;\n\t\tcodeLabScore = (codeLabScore / codeLabPP) * adjustedCodeLab;\n\t\tfinalExamScore = (finalExamScore / finalExamPP) * adjustedFinal;\n\n//\t\tdouble labPercent = labScore / adjustedLab;\n//\t\tdouble projPercent = projScore / adjustedProj;\n//\t\tdouble examPercent = examScore / adjustedExam;\n//\t\tdouble codeLabPercent = codeLabScore / adjustedCodeLab;\n//\t\tdouble finalPercent = finalExamScore / adjustedFinal;\n\n\t\tdouble totalPercent = (labScore + projScore + examScore + codeLabScore + finalExamScore) / totalPP;\n\t\t\n\t\tscorePercent = totalPercent;\n\t\t\n\t\treturn totalPercent;\n\t}",
"public double getMainPercentage(){return mainPercentage;}",
"public String division()\r\n {if (Second.compareTo(BigDecimal.ZERO)==0){\r\n throw new RuntimeException(\"Error\");\r\n }\r\n return First.divide(Second,5,BigDecimal.ROUND_UP).stripTrailingZeros().toString();\r\n }",
"public Double getProgressPercent();",
"public Double retornaSubTotal(Double totalGeral,Double desconto){\n return totalGeral - (totalGeral*(desconto/100));\n}",
"public double getPercentRem(long used){\n long left = freeSpace - used;\n return ((double)left / (double)totalSpace) * 100d;\n }",
"public void calculateAndDisplay() {\n fromUnitString = fromUnitEditText.getText().toString();\r\n if (fromUnitString.equals(\"\")) {\r\n fromValue = 0;\r\n }\r\n else {\r\n fromValue = Float.parseFloat(fromUnitString);\r\n }\r\n\r\n // calculate the \"to\" value\r\n toValue = fromValue * ratio;\r\n\r\n // display the results with formatting\r\n NumberFormat number = NumberFormat.getNumberInstance();\r\n number.setMaximumFractionDigits(2);\r\n number.setMinimumFractionDigits(2);\r\n toUnitTextView.setText(number.format(toValue));\r\n }",
"public int division(){\r\n return Math.round(x/y);\r\n }",
"public float getPercentage() {\r\n\t\tif(!isValid)\r\n\t\t\treturn -1;\r\n\t\treturn percentage;\r\n\t}",
"private double calculateDiscountPercent(Amount discountAmount) {\n Amount runningTotalBeforeDiscount = saleState.getRunningTotal();\n double totalBeforeDiscount = \n runningTotalBeforeDiscount.getAmount().doubleValue();\n double totalDiscount = \n discountAmount.getAmount().doubleValue();\n double totalsQuotient = totalDiscount / totalBeforeDiscount;\n double discountPercent = totalsQuotient * 100;\n return discountPercent;\n }",
"public int getPercentage() {\r\n return Percentage;\r\n }",
"private static void computePercentage(int numberOfA[], int numberOfB[], int percentageOfB[]) {\n\t\tfor ( int i = 0; i < percentageOfB.length; i++ )\n\t\t\tpercentageOfB[i] = (int) Math.round( numberOfB[i] * 100.0 / ( numberOfB[i] + numberOfA[i] ));\n\t}",
"public BigDecimal getVAT_CHARGE_INSUR_PERCENT() {\r\n return VAT_CHARGE_INSUR_PERCENT;\r\n }",
"public float getGoodPercentage(){\n float result;\n try {\n result = ((float)(goodFrameCount)) / (goodFrameCount + badFrameCount)*100;\n Log.d(\"PROCESSING_SERVICE\", \"goodTimePercentage = \"+result);\n } catch(ArithmeticException ex){\n result = 100;\n Log.d(\"PROCESSING_SERVICE\", \"goodTimePercentage = \"+result);\n }\n Log.d(\"PROCESSING_SERVICE\", \"goodTimePercentage = \"+result);\n if(Float.isNaN(result)){\n Log.d(\"PROCESSING_SERVICE\", \"goodTimePercentage = \"+result);\n result=100;\n Log.d(\"PROCESSING_SERVICE\", \"goodTimePercentage = \"+result);\n }\n return result;\n }",
"public static BigDecimal calcularPercentualBigDecimal(String valor1, String valor2) {\r\n\r\n\t\tBigDecimal bigValor1 = new BigDecimal(valor1);\r\n\t\tBigDecimal bigValor2 = new BigDecimal(valor2 != null ? valor2 : \"1\");\r\n\r\n\t\treturn calcularPercentualBigDecimal(bigValor1, bigValor2);\r\n\t}",
"double greenPercentage();",
"private float calculateTip( float amount, int percent, int totalPeople ) {\n\t\tfloat result = (float) ((amount * (percent / 100.0 )) / totalPeople);\n\t\treturn result;\n\t}",
"@Override\n public double calculatePercentageExtra() {\n double percentageExtra = 0;\n \n percentageExtra += getTwoColourCost();\n \n if(getChemicalResistance()) {\n percentageExtra += getChemicalResistanceCost();\n }\n \n return percentageExtra;\n }",
"private String changeToPercent(String value, int AVG){\n String result;\n double d = Double.parseDouble(value)*100;\n double r = (d/AVG)*100;\n result = String.valueOf(round(r));\n return result;\n }",
"public static float div(int value1, int value2){\r\n return (float) value1 / value2;\r\n }",
"public static Percentage of(double percentage) {\n return of(Decimal.of(percentage));\n }",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.math.BigDecimal getBlueCarFaultPercentage();",
"public double getPercent() { return this.percentage; }",
"public static UnitP Division(double first, UnitP second)\n {\n return OperationsPublic.PerformUnitOperation\n (\n first, second, Operations.Division,\n OperationsOther.GetOperationString(first, second, Operations.Division)\n );\n }",
"public double calculateHpPercent();",
"public String percentageProgress(float goalSavings, float currGoalPrice) {\n float percentageProgress = (goalSavings / currGoalPrice) * 100;\n DecimalFormat df = new DecimalFormat(\"#.##\");\n df.setRoundingMode(RoundingMode.CEILING);\n return \"[\" + df.format(percentageProgress) + \"%]\";\n }",
"private float valOf(SeekBar bar) {\n return (float) bar.getProgress() / bar.getMax();\n }",
"public static float dif(double a, double b){\n if(a > b) return (float) (Math.abs(a) - Math.abs(b));\n return (float) (Math.abs(b) - Math.abs(a));\n }",
"public Double getTotalAnomalyPercentage();",
"private double calculatePercentTime(Date startDate, Date endDate) {\r\n log.debug(\"calculatePercentTime.START\");\r\n Date currentDate = new Date();\r\n double percentTime = ((double) currentDate.getTime() - (double) startDate.getTime())\r\n / ((double) endDate.getTime() - (double) startDate.getTime()) * 100;\r\n\r\n return Math.round(percentTime * 100.0) / 100.0;\r\n }",
"public static String getFormattedPercentage(double value) {\n return NumberFormat.getPercentInstance().format(value);\n }",
"public static float calculatePercent(float numOfSpecificTrees, float totalTrees){\n\t\tfloat percent= numOfSpecificTrees/totalTrees*100;\n\t\treturn percent;\n\t\t\n\t}",
"public double getPercentChange() {\n return percentChange;\n }",
"public String getDiscountPercentageofsecondVolumeDiscountQuantity()\n\t{\n\t\twaitForVisibility(discountPercentageofsecondVolumeDiscountQuantity);\n\t\treturn discountPercentageofsecondVolumeDiscountQuantity.getText();\n\t}",
"public static String getPercent(int numerator, int denominator, Locale locale) {\n //http://docs.oracle.com/javase/tutorial/i18n/format/decimalFormat.html\n NumberFormat nf = NumberFormat.getNumberInstance(locale); //Locale.US, .....\n DecimalFormat df = (DecimalFormat) nf;\n df.applyPattern(\"###.#\");\n if (denominator == 0) {\n return df.format(0) + \"%\";\n }\n float percent = (numerator / (float) denominator) * 100;\n return df.format(percent) + \"%\";\n }",
"public static UnitP Division(UnitP first, double second)\n {\n return OperationsPublic.PerformUnitOperation\n (\n first, second, Operations.Division, \n OperationsOther.GetOperationString(first, second, Operations.Division)\n );\n }",
"public static double RELATIVE_PERCENTAGE_SUPPORT(Feature a, Feature b) {\n double num = 0.0, den = 0.0, dinf, dsup, rat = -1.0;\n int i;\n\n if (!a.type.equals(b.type)) Dataset.perror(\"Feature.class :: not the same class for features\");\n\n if (Feature.IS_CONTINUOUS(a.type)) {\n if ((b.dmax == b.dmin) || (a.dmax <= b.dmin) || (a.dmin >= b.dmax)) return 0.0;\n\n if (a.dmin < b.dmin) dinf = b.dmin;\n else dinf = a.dmin;\n\n if (a.dmax > b.dmax) dsup = b.dmax;\n else dsup = a.dmax;\n\n num = dsup - dinf;\n den = b.dmax - b.dmin;\n } else if (Feature.IS_INTEGER(a.type)) {\n if ((a.imax < b.imin) || (a.imin > b.imax)) return 0.0;\n\n if (a.imin <= b.imin) dinf = (double) b.imin;\n else dinf = (double) a.imin;\n\n if (a.imax >= b.imax) dsup = (double) b.imax;\n else dsup = (double) a.imax;\n\n num = dsup - dinf + 1.0;\n den = ((double) (b.imax - b.imin)) + 1.0;\n } else if (Feature.IS_NOMINAL(a.type)) {\n if (b.modalities.size() == 0) return 0.0;\n else den = (double) b.modalities.size();\n\n num = 0.0;\n for (i = 0; i < a.modalities.size(); i++)\n if (b.modalities.contains((String) a.modalities.elementAt(i))) num += 1.0;\n } else Dataset.perror(\"Feature.class :: feature type unknown\");\n\n rat = num / den;\n if ((rat < 0.0) || (rat > 1.0))\n Dataset.perror(\"Feature.class :: ratio \" + rat + \" not a probability\");\n return rat;\n }",
"private double gradeQuiz() {\n int numCorrect = getNumberCorrect();\n double percentage = (numCorrect / numQuestions) * 100;\n return percentage;\n }",
"@Override\n\tpublic int calculation(int a, int b) {\n\t\treturn b/a;\n\t}",
"@gw.internal.gosu.parser.ExtendedProperty\n public java.math.BigDecimal getRedCarFaultPercentage();",
"public double getCurrentPercentageError() {\n\t\tdouble returnValue = 0.0;\n\t\tint currentValue = this.readSensorValue();\n\t\tint optimum = getOptimumSensorValue(currentValue);\n\t\tif (currentValue > optimum) {\n\t\t\treturnValue = (double) (currentValue - optimum)\n\t\t\t\t\t/ (double) (this.highReadInValue - optimum);\n\t\t} else if (currentValue < optimum) {\n\t\t\treturnValue = -((double) (optimum - currentValue) / (double) (optimum - this.lowReadInValue));\n\t\t}\n\t\treturn returnValue;\n\t}",
"public double getUnitsPerPercent()\n {\n return unitsPerPercent;\n }",
"@FromAnyThread\n public static float calculateRadiusPercent(float radius, float x, float y) {\n // find percentage for each 'unit' in radius\n var val = Math.abs(CoordsUtils.length(x, y)) / radius;\n val = 1f - val;\n return val;\n }",
"@Override\n public String getSavingsPercentage() {\n\n final String savingsPercent = getElement(getDriver(), By.className(SAVINGS_PERCENTAGE),\n TINY_TIMEOUT).getText();\n setLogString(\"Savings Percentage:\" + savingsPercent + \"%\", true, CustomLogLevel.HIGH);\n return savingsPercent + \"%\";\n }",
"public double getValue(){\n return (double) numerator / (double) denominator;\n }",
"double updateValue(double value, double percentage){\n\t\treturn value+=(value*(.01*percentage));\r\n\t}",
"Double getTotalSpent();",
"@Override\n\t\tpublic Double fazCalculo(Double num1, Double num2) {\n\t\t\treturn num1 / num2;\n\t\t}",
"@Override\n\tpublic double divide(double in1, double in2) {\n\t\treturn 0;\n\t}",
"org.hl7.fhir.Ratio getValueRatio();",
"public static double round2(double num1) {\n\t\tnum1=((num1+.005)*100);\r\n\t\tnum1 = (int) num1;\r\n\t\treturn(num1/100);\r\n\t}",
"@Override\r\n\tpublic double calculate() {\n\t\treturn n1 / n2;\r\n\t}",
"public Price percentage(Float percentage) {\n this.percentage = percentage;\n return this;\n }",
"public double getValueAsPercentInPage(double fltValueAsPercentInTimeline) {\n double fltTimeLineRangeInRmsFrames = intPageAmount * intPageSizeInRmsFrames;\n double fltPageHorStartPositionInTimeline = ((pageValue.fltPageNum - 1) * intPageSizeInRmsFrames);\n double fltPageHorEndPositionInTimeline = (pageValue.fltPageNum * intPageSizeInRmsFrames);\n double fltItemPositionInTimeline = (fltValueAsPercentInTimeline/100.0f) * fltTimeLineRangeInRmsFrames;\n\n double fltValue = 0;\n if ((fltItemPositionInTimeline >= fltPageHorStartPositionInTimeline) && (fltItemPositionInTimeline <= fltPageHorEndPositionInTimeline)) {\n // Selected position is inside display page\n fltValue = ((fltItemPositionInTimeline - fltPageHorStartPositionInTimeline) * 100.0f)/intPageSizeInRmsFrames;\n } else if (fltItemPositionInTimeline < fltPageHorStartPositionInTimeline){\n // Selected position is outside on left of page\n fltValue = 0;\n } else if (fltItemPositionInTimeline > fltPageHorEndPositionInTimeline){\n // Selected position is outside on right of page\n fltValue = 100;\n }\n return fltValue;\n }",
"double getRatio();",
"public float getPercent() {\n return percent;\n }",
"public double getSpeedAccordingExcessPercent(double a, double b, double excess) {\n return a * excess * excess + b;\n }",
"public Double calcPPMDiff(Double mass1, Double mass2)\n\t{\n\t\treturn (Math.abs(mass1 - mass2)/(mass2))*1000000;\n\t}",
"public void generatePercentage(Breakdown breakdown, double total) {\n\n ArrayList<HashMap<String, Breakdown>> list1 = breakdown.getBreakdown();\n for (HashMap<String, Breakdown> map : list1) {\n\n int count = Integer.parseInt(map.get(\"count\").getMessage());\n int percent = (int) Math.round((count * 100) / total);\n map.put(\"percent\", new Breakdown(\"\" + percent));\n\n }\n\n }",
"public float getAsFloat(){\n return (new Float(getAsCents()) / 100);\n }",
"public Number getPercentage() {\n return (Number) getAttributeInternal(PERCENTAGE);\n }",
"@Override\n\tpublic double divide(double a, double b) {\n\t\treturn (a/b);\n\t}",
"public static double divFraction(Fraction f1, Fraction f2) {\n\t\treturn (f1.getNumerator() * f2.getDenominator()) / (f1.getDenominator() * f2.getNumerator());\n\t}",
"public double getVentureChecklistPercent(Member member1) {\n\t\tdouble mapSubclassCount;\r\n\t\tdouble mySubclassCount;\r\n\t\tdouble percentCount;\r\n\t\tSl1 = \"SELECT COUNT(*) AS count FROM map_subclass WHERE mapClassID=?\";\r\n\t\ttry {\r\n\t\t\tconn = dataSource.getConnection();\r\n\t\t\tsmt = conn.prepareStatement(Sl1);\r\n\t\t\tsmt.setString(1, member1.getSetPercent());\r\n\t\t\tSystem.out.println(\"getSetPercent()=\"+member1.getSetPercent());\r\n\t\t\trs1 = smt.executeQuery();\r\n\t\t\tif(rs1.next()){\t\r\n\t\t\t\tmapSubclassCount=rs1.getInt(\"count\");\r\n\t\t\t\tSystem.out.println(\"mapSubclassCount=\"+mapSubclassCount);\t\t\t\t\r\n\t\t\t\tSl2 = \"SELECT COUNT(*) AS count FROM venture_checklist WHERE mapClassID=? AND memberAccount =? \";\r\n\t\t\t\tsmt = conn.prepareStatement(Sl2);\r\n\t\t\t\tsmt.setString(1, member1.getSetPercent());\r\n\t\t\t\tsmt.setString(2, member1.getAccount());\r\n\t\t\t\trs2 = smt.executeQuery();\r\n\t\t\t\tif(rs2.next()){\t\r\n\t\t\t\t\tmySubclassCount=rs2.getInt(\"count\");\r\n\t\t\t\t\t//System.out.println(\"mySubclassCount=\"+mySubclassCount);\t\r\n\t\t\t\t\tpercentCount = mySubclassCount/mapSubclassCount;\r\n\t\t\t\t\t//System.out.println(\"percentCount=\"+(mySubclassCount/mapSubclassCount));\r\n\t\t\t\t\treturn percentCount;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tsmt.executeQuery();\r\n\t\t\trs1.close();\r\n\t\t\trs2.close();\r\n\t\t\tsmt.close();\r\n \r\n\t\t} catch (SQLException e) {\r\n\t\t\tthrow new RuntimeException(e);\r\n \r\n\t\t} finally {\r\n\t\t\tif (conn != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tconn.close();\r\n\t\t\t\t} catch (SQLException e) {}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn 0;\r\n\t}",
"public java.lang.String getPercentage() {\n java.lang.Object ref = percentage_;\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 percentage_ = s;\n }\n return s;\n }\n }",
"public BigDecimal getVAT_PERCENTAGE() {\r\n return VAT_PERCENTAGE;\r\n }",
"com.google.protobuf.ByteString\n getPercentageBytes();",
"@Test\n\tpublic void testDivideTwoFractions() {\n\t\tFraction f1 = new Fraction(3,4);\n\t\tFraction f2 = new Fraction (3,4);\n\t\t\n\t\tFraction expected = new Fraction (1,1);\n\t\t\n\t\tassertEquals(expected, f1.divide(f2));\n\t}",
"@Override\n\tpublic Double calcular(Produto produto) {\n\t\treturn (produto.getValorUnitario()) - (produto.getValorUnitario() * 0.25);\n\t}",
"public SimpleDoubleProperty getTotalAbsencePercentageProperty() {\n return totalAbsencePercentageProperty;\n }",
"public float getProgressPct() {\n return (float) currentCompactedKVs / getTotalCompactingKVs();\n }",
"public static void main(String[] args) {\n\n String result = NumberFormat.getPercentInstance().format(0.1);// method chaining\n System.out.println(result);\n }",
"public static double round2(double x) {\n\t\treturn Math.round(100 * x) / 100d;\n\t}",
"protected double roundHalfUp(double num) {\r\n return (double) Math.round(num * 100) / 100;\r\n }",
"int getBatteryPercentage();",
"public double getPercentage() {\n\t\treturn this.percentage;\n\t}"
] | [
"0.6884383",
"0.6859069",
"0.6714448",
"0.65715855",
"0.6557923",
"0.64874864",
"0.6418158",
"0.64068645",
"0.63107616",
"0.61727923",
"0.61386544",
"0.6120742",
"0.61189413",
"0.6110688",
"0.6059881",
"0.60598546",
"0.60487723",
"0.59870625",
"0.59766364",
"0.59717304",
"0.5950534",
"0.59265",
"0.5900922",
"0.5896515",
"0.5883899",
"0.5842909",
"0.5816735",
"0.5803533",
"0.57983",
"0.57907254",
"0.5785604",
"0.5779064",
"0.5772518",
"0.5761291",
"0.5703146",
"0.56727517",
"0.5658142",
"0.56569904",
"0.56527007",
"0.5640143",
"0.5639102",
"0.56346554",
"0.5628943",
"0.5628227",
"0.5616584",
"0.56163466",
"0.5594565",
"0.55807453",
"0.5577063",
"0.55692494",
"0.5565679",
"0.55604094",
"0.55568385",
"0.5555653",
"0.5542725",
"0.55376214",
"0.5519629",
"0.55187017",
"0.55152696",
"0.5508424",
"0.5505328",
"0.5498649",
"0.5496355",
"0.54856837",
"0.5485529",
"0.54818434",
"0.54766923",
"0.5472342",
"0.5471373",
"0.5462348",
"0.546109",
"0.5459049",
"0.545292",
"0.54510635",
"0.54492176",
"0.54289174",
"0.5426859",
"0.5423926",
"0.5414913",
"0.5410203",
"0.5410139",
"0.5407847",
"0.5405923",
"0.5402214",
"0.5401437",
"0.53942484",
"0.5391539",
"0.53876734",
"0.53856665",
"0.53836757",
"0.5373323",
"0.5367959",
"0.53651774",
"0.5364109",
"0.5355947",
"0.5354385",
"0.5351852",
"0.53479356",
"0.5341334",
"0.5337431"
] | 0.6515993 | 5 |
Helper binding method for function: showBoolean. | public static final SourceModel.Expr showBoolean(SourceModel.Expr x) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showBoolean), x});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Boolean getIsShow() {\n return isShow;\n }",
"public String toString() { return this.booleanValue; }",
"public Boolean getIsShow () {\r\n\t\treturn isShow;\r\n\t}",
"public boolean getBoolean();",
"boolean getBoolValue();",
"boolean getBoolValue();",
"boolean getBoolean();",
"boolean getBoolean();",
"public boolean shown();",
"public java.lang.Boolean getIsVisible();",
"public Boolean isVisible();",
"public Boolean isVisible();",
"public Boolean asBoolean();",
"abstract public boolean getAsBoolean();",
"public boolean getIsVisible();",
"boolean isVisible();",
"boolean isVisible();",
"public Byte getShowFlag() {\n return showFlag;\n }",
"public static final SourceModel.Expr showForeignBoolean(SourceModel.Expr b) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showForeignBoolean), b});\n\t\t}",
"public Boolean getBooleanAttribute();",
"public abstract boolean isVisible();",
"public abstract boolean isVisible();",
"public SimpleObjectProperty<Boolean> visibleProperty () {\n return singleProperty.property1();\n }",
"public Boolean getDisplay() {\n return display;\n }",
"public void print(boolean someBoolean) {\r\n print(someBoolean + \"\");\r\n }",
"private boolean setVisible(boolean b) {\n\t\treturn b;\n\t}",
"public boolean isHidden();",
"public Boolean getABoolean()\n {\n return aBoolean;\n }",
"public boolean isBoolean();",
"public boolean isGettersOfBoolean() {\n final boolean result = cbBoolean.getModel().isSelected();\n paramBoolean = result;\n return result;\n }",
"@Override\r\n\tpublic void visit(ast.type.Boolean t) {\r\n\t\tSystem.out.println(\"boolean@\");\r\n\t}",
"boolean hasBoolValue();",
"public final native boolean getShowHidden() /*-{\n return this.getShowHidden();\n }-*/;",
"String getBooleanTrueExpression();",
"boolean getValue();",
"public boolean isMakeVisible()\r\n {\r\n return myMakeVisible;\r\n }",
"public boolean isVisible();",
"public boolean isVisible();",
"public boolean isVisible();",
"boolean isDisplay();",
"boolean isDisplay();",
"org.apache.xmlbeans.XmlBoolean xgetBox();",
"public boolean getValue();",
"public boolean getBoolValue() {\n return boolValue_;\n }",
"private boolean getBoolean(String paramString, boolean paramBoolean) {\n }",
"public boolean isVisible() { return _visible; }",
"public Boolean getBooleanValue() {\n return this.booleanValue;\n }",
"org.apache.xmlbeans.XmlBoolean xgetParlay();",
"public String getShowFlag() {\r\n return (String) getAttributeInternal(SHOWFLAG);\r\n }",
"@Override // androidx.lifecycle.Observer\n public void onChanged(Boolean bool) {\n Boolean bool2 = bool;\n if (bool2 != null) {\n bool2.booleanValue();\n Views.setVisible(AdvertStatsActivity.access$getToolbarTitle$p(this.a), bool2.booleanValue());\n }\n }",
"BooleanProperty getOn();",
"public boolean isShown(){\r\n return shown;\r\n }",
"public boolean getBoolValue() {\n return boolValue_;\n }",
"public static String toString(boolean value) {\n return value ? \"true\" : \"false\";\n }",
"public String getName() {\n return \"sdo_boolean\";\n }",
"@Override\n public void payeeDisplayVisible(boolean yes) {\n\t\n }",
"public Boolean getValue() {\n/* 60 */ return Boolean.valueOf(this.val);\n/* */ }",
"boolean getIsChecked();",
"public boolean isVisible(){ return visible; }",
"boolean isVisible() {\r\n return this.isVisible;\r\n }",
"public void setVisible(boolean val);",
"@Override\n public void setVisible (boolean f)\n { \n }",
"private String booleanToString(final boolean bool) {\n\t\tString returnString = null;\n\t\tif(bool) { returnString = \"Yes\"; } else { returnString = \"No\"; }\n\t\treturn returnString;\n\t}",
"@Override\n public void changed(ObservableValue<? extends Boolean> ov, Boolean onHidden, Boolean onShown) {\n }",
"protected String getFalse() {\n return \"false\";\n }",
"public boolean getMyBool() {\n return myBool;\n }",
"public boolean isShowing() {\n return visible;\n }",
"public boolean isBool() {\n return bool;\n }",
"@ZenCodeType.Caster\n @ZenCodeType.Method\n default boolean asBool() {\n \n return notSupportedCast(BasicTypeID.BOOL);\n }",
"public boolean isVisible(){\n\t\treturn this.visible;\n\t}",
"public void setIsShow (Boolean isShow) {\r\n\t\tthis.isShow = isShow;\r\n\t}",
"public interface IsShowMessage\n {\n /**\n * not show\n */\n String UN_SHOW = \"0\";\n\n /**\n * show\n */\n String SHOW = \"1\";\n }",
"public void setVisible(boolean v) {\n }",
"@Override\n public void setVisible(boolean arg0)\n {\n \n }",
"protected String getBooleanValueText(String value) {\n if (value.equals(Boolean.TRUE.toString())) {\n return getTrue();\n } else if (value.equals(Boolean.FALSE.toString())) {\n return getFalse();\n } else {\n // If it is neither true nor false it is must be an expression.\n return value;\n }\n }",
"public void setVisible(Boolean isVisible);",
"@Column(name = \"BOOLEAN_VALUE\", length = 20)\n/* 35 */ public String getBooleanValue() { return this.booleanValue; }",
"boolean isReadyForShowing();",
"@Override // kotlin.p2243e.p2244a.AbstractC32522b\n public /* synthetic */ Boolean invoke(Boolean bool) {\n return Boolean.valueOf(mo78020a(bool));\n }",
"public boolean getVisible() {\r\n return visible;\r\n }",
"protected Boolean geBoolValue() {\n return boolValue;\n }",
"public String getBooleanTrueValue() {\n\t\treturn ( _sBooleanTrueValue != null ? _sBooleanTrueValue : \"\" );\n\t}",
"public abstract boolean read_boolean();",
"private CheckBoolean() {\n\t}",
"public void setIsShow(Boolean isShow) {\n this.isShow = isShow;\n }",
"@OperationMeta(opType = OperationType.FUNCTION)\n public static String toString(boolean b0) {\n return String.valueOf(b0);\n }",
"String getBooleanExpression(boolean flag);",
"private BooleanValueProvider() {\n this.state = true;\n }",
"public String getDisplayFlag() {\n return displayFlag;\n }",
"boolean hasBool();",
"public abstract void setVisible(boolean visible);",
"HasValue<Boolean> getIsActive();",
"org.apache.xmlbeans.XmlBoolean xgetQuick();",
"private boolean visibles() {\r\n return OPT(GO() && visible() && visibles());\r\n }",
"public void setVisible(Boolean visible);",
"public RubyBoolean getTrue() {\n return trueObject;\n }",
"public void onChanged(Boolean bool) {\n int i;\n if (bool != null) {\n LocationActivitySettingItem a = this.f107703a.mo102020a();\n C7573i.m23582a((Object) bool, \"it\");\n if (bool.booleanValue()) {\n i = 0;\n } else {\n i = 8;\n }\n a.setVisibility(i);\n }\n }",
"@java.lang.Override\n public boolean getBoolValue() {\n if (typeCase_ == 2) {\n return (java.lang.Boolean) type_;\n }\n return false;\n }",
"public boolean isInvisible ( ) {\n\t\treturn extract ( handle -> handle.isInvisible ( ) );\n\t}",
"public Boolean getBoolean(String attr) {\n return (Boolean) super.get(attr);\n }"
] | [
"0.6890811",
"0.685135",
"0.6702358",
"0.6613925",
"0.65847677",
"0.65847677",
"0.65163255",
"0.65163255",
"0.6421317",
"0.63794935",
"0.6340889",
"0.6340889",
"0.6269553",
"0.6227228",
"0.62111944",
"0.6209958",
"0.6209958",
"0.6203317",
"0.6128113",
"0.61185014",
"0.61151445",
"0.61151445",
"0.6109097",
"0.61069405",
"0.60984373",
"0.6093924",
"0.6078074",
"0.6035979",
"0.60330606",
"0.60229886",
"0.6018135",
"0.60116035",
"0.60068524",
"0.6000526",
"0.5982483",
"0.597292",
"0.5957696",
"0.5957696",
"0.5957696",
"0.5948496",
"0.5948496",
"0.59271395",
"0.59222215",
"0.59180254",
"0.5913533",
"0.58966446",
"0.58889824",
"0.5880888",
"0.5879394",
"0.5879378",
"0.5862018",
"0.5859259",
"0.5856894",
"0.5847571",
"0.5837525",
"0.58310056",
"0.5827156",
"0.5824306",
"0.581853",
"0.58135706",
"0.5809011",
"0.5781753",
"0.57746774",
"0.57665443",
"0.5759039",
"0.57584643",
"0.5753095",
"0.5745869",
"0.57418114",
"0.57381374",
"0.57377267",
"0.5737641",
"0.5735263",
"0.5731195",
"0.5716193",
"0.57092506",
"0.5707598",
"0.57049304",
"0.5703618",
"0.5688566",
"0.56838506",
"0.56739086",
"0.5673851",
"0.5670768",
"0.5647752",
"0.56354314",
"0.56332105",
"0.5629828",
"0.5628757",
"0.5627234",
"0.5622584",
"0.56197727",
"0.56165445",
"0.56125605",
"0.56075263",
"0.5597234",
"0.5594045",
"0.5587915",
"0.55850506",
"0.5575096"
] | 0.7244866 | 0 |
Used for derived Show instances for foreign types with implementation type byte. | public static final SourceModel.Expr showByte(SourceModel.Expr b) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showByte), b});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ClassInstance checkDerivedShowInstance(TypeConstructor typeCons,\r\n TypeConsApp instanceType,\r\n TypeClass typeClass, SourceRange position) throws UnableToResolveForeignEntityException {\r\n \r\n if (!typeClass.getName().equals(CAL_Debug.TypeClasses.Show)) {\r\n throw new IllegalStateException();\r\n }\r\n \r\n ModuleName currentModuleName = currentModuleTypeInfo.getModuleName();\r\n \r\n \r\n ForeignTypeInfo foreignTypeInfo = typeCons.getForeignTypeInfo(); \r\n \r\n if (foreignTypeInfo != null) {\r\n \r\n // foreign types\r\n \r\n Class<?> foreignType = foreignTypeInfo.getForeignType();\r\n \r\n if (foreignType.isPrimitive()) {\r\n \r\n if (foreignType == boolean.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showForeignBoolean},\r\n InstanceStyle.DERIVING); \r\n \r\n } else if (foreignType == byte.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showByte},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == char.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showForeignChar},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == short.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showShort},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == int.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showInt},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == long.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showLong},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == float.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showFloat},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == double.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showDouble},\r\n InstanceStyle.DERIVING);\r\n \r\n } else {\r\n throw new IllegalStateException(\"A type that claims to be primitive is not one of the known primitive types\");\r\n }\r\n \r\n } else {\r\n // Defer to String.valueOf(Object) for non-primitive foreign values\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showJObject}, \r\n InstanceStyle.DERIVING);\r\n }\r\n \r\n \r\n } else {\r\n \r\n // non-foreign types\r\n \r\n TypeExpr showTypeExpr = TypeExpr.makeFunType(instanceType, compiler.getTypeChecker().getTypeConstants().getStringType());\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeShowInstanceFunction(typeCons), showTypeExpr, position); \r\n \r\n return new ClassInstance(currentModuleName, instanceType, typeClass, null, InstanceStyle.DERIVING);\r\n }\r\n }",
"protected abstract String getDefaultDisplayTypeStringRepresentation();",
"@Override\n\tpublic void show() {\n\t\tSystem.out.println(\"´óTÐô\");\n\t}",
"@Override\n\tpublic void show() {\n\t\tSystem.out.println(\"´ó¿ãñÃ\");\n\t}",
"public String getDisplayType();",
"@Override\r\n\tpublic String typeV() {\n\t\treturn hio.TyreType();\r\n\t}",
"public abstract String typeIcon();",
"@Override\r\n\tpublic String getShowDescribing() {\n\t\treturn \"所属乡镇:\"+ getSsxz().getName();\r\n\t}",
"public abstract String visualize(byte input);",
"public boolean isShowHexByte() {\r\n return showHexByte;\r\n }",
"public void setShowHexByte(boolean showHexByte) {\r\n this.showHexByte = showHexByte;\r\n }",
"public abstract byte getType();",
"@Override\n\tpublic void show4() {\n\t\t\n\t}",
"@Override\n\tpublic String showTypeCard() {\n\t\treturn \"It's payment by Visa\";\n\t}",
"public DisplayType getDisplayType();",
"@Override abstract public String type();",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n public void show() {\n }",
"@Override\n public String getTypeIcon() {\n return \"[E]\";\n }",
"public void printTypeInfo(){\n\t\tSystem.out.println(\"This type of computer is suitable for massive usage, when it comes to portability.\");\n\t\tSystem.out.println(\"Main thing at these computers is portability and funcionality.\");\n\t\t\n\t}",
"protected abstract String display();",
"@Override\n\tpublic void display() {\n\t\tSystem.out.println(valueType+\": \"+value);\n\t}",
"public String kind() { return kind; }",
"@Override\n\tpublic void show() {\n\t}",
"@Override\n\tpublic void show() {\n\t}",
"@Override\n public String toString() {\n return value + symbol(this.type);\n }",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n public void show() {\n\n }",
"@Override\n public void show() {\n\n }",
"@Override\r\n\tpublic void show() {\n\t}",
"public abstract byte getSubtype();",
"public static void show() {\n\t\t\n\t}",
"public abstract String display();",
"@Override\n\tpublic String typeDePaquet() {\n\t\treturn \"Ethernet\";\n\t}",
"default void show1() {\n\t\t\n\t\t\n\t}",
"public String returnKind(){ return kind; }",
"@Override\r\n public void show()\r\n {\r\n\r\n }",
"@Override\r\n public void show()\r\n {\r\n\r\n }",
"@Override\r\n\tpublic void show() {\n\r\n\t}",
"@Override\r\n\tpublic void show() {\n\r\n\t}",
"@Override\n public int getType() {\n return 0x1c;\n }",
"@DerivedProperty\n\tString getShortRepresentation();",
"@Override\r\n\tpublic void show() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void show() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void show() {\n\t\t\r\n\t}",
"public String getViptype() {\n return viptype;\n }",
"@Override\n public abstract String getXSIType();",
"@Override\n public void show() {\n \n }",
"@Override\n\tvoid Show() {\n\t\tanimal.Show();\n\t\tSystem.out.print(\" Shorts\");\n\t}",
"public static void show() {\n\n\t}",
"default String display() { //just wanted to try out default methods we learned in class here-- abstract format below\r\n\t\treturn \"Nothing to show here\";\r\n\t}",
"public static final SourceModel.Expr showForeignChar(SourceModel.Expr c) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showForeignChar), c});\n\t\t}",
"@Override\n public String getType() {\n return \"\";\n }",
"@Override\n public String toString ()\n {\n return \"type = \" + type;\n }",
"public abstract Display getDisplay();",
"@Override\n public String getType()\n {\n return \"OO\";\n }",
"public String show() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic void show() {\n\t\t\r\n\t\t\r\n\t}",
"public void show() {\n\t\t System.out.println(\"这是A型产品\"); \r\n\t}",
"public void show() \r\n\t {\n\t PI1.super.show(); \r\n\t \r\n\t // use super keyword to call the show \r\n\t // method of PI2 interface \r\n\t PI2.super.show(); \r\n\t }",
"@Test\n public void testByte() {\n assertEquals(\"127\", hiveTypeToJson(new MyHiveType(new ByteWritable(Byte.MAX_VALUE), byteTypeInfo)));\n }",
"@Override\n\tpublic void showByteWrite(ByteBuffer data)\n\t{\n\n\t}",
"@Override\n public void display() {\n\n }",
"public interface Showable {\n void show();\n}",
"public void showInfomation()\n {\n\t System.out.println(\"\\nSide\"+\"\\n\\tnumber: \"+ super.getNumber() +\"\\n\\tdishName: \" + super.getDishName() + \"\\n\\tmaker: \"+maker+\"\\n\\tprice : \" + super.getPrice()+\"$\");\n }",
"public String type()\r\n\t{\r\n\t\treturn \"nff\";\r\n\t}",
"abstract String display(T value);",
"protected void showClass()\n {\n inspectorManager.getClassInspectorInstance(obj.getClassRef(), pkg, this);\n }",
"@Override\r\n\tpublic String display() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic String display() {\n\t\treturn null;\r\n\t}",
"@Override\n\tprotected void 装入大象() {\n\t\tSystem.out.println(\"我是张飞,我叫喊着粗鲁的把大象放进去\");\n\t\t\n\t}",
"@Override\n\tpublic void display() {\n\t\tInterface1.super.display();\n\t}",
"protected abstract String getType();",
"public String getDataType() ;",
"@Override\n public char getTypeCode() {\n return '0';\n }",
"String kind();",
"String kind();",
"@Override\n public String getType(){\n return Type;\n }",
"public Class getPreferredDisplayClass() {\n\t\treturn Object.class;\n\t}"
] | [
"0.64424825",
"0.60497653",
"0.5864704",
"0.5741047",
"0.5709337",
"0.56611705",
"0.5613557",
"0.55948037",
"0.55666405",
"0.556174",
"0.55397636",
"0.55092186",
"0.5451154",
"0.5450074",
"0.5434963",
"0.5418103",
"0.53782654",
"0.53782654",
"0.53782654",
"0.53782654",
"0.53782654",
"0.53782654",
"0.53782654",
"0.53782654",
"0.53782654",
"0.53782654",
"0.53782654",
"0.53782654",
"0.53782654",
"0.53782654",
"0.53782654",
"0.534652",
"0.5343662",
"0.5330662",
"0.5327706",
"0.53192866",
"0.5306889",
"0.5293707",
"0.5293707",
"0.52925146",
"0.528711",
"0.528711",
"0.528711",
"0.528711",
"0.528711",
"0.528711",
"0.528711",
"0.528711",
"0.52715904",
"0.52715904",
"0.52703214",
"0.52653444",
"0.52223575",
"0.5219758",
"0.52118",
"0.5202076",
"0.5193084",
"0.5181057",
"0.5181057",
"0.5180269",
"0.5180269",
"0.5175096",
"0.5170522",
"0.5152361",
"0.5152361",
"0.5152361",
"0.5141747",
"0.511612",
"0.5110506",
"0.5109235",
"0.510644",
"0.5085663",
"0.5080411",
"0.5075461",
"0.5072692",
"0.50699264",
"0.50672066",
"0.50630337",
"0.5062095",
"0.5062077",
"0.5043266",
"0.50411314",
"0.50393844",
"0.50269604",
"0.5025941",
"0.50185156",
"0.50165814",
"0.5012002",
"0.5011673",
"0.5006353",
"0.5006353",
"0.50024104",
"0.4990432",
"0.49885166",
"0.49752846",
"0.49726105",
"0.49724525",
"0.49724525",
"0.49693218",
"0.4964399"
] | 0.5705133 | 5 |
handles the case where the Decimal object is null | public static final SourceModel.Expr showDecimal(SourceModel.Expr decimalValue) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showDecimal), decimalValue});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test(expected = NullPointerException.class)\n public void formatDecimalNullInputTest() {\n Double number = null;\n Format.formatDecimal(number);\n }",
"public static BigDecimal nullEmptyToValue(BigDecimal b,BigDecimal theValue)\n {\n if(isEmptyDecimal(b))\n {\n\t return theValue;\n }\n else\n {\n\t return b;\n }\n }",
"public static BigDecimal nullToZero(BigDecimal b)\n {\n if(isEmptyDecimal(b))\n {\n return BigDecimal.ZERO;\n }\n else\n {\n return b;\n }\n }",
"public java.math.BigDecimal getMinValueDecimal()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MINVALUEDECIMAL$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getBigDecimalValue();\r\n }\r\n }",
"public BigDecimal getConvertedSplitQty() \n{\nBigDecimal bd = (BigDecimal)get_Value(\"ConvertedSplitQty\");\nif (bd == null) return Env.ZERO;\nreturn bd;\n}",
"public BigDecimal getConvertedProductQty() \n{\nBigDecimal bd = (BigDecimal)get_Value(\"ConvertedProductQty\");\nif (bd == null) return Env.ZERO;\nreturn bd;\n}",
"public static BigDecimal emptyDecimalToNull(BigDecimal myNumber)\n {\n if(ConstantsCommon.EMPTY_BIGDECIMAL_VALUE.equals(myNumber))\n {\n \t return null;\n }\n else\n {\n \t return myNumber;\n }\n }",
"@Test(expected=IllegalArgumentException.class)\n public void testBigDecimalConstructorNullCurrency() {\n new Money(new BigDecimal(\"1.23\"), null, RoundingMode.CEILING);\n fail(\"Currency may not be null\");\n }",
"public static boolean isEmptyDecimal(BigDecimal myNumber)\n {\n return (myNumber == null || ConstantsCommon.EMPTY_BIGDECIMAL_VALUE.equals(myNumber));\n }",
"@Test(expected=IllegalArgumentException.class)\n public void testBigDecimalConstructorNullAmount() {\n BigDecimal amount = null;\n new Money(amount, Currency.getInstance(\"USD\"), RoundingMode.CEILING);\n fail(\"Money amount may not be null\");\n }",
"public org.xmlsoap.schemas.soap.encoding.Decimal getDecimal()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.xmlsoap.schemas.soap.encoding.Decimal target = null;\r\n target = (org.xmlsoap.schemas.soap.encoding.Decimal)get_store().find_element_user(DECIMAL$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public BigDecimal getCost() \n{\nBigDecimal bd = (BigDecimal)get_Value(\"Cost\");\nif (bd == null) return Env.ZERO;\nreturn bd;\n}",
"@Test(expected = NullPointerException.class)\n\tpublic void testWithNullSymbols() {\n\t\tnew ParseBigDecimal((DecimalFormatSymbols) null);\n\t}",
"public BigDecimal getConvertedShrinkQty() \n{\nBigDecimal bd = (BigDecimal)get_Value(\"ConvertedShrinkQty\");\nif (bd == null) return Env.ZERO;\nreturn bd;\n}",
"private boolean checkIfObjectIsDecimal(Object[] values)\n\t{\n\t\tfor (Object o : values)\n\t\t{\n\t\t\tif (o != null)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tDouble.parseDouble(o.toString());\n\t\t\t\t//\treturn true;\n\t\t\t\t}\n\t\t\t\tcatch (NumberFormatException e)\n\t\t\t\t{\n\t\t\t\t\t// it's text :)\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public org.apache.xmlbeans.XmlDecimal xgetMinValueDecimal()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlDecimal target = null;\r\n target = (org.apache.xmlbeans.XmlDecimal)get_store().find_element_user(MINVALUEDECIMAL$0, 0);\r\n return target;\r\n }\r\n }",
"public BigDecimal getProductQty() \n{\nBigDecimal bd = (BigDecimal)get_Value(\"ProductQty\");\nif (bd == null) return Env.ZERO;\nreturn bd;\n}",
"@Override\n public int getDecimalDigits() { return 0; }",
"public static void resetEmptyValues(Object obj)\n {\n\ttry\n\t{\n\t Object theObj;\n\t ArrayList<Object> lst = null;\n\t boolean isList = false;\n\t if(obj instanceof List)\n\t {\n\t\tlst = (ArrayList) obj;\n\t\ttheObj = (lst.isEmpty())?null:(lst.get(0));\n\t\tisList = true;\n\t }\n\t else\n\t {\n\t\ttheObj = obj;\n\t }\n\t if(theObj!=null)\n\t {\n\t\t String className = theObj.getClass().getName();\n\t\t if(objectBigDecimalPropNames.containsKey(className))\n\t\t {\n\t\t\tList<String> lstObjProp = objectBigDecimalPropNames.get(className);\n\t\t\tif(isList)\n\t\t\t{\n\t\t\t /**\n\t\t\t * In case the object is a List of Object we will reset all\n\t\t\t * the empty values in all the Objects that are exists\n\t\t\t * inside the list.\n\t\t\t */\n\t\t\t for(Object currObj : lst)\n\t\t\t {\n\t\t\t\tresetCurrentObject(currObj, lstObjProp);\n\t\t\t }\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t resetCurrentObject(theObj, lstObjProp);\n\t\t\t}\n\t\t }\n\t\t else\n\t\t {\n\t\t\tList<String> propList = new ArrayList<String>();\n\t\t\tcachBigDecimalProp(obj,new StringBuffer(),propList,isList);\n\t\t\tif(!propList.isEmpty())\n\t\t\t{\n\t\t\t objectBigDecimalPropNames.put(className, propList);\n\t\t\t}\n\t\t }\n\t }\n\t}\n\tcatch(Exception e)\n\t{\n\t log.error(e, \"ERROR in resetEmptyValues NumberUtils \");\n\t}\n }",
"public boolean isDecimal() {\n return false;\n }",
"public BigDecimal castToDecimalValue() {\n throw new IteratorFlowException(\"Cannot call castToDouble on non numeric\");\n }",
"private static BigDecimal nextNodeAsDecimal(Iterator<JsonNode> iterator) {\n if (iterator == null || !iterator.hasNext()) {\n return null;\n }\n return new BigDecimal(iterator.next().textValue());\n }",
"public BigDecimal getInvalidDecimal() throws ServiceException {\n try {\n Call<ResponseBody> call = service.getInvalidDecimal();\n ServiceResponse<BigDecimal> response = getInvalidDecimalDelegate(call.execute(), null);\n return response.getBody();\n } catch (ServiceException ex) {\n throw ex;\n } catch (Exception ex) {\n throw new ServiceException(ex);\n }\n }",
"public BigDecimal getSplitQty() \n{\nBigDecimal bd = (BigDecimal)get_Value(\"SplitQty\");\nif (bd == null) return Env.ZERO;\nreturn bd;\n}",
"@Test(expected=IllegalArgumentException.class)\n public void testBigDecimalConstructorNullRoundingMode() {\n new Money(new BigDecimal(\"1.23\"), Currency.getInstance(\"USD\"), null);\n fail(\"RoundingMode may not be null\");\n }",
"public abstract DecimalDt getValueElement();",
"@Test(expected=NullPointerException.class) @SpecAssertion(id = \"432-A4\", section=\"4.3.2\")\n public void testNullConversion1(){\n MonetaryConversions.getConversion((CurrencyUnit)null);\n }",
"@Test(expected=NullPointerException.class) @SpecAssertion(id = \"432-A4\", section=\"4.3.2\")\n public void testNullConversion3(){\n MonetaryConversions.getConversion((CurrencyUnit) null, ConversionContext.of());\n }",
"public static Double notNull(Double p_in) {\n\t\tDouble ret = p_in;\n\t\tif (ret==null) ret= new Double (0);\n\t\treturn ret;\n\n\t}",
"public static BigDecimal emptyDecimalToZero(BigDecimal myNumber)\n {\n if(myNumber == null || ConstantsCommon.EMPTY_BIGDECIMAL_VALUE.equals(myNumber))\n {\n \t return BigDecimal.ZERO;\n }\n else\n {\n \t return myNumber;\n }\n }",
"@Test(expected = NullPointerException.class)\n public void formatPercentNullInputTest() {\n Double number = null;\n Format.formatPercent(number);\n }",
"public static double nullToZero(Double d)\n {\n if(d == null)\n {\n return 0;\n }\n else\n {\n return d.doubleValue();\n }\n }",
"@Test\n\tpublic void getDoubleValueShouldReturnNullWhenValueIsNull(){\n\t\tVitalsResult l = new VitalsResult();\n\t\tassertNull(l.getDoubleValue());\n\t}",
"private boolean decimals() {\r\n return OPT(GO() && decimal() && decimals());\r\n }",
"public void getDecimal(String columnName, NullableDecimalHolder holder) {\n DecimalVector vector = (DecimalVector) table.getVector(columnName);\n vector.get(rowNumber, holder);\n }",
"public void getDecimal(int columnIndex, NullableDecimalHolder holder) {\n DecimalVector vector = (DecimalVector) table.getVector(columnIndex);\n vector.get(rowNumber, holder);\n }",
"public BigDecimal getBigDecimalPositiveDecimal() throws ServiceException {\n try {\n Call<ResponseBody> call = service.getBigDecimalPositiveDecimal();\n ServiceResponse<BigDecimal> response = getBigDecimalPositiveDecimalDelegate(call.execute(), null);\n return response.getBody();\n } catch (ServiceException ex) {\n throw ex;\n } catch (Exception ex) {\n throw new ServiceException(ex);\n }\n }",
"@Test\n public void testIsNotValidDecimal2() {\n FieldVerifier service = new FieldVerifier();\n boolean result = service.isValidDecimal(0);\n assertEquals(false, result);\n }",
"private ARXDecimal(String format){\r\n if (format == null || format.equals(\"Default\")){\r\n this.format = null;\r\n this.string = null;\r\n this.locale = null;\r\n } else {\r\n this.format = new DecimalFormat(format);\r\n this.string = format;\r\n this.locale = null;\r\n }\r\n }",
"public Double getNull() throws ServiceException {\n try {\n Call<ResponseBody> call = service.getNull();\n ServiceResponse<Double> response = getNullDelegate(call.execute(), null);\n return response.getBody();\n } catch (ServiceException ex) {\n throw ex;\n } catch (Exception ex) {\n throw new ServiceException(ex);\n }\n }",
"public DecimalConstant( BigDecimal value)\n {\n this( value, null);\n }",
"@Override\n\tpublic double calcularPrecio() {\n\t\treturn 0;\n\t}",
"public BigDecimal getShrinkQty() \n{\nBigDecimal bd = (BigDecimal)get_Value(\"ShrinkQty\");\nif (bd == null) return Env.ZERO;\nreturn bd;\n}",
"private boolean checkDecimalCast() {\n boolean allScalar = true;\n // If there is at least one float, then all the children need to be cast to\n // float (instead of decimal).\n boolean noFloats = true;\n boolean atLeastOneDecimal = false;\n for(int i = 0; i < children_.size(); ++i) {\n if (!children_.get(i).getType().isScalarType()) allScalar = false;\n // If at least one child is a float, then we want to cast all the children to float.\n if (children_.get(i).getType().isFloatingPointType()) noFloats = false;\n if (children_.get(i).getType().isDecimal()) atLeastOneDecimal = true;\n }\n\n return allScalar && noFloats && atLeastOneDecimal;\n }",
"public BigDecimal getDecimalValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a big decimal.\");\n }",
"@Override\n\tpublic String toStringNoWeight(final int afterDecimalPoint) {\n\t\treturn null;\n\t}",
"public static void isValid(BigDecimal dec) throws IllegalArgumentException {\n\t//null validation\n\tif(dec == null) throw new IllegalArgumentException();\n }",
"@Override\n public Float calc() {\n\treturn null;\n }",
"float getNullValues(Object elementID) throws Exception;",
"@Override\n public BigDecimal withdraw(Account account, BigDecimal bigDecimal) {\n return null;\n }",
"public void setDecimal(java.math.BigDecimal param) {\n this.localDecimal = param;\n }",
"public Balance() {\r\n value = BigDecimal.ZERO;\r\n }",
"public org.xmlsoap.schemas.soap.encoding.Decimal addNewDecimal()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.xmlsoap.schemas.soap.encoding.Decimal target = null;\r\n target = (org.xmlsoap.schemas.soap.encoding.Decimal)get_store().add_element_user(DECIMAL$0);\r\n return target;\r\n }\r\n }",
"protected static boolean checkIsEmpty(Object value) {\n return (value == null) || (value instanceof Double && Double.isNaN(((Number) value).doubleValue()));\n }",
"public static boolean isEmpty(Double dbl)throws Exception {\n\treturn null == dbl || BigDecimal.valueOf(roundAmount(dbl)).compareTo(BigDecimal.ZERO) == 0;\n }",
"@Test\n public void testconvertToAUDNullInputCheck() {\n // standard set up\n CurrencyRates rates = new CurrencyRates();\n\n // passing null value\n ArrayList<Double> output = rates.convertToAUD(null);\n\n // asserting to check null\n assertNull(output);\n }",
"public void setCost (BigDecimal Cost)\n{\nif (Cost == null) throw new IllegalArgumentException (\"Cost is mandatory\");\nset_Value (\"Cost\", Cost);\n}",
"@Override\n\tpublic Object visitMoneyLiteral(MoneyLiteral literal) {\n\t\treturn null;\n\t}",
"BigDecimal getValue();",
"public String check_after_decimal_point(double decimal) {\n String result = null;\n String[] after_point = String.valueOf(decimal).split(\"[:.]\");\n if (after_point[after_point.length - 1].equals(\"0\")) {\n result = after_point[0];\n } else {\n result = String.valueOf(decimal).replace(\".\", \",\");\n }\n return result;\n }",
"public static int decimals() {\n return 0;\n }",
"private static BigDecimal arrayNodeItemAsDecimal(ArrayNode arrayNode, int index) {\n if (arrayNode == null) {\n return null;\n }\n JsonNode itemNode = arrayNode.get(index);\n if (itemNode == null) {\n return null;\n }\n return new BigDecimal(itemNode.asText());\n }",
"@Test\n public void testIsNotValidDecimal() {\n FieldVerifier service = new FieldVerifier();\n boolean result = service.isValidDecimal(-1);\n assertEquals(false, result);\n }",
"@Test(expected=NullPointerException.class) @SpecAssertion(id = \"432-A4\", section=\"4.3.2\")\n public void testNullConversion4(){\n MonetaryConversions.getConversion((String)null, ConversionContext.of());\n }",
"public static Decimal parse(javax.xml.stream.XMLStreamReader reader)\n throws java.lang.Exception {\n Decimal object = new Decimal();\n\n int event;\n javax.xml.namespace.QName currentQName = null;\n java.lang.String nillableValue = null;\n java.lang.String prefix = \"\";\n java.lang.String namespaceuri = \"\";\n\n try {\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n currentQName = reader.getName();\n\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (\"true\".equals(nillableValue) ||\n \"1\".equals(nillableValue)) {\n // Skip the element and report the null value. It cannot have subelements.\n while (!reader.isEndElement())\n reader.next();\n\n return object;\n }\n\n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n\n while (!reader.isEndElement()) {\n if (reader.isStartElement()) {\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.microsoft.com/2003/10/Serialization/\",\n \"decimal\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (!\"true\".equals(nillableValue) &&\n !\"1\".equals(nillableValue)) {\n java.lang.String content = reader.getElementText();\n\n object.setDecimal(org.apache.axis2.databinding.utils.ConverterUtil.convertToDecimal(\n content));\n } else {\n reader.getElementText(); // throw away text nodes if any.\n }\n } // End of if for expected property start element\n\n else {\n // 3 - A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\n \"Unexpected subelement \" +\n reader.getName());\n }\n } else {\n reader.next();\n }\n } // end of while loop\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }",
"@Override\n public BigDecimal getCurrentBalance(Account account) {\n return null;\n }",
"@Override\n\tpublic String toStringMaxDecimalDigits(final int afterDecimalPoint) {\n\t\treturn null;\n\t}",
"public void setMinValueDecimal(java.math.BigDecimal minValueDecimal)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(MINVALUEDECIMAL$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(MINVALUEDECIMAL$0);\r\n }\r\n target.setBigDecimalValue(minValueDecimal);\r\n }\r\n }",
"public void setField_737(java.math.BigDecimal value);",
"@Test\n public void testBigDecimalConstructorDefaultCurrency() {\n new Money(new BigDecimal(\"1.231\"));\n }",
"public static double toDouble(java.lang.Object o)\n {\n if(o == null)\n {\n return 0;\n }\n else if(o.toString().equals(\"\"))\n {\n return 0;\n }\n else\n {\n return Double.parseDouble(o.toString());\n }\n }",
"@Test\n public void test08() throws Throwable {\n Complex complex0 = new Complex(0.0, 3207.815923265416);\n double double0 = complex0.getImaginary();\n try { \n complex0.divide((Complex) null);\n } catch(IllegalArgumentException e) {\n //\n // null is not allowed\n //\n assertThrownBy(\"org.apache.commons.math.util.MathUtils\", e);\n }\n }",
"public static TextFormatter soloDecimales() {\r\n DecimalFormatSymbols simbolo = new DecimalFormatSymbols();\r\n simbolo.setDecimalSeparator('.');\r\n DecimalFormat format = new DecimalFormat(\"#.00\", simbolo);\r\n return new TextFormatter<>(c -> {\r\n if (c.getControlNewText().isEmpty()) {\r\n return c;\r\n }\r\n ParsePosition parsePosition = new ParsePosition(0);\r\n Object object = format.parse(c.getControlNewText(), parsePosition);\r\n if (object == null || parsePosition.getIndex() < c.getControlNewText().length()) {\r\n return null;\r\n } else {\r\n return c;\r\n }\r\n });\r\n }",
"@Test\n public void test26() throws Throwable {\n Complex complex0 = new Complex(0.5, 0.5);\n try { \n complex0.divide((Complex) null);\n } catch(IllegalArgumentException e) {\n //\n // null is not allowed\n //\n assertThrownBy(\"org.apache.commons.math.util.MathUtils\", e);\n }\n }",
"@Test\n public void testMultiplyAllNumbersWithNullInput() {\n assertEquals(null, calculator.multiplyAllNumbers(null));\n }",
"@Test\n public void testBigDecimalConstructorDefaultRounding() {\n new Money(new BigDecimal(\"1.231\"), Currency.getInstance(\"USD\"));\n }",
"@Test\n public void test27() throws Throwable {\n Complex complex0 = new Complex(0.9999997615814209, 0.9999997615814209);\n try { \n complex0.multiply((Complex) null);\n } catch(IllegalArgumentException e) {\n //\n // null is not allowed\n //\n assertThrownBy(\"org.apache.commons.math.util.MathUtils\", e);\n }\n }",
"private DecimalUtils() {\n\n }",
"@Test\n\tpublic void testSingleSetOnlyDecimal()\n\t{\n\t\tcreateSingleValueSet(1.1);\n\t\tKeyedValues actual = DataUtilities.getCumulativePercentages(m_values);\n\t\t\n\t\tassertEquals(\"Cumulative percentage of a single decimal value should be 100%.\",\n\t\t\t\t1.0, actual.getValue(0).doubleValue(), 0.0000001);\n\t}",
"void insertDecimalPoint();",
"public void setSplitQty (BigDecimal SplitQty)\n{\nif (SplitQty == null) throw new IllegalArgumentException (\"SplitQty is mandatory\");\nset_Value (\"SplitQty\", SplitQty);\n}",
"public java.math.BigDecimal getDecimal() {\n return localDecimal;\n }",
"public static double toDouble( BigDecimal var ) {\n return var == null ? null : var.doubleValue();\n }",
"@Test\n\tvoid testWhenDenominatorIsZero() {\n\t\ttry {\n\t\t\tcalculator.divide(1, 0);\n\t\t} catch (Exception e) {\n\t\t\tassertNotNull(e);\n\t\t\tassertEquals(ArithmeticException.class,e.getClass());\n\t\t}\n\t\n\t}",
"@Test\n public void testZeroPuncturePoint(){\n assertTrue(\n \"Test [x = 0.0]: zero value puncture point\",\n Double.isNaN(systemFunctions.calculate(0))\n );\n }",
"@Test\n public void testZeroPuncturePoint(){\n assertTrue(\n \"Test [x = 0.0]: zero value puncture point\",\n Double.isNaN(systemFunctions.calculate(0))\n );\n }",
"@Override\n public PrecisionAdjustment getPrecisionAdjustment() {\n return null;\n }",
"private boolean isBadDecimal(StratmasDecimal d)\n {\n for (StratmasObject walker = d; walker != null; \n walker = walker.getParent()) {\n if (walker.getType().canSubstitute(\"Shape\")) {\n return true;\n }\n }\n\n return false;\n }",
"@Test\n public void testIsValidDecimal() {\n FieldVerifier service = new FieldVerifier();\n boolean result = service.isValidDecimal(1);\n assertEquals(true, result);\n }",
"@Test\n public void testSumAllNumbersWithNullInput() {\n \t//this test currently fails on purpose\n assertEquals(null, calculator.sumAllNumbers(null));\n }",
"@Test\n public void test24() throws Throwable {\n Complex complex0 = new Complex((-0.5), (-0.5));\n try { \n complex0.add((Complex) null);\n } catch(IllegalArgumentException e) {\n //\n // null is not allowed\n //\n assertThrownBy(\"org.apache.commons.math.util.MathUtils\", e);\n }\n }",
"public Double getBigDoublePositiveDecimal() throws ServiceException {\n try {\n Call<ResponseBody> call = service.getBigDoublePositiveDecimal();\n ServiceResponse<Double> response = getBigDoublePositiveDecimalDelegate(call.execute(), null);\n return response.getBody();\n } catch (ServiceException ex) {\n throw ex;\n } catch (Exception ex) {\n throw new ServiceException(ex);\n }\n }",
"public M csrtMoneyTypeNull(){if(this.get(\"csrtMoneyTypeNot\")==null)this.put(\"csrtMoneyTypeNot\", \"\");this.put(\"csrtMoneyType\", null);return this;}",
"public void setPriceLastInv (BigDecimal PriceLastInv);",
"public void xsetMinValueDecimal(org.apache.xmlbeans.XmlDecimal minValueDecimal)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlDecimal target = null;\r\n target = (org.apache.xmlbeans.XmlDecimal)get_store().find_element_user(MINVALUEDECIMAL$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlDecimal)get_store().add_element_user(MINVALUEDECIMAL$0);\r\n }\r\n target.set(minValueDecimal);\r\n }\r\n }",
"public void setDecimal(org.xmlsoap.schemas.soap.encoding.Decimal decimal)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.xmlsoap.schemas.soap.encoding.Decimal target = null;\r\n target = (org.xmlsoap.schemas.soap.encoding.Decimal)get_store().find_element_user(DECIMAL$0, 0);\r\n if (target == null)\r\n {\r\n target = (org.xmlsoap.schemas.soap.encoding.Decimal)get_store().add_element_user(DECIMAL$0);\r\n }\r\n target.set(decimal);\r\n }\r\n }",
"@Test(expected=NullPointerException.class) @SpecAssertion(id = \"432-A4\", section=\"4.3.2\")\n public void testNullConversion2(){\n MonetaryConversions.getConversion((String)null);\n }",
"private static Double getDefaultNoDataValue() {\n\n try {\n final double dNoDataValue = Double.parseDouble(SextanteGUI.getSettingParameterValue(SextanteGeneralSettings.DEFAULT_NO_DATA_VALUE));\n return dNoDataValue;\n }\n catch (final Exception e) {\n return new Double(-99999d);\n }\n\n }",
"public void setFieldDecimal(int fieldDecimal)\n\t{\n\t\tthis.fieldDecimal = fieldDecimal;\n\t}",
"public static String getNoDecimal(float temp) {\n\n BigDecimal bigDecimal = new BigDecimal(String.valueOf(temp));\n bigDecimal = bigDecimal.setScale(0, BigDecimal.ROUND_HALF_UP);\n DecimalFormat decimalFormat = new DecimalFormat();\n decimalFormat.applyPattern(\"#,##0\");\n\n return decimalFormat.format(bigDecimal);\n }",
"public String addDecimal();"
] | [
"0.73344064",
"0.6528474",
"0.6236375",
"0.6139227",
"0.61331064",
"0.61125857",
"0.6099235",
"0.6088805",
"0.60122645",
"0.59888047",
"0.5972385",
"0.5971663",
"0.5948347",
"0.5906692",
"0.5883583",
"0.58599544",
"0.5801096",
"0.57774264",
"0.57746035",
"0.57659364",
"0.5754978",
"0.573367",
"0.5713486",
"0.5707904",
"0.56790483",
"0.56676745",
"0.5634101",
"0.56264985",
"0.56154007",
"0.56005603",
"0.55415034",
"0.5534488",
"0.5520042",
"0.55194545",
"0.5509652",
"0.5509565",
"0.55033916",
"0.5500911",
"0.54946834",
"0.5492407",
"0.5492396",
"0.5489109",
"0.54825634",
"0.54493093",
"0.54436964",
"0.544366",
"0.54304045",
"0.5429178",
"0.5428055",
"0.54272413",
"0.54028547",
"0.5389105",
"0.53882045",
"0.5381917",
"0.5380762",
"0.5349432",
"0.5310975",
"0.5304215",
"0.5292342",
"0.5288254",
"0.5281415",
"0.52493376",
"0.5248835",
"0.5244184",
"0.52382314",
"0.5232832",
"0.5226821",
"0.5225546",
"0.52170265",
"0.52163285",
"0.52049655",
"0.5203067",
"0.51896757",
"0.5184479",
"0.5183896",
"0.5183135",
"0.5160419",
"0.51448584",
"0.5142076",
"0.5136003",
"0.5131036",
"0.51262015",
"0.51251686",
"0.5113797",
"0.5094872",
"0.5094872",
"0.50914395",
"0.5087107",
"0.50857246",
"0.50843793",
"0.50822306",
"0.50648916",
"0.5061071",
"0.50587857",
"0.50536835",
"0.505226",
"0.50459933",
"0.5038251",
"0.50317097",
"0.50143087",
"0.5009538"
] | 0.0 | -1 |
Helper binding method for function: showDefault. | public static final SourceModel.Expr showDefault(SourceModel.Expr arg_1) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showDefault), arg_1});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"default void show1() {\n \tSystem.out.println(\"show default\");\n }",
"default void show1() {\n\t\t\n\t\t\n\t}",
"default String display() { //just wanted to try out default methods we learned in class here-- abstract format below\r\n\t\treturn \"Nothing to show here\";\r\n\t}",
"default void display1(){\n\t\tSystem.out.println(\"Default Method inside interface\");\n\t}",
"void showNoneParametersView();",
"public String getDefault();",
"public String show() {\n\t\treturn null;\r\n\t}",
"Optional<T> show();",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"protected abstract String display();",
"String displayValue();",
"public void showDefaultsEditor() {\r\n \t\tDefaultsEditor.getInstance(mainWindow, DefaultsEditor.JMODEL).show();\r\n \t}",
"@Override\r\n\tpublic String display() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic String display() {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\t}",
"@Override\n\tpublic void show() {\n\t}",
"@Override\r\n\tpublic void show() {\n\t}",
"public String show() {\r\n return \"show\";\r\n }",
"protected abstract String getDefaultDisplayTypeStringRepresentation();",
"public void show() {\r\n show(\"\");\r\n }",
"public abstract String display();",
"public boolean isDefault();",
"public String show() {\r\n\t\treturn \"show\";\r\n\t}",
"@Override\n public void show() {\n }",
"@Override\r\n\tpublic void show() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void show() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void show() {\n\t\t\r\n\t}",
"@Override\n\tpublic String display() {\n\t\treturn null;\n\t}",
"public String toString() {\n return \"default\";\n }",
"public void show()\r\n {\r\n\tshow(\"\");\r\n }",
"public static void show() {\n\t\t\n\t}",
"@Override\r\n\tpublic void show() {\n\t\t\r\n\t\t\r\n\t}",
"@Override\r\n public void show()\r\n {\r\n\r\n }",
"@Override\r\n public void show()\r\n {\r\n\r\n }",
"@Override\r\n\tpublic void show() {\n\r\n\t}",
"@Override\r\n\tpublic void show() {\n\r\n\t}",
"public String handleDefault()\n throws HttpPresentationException\n {\n\t return showPage(null);\n }",
"public static DefaultExpression default_() { throw Extensions.todo(); }",
"public static void show() {\n\n\t}",
"private CommandResult showDefaultHelp() throws FinProductionException {\r\n\t\tList<HelpTablePair> helpTable = new ArrayList<HelpTablePair>(); \r\n\t\t\r\n\t\tfor (ICommandHandler i: CommandParser.INSTANCE.getCommandHandlers()) {\r\n\t\t\tif (i.getHelpTablePair() != null) {\r\n\t\t\t\thelpTable.add(i.getHelpTablePair());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn new CommandResult(this, \"\",\r\n\t\t\t\tCommandResult.RenderType.HELPTABLE, helpTable);\r\n\t}",
"@Override\n\tpublic void show4() {\n\t\t\n\t}",
"@Override\n public void show() {\n\n }",
"@Override\n public void show() {\n\n }",
"public String display();",
"public String getDisplayValue()\n {\n return null;\n }",
"@Override\r\n\tpublic ArrayList<PopUp> getPopUpDefault(String personId, Boolean Default) {\n\t\treturn null;\r\n\t}",
"public void returnDefault();",
"boolean isDefault();",
"boolean isDefault();",
"public String handleDefault() \n throws HttpPresentationException \n {\n\t return showEditPage(null);\n }",
"default void msg()\n {\n System.out.println(\"Default method...\");\n }",
"public void buildDefault(View v){\r\n }",
"public String getDefault(){\n return _default;\n }",
"@Override\n\tpublic void shown() {\n\n\t}",
"protected abstract void showHint();",
"public String handleDefault() \n throws HttpPresentationException \n {\n\t return showPage(null);\n }",
"@Override\n public void show() {\n \n }",
"public void show() {\n }",
"String getDefaultValue();",
"String getDefaultValue();",
"public void show() {\n System.out.println(\"I am the best\");\n }",
"public String showAllNhanvien();",
"public boolean shown();",
"private void openDefaultValue(FieldNode field) {\n\t\ttry {\n\t\t\tdisplay.addWindow(new DefaultValueBox(field.name, field.value, value -> {\n\t\t\t\tif (field.desc.length() == 1) {\n\t\t\t\t\t// Convert string value to int.\n\t\t\t\t\tif (Misc.isInt(value)) {\n\t\t\t\t\t\tfield.value = Integer.parseInt(value);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// Just set value as string\n\t\t\t\t\tfield.value = value;\n\t\t\t\t}\n\t\t\t}));\n\t\t} catch (Exception e) {\n\t\t\tdisplay.exception(e);\n\t\t}\n\t}",
"public void defaultContent() {\n\t\tgetter().switchTo().defaultContent();\r\n\t}",
"public void initDefaultCommand() {\n \tsetDefaultCommand(new boxChange());\n }",
"@Override\n\tpublic void show() {\n\t\tsuper.show();\n\t\t\n\t}",
"String getDefaultAlias();",
"@Override\n\tpublic void display() {\n\n\t}",
"@Override\n\tpublic void display() {\n\n\t}",
"@Override\n\tpublic void display() {\n\n\t}",
"public void show() {\n\t\t// TODO Auto-generated method stub\n\n\t}",
"String getDisplay_name();",
"public default void defaultMethod(){\r\n System.out.println(\"This is a method from Other Interface and can be overriden.\");\r\n }",
"public String show() {\n\t\tif (opened) {\n\t\t\tif (isBomb()) {\n\t\t\t\treturn \"o*\";\n\t\t\t} else{\n\t\t\t\treturn \"\"+value;\n\t\t\t}\n\t\t} else {\n\t\t\treturn \"\";\n\t\t}\n\t}",
"public static void list_defaults() {\n\t\tlogger.debug(\"Called 'list_defaults'\");\n\t\tString output = get_defaults()\n\t\t\t\t.stream()\n\t\t\t\t.map(Scannable::getName)\n\t\t\t\t.collect(Collectors.joining(\"\\n\"));\n\n\t\t// print out to the Jython interpreter directly (so output is formatted correctly)\n\t\tInterfaceProvider.getTerminalPrinter().print(output);\n\t}",
"public void show() {\n super.show(color, value.toString());\n }",
"@DISPID(0)\n @PropGet\n @DefaultMethod\n excel.Window get_Default(\n java.lang.Object index);"
] | [
"0.6934141",
"0.6772052",
"0.64911526",
"0.62968016",
"0.6013349",
"0.58969694",
"0.58470225",
"0.5825005",
"0.5793462",
"0.5793462",
"0.5793462",
"0.5793462",
"0.5793462",
"0.5793462",
"0.5793462",
"0.5793462",
"0.5793462",
"0.5793462",
"0.5793462",
"0.5793462",
"0.5793462",
"0.5793462",
"0.5793462",
"0.57905823",
"0.5788175",
"0.57849246",
"0.57800144",
"0.57800144",
"0.5769021",
"0.5769021",
"0.5769021",
"0.5769021",
"0.5769021",
"0.5769021",
"0.5769021",
"0.5769021",
"0.57680476",
"0.57680476",
"0.57616854",
"0.5751251",
"0.5747364",
"0.56883097",
"0.5683374",
"0.56803",
"0.5680183",
"0.5679868",
"0.56691015",
"0.56691015",
"0.56691015",
"0.5666892",
"0.5665135",
"0.56373274",
"0.56300694",
"0.5600348",
"0.5591845",
"0.5591845",
"0.55746406",
"0.55746406",
"0.55694646",
"0.55636644",
"0.5562451",
"0.55473125",
"0.5544833",
"0.55383337",
"0.55383337",
"0.55368966",
"0.55261266",
"0.5515907",
"0.5502878",
"0.5492731",
"0.5492731",
"0.54870665",
"0.5479061",
"0.5455871",
"0.5455065",
"0.5449709",
"0.5442366",
"0.54374987",
"0.54283786",
"0.542563",
"0.5384016",
"0.5384016",
"0.5342625",
"0.5332599",
"0.53309274",
"0.53225225",
"0.5316785",
"0.5309342",
"0.5299582",
"0.52969134",
"0.52900153",
"0.52900153",
"0.52900153",
"0.5275258",
"0.5263168",
"0.52604383",
"0.52588266",
"0.5258023",
"0.52498573",
"0.52457064"
] | 0.7146568 | 0 |
Used for derived Show instances for foreign types with implementation type double. | public static final SourceModel.Expr showDouble(SourceModel.Expr d) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showDouble), d});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isDouble() {\n return false;\n }",
"@Override\n public Class getValueType() {\n return Double.class;\n }",
"public boolean isDouble();",
"@ZenCodeType.Caster\n @ZenCodeType.Method\n default double asDouble() {\n \n return notSupportedCast(BasicTypeID.DOUBLE);\n }",
"public interface DoubleType extends NumericType {\n}",
"public double getDouble();",
"public boolean isDouble() {\n return this.data instanceof Double;\n }",
"@Override\n\tpublic void visit(DoubleType n) {\n\t\t\n\t}",
"@Override\n public Double value(TypeOfValue value);",
"public boolean realAsDouble() {\n return false;\n }",
"@java.lang.Override\n public double getRealValue() {\n if (typeCase_ == 4) {\n return (java.lang.Double) type_;\n }\n return 0D;\n }",
"private static void printIntOrDouble(double value) {\n if (value == (int) value) {\n System.out.print(\" \" + (int) value);\n } else {\n System.out.print(\" \" + value);\n }\n }",
"double getEDouble();",
"public Double getDoubleAttribute();",
"@Override //function was implemented as abstract in super class\n public double Display(){\n System.out.println(\"Toppings on Pizza:\");\n System.out.println(\"\\tAllergens: \" + this.Allergens);\n System.out.println(\"\\tNotes: \" + this.Notes);\n System.out.println(\"\\tDensity: \" + this.Density);\n System.out.println(\"\\tTopping: \" + this.Topping);\n System.out.println(\"\\tVegetarian: \" + this.Vegetarian);\n System.out.println();\n return this.Price;\n }",
"@Test\n\tpublic void testSetDisplayRangeDoubleDouble() {\n\t\tip = new ImagePlus();\n\t\tip.setDisplayRange(4,22);\n\n\t\t// pass in a legit ImagePlus\n\t\tproc = new ByteProcessor(3,1,new byte[] {1,4,7},null);\n\t\tip = new ImagePlus(\"Jellybeans\",proc);\n\n\t\t// illegal values\n\t\tip.setDisplayRange(-1,-1);\n\t\tassertEquals(-1,ip.getDisplayRangeMin(),Assert.DOUBLE_TOL);\n\t\tassertEquals(-1,ip.getDisplayRangeMax(),Assert.DOUBLE_TOL);\n\n\t\t// zero values\n\t\tip.setDisplayRange(0,0);\n\t\tassertEquals(0,ip.getDisplayRangeMin(),Assert.DOUBLE_TOL);\n\t\tassertEquals(0,ip.getDisplayRangeMax(),Assert.DOUBLE_TOL);\n\n\t\t// min > max\n\t\tip.setDisplayRange(1000,999);\n\t\tassertEquals(0,ip.getDisplayRangeMin(),Assert.DOUBLE_TOL);\n\t\tassertEquals(0,ip.getDisplayRangeMax(),Assert.DOUBLE_TOL);\n\n\t\t// legal values - notice how Double.Max converted to Integer.Max\n\t\tip.setDisplayRange(77000,Double.MAX_VALUE);\n\t\tassertEquals(77000,ip.getDisplayRangeMin(),Assert.DOUBLE_TOL);\n\t\tassertEquals(Integer.MAX_VALUE,ip.getDisplayRangeMax(),Assert.DOUBLE_TOL);\n\t}",
"public double asDouble() {\r\n\t\tif (this.what == SCALARTYPE.Integer || this.what == SCALARTYPE.Float) {\r\n\t\t\treturn (new BigDecimal(this.scalar)).doubleValue();\r\n\t\t} else\r\n\t\t\treturn 0; // ritorna un valore di default\r\n\t}",
"Double getDoubleValue();",
"private ClassInstance checkDerivedShowInstance(TypeConstructor typeCons,\r\n TypeConsApp instanceType,\r\n TypeClass typeClass, SourceRange position) throws UnableToResolveForeignEntityException {\r\n \r\n if (!typeClass.getName().equals(CAL_Debug.TypeClasses.Show)) {\r\n throw new IllegalStateException();\r\n }\r\n \r\n ModuleName currentModuleName = currentModuleTypeInfo.getModuleName();\r\n \r\n \r\n ForeignTypeInfo foreignTypeInfo = typeCons.getForeignTypeInfo(); \r\n \r\n if (foreignTypeInfo != null) {\r\n \r\n // foreign types\r\n \r\n Class<?> foreignType = foreignTypeInfo.getForeignType();\r\n \r\n if (foreignType.isPrimitive()) {\r\n \r\n if (foreignType == boolean.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showForeignBoolean},\r\n InstanceStyle.DERIVING); \r\n \r\n } else if (foreignType == byte.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showByte},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == char.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showForeignChar},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == short.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showShort},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == int.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showInt},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == long.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showLong},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == float.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showFloat},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == double.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showDouble},\r\n InstanceStyle.DERIVING);\r\n \r\n } else {\r\n throw new IllegalStateException(\"A type that claims to be primitive is not one of the known primitive types\");\r\n }\r\n \r\n } else {\r\n // Defer to String.valueOf(Object) for non-primitive foreign values\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showJObject}, \r\n InstanceStyle.DERIVING);\r\n }\r\n \r\n \r\n } else {\r\n \r\n // non-foreign types\r\n \r\n TypeExpr showTypeExpr = TypeExpr.makeFunType(instanceType, compiler.getTypeChecker().getTypeConstants().getStringType());\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeShowInstanceFunction(typeCons), showTypeExpr, position); \r\n \r\n return new ClassInstance(currentModuleName, instanceType, typeClass, null, InstanceStyle.DERIVING);\r\n }\r\n }",
"public Double\n getDoubleValue() \n {\n return ((Double) getValue());\n }",
"public double getDoubleValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a double.\");\n }",
"@Test\n public void test_column_type_detection_double() throws SQLException {\n ColumnInfo info = testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"12.3e4\", XSDDatatype.XSDdouble), true, Types.DOUBLE, Double.class.getCanonicalName());\n Assert.assertEquals(16, info.getScale());\n Assert.assertEquals(16, info.getPrecision());\n Assert.assertTrue(info.isSigned());\n }",
"@Override\n\tpublic void fishfloat()\n\t{\n\t\tSystem.out.println(super.getName() + \" is floating\");\n\n\t}",
"public static double leerDouble() {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"@Override\n public String toString() {\n return new GsonBuilder().serializeSpecialFloatingPointValues().create().toJson(this);\n }",
"public double getRealValue() {\n if (typeCase_ == 4) {\n return (java.lang.Double) type_;\n }\n return 0D;\n }",
"default T handleNumber(double val) {\n throw new UnsupportedOperationException();\n }",
"public void print(double someDouble) {\r\n print(someDouble + \"\");\r\n }",
"@Override\n public void onChanged(Double aDouble) {\n if (aDouble*1000 < 1) {\n etOutputValue.setText(\"0.0\");\n } else {\n DecimalFormat decimalFormat = new DecimalFormat(\"#,##0.###\");\n etOutputValue.setText(decimalFormat.format(aDouble));\n }\n }",
"public abstract Double getDataValue();",
"public abstract T fromDouble(Double d);",
"public boolean hasDoublePrecision() {\n return result.hasDoublePrecision();\n }",
"boolean hasDouble();",
"public String toString() {\n\t\treturn String.valueOf(mDouble);\n\t}",
"@Override\n\tpublic void display() {\n\t\tSystem.out.println(valueType+\": \"+value);\n\t}",
"public double doubleValue() {\n\t\treturn mDouble;\n\t}",
"public double getDouble() {\r\n\t\treturn (value.getDouble());\r\n\t}",
"public double doubleValue();",
"public Double getDouble(String attr) {\n return (Double) super.get(attr);\n }",
"public void setDoubleValue(double v)\n {\n this.setValue(String.valueOf(v));\n }",
"double getFloatingPointField();",
"@Override\n\tpublic void visit(DoubleValue arg0) {\n\t\t\n\t}",
"public abstract double getValue();",
"double getDoubleValue2();",
"public double doubleValue() {\n return this.value;\n }",
"@Override\n public String toString() {\n String strValue = \n (value instanceof Double) ? \n String.format(\"%.4f\", value) : \n value.toString();\n String strWeight = String.format(\"%.4f\", w);\n return \"{value: \" + strValue + \", weight: \" + strWeight + \"}\";\n }",
"public static void main(String[] args)\n {\n\n double myDouble = 3.14;\n float myFloat = 3.14f; //Removing the f will cause an error due to lossy conversion\n double yourDouble = myFloat; //Widening/lossless conversions won't raise errors\n }",
"public abstract void getDoubleImpl(String str, double d, Resolver<Double> resolver);",
"public double getDoubleValue() {\n\t\treturn value;\r\n\t}",
"T print(double data) throws PrintingException;",
"@Override\n\tpublic void visit(DoubleValue arg0) {\n\n\t}",
"@DISPID(1610940434) //= 0x60050012. The runtime will prefer the VTID if present\n @VTID(40)\n double density();",
"public interface FloatView {\n}",
"public abstract double read_double();",
"public abstract void setDoubleImpl(String str, double d, Resolver<Void> resolver);",
"public void testOverloadedMethods(){\n System.out.printf(\"Square of integer 7 is %d\\n\", square(7));\n System.out.printf(\"Square of double 7.5 is %f\\n\", square(7.5));\n }",
"public double value(){\n\t return (double) this.f;\n }",
"public void showInfomation()\n {\n\t System.out.println(\"\\nSide\"+\"\\n\\tnumber: \"+ super.getNumber() +\"\\n\\tdishName: \" + super.getDishName() + \"\\n\\tmaker: \"+maker+\"\\n\\tprice : \" + super.getPrice()+\"$\");\n }",
"public double doubleValue() {\n return (double) m_value;\n }",
"public abstract Double toDouble(T t);",
"public static void main(String[] args) {\n int a =0;\n System.out.println((a!=0)?\"true\":\"false\");\n Double d = null;\n System.out.println((d instanceof Double)?true:false);\n\n\n }",
"@Override\n\tpublic void visit(DoubleLiteral n) {\n\t\t\n\t}",
"public abstract boolean containsInstance(double value);",
"public static void displayDataLine( String name, double value, char lineChar )\r\n {\n }",
"public double doubleValue() {\n return (double) value;\n }",
"public static void fieldSetDouble(final Class<?> cls, final String name,\r\n final Object inst, final double value) throws SecurityException,\r\n NoSuchFieldException, IllegalArgumentException, IllegalAccessException {\r\n final Field field = jvmGetField(cls, name);\r\n field.setDouble(inst, value);\r\n }",
"public static interface DataTypeWithRatioScale<T> {\r\n \r\n /**\r\n * Add\r\n *\r\n * @param augend\r\n * @param addend\r\n * @return\r\n */\r\n public abstract T add(T augend, T addend);\r\n\r\n /**\r\n * Compare\r\n *\r\n * @param s1\r\n * @param s2\r\n * @return\r\n * @throws NumberFormatException\r\n * @throws ParseException\r\n */\r\n public abstract int compare(String s1, String s2) throws NumberFormatException,\r\n ParseException;\r\n\r\n /**\r\n * Compare\r\n *\r\n * @param t1\r\n * @param t2\r\n * @return\r\n */\r\n public abstract int compare(T t1, T t2);\r\n\r\n /**\r\n * Divide\r\n *\r\n * @param dividend\r\n * @param divisor\r\n * @return\r\n */\r\n public abstract String divide(String dividend, String divisor);\r\n \r\n /**\r\n * Divide\r\n *\r\n * @param dividend\r\n * @param divisor\r\n * @return\r\n */\r\n public abstract T divide(T dividend, T divisor);\r\n \r\n /**\r\n * Format\r\n *\r\n * @param t\r\n * @return\r\n */\r\n public abstract String format(T t);\r\n\r\n /**\r\n * Converts a double into a value.\r\n *\r\n * @param s\r\n * @return\r\n */\r\n public abstract T fromDouble(Double d);\r\n\r\n /**\r\n * Description\r\n *\r\n * @return\r\n */\r\n public abstract DataTypeDescription<T> getDescription();\r\n\r\n /**\r\n * Maximum\r\n *\r\n * @return\r\n */\r\n public T getMaximum();\r\n \r\n /**\r\n * Minimum\r\n *\r\n * @return\r\n */\r\n public T getMinimum();\r\n\r\n /**\r\n * Valid\r\n *\r\n * @param s\r\n * @return\r\n */\r\n public abstract boolean isValid(String s);\r\n\r\n /**\r\n * Multiply\r\n *\r\n * @param multiplicand\r\n * @param multiplicator\r\n * @return\r\n */\r\n public abstract String multiply(String multiplicand,\r\n String multiplicator);\r\n\r\n /**\r\n * Multiply\r\n *\r\n * @param multiplicand\r\n * @param multiplicator\r\n * @return\r\n */\r\n public abstract T multiply(T multiplicand, double multiplicator);\r\n\r\n /**\r\n * Multiply\r\n *\r\n * @param multiplicand\r\n * @param multiplicator\r\n * @return\r\n */\r\n public abstract T multiply(T multiplicand, int multiplicator);\r\n\r\n /**\r\n * Multiply\r\n *\r\n * @param multiplicand\r\n * @param multiplicator\r\n * @return\r\n */\r\n public abstract T multiply(T multiplicand, T multiplicator);\r\n \r\n /**\r\n * Parse\r\n *\r\n * @param s\r\n * @return\r\n */\r\n public abstract T parse(String s);\r\n\r\n /**\r\n * Divide\r\n *\r\n * @param dividend\r\n * @param divisor\r\n * @return\r\n */\r\n public abstract double ratio(T dividend, T divisor);\r\n \r\n /**\r\n * Subtract\r\n *\r\n * @param minuend\r\n * @param subtrahend\r\n * @return\r\n */\r\n public abstract T subtract(T minuend, T subtrahend);\r\n \r\n /**\r\n * Converts a double into a value.\r\n *\r\n * @param s\r\n * @return\r\n */\r\n public abstract Double toDouble(T t);\r\n }",
"public double castToDoubleValue() {\n throw new IteratorFlowException(\"Cannot call castToDouble on non numeric\");\n }",
"public double getDoubleValue()\n {\n return (double) getValue() / (double) multiplier;\n }",
"@Override\n public boolean isRealFigure() {\n return getD() > 0 && super.isRealFigure();\n }",
"public double doubleValue() {\r\n return (double) intValue();\r\n }",
"public double readDouble()\r\n/* 453: */ {\r\n/* 454:466 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 455:467 */ return super.readDouble();\r\n/* 456: */ }",
"@Override\n\tpublic void viewPrice() {\n\t\t\n\t}",
"public void setDoubleValue(double newDouble) {\n\t\tmDouble = newDouble;\n\t}",
"public abstract double GetRaw();",
"public int getAxisType()\n {\n return DOUBLE;\n }",
"double getDoubleValue1();",
"void writeDouble(double v) throws IOException;",
"public void printer(double x);",
"@Override\n public boolean getPowerFloat() {\n return false;\n }",
"public abstract float getDensity();",
"public BasicDouble(double value) {\r\n\t\tsuper.value = this.value = value;\r\n\t}",
"void writeDouble(double value);",
"@Override\n public Double getDoubleValue()\n {\n return aggVal;\n }",
"public double getReal() {return this.real;}",
"public MyDouble() {\n this.setValue(0);\n }",
"public interface Doubleton {\n static double identity(double input) {\n return input;\n }\n\n static float toFloat(double input) {\n return (float) input;\n }\n\n static byte toByte(double input) {\n return (byte) input;\n }\n\n static int toInt(double input) {\n return (int) input;\n }\n\n static long toLong(double input) {\n return (long) input;\n }\n\n static short toShort(double input) {\n return (short) input;\n }\n static String toString(double input) {\n return String.valueOf(input);\n }\n\n static Byte toBoxedByte(double input) {\n return toByte(input);\n }\n\n static Double toBoxedDouble(double input) {\n return input;\n }\n\n static Float toBoxedFloat(double input) {\n return toFloat(input);\n }\n\n static Integer toBoxedInteger(double input) {\n return toInt(input);\n }\n\n static Long toBoxedLong(double input) {\n return toLong(input);\n }\n\n static Short toBoxedShort(double input) {\n return toShort(input);\n }\n\n static double[] toArray(double value) {\n return new double[]{value};\n }\n}",
"@Test\n public void testSetNumberDouble() {\n factory.setNumber(0.25).setCurrency(\"EUR\");\n assertEquals(Geldbetrag.valueOf(\"0.25 EUR\"), factory.create());\n }",
"public double getDouble(int index)\r\n/* 203: */ {\r\n/* 204:220 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 205:221 */ return super.getDouble(index);\r\n/* 206: */ }",
"@Test public void gh1206() {\n execute(new CreateDB(NAME, \"<x>a</x>\"));\n query(\"/* castable as xs:double\", false);\n }",
"public abstract void writeAsDbl(int offset, double d);",
"public Builder setRealValue(double value) {\n typeCase_ = 4;\n type_ = value;\n onChanged();\n return this;\n }",
"public ByteBuf writeDouble(double value)\r\n/* 575: */ {\r\n/* 576:586 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 577:587 */ return super.writeDouble(value);\r\n/* 578: */ }",
"public Double getDx();",
"T println(double data) throws PrintingException;",
"public static String DoubleToString(double DoubleValue){\n Double doublee = new Double(DoubleValue);\n return doublee.toString(); \n }",
"@Override\n\tpublic void setClassValue(final double value) {\n\n\t}",
"private void registerDoubleConversions(ITypeManager typeManager) {\n\t\ttypeManager.registerConverter(BsonDouble.class, String.class, \n\t\t\t(Object val) -> ToCoreStrUtils.bsonDbl2Str((BsonDouble) val));\n\t\ttypeManager.registerConverter(BsonDouble.class, Character.class, \n\t\t\t(Object val) -> ToCoreChrUtils.bsonDbl2Chr((BsonDouble) val));\n\t\ttypeManager.registerConverter(BsonDouble.class, Byte.class, \n\t\t\t(Object val) -> ToCoreByteUtils.bsonDbl2Byte((BsonDouble) val));\n\t\ttypeManager.registerConverter(BsonDouble.class, Short.class, \n\t\t\t(Object val) -> ToCoreShrtUtils.bsonDbl2Shrt((BsonDouble) val));\n\t\ttypeManager.registerConverter(BsonDouble.class, Integer.class, \n\t\t\t(Object val) -> ToCoreIntUtils.bsonDbl2Int((BsonDouble) val));\n\t\ttypeManager.registerConverter(BsonDouble.class, Long.class,\n\t\t\t(Object val) -> ToCoreLngUtils.bsonDbl2Lng((BsonDouble) val));\n\t\ttypeManager.registerConverter(BsonDouble.class, BigInteger.class, \n\t\t\t(Object val) -> ToCoreBgiUtils.bsonDbl2Bgi((BsonDouble) val));\n\t\ttypeManager.registerConverter(BsonDouble.class, Float.class, \n\t\t\t(Object val) -> ToCoreFltUtils.bsonDbl2Flt((BsonDouble) val));\n\t\ttypeManager.registerConverter(BsonDouble.class, BigDecimal.class, \n\t\t\t(Object val) -> ToCoreBgdUtils.bsonDbl2Bgd((BsonDouble) val));\n\t\ttypeManager.registerConverter(BsonDouble.class, Boolean.class, \n\t\t\t(Object val) -> ToCoreBoolUtils.bsonDbl2Bool((BsonDouble) val));\n\t}",
"@Override\n public double nextDouble() {\n return super.nextDouble();\n }",
"AbstractDoubleFormat(final Builder builder) {\n this.maxPrecision = builder.maxPrecision;\n this.minDecimalExponent = builder.minDecimalExponent;\n\n this.positiveInfinity = builder.infinity;\n this.negativeInfinity = builder.minusSign + builder.infinity;\n this.nan = builder.nan;\n\n this.fractionPlaceholder = builder.fractionPlaceholder;\n this.signedZero = builder.signedZero;\n this.digits = builder.digits.toCharArray();\n this.decimalSeparator = builder.decimalSeparator;\n this.groupingSeparator = builder.groupingSeparator;\n this.groupThousands = builder.groupThousands;\n this.minusSign = builder.minusSign;\n this.exponentSeparatorChars = builder.exponentSeparator.toCharArray();\n this.alwaysIncludeExponent = builder.alwaysIncludeExponent;\n }"
] | [
"0.64828396",
"0.6317314",
"0.6281497",
"0.62051857",
"0.60896564",
"0.60812217",
"0.6054944",
"0.60519755",
"0.6034909",
"0.5991163",
"0.5951748",
"0.59403753",
"0.5783705",
"0.5730044",
"0.5721974",
"0.5661323",
"0.5631465",
"0.56078583",
"0.55584824",
"0.5557368",
"0.5552369",
"0.5532123",
"0.55270845",
"0.55099833",
"0.55038196",
"0.5497843",
"0.5496055",
"0.54917425",
"0.54915994",
"0.54900086",
"0.547826",
"0.5444746",
"0.5424295",
"0.5366299",
"0.53646535",
"0.53591955",
"0.5307211",
"0.5302582",
"0.52874255",
"0.52804303",
"0.52775097",
"0.5275313",
"0.52671343",
"0.52600974",
"0.5256894",
"0.52523154",
"0.5251813",
"0.5249881",
"0.5247767",
"0.5233357",
"0.5227603",
"0.5195463",
"0.51888114",
"0.5181166",
"0.51770616",
"0.5141409",
"0.5139198",
"0.51346976",
"0.5132245",
"0.51226205",
"0.51214623",
"0.5120016",
"0.51194006",
"0.5118245",
"0.51126766",
"0.5111589",
"0.5096137",
"0.5089154",
"0.50883263",
"0.5088132",
"0.5081552",
"0.50798213",
"0.50787765",
"0.5078478",
"0.5071172",
"0.50647306",
"0.50630116",
"0.50601727",
"0.50531155",
"0.5041735",
"0.5038678",
"0.5031561",
"0.50306237",
"0.5027485",
"0.5019822",
"0.49978667",
"0.49964225",
"0.49902925",
"0.49895453",
"0.49874735",
"0.4985811",
"0.49790466",
"0.49774992",
"0.49760976",
"0.4971462",
"0.4966121",
"0.49655068",
"0.49638107",
"0.49541542",
"0.4952413"
] | 0.6373368 | 1 |
Helper binding method for function: showEither. | public static final SourceModel.Expr showEither(SourceModel.Expr x) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showEither), x});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic Void visit(Either either) throws RuntimeException {\n\t\treturn null;\n\t}",
"public String toString() {\n String leftstring = _left.toString();\n String rightstring = _right.toString();\n \n String left;\n if (_left.isArrowType()) left = \"(\" + leftstring + \")\";\n else if (_left.isBaseType()) left = leftstring;\n else throw new Error(\"Missed a case in a switch for type kinds.\");\n return left + \" ⇒ \" + rightstring;\n }",
"Optional<T> show();",
"public int either() {\n return u;\n }",
"public static final SourceModel.Expr showMaybe(SourceModel.Expr maybe) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showMaybe), maybe});\n\t\t}",
"@Override\n public void showError() {\n }",
"public int either() {\n return v;\n }",
"OrExp getLeft();",
"default HtmlFormatter wrapWith(String left, String right) {\n return andThen(s -> String.join(\n \"\",\n left,\n s,\n right\n ));\n }",
"protected abstract String display();",
"private ClassInstance checkDerivedShowInstance(TypeConstructor typeCons,\r\n TypeConsApp instanceType,\r\n TypeClass typeClass, SourceRange position) throws UnableToResolveForeignEntityException {\r\n \r\n if (!typeClass.getName().equals(CAL_Debug.TypeClasses.Show)) {\r\n throw new IllegalStateException();\r\n }\r\n \r\n ModuleName currentModuleName = currentModuleTypeInfo.getModuleName();\r\n \r\n \r\n ForeignTypeInfo foreignTypeInfo = typeCons.getForeignTypeInfo(); \r\n \r\n if (foreignTypeInfo != null) {\r\n \r\n // foreign types\r\n \r\n Class<?> foreignType = foreignTypeInfo.getForeignType();\r\n \r\n if (foreignType.isPrimitive()) {\r\n \r\n if (foreignType == boolean.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showForeignBoolean},\r\n InstanceStyle.DERIVING); \r\n \r\n } else if (foreignType == byte.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showByte},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == char.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showForeignChar},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == short.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showShort},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == int.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showInt},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == long.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showLong},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == float.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showFloat},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == double.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showDouble},\r\n InstanceStyle.DERIVING);\r\n \r\n } else {\r\n throw new IllegalStateException(\"A type that claims to be primitive is not one of the known primitive types\");\r\n }\r\n \r\n } else {\r\n // Defer to String.valueOf(Object) for non-primitive foreign values\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showJObject}, \r\n InstanceStyle.DERIVING);\r\n }\r\n \r\n \r\n } else {\r\n \r\n // non-foreign types\r\n \r\n TypeExpr showTypeExpr = TypeExpr.makeFunType(instanceType, compiler.getTypeChecker().getTypeConstants().getStringType());\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeShowInstanceFunction(typeCons), showTypeExpr, position); \r\n \r\n return new ClassInstance(currentModuleName, instanceType, typeClass, null, InstanceStyle.DERIVING);\r\n }\r\n }",
"@Override\n public String toString() {\n StringBuilder b = new StringBuilder();\n boolean any = false;\n if (isUnknown()) {\n b.append(\"?\");\n any = true;\n } else if (isPolymorphic()) {\n b.append(\"^(\").append(var).append('[');\n if (isMaybeAbsent()) {\n b.append(\"absent\");\n any = true;\n }\n if (isMaybePresent()) {\n if (any)\n b.append('|');\n b.append(\"present\");\n }\n b.append(\"])\");\n any = true;\n } else {\n if (isMaybeUndef()) {\n b.append(\"Undef\");\n any = true;\n }\n if (isMaybeNull()) {\n if (any)\n b.append('|');\n b.append(\"Null\");\n any = true;\n }\n if (isMaybeAnyBool()) {\n if (any)\n b.append('|');\n b.append(\"Bool\");\n any = true;\n } else if (isMaybeTrueButNotFalse()) {\n if (any)\n b.append('|');\n b.append(\"true\");\n any = true;\n } else if (isMaybeFalseButNotTrue()) {\n if (any)\n b.append('|');\n b.append(\"false\");\n any = true;\n }\n if (isMaybeAnyNum()) {\n if (any)\n b.append('|');\n b.append(\"Num\");\n any = true;\n } else {\n if (num == null && isMaybeZero() && !isMaybeNumUIntPos()) {\n if (any)\n b.append('|');\n b.append(\"Zero\");\n any = true;\n } else if (!isMaybeZero() && isMaybeNumUIntPos()) {\n if (any)\n b.append('|');\n b.append(\"UIntPos\");\n any = true;\n } else if (isMaybeNumUInt()) {\n if (any)\n b.append('|');\n b.append(\"UInt\");\n any = true;\n }\n if (isMaybeNumOther()) {\n if (any)\n b.append('|');\n b.append(\"NotUInt\");\n any = true;\n }\n if (isMaybeNaN()) {\n if (any)\n b.append('|');\n b.append(\"NaN\");\n any = true;\n }\n if (isMaybeInf()) {\n if (any)\n b.append('|');\n b.append(\"Inf\");\n any = true;\n }\n if (num != null) {\n if (any)\n b.append('|');\n b.append(num);\n any = true;\n }\n }\n if (excluded_strings != null || included_strings != null) {\n if (any)\n b.append('|');\n b.append('(');\n any = false;\n }\n if (isMaybeAnyStr()) {\n if (any)\n b.append('|');\n b.append(\"Str\");\n any = true;\n } else {\n if (isMaybeStrUInt()) {\n if (any)\n b.append('|');\n b.append(\"UIntStr\");\n any = true;\n }\n if (isMaybeStrOtherNum()) {\n if (any)\n b.append('|');\n b.append(\"NotUIntStr\"); // TODO: change to OtherNumStr?\n any = true;\n }\n if (isMaybeStrIdentifier()) {\n if (any)\n b.append('|');\n b.append(\"IdentStr\");\n any = true;\n }\n if (isMaybeStrOtherIdentifierParts()) {\n if (any)\n b.append('|');\n b.append(\"OtherIdentPartsStr\");\n any = true;\n }\n if (isMaybeStrOther()) {\n if (any)\n b.append('|');\n b.append(\"OtherStr\");\n any = true;\n }\n if (isStrJSON()) {\n if (any)\n b.append(\"|\");\n b.append(\"JSONStr\");\n any = true;\n }\n if (isMaybeStrPrefix()) {\n if (any)\n b.append('|');\n b.append(\"PrefixStr[\").append(Strings.escape(str)).append(']');\n any = true;\n } else if (str != null) {\n if (any)\n b.append('|');\n b.append('\"').append(Strings.escape(str)).append('\"');\n any = true;\n }\n }\n if (excluded_strings != null || included_strings != null) {\n b.append(')');\n if (excluded_strings != null)\n b.append(\"\\\\{\").append(excluded_strings.stream().sorted().map(s -> '\"' + Strings.escape(s) + '\"').collect(java.util.stream.Collectors.joining(\",\"))).append(\"}\");\n if (included_strings != null)\n b.append(\"{\").append(included_strings.stream().sorted().map(s -> '\"' + Strings.escape(s) + '\"').collect(java.util.stream.Collectors.joining(\",\"))).append(\"}\");\n any = true;\n }\n if (object_labels != null) {\n if (any)\n b.append('|');\n b.append(object_labels);\n any = true;\n }\n if (getters != null) {\n if (any)\n b.append('|');\n b.append(\"getter \").append(getters);\n any = true;\n }\n if (setters != null) {\n if (any)\n b.append('|');\n b.append(\"setter \").append(setters);\n any = true;\n }\n if (isMaybeAbsent()) {\n if (any)\n b.append('|');\n b.append(\"absent\");\n any = true;\n }\n if (functionPartitions != null) {\n if (any)\n b.append(',');\n b.append(\"functionPartitions=\").append(functionPartitions);\n any = true;\n }\n if (functionTypeSignatures != null) {\n if (any)\n b.append(',');\n b.append(\"functionTypeSignatures=\").append(functionTypeSignatures);\n // any = true;\n }\n }\n if (!any)\n b.append(\"<no value>\");\n// if (isMaybeModified())\n// b.append(\"%\");\n return b.toString();\n }",
"private String errorMessage() {\n\n StringBuilder strBuilder = new StringBuilder();\n strBuilder.append(eventBasedXorGatewayNode + \" => eventBasedXorGatewayNode \\n\");\n strBuilder.append(intermediateEvent1Node + \" => intermediateEvent1Node \\n\");\n strBuilder.append(intermediateEvent2Node + \" => intermediateEvent2Node \\n\");\n strBuilder.append(endNode1 + \" => endNode1 \\n\");\n strBuilder.append(endNode2 + \" => endNode2 \\n\");\n\n return strBuilder.toString();\n }",
"public StrColumn getErrorDerivationMethod() {\n return (StrColumn) (isText ? textFields.computeIfAbsent(\"error_derivation_method\", StrColumn::new) :\n getBinaryColumn(\"error_derivation_method\"));\n }",
"protected String formatErrorMessage() throws SQLException {\n \tint errCode = SQLite.extendederrcode(getConnection().getSqliteDb());\r\n \tString message = SQLite.errmsg(getConnection().getSqliteDb());\r\n\t\tString s = StringUtil.format(\"Code:{0}\\n{1}\", errCode, message);\r\n\t\treturn s;\r\n\t}",
"public String shortRepr() {\n\t\treturn \"Value of some kind.\";\n\t}",
"abstract String display(T value);",
"public abstract String display();",
"public String toString ()\n {\n if (exception != null) {\n return exception.toString();\n } else {\n return super.toString();\n }\n }",
"protected <U> String toString(Supplier<U> supp) {\n\t\ttry {\n\t\t\treturn \"\"+supp.get();\n\t\t} catch (RuntimeException ex) {\n\t\t\treturn ex.getClass().getSimpleName();\n\t\t}\n\t}",
"protected String getRightParametersText() {\n return \")\";\n }",
"java.lang.String getErrorInfo();",
"java.lang.String getErrorInfo();",
"java.lang.String getErrorInfo();",
"java.lang.String getErrorInfo();",
"public interface ErrorView {\n void showError(String error);\n}",
"public Object visitLogicalOrExpression(GNode n) {\n if (dostring) {\n Object a = dispatch(n.getGeneric(0));\n Object b = dispatch(n.getGeneric(1));\n \n if (a instanceof Long && b instanceof Long) {\n return (Long) a | (Long) b;\n }\n else {\n return parens(a) + \" || \" + parens(b);\n }\n }\n else {\n BDD a, b, bdd;\n \n a = ensureBDD(dispatch(n.getGeneric(0)));\n b = ensureBDD(dispatch(n.getGeneric(1)));\n \n bdd = a.orWith(b);\n \n return bdd;\n }\n }",
"@Override\r\n\tpublic void displayError(EntityPropertyCode code, String message) {\n\t}",
"void doShow() throws AmbiguousException, PlayerDebugException\n\t{\n\t\tif (!hasMoreTokens())\n\t\t\tout( getHelpTopic(\"show\") ); //$NON-NLS-1$\n\t\telse\n\t\t{\n\t\t\t/* otherwise we have a boatload of options */\n\t\t\tString subCmdString = nextToken();\n\t\t\tint subCmd = showCommandFor(subCmdString);\n\t\t\tswitch(subCmd)\n\t\t\t{\n\t\t\t\tcase SHOW_NET_CMD:\n\t\t\t\t\tdoShowStats();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase SHOW_FUNC_CMD:\n\t\t\t\t\tdoShowFuncs();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase SHOW_URI_CMD:\n\t\t\t\t\tdoShowUri();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase SHOW_PROPERTIES_CMD:\n\t\t\t\t\tdoShowProperties();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase SHOW_FILES_CMD:\n\t\t\t\t\tdoShowFiles();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase SHOW_BREAK_CMD:\n\t\t\t\t\tdoShowBreak();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase SHOW_VAR_CMD:\n\t\t\t\t\tdoShowVariable();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase SHOW_MEM_CMD:\n\t\t\t\t\tdoShowMemory();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase SHOW_LOC_CMD:\n\t\t\t\t\tdoShowLocations();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase SHOW_DIRS_CMD:\n\t\t\t\t\tdoShowDirectories();\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tdoUnknown(\"show\", subCmdString); //$NON-NLS-1$\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"@Override public String toString(){\n return \"Logic Parameter Exception\";\n }",
"void showErrorMsg(String string);",
"public String toString() {\n return \"An arrow thrown by \" + thrower;\n }",
"public abstract List<? extends Pair<Type.Clazz,String>> exceptions();",
"@Override\r\n\tpublic String pipeWithException(String... args) {\r\n\t\treturn pipeCaller(args);\r\n\t}",
"public String toDisplayString() {\n return errors.stream()\n .sorted()\n .map(e -> e.toDisplayString(source))\n .collect(Collectors.joining(\"\\n\"));\n }",
"public void showError(String error);",
"@Override\n protected PrettyStringBuilder toPrettyStringBuilder() {\n PrettyStringBuilder builder = new PrettyStringBuilder(this, 1);\n builder.appendBuilder(this.e1.toPrettyStringBuilder(), 1);\n builder.appendText(\" || \");\n builder.appendBuilder(this.e2.toPrettyStringBuilder(), 2);\n return builder;\n }",
"private void showErrorView() {\n Log.d(\"lodd\", \"showSuccessView: hjfj91919515\");\n\n }",
"@Override\r\n\tprotected String getErrorInfo(String str, String cmds) {\n\t\treturn null;\r\n\t}",
"@Override\n public String toString() {\n if (valid())\n return \"valid\";\n return print(errors + \":\" + validator);\n }",
"protected String getLeftParametersText() {\n return \"(\";\n }",
"protected abstract void showRightFace();",
"@Override\n\tprotected String formatted(Walue _) {\n\t\treturn \"\";\n\t}",
"public abstract void showErrorBox(Throwable error);",
"public String toString(){\n\t\treturn leftValue + \":\" +rightValue;\t\t\t\r\n\t}",
"public String error();",
"public String showPerson(){\n return _person.toString();\n }",
"String errorMessage();",
"String getOr_op();",
"public String getOrConcatenator() {\n\t\treturn \"|\";\n\t}",
"AndExp getRight();",
"@Override\n public String toString() { return '(' + left.toString() + ' ' + operation.toString() + ' ' + right.toString() + ')'; }",
"@Override\n public String toString() { return '(' + left.toString() + ' ' + operation.toString() + ' ' + right.toString() + ')'; }",
"String getErrorsString();",
"@AutoEscape\n public String getModelIndexErrorPolicy();",
"public void makeRightVisible() {\n makeCharVisible(getCursor().getRightLine(),getCursor().getRightColumn());\n }",
"public String toStringWithRelation() {\r\n StringBuilder sb = new StringBuilder();\r\n sb.append(toString());\r\n String l = \"\\n \";\r\n if (_member != null)\r\n { sb.append(l).append(xbRDS(_member, \"member\")); }\r\n if (_region != null)\r\n { sb.append(l).append(xbRDS(_region, \"region\")); }\r\n return sb.toString();\r\n }",
"public Optional<SpreadsheetError> error() {\n final Optional<Object> value = this.value();\n\n final Object maybeValue = this.value()\n .orElse(null);\n return maybeValue instanceof SpreadsheetError ?\n Cast.to(value) :\n SpreadsheetFormula.NO_ERROR;\n }",
"@Override public String toDot() {\r\n String middle = \"\";\r\n switch(operator) {\r\n case AND : \r\n middle = \"&\";\r\n break;\r\n case NOR :\r\n case OR : \r\n middle = \"∨\";\r\n break;\r\n case IMPLIES : \r\n middle = \"=>\";\r\n break;\r\n default : assert false;\r\n }\r\n middle = left.toDot() + \" \" + middle + \" \" + right.toDot();\r\n if ( operator == Token.NOR )\r\n return \"¬ (\"+middle+\")\";\r\n else\r\n return middle;\r\n }",
"default V getOrThrow() {\n return getOrThrow(\"null\");\n }",
"public String toString()\n {\n String l = left == null ? \"null\" : left.toString();\n String r = right == null ? \"null\" : right.toString();\n return \"(\" + value + \",\" + l + \",\" + r + \")\";\n }",
"public Object visitBitwiseOrExpression(GNode n) {\n Object a, b, result;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n b = dispatch(n.getGeneric(1));\n \n dostring = false;\n \n if (a instanceof Long && b instanceof Long) {\n result = (Long) a | (Long) b;\n }\n else {\n result = parens(a) + \" | \" + parens(b);\n }\n \n return result;\n }",
"public static final SourceModel.Expr showRecord(SourceModel.Expr arg_1) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showRecord), arg_1});\n\t\t}",
"public interface ErrorView {\n void showError(String message);\n}",
"void showError(Throwable throwable);",
"private void printLeft() {\n System.out.println(\"left side:\");\n if(leftSide != null) {\n for (int person : leftSide) System.out.print(Integer.toString(person) + \" \");\n System.out.println();\n }\n }",
"public static <LHS> org.hamcrest.core.CombinableMatcher.CombinableEitherMatcher<Iterable<LHS>> either(OutputMatcher<LHS> matcher) {\n return org.hamcrest.core.CombinableMatcher.either(matcher);\n }",
"public String toStringWithRelation();",
"String displayValue();",
"char displayHelp(SideType s) {\n switch (s) {\n case IN:\n return SIDE_IN;\n case OUT:\n return SIDE_OUT;\n case FLAT:\n return SIDE_FLAT;\n }\n // in case of a problem\n return '*';\n }",
"@Override\r\n public void mapshow()\r\n {\r\n printInvalidCommandMessage();\r\n }",
"@Override\r\n\tpublic String showResult() {\n\t\treturn rps.toString();\r\n\t}",
"protected String getRightMessage() {\n\t\treturn player1.getName() + \": \" + player1.getScore();\n\t}",
"public java.lang.String toDebugString () { throw new RuntimeException(); }",
"public String toString()\n {\n return \"<ERROR>\";\n }",
"@Override\n\tpublic String toStringCursor()\n\t{\n\t\t// String we will be printing\n\t\tString returnString = \"\";\n\t\t// print everything in our left stack with loop\n\t\tfor (int i = 0; i < left.size(); ++i)\n\t\t{\n\t\t\treturnString = returnString + left.elementAt(i);\n\t\t}\n\n\t\t// Print our cursor\n\t\treturnString = returnString + \"|\";\n\n\t\t// print everything in our right stack with loop\n\t\tfor (int i = right.size() - 1; i >= 0; --i)\n\t\t{\n\t\t\treturnString = returnString + right.elementAt(i);\n\t\t}\n\n\t\t// Return our string to print\n\t\treturn returnString;\n\t}",
"public static final SourceModel.Expr showForeignChar(SourceModel.Expr c) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showForeignChar), c});\n\t\t}",
"java.lang.String getErr();",
"public String toString() {\n if (!isException) {\n return \"SUCCESS(\" + value + \")\";\n } else {\n return \"FAILURE(\" + ex + \")\";\n }\n }",
"@Nonnull\n public Function<Object, String> getValueToString()\n {\n return _valueToString;\n }",
"public void showError(String errorMessage);",
"public String printInvalidSaveCollectionSheetReasons() {\n if (invalidSaveCollectionSheetReasonsExtended != null) {\n final StringBuilder builder = new StringBuilder();\n final String newline = System.getProperty(\"line.separator\");\n\n builder.append(\"Input Errors Found:\");\n builder.append(newline);\n for (String ire : invalidSaveCollectionSheetReasonsExtended) {\n builder.append(ire);\n builder.append(newline);\n }\n\n return builder.toString();\n }\n\n if (invalidSaveCollectionSheetReasons != null) {\n final StringBuilder builder = new StringBuilder();\n final String newline = System.getProperty(\"line.separator\");\n\n builder.append(\"Input Errors Found:\");\n builder.append(newline);\n for (InvalidSaveCollectionSheetReason ir : invalidSaveCollectionSheetReasons) {\n builder.append(ir);\n builder.append(newline);\n }\n\n return builder.toString();\n }\n\n return null;\n }",
"public static void display(Node node) {\n if (node == null) {\n return;\n }\n\n String str = \"\";\n\n str += node.left == null ? \".\" : node.left.data;\n str += \" <= \" + node.data + \" => \";\n str += node.right == null ? \".\" : node.right.data;\n\n System.out.println(str);\n\n display(node.left);\n display(node.right);\n }",
"public String extended() {\r\n final StringBuilder sb = new StringBuilder();\r\n if(type != null) sb.append(\"[\" + code() + \"] \");\r\n return sb + simple();\r\n }",
"void showError(String errorMessage);",
"public static BiFunction<String, Message, Object> stringProvider(Function<String, Object> fun)\n {\n \n return (string, msg) -> {\n String src = null;\n if (string != null)\n src = string;\n else\n {\n if (msg.status() > 300)\n Response.create().status(500).data(msg.string());\n src = msg.string();\n }\n \n return fun.apply(src);\n };\n \n }",
"public static\n PrintStream err() {\n return Ansi.err;\n }",
"public String display();",
"@Override\n\tpublic String doError() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn getValue() != null ? getValue().toString() : \"null\";\n\t}",
"public String toString()\n {\n int spaceLength = this.lengthToSecondCol - this.name.length();\n String space = \" \";\n String n = \" \";\n String s;\n if(showName)\n {\n n = this.name;\n while(spaceLength > 1)\n {\n spaceLength--;\n space += \" \";\n }\n }\n\n switch (this.type)\n {\n case Pwr.eType_Float32:\n case Pwr.eType_Float64:\n s = n + space + this.valueFloat;\n break;\n case Pwr.eType_UInt32:\n case Pwr.eType_UInt64:\n case Pwr.eType_Int32:\n case Pwr.eType_Int64:\n case Pwr.eType_Enum:\n case Pwr.eType_Mask:\n\n //s = n + space + this.valueInt;\n\ts = n + space + (new Integer( (this.valueInt & 65535) )).intValue();\n break;\n\n case Pwr.eType_UInt16:\n s = n + space + (new Integer( (this.valueInt & 65535) )).intValue();\n break;\n case Pwr.eType_Int8:\n case Pwr.eType_UInt8:\n s = n + space + (new Integer(this.valueInt)).byteValue();\n break;\n case Pwr.eType_Int16:\n s = n + space + (new Integer(this.valueInt)).shortValue();\n break;\n case Pwr.eType_Boolean:\n if(this.valueBoolean)\n {\n s = n + space + \"1\";\n }\n else\n {\n s = n + space + \"0\";\n }\n break;\n default:\n s = n + space + this.valueString;\n break;\n }\n return s;\n }",
"public String diagnostic() {\n\t\tString output = \"\";\n\t\tString stateString = \"\";\n\t\tif (this.getState() == Player.HUMAN)\n\t\t\tstateString = \"is selected by the player\";\n\t\telse if (this.getState() == Player.COMPUTER)\n\t\t\tstateString = \"is selected by the computer\";\n\t\telse\n\t\t\tstateString = \"is not selected\";\n\t\t\t\n\t\toutput += \"The point \" + this.toString() + \" \" + stateString +\n\t\t\t\t\t\" and is associated with the rows:\\n\";\n\t\tfor (Row r : containingRows) {\n\t\t\toutput += r + \"\\n\";\n\t\t}\n\t\treturn output;\n\t}",
"@ResponseBody\n @ExceptionHandler(InvalidFieldFormatException.class)\n @ResponseStatus(HttpStatus.BAD_REQUEST)\n String wrongFieldFormatHandler(InvalidFieldFormatException ex) {\n return ex.getMessage();\n }",
"public String getAndOr();",
"public abstract String getRightButtonText();",
"@ResponseBody\n @ExceptionHandler(FieldNotPresentException.class)\n @ResponseStatus(HttpStatus.BAD_REQUEST)\n String fieldNotPresentHandler(FieldNotPresentException ex) {\n return ex.getMessage();\n }",
"public String show() {\n\t\treturn null;\r\n\t}",
"public void searchEither(String search)\n {\n // Sets the input to be all lower case\n search = search.toLowerCase();\n r.searchEither(search);\n }",
"@Override\n public String toString()\n {\n\n StringBuilder sb = new StringBuilder();\n\n if ( type != null )\n {\n sb.append( type );\n }\n\n if ( dnAttributes )\n {\n sb.append( \":dn\" );\n }\n\n if ( matchingRule == null )\n {\n\n if ( type == null )\n {\n return \"Extended Filter wrong syntax\";\n }\n }\n else\n {\n sb.append( ':' ).append( matchingRule );\n }\n\n sb.append( \":=\" ).append( matchValue );\n\n return sb.toString();\n }",
"@Bindable\n public String getErrorEmail() {\n if(email == null)\n {\n return \"Please Enter\";\n }else if(!isValidEmail(email))\n {\n return \"Enter valid Id\";\n }\n else\n {\n return null;\n }\n }"
] | [
"0.51507556",
"0.49519065",
"0.48616832",
"0.4828834",
"0.48079348",
"0.47343567",
"0.46804583",
"0.45973903",
"0.45879963",
"0.45874292",
"0.45342854",
"0.44999626",
"0.44891426",
"0.44750202",
"0.44668576",
"0.44531322",
"0.44472125",
"0.44055322",
"0.44037762",
"0.44000128",
"0.43896115",
"0.4364678",
"0.4364678",
"0.4364678",
"0.4364678",
"0.436452",
"0.435739",
"0.4357073",
"0.43472058",
"0.43385732",
"0.4333642",
"0.43269372",
"0.43143937",
"0.43044844",
"0.42996535",
"0.4271088",
"0.42674845",
"0.42623007",
"0.4241988",
"0.423019",
"0.42046207",
"0.4199772",
"0.41997576",
"0.41924602",
"0.41884303",
"0.4182449",
"0.4173979",
"0.41701248",
"0.41505143",
"0.41486102",
"0.41455826",
"0.4141169",
"0.4141169",
"0.41404328",
"0.41395012",
"0.41392022",
"0.41367275",
"0.4130044",
"0.41261873",
"0.41210794",
"0.4117437",
"0.41152257",
"0.4105768",
"0.41047624",
"0.4099571",
"0.40889254",
"0.4081881",
"0.4058478",
"0.4050894",
"0.40402687",
"0.40388453",
"0.40363777",
"0.40331843",
"0.4027375",
"0.40255675",
"0.4024108",
"0.40186483",
"0.40133712",
"0.40126777",
"0.40113804",
"0.4009532",
"0.40056276",
"0.40048662",
"0.39913574",
"0.3989846",
"0.39889422",
"0.39860559",
"0.39853045",
"0.3982331",
"0.39771792",
"0.39736035",
"0.3969358",
"0.39690182",
"0.396629",
"0.3962413",
"0.39603126",
"0.3959261",
"0.39542097",
"0.39499703",
"0.39486387"
] | 0.7125176 | 0 |
Used for derived Show instances for foreign types with implementation type float. | public static final SourceModel.Expr showFloat(SourceModel.Expr f) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showFloat), f});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void fishfloat()\n\t{\n\t\tSystem.out.println(super.getName() + \" is floating\");\n\n\t}",
"public interface FloatView {\n}",
"@Override\r\n\tpublic String toString() {\n\t\treturn \"float\";\r\n\t}",
"@Override\r\n\tpublic boolean isFloat() {\r\n\t\treturn isFloatType;\r\n\t}",
"@Override\n\tpublic Type getType() {\n\t\treturn Type.FLOAT;\n\t}",
"@Override\r\n public Class getClassType() {\r\n return float.class;\r\n }",
"@ZenCodeType.Caster\n @ZenCodeType.Method\n default float asFloat() {\n \n return notSupportedCast(BasicTypeID.FLOAT);\n }",
"@Override\n public String toString() {\n return new GsonBuilder().serializeSpecialFloatingPointValues().create().toJson(this);\n }",
"public boolean isAfloat(){\n \treturn afloat;\r\n }",
"float getEFloat();",
"@Override\n public String toString() {\n return new Apfloat(this.value).toString(true);\n }",
"double getFloatingPointField();",
"public Float getFloatAttribute();",
"@Override\n public boolean getPowerFloat() {\n return false;\n }",
"public boolean isFloat() {\n return this.data instanceof Float;\n }",
"public void print(float someFloat) {\r\n print(someFloat + \"\");\r\n }",
"boolean hasFloat();",
"public T caseFloat(org.uis.lenguajegrafico.lenguajegrafico.Float object)\n {\n return null;\n }",
"public interface FloatProvider {\n float get();\n}",
"public Value(float f) {\n aFloat = f;\n itemClass = Float.class;\n type = DataType.FLOAT;\n }",
"public abstract float getValue();",
"public FloatBase(org.semanticwb.platform.SemanticObject base)\r\n {\r\n super(base);\r\n }",
"public static float leerFloat() {\n\t\tthrow new UnsupportedOperationException();\n\t}",
"public FloatType asFloat() {\n return TypeFactory.getIntType(toInt(this.getValue())).asFloat();\n }",
"@Test\n public void floatInvalidType() throws Exception {\n String retVal = new SynapseHelper().serializeToSynapseType(MOCK_TEMP_DIR, TEST_PROJECT_ID, TEST_RECORD_ID,\n TEST_FIELD_NAME, UploadFieldTypes.FLOAT, new TextNode(\"3.14\"));\n assertNull(retVal);\n }",
"public Flt(float f) {this.f = new Float(f);}",
"Double getFreeFloat();",
"public void setFloat(boolean value) {\r\n\t\tisFloatType = value;\r\n\t}",
"protected float method_4216() {\r\n return 5.0F;\r\n }",
"@Override\n\tpublic void display() {\n\t\tSystem.out.println(valueType+\": \"+value);\n\t}",
"String getFloat_lit();",
"@Test\n public void test_column_type_detection_float() throws SQLException {\n ColumnInfo info = testColumnTypeDetection(\"x\", NodeFactory.createLiteral(\"12.3e4\", XSDDatatype.XSDfloat), true, Types.FLOAT, Float.class.getCanonicalName());\n Assert.assertEquals(7, info.getScale());\n Assert.assertEquals(15, info.getPrecision());\n Assert.assertTrue(info.isSigned());\n }",
"@Override\n public String getFormattedValue(float value, Entry entry, int dataSetIndex, ViewPortHandler viewPortHandler) {\n return \"\";\n }",
"public void setAfloat(boolean x){\r\n \tafloat = x;\r\n }",
"@Override\n protected String formatValue(Object value) {\n String formatted = \"float\".equals(format) ? formatWithDigits(value, this.digits) : String.valueOf(value);\n return formatted + \" \" + this.unitText;\n }",
"public void show() {\n\t\tImageJFunctions.show( imageFloat );\t\t\n\t}",
"public abstract void setFloatImpl(String str, double d, Resolver<Void> resolver);",
"private ClassInstance checkDerivedShowInstance(TypeConstructor typeCons,\r\n TypeConsApp instanceType,\r\n TypeClass typeClass, SourceRange position) throws UnableToResolveForeignEntityException {\r\n \r\n if (!typeClass.getName().equals(CAL_Debug.TypeClasses.Show)) {\r\n throw new IllegalStateException();\r\n }\r\n \r\n ModuleName currentModuleName = currentModuleTypeInfo.getModuleName();\r\n \r\n \r\n ForeignTypeInfo foreignTypeInfo = typeCons.getForeignTypeInfo(); \r\n \r\n if (foreignTypeInfo != null) {\r\n \r\n // foreign types\r\n \r\n Class<?> foreignType = foreignTypeInfo.getForeignType();\r\n \r\n if (foreignType.isPrimitive()) {\r\n \r\n if (foreignType == boolean.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showForeignBoolean},\r\n InstanceStyle.DERIVING); \r\n \r\n } else if (foreignType == byte.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showByte},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == char.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showForeignChar},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == short.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showShort},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == int.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showInt},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == long.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showLong},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == float.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showFloat},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == double.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showDouble},\r\n InstanceStyle.DERIVING);\r\n \r\n } else {\r\n throw new IllegalStateException(\"A type that claims to be primitive is not one of the known primitive types\");\r\n }\r\n \r\n } else {\r\n // Defer to String.valueOf(Object) for non-primitive foreign values\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showJObject}, \r\n InstanceStyle.DERIVING);\r\n }\r\n \r\n \r\n } else {\r\n \r\n // non-foreign types\r\n \r\n TypeExpr showTypeExpr = TypeExpr.makeFunType(instanceType, compiler.getTypeChecker().getTypeConstants().getStringType());\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeShowInstanceFunction(typeCons), showTypeExpr, position); \r\n \r\n return new ClassInstance(currentModuleName, instanceType, typeClass, null, InstanceStyle.DERIVING);\r\n }\r\n }",
"public static java.util.Iterator<org.semanticwb.process.schema.Float> listFloats()\r\n {\r\n java.util.Iterator it=sclass.listInstances();\r\n return new org.semanticwb.model.GenericIterator<org.semanticwb.process.schema.Float>(it, true);\r\n }",
"public T caseFloat(sensorDeploymentLanguage.Float object) {\n\t\treturn null;\n\t}",
"T print(float data) throws PrintingException;",
"@Override //function was implemented as abstract in super class\n public double Display(){\n System.out.println(\"Toppings on Pizza:\");\n System.out.println(\"\\tAllergens: \" + this.Allergens);\n System.out.println(\"\\tNotes: \" + this.Notes);\n System.out.println(\"\\tDensity: \" + this.Density);\n System.out.println(\"\\tTopping: \" + this.Topping);\n System.out.println(\"\\tVegetarian: \" + this.Vegetarian);\n System.out.println();\n return this.Price;\n }",
"public IDatatype getFixed() { \n\t\treturn myFixed;\n\t}",
"public boolean wantAnyTreeFloats() {\n return true;\n }",
"public OCFloat(float val)\r\n {\r\n super(val, 4);\r\n }",
"@Override\n public Class getValueType() {\n return Double.class;\n }",
"public abstract float cout();",
"public T caseURDFAttrFloat(URDFAttrFloat object) {\r\n\t\treturn null;\r\n\t}",
"public abstract float read_float();",
"public Double getFNumber()\n\t{\n\t\treturn null;\n\t}",
"public static float getValueFloat()\n {\n return Util.valueFloat;\n }",
"public float floatValue() {\n\t\treturn (float) mDouble;\n\t}",
"public abstract void getFloatImpl(String str, double d, Resolver<Double> resolver);",
"String floatWrite();",
"public void flt()\n\t{\n\t\tupdateState( MotorPort.FLOAT);\n\t}",
"public float getDisp();",
"public static boolean floatType(FileInputStream f){\n if(observer != null){\n observer.parser.setCurrentRule(\"floatType\", true);\n }\n CToken t = new CToken();\n\n t = getUsePeek(f);\n \n if(!t.token.equals(\"float\") && !t.token.equals(\"double\")){\n return false;\n }\n \n CScanner.needToUsePeekedToken = false;\n if(observer != null){\n observer.parser.setCurrentRule(\"floatType\", false);\n }\n return true;\n }",
"T println(float data) throws PrintingException;",
"@Override\n public String toGraphProperty(Float value) {\n return value.toString();\n }",
"protected float l()\r\n/* 72: */ {\r\n/* 73: 84 */ return 0.0F;\r\n/* 74: */ }",
"public double getF();",
"public float readFloat()\r\n/* 447: */ {\r\n/* 448:460 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 449:461 */ return super.readFloat();\r\n/* 450: */ }",
"FloatValue createFloatValue();",
"FloatValue createFloatValue();",
"public double value(){\n\t return (double) this.f;\n }",
"public Float vi(Number number) {\n return Float.valueOf(number.floatValue());\n }",
"@Override protected void outputLocalXml(IvyXmlWriter xw)\n{\n xw.field(\"KIND\",\"FLOAT\");\n}",
"public float floatValue()\n\t\t{\n\t\t\treturn (float) doubleValue();\n\t\t}",
"public String toFloatString() {\n\t\treturn this.toFloatString(DEFAULT_NUM_DECIMALS);\n\t}",
"public static void main(String[] args){\n\t\tFloat f=new Float(12);\r\n\t}",
"float getValue();",
"float getValue();",
"float getValue();",
"protected abstract float getValue(Entity e,FloatTrait t);",
"public void setfVal(float value){\n this.fVal = value;\n }",
"public Float getFloat(String attr) {\n return (Float) super.get(attr);\n }",
"@Override\n public float nextFloat() {\n return super.nextFloat();\n }",
"private void checkForFloatConflict(int fld_i) {\r\n if (fld_i == -1) return;\r\n Set<BundlesDT.DT> dts = getFieldDataTypes(fld_i); \r\n if (dts.contains(BundlesDT.DT.FLOAT) && dts.contains(BundlesDT.DT.INTEGER) && warn_on_float_conflict) {\r\n warn_on_float_conflict = false;\r\n System.err.println(\"**\\n** For Field \\\"\" + fieldHeader(fld_i) + \"\\\" -- mixed Integers and Floats... issues with parsing...\\n**\");\r\n }\r\n }",
"public final EObject ruleFloatDataType() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_0=null;\n\n enterRule(); \n \n try {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4532:28: ( (otherlv_0= 'float' () ) )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4533:1: (otherlv_0= 'float' () )\n {\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4533:1: (otherlv_0= 'float' () )\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4533:3: otherlv_0= 'float' ()\n {\n otherlv_0=(Token)match(input,72,FOLLOW_72_in_ruleFloatDataType10328); \n\n \tnewLeafNode(otherlv_0, grammarAccess.getFloatDataTypeAccess().getFloatKeyword_0());\n \n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4537:1: ()\n // ../de.hs_rm.cs.vs.dsm.flow/src-gen/de/hs_rm/cs/vs/dsm/parser/antlr/internal/InternalFlow.g:4538:5: \n {\n\n current = forceCreateModelElement(\n grammarAccess.getFloatDataTypeAccess().getFloatDataTypeAction_1(),\n current);\n \n\n }\n\n\n }\n\n\n }\n\n leaveRule(); \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }",
"public void setVar176(java.lang.Float value) {\n this.var176 = value;\n }",
"@Override public IfaceValue mergeValue(IfaceValue fv)\n{\n if (fv == this || fv == null) return this;\n if (!(fv instanceof ValueFloat)) {\n FaitLog.logD1(\"Bad float value merge: \" + this + \" \" + fv);\n return value_factory.badValue();\n }\n\n if (getDataType().isBroaderType(fv.getDataType())) return this;\n if (fv.getDataType().isBroaderType(getDataType())) return fv;\n\n return this;\n}",
"@Override\n public Float parens() {\n\treturn null;\n }",
"private void encodeAbstractFloatDataType(Encoder encoder, DataType type) throws IOException {\n\t\tencoder.openElement(ELEM_TYPE);\n\t\tencodeNameIdAttributes(encoder, type);\n\t\tencoder.writeString(ATTRIB_METATYPE, \"float\");\n\t\tencoder.writeSignedInteger(ATTRIB_SIZE, type.getLength());\n\t\tencoder.closeElement(ELEM_TYPE);\n\t}",
"public ClassTypeNativeFloatRuntimeImpl(ClassTypeNativeFloatImpl classType,RuntimeManagerImpl rtMgr)\r\n {\r\n super(classType,rtMgr);\r\n }",
"public Double getFpl() {\r\n return fpl;\r\n }",
"public Float getPrecio() {\r\n return precio;\r\n }",
"public boolean getFractionDisplay()\r\n {\r\n return fractionDisplay;\r\n }",
"public float floatValue() {\n return this.value;\n }",
"public void method(float i)\n\t{\n\t\t\n\t\tSystem.out.println(\"Primitive type float formal argument :\" + i);\n\t}",
"public float floatValue() {\r\n return (float) intValue();\r\n }",
"public float evaluateAsFloat();",
"@ReflectiveMethod(name = \"l\", types = {})\n public float l(){\n return (float) NMSWrapper.getInstance().exec(nmsObject);\n }",
"abstract String display(T value);",
"@Override\n public Double value(TypeOfValue value);",
"void writeFloat(float value);",
"public double floatValue() {\n\treturn numerator/(double)denominator;\n }",
"@Override\r\n public float floatValue() {\r\n return (float) this.m_current;\r\n }",
"@Override\n public String toString()\n {\n return String.format(\"(%f,%f,%f,%f)\", kP, kI, kD, kF);\n }",
"public static GenericValue Float(TypeRef ty, double N) {\r\n\t\treturn new GenericValue(LLVMCreateGenericValueOfFloat(ty.type(), N));\r\n\t}",
"public float floatValue() {\n return (float) value;\n }"
] | [
"0.72231287",
"0.67298084",
"0.67031854",
"0.6553854",
"0.6543649",
"0.652186",
"0.6442946",
"0.6311702",
"0.6047344",
"0.6035343",
"0.60234404",
"0.6013965",
"0.6008893",
"0.594801",
"0.5944942",
"0.58899",
"0.58826226",
"0.58767194",
"0.58758163",
"0.5862823",
"0.57710874",
"0.5757826",
"0.575776",
"0.57418567",
"0.57340443",
"0.56932217",
"0.56857324",
"0.5684684",
"0.56620395",
"0.5632891",
"0.56229603",
"0.5571395",
"0.5570463",
"0.55659115",
"0.5546162",
"0.55449694",
"0.5535777",
"0.5509962",
"0.55021125",
"0.54705477",
"0.54671675",
"0.54534197",
"0.54419535",
"0.5427413",
"0.54243624",
"0.5416486",
"0.541277",
"0.5405005",
"0.54022956",
"0.53823304",
"0.53745025",
"0.53672844",
"0.53593564",
"0.53565246",
"0.53436136",
"0.53362656",
"0.5333031",
"0.5326463",
"0.5321428",
"0.5320726",
"0.5320363",
"0.5304016",
"0.5294315",
"0.5294315",
"0.5290333",
"0.5283914",
"0.5280461",
"0.5269563",
"0.5262863",
"0.52611375",
"0.52523726",
"0.52523726",
"0.52523726",
"0.5247915",
"0.52358234",
"0.5226004",
"0.5220015",
"0.52144706",
"0.5210111",
"0.5209112",
"0.5207817",
"0.5207673",
"0.5198811",
"0.5194268",
"0.5190195",
"0.5187757",
"0.51844174",
"0.51842415",
"0.5181099",
"0.5172606",
"0.516311",
"0.5162122",
"0.5160046",
"0.51549464",
"0.51402",
"0.51356566",
"0.5132504",
"0.51316667",
"0.51240355",
"0.51222134"
] | 0.6246038 | 8 |
Used for derived Show instances for foreign types with implementation type boolean. | public static final SourceModel.Expr showForeignBoolean(SourceModel.Expr b) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showForeignBoolean), b});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Boolean getIsShow() {\n return isShow;\n }",
"public String toString() { return this.booleanValue; }",
"public Boolean getIsShow () {\r\n\t\treturn isShow;\r\n\t}",
"private ClassInstance checkDerivedShowInstance(TypeConstructor typeCons,\r\n TypeConsApp instanceType,\r\n TypeClass typeClass, SourceRange position) throws UnableToResolveForeignEntityException {\r\n \r\n if (!typeClass.getName().equals(CAL_Debug.TypeClasses.Show)) {\r\n throw new IllegalStateException();\r\n }\r\n \r\n ModuleName currentModuleName = currentModuleTypeInfo.getModuleName();\r\n \r\n \r\n ForeignTypeInfo foreignTypeInfo = typeCons.getForeignTypeInfo(); \r\n \r\n if (foreignTypeInfo != null) {\r\n \r\n // foreign types\r\n \r\n Class<?> foreignType = foreignTypeInfo.getForeignType();\r\n \r\n if (foreignType.isPrimitive()) {\r\n \r\n if (foreignType == boolean.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showForeignBoolean},\r\n InstanceStyle.DERIVING); \r\n \r\n } else if (foreignType == byte.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showByte},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == char.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showForeignChar},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == short.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showShort},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == int.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showInt},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == long.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showLong},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == float.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showFloat},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == double.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showDouble},\r\n InstanceStyle.DERIVING);\r\n \r\n } else {\r\n throw new IllegalStateException(\"A type that claims to be primitive is not one of the known primitive types\");\r\n }\r\n \r\n } else {\r\n // Defer to String.valueOf(Object) for non-primitive foreign values\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showJObject}, \r\n InstanceStyle.DERIVING);\r\n }\r\n \r\n \r\n } else {\r\n \r\n // non-foreign types\r\n \r\n TypeExpr showTypeExpr = TypeExpr.makeFunType(instanceType, compiler.getTypeChecker().getTypeConstants().getStringType());\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeShowInstanceFunction(typeCons), showTypeExpr, position); \r\n \r\n return new ClassInstance(currentModuleName, instanceType, typeClass, null, InstanceStyle.DERIVING);\r\n }\r\n }",
"abstract public boolean getAsBoolean();",
"public boolean getBoolean();",
"public Boolean getDisplay() {\n return display;\n }",
"public BooleanPhenotype() {\n dataValues = new ArrayList<Boolean>();\n }",
"public static final SourceModel.Expr showBoolean(SourceModel.Expr x) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showBoolean), x});\n\t\t}",
"public boolean isHidden();",
"boolean getIsVegetable();",
"public Boolean getBooleanAttribute();",
"public Boolean() {\n\t\tsuper(false);\n\t}",
"@Override\n protected boolean isAppropriate() {\n return true; // always show\n }",
"protected String getFalse() {\n return \"false\";\n }",
"public String getName() {\n return \"sdo_boolean\";\n }",
"public String getType() {\r\n\t\treturn \"boolean\";\r\n\t}",
"@Override\n public boolean whetherHidden(Where where) {\n return false;\n }",
"public java.lang.Boolean getIsVisible();",
"public abstract boolean isVisible();",
"public abstract boolean isVisible();",
"@Override\n\t\tpublic BooleanType toBooleanType() {\n\t\t\treturn new BooleanType(false);\n\t\t}",
"@Override\n\t\tpublic BooleanType toBooleanType() {\n\t\t\treturn new BooleanType(false);\n\t\t}",
"public Byte getShowFlag() {\n return showFlag;\n }",
"public Boolean asBoolean();",
"@Override\n\tpublic void setDisplayShowCustomEnabled(boolean showCustom) {\n\t\t\n\t}",
"boolean getBoolean();",
"boolean getBoolean();",
"@java.lang.Override\n public boolean getBoolValue() {\n if (typeCase_ == 2) {\n return (java.lang.Boolean) type_;\n }\n return false;\n }",
"@Override\n public void setVisible (boolean f)\n { \n }",
"@Column(name = \"BOOLEAN_VALUE\", length = 20)\n/* 35 */ public String getBooleanValue() { return this.booleanValue; }",
"public boolean shown();",
"private boolean show(AttributeModel am) {\n\t\t// never show invisible or LOB attributes\n\t\tif (!am.isVisible() || AttributeType.LOB.equals(am.getAttributeType())) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// show multiple value attributes only if they would normally show up in a table\n\t\tif (AttributeType.DETAIL.equals(am.getAttributeType())\n\t\t || AttributeType.ELEMENT_COLLECTION.equals(am.getAttributeType())) {\n\t\t\treturn am.isVisibleInTable();\n\t\t}\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic void visit(ast.type.Boolean t) {\r\n\t\tSystem.out.println(\"boolean@\");\r\n\t}",
"public Boolean getABoolean()\n {\n return aBoolean;\n }",
"public boolean getIsVisible();",
"public interface IsShowMessage\n {\n /**\n * not show\n */\n String UN_SHOW = \"0\";\n\n /**\n * show\n */\n String SHOW = \"1\";\n }",
"public void setVisible(boolean v) {\n }",
"public final native boolean getShowHidden() /*-{\n return this.getShowHidden();\n }-*/;",
"boolean isDisplay();",
"boolean isDisplay();",
"@ZenCodeType.Caster\n @ZenCodeType.Method\n default boolean asBool() {\n \n return notSupportedCast(BasicTypeID.BOOL);\n }",
"boolean getBoolValue();",
"boolean getBoolValue();",
"public Boolean isVisible();",
"public Boolean isVisible();",
"public boolean getVisibility(){\n\t\tString visibility = DBCommunicator.requestData( \"SELECT zichtbaarheid_type FROM spel WHERE id = \" + id );\n\t\tif(visibility.equals(\"openbaar\")){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}",
"public void setShowColumn(Boolean value) {\n this.showColumn = value;\n }",
"public Boolean getBooleanValue() {\n return this.booleanValue;\n }",
"public boolean isShortTypes() {\n return shortTypes;\n }",
"public boolean isShowEvidence() {\n return showEvidence;\n }",
"public Boolean isHidden() {\n return m_hidden;\n }",
"public interface IsDisplayInfoBar\n {\n /**\n * not show\n */\n String UN_SHOW = \"0\";\n\n /**\n * show\n */\n String SHOW = \"1\";\n }",
"public boolean isRequiresTaxCertificate() \n{\nObject oo = get_Value(COLUMNNAME_RequiresTaxCertificate);\nif (oo != null) \n{\n if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();\n return \"Y\".equals(oo);\n}\nreturn false;\n}",
"@Test\n public void testReflectionBoolean() {\n Boolean b;\n b = Boolean.TRUE;\n assertEquals(this.toBaseString(b) + \"[value=true]\", ToStringBuilder.reflectionToString(b));\n b = Boolean.FALSE;\n assertEquals(this.toBaseString(b) + \"[value=false]\", ToStringBuilder.reflectionToString(b));\n }",
"@Override\n\tpublic boolean isShowing() {\n\t\treturn false;\n\t}",
"public void setHidden(boolean value) {\r\n this.hidden = value;\r\n }",
"@Specialization(guards = \"isBooleanOrIllegal(frame)\")\n protected boolean writeBoolean(VirtualFrame frame, boolean value) {\n it.getSlot().setKind(FrameSlotKind.Boolean);\n\n frame.setBoolean(it.getSlot(), value);\n return value;\n }",
"@Override\n\tpublic boolean showInList()\n\t{\n\t\treturn true;\n\t}",
"@Override\n public void printMyData() {\n super.printMyData();\n System.out.println(\"-- Has sidecar: \" + (sideCar ? \"Yes\" : \"No\")\n + \"\\n-- Has Helmet: \" + (helmet ? \"Yes\" : \"No\")\n );\n }",
"public interface Showable {\n void show();\n}",
"public default boolean shouldHideEntity(){ return false; }",
"public abstract void setVisible(boolean visible);",
"public boolean isHidden() {\r\n return hidden;\r\n }",
"public boolean isShowcoor() {\r\n\t\treturn showcoor;\r\n\t}",
"public boolean isBoolean();",
"org.apache.xmlbeans.XmlBoolean xgetBox();",
"protected void addInternetFacing_java_lang_Boolean_PropertyDescriptor(Object object) {\n\t\titemPropertyDescriptors.add(createItemPropertyDescriptor(\n\t\t\t\t((ComposeableAdapterFactory) adapterFactory).getRootAdapterFactory(), getResourceLocator(),\n\t\t\t\tgetString(\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_internetFacing_java_lang_Boolean__feature\"),\n\t\t\t\tgetString(\"_UI_PropertyDescriptor_description\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_internetFacing_java_lang_Boolean__feature\",\n\t\t\t\t\t\t\"_UI_ApplicationLoadBalancerBuilder_elasticloadbalancingv2_type\"),\n\t\t\t\tAwsworkbenchPackage.Literals.APPLICATION_LOAD_BALANCER_BUILDER_ELASTICLOADBALANCINGV2__INTERNET_FACING_JAVA_LANG_BOOLEAN_,\n\t\t\t\ttrue, false, false, ItemPropertyDescriptor.GENERIC_VALUE_IMAGE, null, null));\n\t}",
"@Override\n\tpublic void setTensileShows(Boolean paramBoolean)\n\t{\n\n\t}",
"abstract public boolean isTyped();",
"public boolean isHidden() {\n return false;\n }",
"public interface Truth {\n\n /**\n * This method has to be implemented to know whether the\n * object implementing this interface should be treated\n * as a Boolean.TRUE value or Boolean.FALSE\n *\n * This interface has been created in order to\n * make it easier to interact with Groovy collections\n * and participate of the Groovy truth\n *\n * @return the boolean representation of the current type\n */\n public Boolean asBoolean();\n\n}",
"public boolean isSetShowNarration()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().find_attribute_user(SHOWNARRATION$18) != null;\n }\n }",
"@Override\n\tpublic void setVisible(boolean b) {\n\t\t\n\t}",
"public interface FlightDetails\n{\n\n double getPrice();\n\n boolean getFlightType(String name);\n/**\n boolean isVisible();\n\n void setVisibility(boolean isVisible);*/\n\n}",
"public boolean getBoolValue() {\n if (typeCase_ == 2) {\n return (java.lang.Boolean) type_;\n }\n return false;\n }",
"boolean isHiddenFromList();",
"public boolean isVisible() { return _visible; }",
"public boolean isShowHidden() {\n\t\treturn showHidden;\n\t}",
"boolean hasStoredType();",
"@Override\n public void setVisible(boolean arg0)\n {\n \n }",
"public String getDisplayFlag() {\n return displayFlag;\n }",
"@JsonIgnore\n public Boolean isStandard() {\n return this.standard;\n }",
"HasValue<Boolean> getIsActive();",
"@Override\r\n\tpublic boolean isVisible() {\n\t\treturn false;\r\n\t}",
"public String getIsdisplay() {\n return isdisplay;\n }",
"public boolean isHidden() {\n\t\treturn false;\n\t}",
"public boolean sawNonboolean() {\n return nonboolean;\n }",
"boolean getNullable();",
"public boolean issimpleClassFacadeMetaType();",
"public void show() {\n hidden = false;\n }",
"public TrueValue (){\n }",
"public Boolean getShowColumn() {\n return this.showColumn;\n }",
"public String getDisplayType();",
"@Override\n public void show() {\n }",
"@Override\n public boolean isVisible()\n {\n return true;\n }",
"BooleanValue createBooleanValue();",
"BooleanValue createBooleanValue();",
"BooleanValue createBooleanValue();",
"BooleanValue createBooleanValue();"
] | [
"0.6529849",
"0.6317434",
"0.62891996",
"0.6252342",
"0.62274367",
"0.6136528",
"0.6136079",
"0.61106014",
"0.6109415",
"0.60619533",
"0.60187495",
"0.5973206",
"0.59298265",
"0.5895005",
"0.58915573",
"0.58876765",
"0.5868255",
"0.58576334",
"0.5853775",
"0.58336014",
"0.58336014",
"0.58173007",
"0.58173007",
"0.58045727",
"0.5804351",
"0.58018756",
"0.5797959",
"0.5797959",
"0.57754934",
"0.57641333",
"0.57247597",
"0.5710562",
"0.5700665",
"0.5697574",
"0.56929433",
"0.56780416",
"0.5676519",
"0.56698734",
"0.56600124",
"0.5652392",
"0.5652392",
"0.5630361",
"0.56170136",
"0.56170136",
"0.5606348",
"0.5606348",
"0.5593209",
"0.5591552",
"0.5584284",
"0.55752015",
"0.557328",
"0.5568059",
"0.5566108",
"0.55652064",
"0.5545412",
"0.55424017",
"0.5518907",
"0.55109507",
"0.54796773",
"0.5473395",
"0.5459382",
"0.5456222",
"0.5451088",
"0.54498345",
"0.5443394",
"0.54319876",
"0.5431567",
"0.54260457",
"0.5425569",
"0.5424255",
"0.5417094",
"0.5416051",
"0.54065424",
"0.54050684",
"0.5400517",
"0.5399857",
"0.53994995",
"0.53956395",
"0.53941756",
"0.5393045",
"0.539159",
"0.5386531",
"0.5384083",
"0.5382153",
"0.5379114",
"0.5373153",
"0.53714526",
"0.5368667",
"0.5363831",
"0.53548425",
"0.53529906",
"0.5351974",
"0.5345468",
"0.5345008",
"0.53431696",
"0.5340065",
"0.5329421",
"0.5329421",
"0.5329421",
"0.5329421"
] | 0.62151116 | 5 |
Used for derived Show instances for foreign types with implementation type char. | public static final SourceModel.Expr showForeignChar(SourceModel.Expr c) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showForeignChar), c});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void show() {\n\t\tSystem.out.println(\"´ó¿ãñÃ\");\n\t}",
"protected abstract String getDefaultDisplayTypeStringRepresentation();",
"@Override\n\tpublic void show() {\n\t\tSystem.out.println(\"´óTÐô\");\n\t}",
"public String getDisplayType();",
"protected abstract String display();",
"TypePrinter print(char c);",
"private ClassInstance checkDerivedShowInstance(TypeConstructor typeCons,\r\n TypeConsApp instanceType,\r\n TypeClass typeClass, SourceRange position) throws UnableToResolveForeignEntityException {\r\n \r\n if (!typeClass.getName().equals(CAL_Debug.TypeClasses.Show)) {\r\n throw new IllegalStateException();\r\n }\r\n \r\n ModuleName currentModuleName = currentModuleTypeInfo.getModuleName();\r\n \r\n \r\n ForeignTypeInfo foreignTypeInfo = typeCons.getForeignTypeInfo(); \r\n \r\n if (foreignTypeInfo != null) {\r\n \r\n // foreign types\r\n \r\n Class<?> foreignType = foreignTypeInfo.getForeignType();\r\n \r\n if (foreignType.isPrimitive()) {\r\n \r\n if (foreignType == boolean.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showForeignBoolean},\r\n InstanceStyle.DERIVING); \r\n \r\n } else if (foreignType == byte.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showByte},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == char.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showForeignChar},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == short.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showShort},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == int.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showInt},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == long.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showLong},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == float.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showFloat},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == double.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showDouble},\r\n InstanceStyle.DERIVING);\r\n \r\n } else {\r\n throw new IllegalStateException(\"A type that claims to be primitive is not one of the known primitive types\");\r\n }\r\n \r\n } else {\r\n // Defer to String.valueOf(Object) for non-primitive foreign values\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showJObject}, \r\n InstanceStyle.DERIVING);\r\n }\r\n \r\n \r\n } else {\r\n \r\n // non-foreign types\r\n \r\n TypeExpr showTypeExpr = TypeExpr.makeFunType(instanceType, compiler.getTypeChecker().getTypeConstants().getStringType());\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeShowInstanceFunction(typeCons), showTypeExpr, position); \r\n \r\n return new ClassInstance(currentModuleName, instanceType, typeClass, null, InstanceStyle.DERIVING);\r\n }\r\n }",
"public static void displayLine( char lineChar, int lineType ) \r\n {\n }",
"public Character charRep() {\n return this.typeChar;\n }",
"@Override\n public String toString() {\n return value + symbol(this.type);\n }",
"public abstract String display();",
"public void displayCharacter() {\n System.out.println(\"**************************\");\n System.out.println(p.showDetails());\n System.out.println(\"**************************\"+\"\\n\");\n\n }",
"@AutoEscape\n\tpublic String getDisplay();",
"abstract String display(T value);",
"@Override\n final public String getTyping() {\n return \"-\";\n }",
"public DisplayType getDisplayType();",
"public char show() {\n\t\treturn 'S';\n\t}",
"@Override\n public String toString() {\n return \"\" + character;\n }",
"@Override\n\tpublic String display() {\n\t\treturn \"null\";\n\t}",
"@Override\n public String toString() {\n return displayString;\n }",
"@Override\n\tpublic String showTypeCard() {\n\t\treturn \"It's payment by Visa\";\n\t}",
"default String display() { //just wanted to try out default methods we learned in class here-- abstract format below\r\n\t\treturn \"Nothing to show here\";\r\n\t}",
"@Override\n public void showText(String s){\n }",
"@Override\r\n\tpublic String display() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic String display() {\n\t\treturn null;\r\n\t}",
"public interface TypePrinter {\n\n /**\n * Print a plain char to this printer.\n *\n * @param c the char\n * @return this TypePrinter\n */\n TypePrinter print(char c);\n\n /**\n * Print a plain String. If the string is null, the four characters {@code \"null\"} are printed.\n *\n * @param s the String\n * @return this TypePrinter\n */\n TypePrinter print(String s);\n\n /**\n * Print a Class. If the class is null, the four characters {@code \"null\"} are printed. The behavior\n * of this method is implementation specific. For example, some implementations print the fully qualified\n * class name where others may print just the {@link Class#getSimpleName simple name}.\n *\n * @param clazz the Class to print\n * @return this TypePrinter\n */\n TypePrinter print(Class<?> clazz);\n\n /**\n * Return everything printed to this TypePrinter as a String.\n */\n @Override String toString();\n}",
"@Override\n\tpublic String getCharacterRepresentation() {\n\t\treturn \"T\";\n\t}",
"public String toString() { return kind() + \":\"+ text() ; }",
"@Override\n\tpublic void display() {\n\t\tSystem.out.println(valueType+\": \"+value);\n\t}",
"@Override\n\tpublic String display() {\n\t\treturn null;\n\t}",
"public void print(char someChar) {\r\n print(someChar + \"\");\r\n }",
"@Override\r\n public String getStringRepresentation()\r\n {\r\n return \"D\";\r\n }",
"public String shortRepr() {\n\t\treturn \"Value of some kind.\";\n\t}",
"private boolean isDisplayable(int c) {\n return 20 <= c && c <= 126 && c != '\"';\n }",
"@Override\n public String toString() {\n return this.symbol + super.toString();\n }",
"String getDisplayValue() {\n\t\treturn symbol;\n\t}",
"public void setNChar()\n/* */ {\n/* 1168 */ this.isNChar = true;\n/* */ }",
"public void show() {\n\t\t System.out.println(\"这是A型产品\"); \r\n\t}",
"@Override\n\tvoid Show() {\n\t\tanimal.Show();\n\t\tSystem.out.print(\" Shorts\");\n\t}",
"public char getType(){\n\t\treturn type;\n\t}",
"@Override abstract public String type();",
"private String symbol(Cardtype c) {\n if (c == Cardtype.HEARTS) {\n return \"\\u2665\";\n } else if (c == Cardtype.DIAMONDS) {\n return \"\\u2666\";\n } else if (c == Cardtype.SPADES) {\n return \"\\u2660\";\n } else if (c == Cardtype.CLUBS) {\n return \"\\u2663\";\n } else {\n return \"\";\n }\n }",
"@Override\n public boolean isUnicode()\n {\n return true;\n }",
"@Override\r\n\tpublic String typeV() {\n\t\treturn hio.TyreType();\r\n\t}",
"public abstract String typeIcon();",
"public T caseCharType(CharType object)\n {\n return null;\n }",
"@DerivedProperty\n\tString getShortRepresentation();",
"public String show() {\n\t\treturn null;\r\n\t}",
"public String toString() {\r\n return \"Type: Text\";\r\n }",
"public CharStringOptionInspector() {\n this((CharTypeInfo) TypeInfoFactory.charTypeInfo);\n }",
"public abstract String toString_short();",
"public String toString() {\n String leftstring = _left.toString();\n String rightstring = _right.toString();\n \n String left;\n if (_left.isArrowType()) left = \"(\" + leftstring + \")\";\n else if (_left.isBaseType()) left = leftstring;\n else throw new Error(\"Missed a case in a switch for type kinds.\");\n return left + \" ⇒ \" + rightstring;\n }",
"public boolean isShowHexByte() {\r\n return showHexByte;\r\n }",
"public TypeNativeStringRender(TypeNativeStringImpl typeDec)\n {\n super(typeDec);\n }",
"@Override\n public String getTypeIcon() {\n return \"[E]\";\n }",
"@Override\n public abstract String toString();",
"@Override\n public abstract String toString();",
"@Override\n public abstract String toString();",
"@Override\n public abstract String toString();",
"@Override\n public abstract String toString();",
"@Override\n public abstract String toString();",
"@Override\n public abstract String toString();",
"public void printTypeInfo(){\n\t\tSystem.out.println(\"This type of computer is suitable for massive usage, when it comes to portability.\");\n\t\tSystem.out.println(\"Main thing at these computers is portability and funcionality.\");\n\t\t\n\t}",
"public void printAllCharacters() {\n System.out.print(EXISTING_CHARACTERS);\n foundedCharacter.forEach(character -> System.out.printf(CHARACTER_PRINT_PATTERN, character));\n System.out.println();\n }",
"public Class getPreferredDisplayClass() {\n\t\treturn Object.class;\n\t}",
"@Override\r\n\tpublic String getShowDescribing() {\n\t\treturn \"所属乡镇:\"+ getSsxz().getName();\r\n\t}",
"public String display();",
"public char getType() {\r\n return type;\r\n }",
"@Override\n\tpublic abstract String toString ();",
"default void show1() {\n\t\t\n\t\t\n\t}",
"public char getTableHeaderTypeAsCharForFormatting(){\n\t\tchar fmtChar;\n\t\t\n\t\tif(dataType.isInstance(String.class)){\n\t\t\tfmtChar = 's';\n\t\t}\n\t\telse if(dataType.isInstance(Integer.class)){\n\t\t\tfmtChar = 'd';\n\t\t}\n\t\telse{\n\t\t\tfmtChar = 's';\n\t\t}\n\t\treturn fmtChar;\n\t}",
"@Override\n public abstract String toString();",
"public char getType() {\n return this.type;\n }",
"private void display(Object a) {\r\n System.out.print(a.toString());\t\r\n }",
"CharacterStringDataType getStringTypeOption();",
"@Override\n public String toString() {\n StringBuilder b = new StringBuilder();\n boolean any = false;\n if (isUnknown()) {\n b.append(\"?\");\n any = true;\n } else if (isPolymorphic()) {\n b.append(\"^(\").append(var).append('[');\n if (isMaybeAbsent()) {\n b.append(\"absent\");\n any = true;\n }\n if (isMaybePresent()) {\n if (any)\n b.append('|');\n b.append(\"present\");\n }\n b.append(\"])\");\n any = true;\n } else {\n if (isMaybeUndef()) {\n b.append(\"Undef\");\n any = true;\n }\n if (isMaybeNull()) {\n if (any)\n b.append('|');\n b.append(\"Null\");\n any = true;\n }\n if (isMaybeAnyBool()) {\n if (any)\n b.append('|');\n b.append(\"Bool\");\n any = true;\n } else if (isMaybeTrueButNotFalse()) {\n if (any)\n b.append('|');\n b.append(\"true\");\n any = true;\n } else if (isMaybeFalseButNotTrue()) {\n if (any)\n b.append('|');\n b.append(\"false\");\n any = true;\n }\n if (isMaybeAnyNum()) {\n if (any)\n b.append('|');\n b.append(\"Num\");\n any = true;\n } else {\n if (num == null && isMaybeZero() && !isMaybeNumUIntPos()) {\n if (any)\n b.append('|');\n b.append(\"Zero\");\n any = true;\n } else if (!isMaybeZero() && isMaybeNumUIntPos()) {\n if (any)\n b.append('|');\n b.append(\"UIntPos\");\n any = true;\n } else if (isMaybeNumUInt()) {\n if (any)\n b.append('|');\n b.append(\"UInt\");\n any = true;\n }\n if (isMaybeNumOther()) {\n if (any)\n b.append('|');\n b.append(\"NotUInt\");\n any = true;\n }\n if (isMaybeNaN()) {\n if (any)\n b.append('|');\n b.append(\"NaN\");\n any = true;\n }\n if (isMaybeInf()) {\n if (any)\n b.append('|');\n b.append(\"Inf\");\n any = true;\n }\n if (num != null) {\n if (any)\n b.append('|');\n b.append(num);\n any = true;\n }\n }\n if (excluded_strings != null || included_strings != null) {\n if (any)\n b.append('|');\n b.append('(');\n any = false;\n }\n if (isMaybeAnyStr()) {\n if (any)\n b.append('|');\n b.append(\"Str\");\n any = true;\n } else {\n if (isMaybeStrUInt()) {\n if (any)\n b.append('|');\n b.append(\"UIntStr\");\n any = true;\n }\n if (isMaybeStrOtherNum()) {\n if (any)\n b.append('|');\n b.append(\"NotUIntStr\"); // TODO: change to OtherNumStr?\n any = true;\n }\n if (isMaybeStrIdentifier()) {\n if (any)\n b.append('|');\n b.append(\"IdentStr\");\n any = true;\n }\n if (isMaybeStrOtherIdentifierParts()) {\n if (any)\n b.append('|');\n b.append(\"OtherIdentPartsStr\");\n any = true;\n }\n if (isMaybeStrOther()) {\n if (any)\n b.append('|');\n b.append(\"OtherStr\");\n any = true;\n }\n if (isStrJSON()) {\n if (any)\n b.append(\"|\");\n b.append(\"JSONStr\");\n any = true;\n }\n if (isMaybeStrPrefix()) {\n if (any)\n b.append('|');\n b.append(\"PrefixStr[\").append(Strings.escape(str)).append(']');\n any = true;\n } else if (str != null) {\n if (any)\n b.append('|');\n b.append('\"').append(Strings.escape(str)).append('\"');\n any = true;\n }\n }\n if (excluded_strings != null || included_strings != null) {\n b.append(')');\n if (excluded_strings != null)\n b.append(\"\\\\{\").append(excluded_strings.stream().sorted().map(s -> '\"' + Strings.escape(s) + '\"').collect(java.util.stream.Collectors.joining(\",\"))).append(\"}\");\n if (included_strings != null)\n b.append(\"{\").append(included_strings.stream().sorted().map(s -> '\"' + Strings.escape(s) + '\"').collect(java.util.stream.Collectors.joining(\",\"))).append(\"}\");\n any = true;\n }\n if (object_labels != null) {\n if (any)\n b.append('|');\n b.append(object_labels);\n any = true;\n }\n if (getters != null) {\n if (any)\n b.append('|');\n b.append(\"getter \").append(getters);\n any = true;\n }\n if (setters != null) {\n if (any)\n b.append('|');\n b.append(\"setter \").append(setters);\n any = true;\n }\n if (isMaybeAbsent()) {\n if (any)\n b.append('|');\n b.append(\"absent\");\n any = true;\n }\n if (functionPartitions != null) {\n if (any)\n b.append(',');\n b.append(\"functionPartitions=\").append(functionPartitions);\n any = true;\n }\n if (functionTypeSignatures != null) {\n if (any)\n b.append(',');\n b.append(\"functionTypeSignatures=\").append(functionTypeSignatures);\n // any = true;\n }\n }\n if (!any)\n b.append(\"<no value>\");\n// if (isMaybeModified())\n// b.append(\"%\");\n return b.toString();\n }",
"@Override\n\tpublic char getDisplayChar() {\n\t\tPrintable thing;\n\t\t\n\t\tif(this.containsAnActor()) \n\t\t\tthing = this.getActor();\n\t\telse if (items.size() > 0)\n\t\t\tthing = items.get(items.size() - 1);\n\t\telse\n\t\t\tthing = ground;\n\t\t\n\t\treturn thing.getDisplayChar();\n\t}",
"@Override\n\tpublic abstract String toString();",
"@Override\r\n\tpublic String toString() {\n\t\treturn super.getCor().equals(\"Branco\") ? \" ♘ \": \" ♞ \";\r\n\t}",
"public char getType() {\n return type;\n }",
"public char getType() {\n return type;\n }",
"public abstract Display getDisplay();",
"@Override\n public String toString ()\n {\n return \"type = \" + type;\n }",
"public String displayString() {\r\n\treturn recupValCle(displayString);\r\n }",
"public String getType() {\n\t\tCharacter tempType = (char)type;\n\t\treturn tempType.toString();\n\t}",
"@Override\n\tpublic String toString()\n\t{\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tbuffer.append(fieldName + \" :\");\n\t\tbuffer.append(\" Typ=\" + fieldLength + fieldType);\n\t\tif (!EqDataType.isAlpha(fieldType))\n\t\t{\n\t\t\tbuffer.append(\",\" + fieldDecimal);\n\t\t}\n\t\treturn buffer.toString();\n\t}",
"public char getRender() {\n\n return (animalChar);\n }",
"@Override\n public abstract String asText();",
"@Override\n public char getTypeCode() {\n return '0';\n }",
"public String toString()\r\n {\n return super.getValue()+\" C\";\r\n }",
"@Override\r\n\tpublic void display(String s) {\n\t\tSystem.out.println(s + \"바나나입니다.\");\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn String.format(\"%s:%s\", type, value);\n\t}",
"@Override\n\tpublic String asText() {\n\t\treturn symbol;\n\t}",
"@Override\n public String toString() {\n return \"☹ OOPS!!! I'm sorry, but I do not know what this means. ☹\";\n }",
"public char getType() {\n\t\treturn type;\n\t}",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn getSymbol().toString();\r\n\t}",
"@Override\n public String toString() {\n return type.key + \". \" + description + \" at \" +\n (sourceName != null && sourceName.length() > 0 ?\n sourceName : \"(unknown source)\") + \" line \" +\n (lineNumber != -1 ? String.valueOf(lineNumber) : \"(unknown line)\") +\n \" : \" + (charno != -1 ? String.valueOf(charno) : \"(unknown column)\");\n }",
"@Test\n public void testReflectionCharacter() {\n final Character c = 'A';\n assertEquals(this.toBaseString(c) + \"[value=A]\", ToStringBuilder.reflectionToString(c));\n }",
"Dog(char c) {\n\t\tSystem.out.println(\"Arf!\");\n\t}",
"@Override\r\n public String toString() {\r\n return toSmartText().toString();\r\n }"
] | [
"0.66500956",
"0.66024154",
"0.63316554",
"0.62281334",
"0.60719097",
"0.60561097",
"0.594407",
"0.5932125",
"0.5871253",
"0.58499986",
"0.5824632",
"0.5814559",
"0.58055407",
"0.577659",
"0.5763333",
"0.5751813",
"0.5705027",
"0.5663069",
"0.564513",
"0.56221396",
"0.5605894",
"0.5594178",
"0.55919904",
"0.5557594",
"0.5557594",
"0.55554706",
"0.5537705",
"0.5501073",
"0.54986495",
"0.54830486",
"0.5478884",
"0.54498714",
"0.5446203",
"0.54400975",
"0.5435357",
"0.5426083",
"0.5413541",
"0.5379103",
"0.5373129",
"0.5361334",
"0.53598815",
"0.5350147",
"0.53499377",
"0.53421026",
"0.53410506",
"0.5335167",
"0.5334317",
"0.5327891",
"0.53120744",
"0.53078437",
"0.52876234",
"0.52693206",
"0.5262458",
"0.52425605",
"0.5242115",
"0.5222267",
"0.5222267",
"0.5222267",
"0.5222267",
"0.5222267",
"0.5222267",
"0.5222267",
"0.52165467",
"0.52160406",
"0.5204382",
"0.52009094",
"0.5199212",
"0.5196399",
"0.5191338",
"0.5180075",
"0.51688117",
"0.51582617",
"0.5153408",
"0.51499873",
"0.5149436",
"0.51461405",
"0.5141247",
"0.5130507",
"0.51210713",
"0.51201916",
"0.51201916",
"0.51128143",
"0.5112367",
"0.51065576",
"0.51022065",
"0.50995564",
"0.50846636",
"0.5083548",
"0.50830036",
"0.5081035",
"0.5080604",
"0.50805837",
"0.50699306",
"0.5066841",
"0.505944",
"0.5058901",
"0.50515896",
"0.50514907",
"0.5050714",
"0.50495017"
] | 0.63077086 | 3 |
Used for derived Show instances for foreign types with implementation type int. | public static final SourceModel.Expr showInt(SourceModel.Expr i) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showInt), i});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String toString() {\r\n return \"Type: Integer\";\r\n }",
"private ClassInstance checkDerivedShowInstance(TypeConstructor typeCons,\r\n TypeConsApp instanceType,\r\n TypeClass typeClass, SourceRange position) throws UnableToResolveForeignEntityException {\r\n \r\n if (!typeClass.getName().equals(CAL_Debug.TypeClasses.Show)) {\r\n throw new IllegalStateException();\r\n }\r\n \r\n ModuleName currentModuleName = currentModuleTypeInfo.getModuleName();\r\n \r\n \r\n ForeignTypeInfo foreignTypeInfo = typeCons.getForeignTypeInfo(); \r\n \r\n if (foreignTypeInfo != null) {\r\n \r\n // foreign types\r\n \r\n Class<?> foreignType = foreignTypeInfo.getForeignType();\r\n \r\n if (foreignType.isPrimitive()) {\r\n \r\n if (foreignType == boolean.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showForeignBoolean},\r\n InstanceStyle.DERIVING); \r\n \r\n } else if (foreignType == byte.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showByte},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == char.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showForeignChar},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == short.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showShort},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == int.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showInt},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == long.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showLong},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == float.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showFloat},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == double.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showDouble},\r\n InstanceStyle.DERIVING);\r\n \r\n } else {\r\n throw new IllegalStateException(\"A type that claims to be primitive is not one of the known primitive types\");\r\n }\r\n \r\n } else {\r\n // Defer to String.valueOf(Object) for non-primitive foreign values\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showJObject}, \r\n InstanceStyle.DERIVING);\r\n }\r\n \r\n \r\n } else {\r\n \r\n // non-foreign types\r\n \r\n TypeExpr showTypeExpr = TypeExpr.makeFunType(instanceType, compiler.getTypeChecker().getTypeConstants().getStringType());\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeShowInstanceFunction(typeCons), showTypeExpr, position); \r\n \r\n return new ClassInstance(currentModuleName, instanceType, typeClass, null, InstanceStyle.DERIVING);\r\n }\r\n }",
"@Override\n public String toString() {\n StringBuilder buff = new StringBuilder();\n\n buff.append(this.getClass().getSimpleName()).append(\": \");\n buff.append(\" int: \");\n buff.append(this.intValue);\n buff.append(\" \");\n buff.append(super.toString());\n\n return buff.toString();\n }",
"public void show(int x){\n System.out.println(\"In int \"+x);\n }",
"@Override\r\n\tpublic void show(Integer t) {\n\t\tSystem.out.println(\"show:\" + t * t);\r\n\t}",
"int getDisplayValue();",
"public String getDisplayType();",
"@Override\n\tpublic void display() {\n\t\tSystem.out.println(valueType+\": \"+value);\n\t}",
"@Override\n\tpublic String Show()\n\t{\n\t\treturn id;\n\t\t\n\t}",
"public static final SourceModel.Expr showInteger(SourceModel.Expr integerValue) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showInteger), integerValue});\n\t\t}",
"@Override\n\tpublic int display() {\n\t\treturn 0;\n\t}",
"public DisplayType getDisplayType();",
"@Override\n\tpublic Type getType() {\n\t\treturn Type.INT_TYPE;\n\t}",
"abstract String display(T value);",
"@ZenCodeType.Caster\n @ZenCodeType.Method\n default int asInt() {\n \n return notSupportedCast(BasicTypeID.INT);\n }",
"public void show() \r\n\t {\n\t PI1.super.show(); \r\n\t \r\n\t // use super keyword to call the show \r\n\t // method of PI2 interface \r\n\t PI2.super.show(); \r\n\t }",
"default void show1() {\n\t\t\n\t\t\n\t}",
"@Override\n\tpublic void display() {\n\t\tInterface1.super.display();\n\t}",
"int getTypeIdValue();",
"@Override\n\tpublic void show4() {\n\t\t\n\t}",
"public void printTypeInfo(){\n\t\tSystem.out.println(\"This type of computer is suitable for massive usage, when it comes to portability.\");\n\t\tSystem.out.println(\"Main thing at these computers is portability and funcionality.\");\n\t\t\n\t}",
"public static void main(String[] args){\n Number num;\n // narrow scope Integer object\n Integer inty;\n\n num = new Integer(5);\n if(num instanceof Integer){\n inty = (Integer) num;\n System.out.println(num);\n }\n num = new Double(4.234);\n if(num instanceof Integer){\n inty =(Integer) num;\n System.out.println(num);\n }\n\n System.out.println(num);\n\n Student john = new Student(\"11\",\"John\", 30);\n System.out.println(john.toString());\n\n Student mike = new Student(\"28\", \"Mike\", 29);\n System.out.println(mike.toString());\n\n System.out.println(mike.equalTo(john));\n\n\n }",
"@Override\n\tpublic int getDisplayOptions() {\n\t\treturn 0;\n\t}",
"protected abstract String getDefaultDisplayTypeStringRepresentation();",
"public void show() {\n\t\tSystem.out.println(getId());\n\t}",
"private static String printList(List<? super Integer> list){\n return list.toString();\n }",
"@Override\n\tpublic void setDisplayOptions(int options) {\n\t\t\n\t}",
"private static void printIntOrDouble(double value) {\n if (value == (int) value) {\n System.out.print(\" \" + (int) value);\n } else {\n System.out.print(\" \" + value);\n }\n }",
"@DISPID(496)\n @UseDefaultValues(paramIndexMapping = {}, optParamIndex = {0}, javaType = {com.exceljava.com4j.excel.XlQuickAnalysisMode.class}, nativeType = {NativeType.Int32}, variantType = {Variant.Type.VT_I4}, literal = {\"0\"})\n void show();",
"public Object accept(Visitor v) {\n\t\treturn v.visitIntegerType(this);\n\t}",
"public void showInfomation()\n {\n\t System.out.println(\"\\nSide\"+\"\\n\\tnumber: \"+ super.getNumber() +\"\\n\\tdishName: \" + super.getDishName() + \"\\n\\tmaker: \"+maker+\"\\n\\tprice : \" + super.getPrice()+\"$\");\n }",
"@Override\n\tpublic int getType() {\n\t\treturn 1;\n\t}",
"@Override\n public Type evaluateType() throws Exception {\n return new IntegerType();\n }",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"int getTypeValue();",
"protected abstract String display();",
"@Override\n\tpublic void show(int cid, double money) {\n\t\tob.show(cid, money);\n\t}",
"private static void displayTypes(int UI)\n\t{\n\t\tint Evens = 0;\n\t\tint Odds = 0;\n\t\tint Zeros = 0;\n\t\tint ValHold;\n\t\t\n\t\twhile (UI > 0)\n\t\t{\n\t\t\tValHold = UI%10;\n\t\t\tif (ValHold != 0 && ValHold%2 == 0)\n\t\t\t{\n\t\t\t\tEvens++;\n\t\t\t}\n\t\t\telse if (ValHold == 0)\n\t\t\t{\n\t\t\t\tZeros++;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tOdds++;\n\t\t\t}\n\t\t\tUI = UI/10;\n\t\t}\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"The number of odd digits is \"+Odds+\", and the number of even numbers is \"+Evens+\", and the number of zeros is \"+Zeros);\n\t}",
"@Override\n public String toString(Integer value) {\n if (value == null) {\n return \"\";\n }\n return (Integer.toString(((Integer) value).intValue()));\n }",
"void method(){\r\n\t\tInteger i = new Integer(Integer.MAX_VALUE);\r\n\t\tShort s = new Short(Short.MAX_VALUE);\r\n\t\t\r\n\t\tSystem.out.println(\"Int max \"+ Integer.MAX_VALUE + \" int min \"+ Integer.MIN_VALUE);\r\n\t\tSystem.out.println(\"Short max \"+ Short.MAX_VALUE + \" Short min \"+ Short.MIN_VALUE);\t\t\r\n\t\t\r\n\t\t//this is not upcast ! , this is side-cats !!-> Illegal\r\n\t\t//Short ss = (Short) new Integer(Integer.MAX_VALUE);\r\n\t\t\r\n\t\t//Illegal\r\n\t\t//Integer ii = (Integer) new Short(Short.MAX_VALUE);\r\n\t\t\r\n\t\t// real up-cast\r\n\t\tNumber ii = new Short(Short.MAX_VALUE);\r\n\t\tSystem.out.println((Short)ii);\r\n\t\t\r\n\t\t\r\n\t\tInteger iii = Integer.valueOf(s);\r\n\t\t\r\n\t\t\r\n\t}",
"private ExplorationTypes(int type_val) \n { \n this.type_val = type_val; \n }",
"public abstract int getType();",
"public abstract int getType();",
"public abstract int getType();",
"@Override\r\n\tpublic String typeV() {\n\t\treturn hio.TyreType();\r\n\t}",
"void foo1(Integer p) {\n System.out.println(p.toString());\n }",
"public Class getPreferredDisplayClass() {\n\t\treturn Object.class;\n\t}",
"public abstract String display();",
"public static void showAll(List<? super Number> list) {\n\t\tfor(Object obj : list)\n\t\t\tSystem.out.println(obj);\n\t}",
"public Inatnum print() {\n return this;}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n public String toString() {\n return value + symbol(this.type);\n }",
"public String shortRepr() {\n\t\treturn \"Value of some kind.\";\n\t}",
"@Override\n\tpublic String getValue() {\n\t\treturn integerLiteral;\n\t}",
"int getDataTypeValue();",
"public IntType asInt(){\n return TypeFactory.getIntType(this.toInt(this.getValue()));\n }",
"public int getType() { return type; }",
"public int getType() { return type; }",
"public boolean isID(int displayType) {\n\t\treturn false;\n\t}",
"@Override\n public int intValue(int numId) {\n return 0;\n }",
"@java.lang.Override\n public int getNilValue() {\n if (typeCase_ == 1) {\n return (java.lang.Integer) type_;\n }\n return 0;\n }",
"@Override\n public void show() {\n }",
"@Override\n\tpublic String showTypeCard() {\n\t\treturn \"It's payment by Visa\";\n\t}",
"private void valueOfInt(Instruction o, Type value){\n\t\tif (! value.equals(Type.INT))\n\t\t\t\tconstraintViolated(o, \"The 'value' is not of type int but of type \"+value+\".\");\n\t}",
"@Override\n\tpublic void show() {\n\t\tSystem.out.println(\"´óTÐô\");\n\t}",
"public Class<?> getType()\r\n {\r\n return Integer.class;\r\n }",
"private void displayI() { // Only accessable from inside the same class\n\t\tSystem.out.println(\"This is from ClassOne,\" + \n\t\t\t\t\t\t\t\t\t\t\t\"where value of i = \" + i);\n\t}",
"public int getType();",
"public int getType();",
"public int getType();",
"public int getType();",
"public int getType();",
"public interface Display {\n\t/**\n\t * Function name : Display \n\t * Parameters : game Board. \n\t * Return value : None.\n\t * General flow : Displays the game board.\n\t */\n\tpublic void DisplayBoard(Board bord);\n\t\n\t/**\n\t * Function name : DisplayMessage \n\t * Parameters : A string. \n\t * Return value : None. \n\t * General flow : Displays the massage to the player.\n\t */\n\tpublic void DisplayMessage(String massage);\n\t\n\t/**\n\t * Function name : getNum\n\t * Parameters : None. \n\t * Return value : A number (int).\n\t * General flow : Gets a number from the user, and return itS.\n\t */\n\tpublic int getNum();\n}",
"public static void show() {\n\t\t\n\t}",
"@Override\r\n\tpublic void show() {\n\t}"
] | [
"0.62181944",
"0.5797836",
"0.5725934",
"0.5632403",
"0.56085265",
"0.5601579",
"0.5596933",
"0.55795306",
"0.5559585",
"0.5558448",
"0.54110616",
"0.5369811",
"0.5369163",
"0.5363277",
"0.5355303",
"0.5342715",
"0.53357357",
"0.5314519",
"0.5265943",
"0.5263823",
"0.52372646",
"0.5180486",
"0.5171915",
"0.51670456",
"0.51367563",
"0.51078993",
"0.51045793",
"0.5093383",
"0.5040488",
"0.5036691",
"0.5024988",
"0.5023043",
"0.501434",
"0.50123775",
"0.50123775",
"0.50123775",
"0.50123775",
"0.50123775",
"0.50123775",
"0.50123775",
"0.50123775",
"0.50123775",
"0.50123775",
"0.50123775",
"0.50123775",
"0.50123775",
"0.5008919",
"0.50061256",
"0.4998782",
"0.49843726",
"0.49769703",
"0.49713913",
"0.4968787",
"0.4968787",
"0.4968787",
"0.49658832",
"0.49634317",
"0.495204",
"0.4951126",
"0.49499372",
"0.49360108",
"0.4934912",
"0.4934912",
"0.4934912",
"0.4934912",
"0.4934912",
"0.4934912",
"0.4934912",
"0.4934912",
"0.4934912",
"0.4934912",
"0.4934912",
"0.4934912",
"0.4934912",
"0.4934912",
"0.4934912",
"0.492989",
"0.49296716",
"0.4928683",
"0.49266276",
"0.49176514",
"0.49157518",
"0.49157518",
"0.4906065",
"0.49032253",
"0.49030465",
"0.49001288",
"0.4894714",
"0.48928535",
"0.48908967",
"0.48902965",
"0.48898107",
"0.48706084",
"0.48706084",
"0.48706084",
"0.48706084",
"0.48706084",
"0.48704535",
"0.48680243",
"0.4864101"
] | 0.6125213 | 1 |
handles the case where the Integer object is null | public static final SourceModel.Expr showInteger(SourceModel.Expr integerValue) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showInteger), integerValue});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public T caseIntegerValue(IntegerValue object) {\n\t\treturn null;\n\t}",
"public static int nullToZero(Integer i)\n {\n if(i == null)\n {\n return 0;\n }\n else\n {\n return i.intValue();\n }\n }",
"int checkNull(int value) {\n return (value != Tables.INTNULL ? value : 0);\n }",
"private static int unbox(Integer i) {\n\t\treturn (i == null) ? 0 : i;\n\t}",
"@Override\n\tpublic Object visitIntLiteral(IntLiteral literal) {\n\t\treturn null;\n\t}",
"public T caseExpression_Integer(Expression_Integer object)\r\n {\r\n return null;\r\n }",
"public T caseInteger(sensorDeploymentLanguage.Integer object) {\n\t\treturn null;\n\t}",
"public T caseIntegerLiteral(IntegerLiteral object)\n {\n return null;\n }",
"public T caseIntegerVariable(IntegerVariable object) {\n\t\treturn null;\n\t}",
"public static String prepareEmptyInt(Object object) {\n return (object == null ? \"-1\" : object.toString());\n }",
"@java.lang.Override\n public int getNilValue() {\n if (typeCase_ == 1) {\n return (java.lang.Integer) type_;\n }\n return 0;\n }",
"public T caseIntegerExpression(IntegerExpression object) {\n\t\treturn null;\n\t}",
"int getNilValue();",
"public static int toInt(java.lang.Object o)\n {\n if(o == null)\n {\n return 0;\n }\n else if(o.toString().equals(\"\"))\n {\n return 0;\n }\n else\n {\n return Integer.parseInt(o.toString());\n }\n }",
"@Override\r\n\tpublic Integer getValue() {\n\t\treturn null;\r\n\t}",
"public static Integer castInt(Object o) {\n\t\tif (o instanceof Number) {\n\t\t\treturn ((Number) o).intValue();\n\t\t}\n\n\t\treturn null;\n\t}",
"@Override\n public String visit(IntegerLiteralExpr n, Object arg) {\n return null;\n }",
"@Override\n\t\t\tpublic boolean test(Integer t) {\n\t\t\t\treturn false;\n\t\t\t}",
"public T caseExprInt(ExprInt object)\n {\n return null;\n }",
"IntegerValue getValueObject();",
"public Int() {\n super(Expression.X_IS_UNDEFINED);\n this.value = 0;\n }",
"protected final Integer getInt(final String key) {\n try {\n if (!jo.isNull(key)) {\n return jo.getInt(key);\n }\n } catch (JSONException e) {\n }\n return null;\n }",
"public int getNilValue() {\n if (typeCase_ == 1) {\n return (java.lang.Integer) type_;\n }\n return 0;\n }",
"static public void emitNullableInteger(RowEmitter outputEmitter, long value, long nullValue) {\r\n\t\tif(value != nullValue)\r\n\t\t\toutputEmitter.addLong(value);\r\n\t\telse\r\n\t\t\toutputEmitter.addNull();\r\n\t}",
"@Override\n\tpublic int isNullable(int arg0) throws SQLException {\n\t\treturn 0;\n\t}",
"@Test\n\tvoid testCheckNull1() {\n\t\tassertFalse(DataChecker.checkNull(new Integer(42)));\n\t}",
"@RepeatedTest(20)\n void transformtoIntTest() {\n assertEquals(bi.transformtoInt(), new Int(bi.toInt(binary)));\n assertEquals(i.transformtoInt(),i);\n\n //Nulls\n assertEquals(f.transformtoInt(),Null);\n assertEquals(st.transformtoInt(),Null);\n assertEquals(bot.transformtoInt(),Null);\n assertEquals(bof.transformtoInt(),Null);\n assertEquals(Null.transformtoInt(),Null);\n }",
"public static Integer toInteger(java.lang.Object o)\n {\n\t if(o == null)\n\t {\n\t return 0;\n\t }\n\t else if(o.toString().equals(\"\"))\n\t {\n\t return 0;\n\t }\n\telse\n\t{\n\t return Integer.valueOf(o.toString());\n\t}\n }",
"public boolean checkValue(Object obj) {\n\treturn (obj instanceof Long) || (obj == null) ;\n }",
"@Override\n\tpublic void visit(Null n) {\n\t\t\n\t}",
"public T caseIntLiteral(IntLiteral object)\n {\n return null;\n }",
"public T caseIntegerComparisonExpression(IntegerComparisonExpression object) {\n\t\treturn null;\n\t}",
"@Override\n public int intValue(int numId) {\n return 0;\n }",
"public T caseIntegerCalculationExpression(IntegerCalculationExpression object) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic void visit(NullValue arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void visit(NullValue arg0) {\n\n\t}",
"public void setVoid_Inventory_ID (int Void_Inventory_ID)\n{\nif (Void_Inventory_ID <= 0) set_Value (\"Void_Inventory_ID\", null);\n else \nset_Value (\"Void_Inventory_ID\", new Integer(Void_Inventory_ID));\n}",
"public static boolean isEmpty(Integer integer) {\n\treturn null == integer || integer == 0;\n }",
"public MyInteger(){\n //initialize to 0\n Integer myint = new Integer(0);\n }",
"public Int(int value) {\n super(Expression.X_IS_UNDEFINED);\n this.value = value;\n }",
"public void visitNEWARRAY(NEWARRAY o){\n\t\tif (stack().peek() != Type.INT){\n\t\t\tconstraintViolated(o, \"The value at the stack top is not of type 'int', but of type '\"+stack().peek()+\"'.\");\n\t\t}\n\t}",
"private void valueOfInt(Instruction o, Type value){\n\t\tif (! value.equals(Type.INT))\n\t\t\t\tconstraintViolated(o, \"The 'value' is not of type int but of type \"+value+\".\");\n\t}",
"public static Integer toInteger(Object value) {\n if (value instanceof Integer)\n return (Integer)value;\n else if (value instanceof Long)\n return (int)(long)(Long)value;\n else if (value instanceof Double)\n return (int)(double)(Double)value;\n else if (value == null)\n return null;\n else\n throw new RuntimeException(\"Can't convert [\" + value + \"] to Integer\");\n }",
"public void visitIUSHR(IUSHR o){\n\t\tif (stack().peek() != Type.INT){\n\t\t\tconstraintViolated(o, \"The value at the stack top is not of type 'int', but of type '\"+stack().peek()+\"'.\");\n\t\t}\n\t\tif (stack().peek(1) != Type.INT){\n\t\t\tconstraintViolated(o, \"The value at the stack next-to-top is not of type 'int', but of type '\"+stack().peek(1)+\"'.\");\n\t\t}\n\t}",
"public void setM_Inventory_ID (int M_Inventory_ID)\n{\nif (M_Inventory_ID <= 0) set_Value (\"M_Inventory_ID\", null);\n else \nset_Value (\"M_Inventory_ID\", new Integer(M_Inventory_ID));\n}",
"@Override\r\n\tpublic int getInt(int arg) {\n\t\treturn 0;\r\n\t}",
"T getNullValue();",
"public T caseIntegerLiteralExpCS(IntegerLiteralExpCS object) {\r\n return null;\r\n }",
"public boolean isInt() {\n return this.data instanceof Integer;\n }",
"public void visitINEG(INEG o){\n\t\tif (stack().peek() != Type.INT){\n\t\t\tconstraintViolated(o, \"The value at the stack top is not of type 'int', but of type '\"+stack().peek()+\"'.\");\n\t\t}\n\t}",
"public int doStartTag() throws JspException {\r\n Integer intObject = null;\r\n if (AeUtil.isNumber(getParamValue())) {\r\n int n = getBoundedValue(AeUtil.parseInt(getParamValue(), 0));\r\n intObject = n;\r\n } else if (isHasDefault()) {\r\n intObject = getBoundedValue(getDefault());\r\n }\r\n if (intObject != null) {\r\n setPropertyOnBean(intObject, int.class);\r\n }\r\n return SKIP_BODY;\r\n }",
"OptionalInt peek();",
"public boolean isInteger();",
"public int getC_POSDocType_ID() \n{\nInteger ii = (Integer)get_Value(COLUMNNAME_C_POSDocType_ID);\nif (ii == null) return 0;\nreturn ii.intValue();\n}",
"public void mo4637a(int i) {\n this.f2766a.bindNull(i);\n }",
"@Override\r\n\tpublic Object visitIntegerLiteralExpression(\r\n\t\t\tIntegerLiteralExpression integerLiteralExpression, Object arg)\r\n\t\t\tthrows Exception {\n\t\tmv.visitLdcInsn(integerLiteralExpression.integerLiteral.getIntVal());\r\n\t\tif(arg != null)\r\n\t\t{\r\n//\t\t mv.visitMethodInsn(INVOKESTATIC, \"java/lang/Integer\", \"valueOf\", \"(I)Ljava/lang/Integer;\");\r\n\t\t}\r\n\t\treturn \"I\";\r\n\t}",
"public boolean isInteger() {\n return false;\n }",
"void testInteger(){\r\n MyInterface<Integer> intStorage = new StorageInArray<>();\r\n intStorage.add(1);\r\n intStorage.add(2);\r\n intStorage.add(null);\r\n intStorage.add(4);\r\n System.out.println(\"The integer list is :\" + intStorage);\r\n System.out.println(\"Getting number 4: \" + intStorage.get(4));\r\n System.out.println(\"Getting number 3: \" + intStorage.get(3));\r\n System.out.println(\"Index of number 4 in the list: \" + intStorage.indexOf(4));\r\n System.out.println(\"Index of number 36 in the list: \" + intStorage.indexOf(36));\r\n System.out.println(\"Index of number 'null' in the list: \" + intStorage.indexOf(null));\r\n System.out.println(\"IncludesNull: \" + intStorage.includesNull());\r\n System.out.println(\"Trying to delete 2: \" + intStorage.delete(2));\r\n System.out.println(\"Trying to delete 57: \" + intStorage.delete(57));\r\n System.out.println(\"The integer list is: \" + intStorage);\r\n System.out.println(\"Is 20 in the list? \" + intStorage.find(20));\r\n System.out.println(\"Is 4 in the list? \" + intStorage.find(4));\r\n System.out.println(\"-----------------------------------------\");\r\n }",
"public int getIntegerValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not an integer.\");\n }",
"@Test\n public void intInvalidType() throws Exception {\n String retVal = new SynapseHelper().serializeToSynapseType(MOCK_TEMP_DIR, TEST_PROJECT_ID, TEST_RECORD_ID,\n TEST_FIELD_NAME, UploadFieldTypes.INT, new TextNode(\"-13\"));\n assertNull(retVal);\n }",
"public void mo1184a(Object obj) {\n if (obj != null && obj.getClass() == Integer.class) {\n this.f4517d = ((Integer) obj).intValue();\n this.c = true;\n }\n }",
"public T caseNumber(org.uis.lenguajegrafico.lenguajegrafico.Number object)\n {\n return null;\n }",
"public void visitIFNE(IFNE o){\n\t\tif (stack().peek() != Type.INT){\n\t\t\tconstraintViolated(o, \"The value at the stack top is not of type 'int', but of type '\"+stack().peek()+\"'.\");\n\t\t}\n\t}",
"public int getVoid_Inventory_ID() \n{\nInteger ii = (Integer)get_Value(\"Void_Inventory_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}",
"public void visitIDIV(IDIV o){\n\t\tif (stack().peek() != Type.INT){\n\t\t\tconstraintViolated(o, \"The value at the stack top is not of type 'int', but of type '\"+stack().peek()+\"'.\");\n\t\t}\n\t\tif (stack().peek(1) != Type.INT){\n\t\t\tconstraintViolated(o, \"The value at the stack next-to-top is not of type 'int', but of type '\"+stack().peek(1)+\"'.\");\n\t\t}\n\t}",
"public T caseExprNumber(ExprNumber object)\n {\n return null;\n }",
"@Override\n public String visit(PrimitiveType n, Object arg) {\n return null;\n }",
"@Override\n public String toString(Integer value) {\n if (value == null) {\n return \"\";\n }\n return (Integer.toString(((Integer) value).intValue()));\n }",
"private static Object nullOrDefaultFor(final Class<?> type) {\r\n return defaultByPrimitiveType.get(type);\r\n }",
"@Override\n\tpublic void flagNull() {\n\t\t\n\t}",
"public T caseURDFAttrINT(URDFAttrINT object) {\r\n\t\treturn null;\r\n\t}",
"private void checkNull(T x) throws NullPointerException\n\t{\n\t\tif (x == null)\n\t\t{\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t}",
"protected abstract Object convertNonNull(Object o);",
"static int nullNode() {\n\t\treturn -1;\n\t}",
"@Test\n public void testIntProperty() {\n try (ReleasableVariant procId = classObject.get(\"ProcessId\")) {\n Assertions.assertNotEquals(0, procId.intValue());\n }\n }",
"private static String getValue(Object o) {\n if (o != null) {\n return o.toString();\n }\n return \"null\";\n }",
"private static int intValueStr(NodeValue nv, int valueNan) {\n if ( nv.isInteger() )\n return nv.getInteger().intValue() ;\n if ( nv.isDecimal() )\n return (int)Math.round(nv.getDecimal().doubleValue()) ;\n\n if ( nv.isFloat() ) {\n float f = nv.getFloat() ;\n if ( Float.isNaN(f) )\n return valueNan ;\n return Math.round(f) ;\n }\n if ( nv.isDouble() ) {\n double d = nv.getDouble() ;\n if ( Double.isNaN(d) )\n return valueNan ;\n return (int)Math.round(d) ;\n }\n throw new ExprEvalException(\"Not a number:\" + nv) ;\n }",
"public void visitISHR(ISHR o){\n\t\tif (stack().peek() != Type.INT){\n\t\t\tconstraintViolated(o, \"The value at the stack top is not of type 'int', but of type '\"+stack().peek()+\"'.\");\n\t\t}\n\t\tif (stack().peek(1) != Type.INT){\n\t\t\tconstraintViolated(o, \"The value at the stack next-to-top is not of type 'int', but of type '\"+stack().peek(1)+\"'.\");\n\t\t}\n\t}",
"public void visitIFLE(IFLE o){\n\t\tif (stack().peek() != Type.INT){\n\t\t\tconstraintViolated(o, \"The value at the stack top is not of type 'int', but of type '\"+stack().peek()+\"'.\");\n\t\t}\n\t}",
"@Override\n\tpublic void visit(IsNullExpression arg0) {\n\t\t\n\t}",
"@Override\n\tpublic int isNullable(int arg0) throws SQLException {\n\t\treturn tMeta[0].isNullable(columns[arg0-1])?columnNullable:columnNoNulls;\n\t}",
"public T caseIntLitExpr(IntLitExpr object) {\n\t\treturn null;\n\t}",
"IntegerValue createIntegerValue();",
"IntegerValue createIntegerValue();",
"public Integer getNumberValue()\n\t{\n\t\treturn (number == null) ? null : number.value;\n\t}",
"Integer getValue();",
"Integer getValue();",
"@Test\n public void testIntPropertyQuick() {\n Assertions.assertNotEquals(0, classObject.getInt(\"ProcessId\"));\n }",
"public void visitIMUL(IMUL o){\n\t\tif (stack().peek() != Type.INT){\n\t\t\tconstraintViolated(o, \"The value at the stack top is not of type 'int', but of type '\"+stack().peek()+\"'.\");\n\t\t}\n\t\tif (stack().peek(1) != Type.INT){\n\t\t\tconstraintViolated(o, \"The value at the stack next-to-top is not of type 'int', but of type '\"+stack().peek(1)+\"'.\");\n\t\t}\n\t}",
"public static int getInt(Integer value)\r\n\t{\r\n\t\treturn getInt(value, 0);\r\n\t}",
"public Value(int i) {\n integer = i;\n itemClass = Integer.class;\n type = DataType.INT;\n }",
"public T get(int i) {\n return null;\n }",
"@Override\n\tpublic void visit(IsNullExpression arg0) {\n\n\t}",
"public void visitIRETURN(IRETURN o){\n\t\tif (stack().peek() != Type.INT){\n\t\t\tconstraintViolated(o, \"The value at the stack top is not of type 'int', but of type '\"+stack().peek()+\"'.\");\n\t\t}\n\t}",
"public void visitACONST_NULL(ACONST_NULL o){\n\t\t// Nothing needs to be done here.\n\t}",
"@Impure\n public abstract void encodeNull(int typeCode) throws DatabaseException;",
"public int getInt() throws Exception\n {\n return 0;\n }",
"protected Object calcRightNullRow()\n {\n return null;\n }",
"public static Integer parseInt(Object s) {\n\t\tif (s == null)\n\t\t\treturn 0;\n\t\tif (s != null && s.toString().isEmpty())\n\t\t\t;\n\t\treturn Integer.parseInt(s.toString());\n\t}",
"private FinalIntegerNode() { }",
"static Object m59443a(Object obj, int i) {\n if (obj != null) {\n return obj;\n }\n StringBuilder sb = new StringBuilder(\"at index \");\n sb.append(i);\n throw new NullPointerException(sb.toString());\n }"
] | [
"0.70245254",
"0.6948148",
"0.6934355",
"0.69327134",
"0.6570469",
"0.6544975",
"0.64241976",
"0.63765764",
"0.6364279",
"0.63539577",
"0.633356",
"0.6273749",
"0.6233927",
"0.62009996",
"0.6151063",
"0.6131733",
"0.60955644",
"0.6089887",
"0.60565215",
"0.6007512",
"0.59820133",
"0.59727496",
"0.59506524",
"0.5949618",
"0.5940725",
"0.5919158",
"0.5914672",
"0.5903478",
"0.5896993",
"0.5893625",
"0.58820933",
"0.5869922",
"0.5853214",
"0.5843634",
"0.5842105",
"0.58415234",
"0.57825196",
"0.57701266",
"0.573988",
"0.57271105",
"0.5696758",
"0.5647191",
"0.56431544",
"0.562524",
"0.5623932",
"0.5621174",
"0.5620375",
"0.56125593",
"0.5595617",
"0.5594379",
"0.5575417",
"0.5547773",
"0.55263233",
"0.55172724",
"0.55170125",
"0.55017906",
"0.5493809",
"0.5485765",
"0.5485192",
"0.54686797",
"0.54469246",
"0.54415226",
"0.5421107",
"0.5414177",
"0.5411425",
"0.5408605",
"0.5404604",
"0.54031706",
"0.54001975",
"0.53973365",
"0.5383623",
"0.53561205",
"0.53532803",
"0.5352272",
"0.53438973",
"0.5329602",
"0.5326743",
"0.5324341",
"0.5312166",
"0.53066546",
"0.53048867",
"0.53027076",
"0.53001386",
"0.53001386",
"0.52967525",
"0.5293105",
"0.5293105",
"0.5288273",
"0.52880687",
"0.5287386",
"0.5286787",
"0.52855605",
"0.52831435",
"0.52830756",
"0.5277399",
"0.5269416",
"0.5265234",
"0.52560043",
"0.5252471",
"0.52488905",
"0.524418"
] | 0.0 | -1 |
Helper binding method for function: showInternalValue. | public static final SourceModel.Expr showInternalValue(SourceModel.Expr calValue) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showInternalValue), calValue});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String displayValue();",
"public String shortRepr() {\n\t\treturn \"Value of some kind.\";\n\t}",
"abstract public String getDisplayValue(String fieldname);",
"public java.lang.String getFieldShowValue() {\n return fieldShowValue;\n }",
"public String getDisplayValue() {\n return displayValue;\n }",
"@Override\n public String toString() {\n return String.valueOf(value());\n }",
"@Override\n\tpublic void display() {\n\t\tSystem.out.println(valueType+\": \"+value);\n\t}",
"public String getDisplayValue()\n {\n return null;\n }",
"@Override\n public String toString() {\n return \"\" + this.value;\n }",
"public abstract String valueAsText();",
"int getDisplayValue();",
"abstract String display(T value);",
"@Override\n public String toString() {\n \treturn String.valueOf(val);\n }",
"String getValueFormatted();",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn val.toString();\r\n\t}",
"@Override\n public final String toString() {\n return this.value;\n }",
"public String displayString() {\r\n\treturn recupValCle(displayString);\r\n }",
"public static final SourceModel.Expr showInternalValueGraph(SourceModel.Expr calValue) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showInternalValueGraph), calValue});\n\t\t}",
"protected void updateDisplay() {\r\n setValue(Integer.toString(value.getValue()));\r\n }",
"@Override\n public String toString(){\n return this.getValue();\n }",
"@Nonnull\n public Function<Object, String> getValueToString()\n {\n return _valueToString;\n }",
"public String toString()\r\n\t{\r\n\t\treturn \" \" + this.value;\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn getValue() != null ? getValue().toString() : \"null\";\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn rawValue;\n\t}",
"public String toString() {\n/* 67 */ return String.valueOf(this.val);\n/* */ }",
"private void display(int key, String value)\n {\n System.out.println(\"Value for id \" + key + \": \" + value);\n }",
"@Override\n public String toString(){\n return String.valueOf(value);\n }",
"@Override\n public String getValue() {\n return this.value.toString();\n }",
"public String getValue() {\n/* 99 */ return this.value;\n/* */ }",
"public void show() {\n super.show(color, value.toString());\n }",
"protected String toStringInternal() {\n return \"{\"\n + \"name='\" + name + '\\''\n + \", valueClassName='\" + valueClassName + '\\''\n + \", isInterface='\" + isInterface + '\\''\n + \", description='\" + description() + '\\''\n + \", implementingInterface='\" + implementingInterface + '\\''\n + \", listFieldDefinitions=\" + listSchemaFieldDefinitions + '}';\n }",
"public Object getInternalValue()\n {\n return m_internalValue;\n }",
"public String toString()\n\t{\n\t\treturn \"\" + val;\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn value + \"\";\r\n\t}",
"public String toString(){\n\t\treturn getValue();\n\t}",
"public static String toDisplayValue(Value value, boolean encodeLtGt) {\n\t\tif (value instanceof URI)\n \t\treturn EndpointImpl.api().getRequestMapper().getReconvertableUri((URI) value, encodeLtGt);\n \t\treturn value.stringValue();\n\t}",
"protected String formatValue (Object value)\n {\n return String.valueOf(value);\n }",
"@Override\n public String asText() {\n return value;\n }",
"public String show() {\n\t\tif (opened) {\n\t\t\tif (isBomb()) {\n\t\t\t\treturn \"o*\";\n\t\t\t} else{\n\t\t\t\treturn \"\"+value;\n\t\t\t}\n\t\t} else {\n\t\t\treturn \"\";\n\t\t}\n\t}",
"@Override public String toString() {\n return \"\" + \"Value=\" + Value; // NOI18N\n }",
"@Override\n\tpublic String toString() {\n\t\treturn value;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn String.format(\"%s:%s\", type, value);\n\t}",
"public String toString() {\n return value;\r\n }",
"@Override\r\n public String toString() {\r\n return (value == null) ? \"\" : value;\r\n }",
"@Override\n\tpublic String getValue() {\n\t\treturn PushyView.c.getValue();\n\t}",
"@Override\r\n public Object formatValue(Object value) {\r\n return value;\r\n }",
"public String toString() {\n return \"Open: \" + isOpen() + \" Value: \" + getValue();\n }",
"protected Object getDisplayParameterBean() {\n return findBaseObject(\"pmb\");\n }",
"String getValueAsString();",
"@Override\n public String toString() {\n return value();\n }",
"@Override\n public String getValue() {\n return value;\n }",
"public String toString() {\n\t\treturn (getValue().toString());\r\n\t}",
"public String toString() {\n return value;\n }",
"String getValue()\n {\n return value.toString();\n }",
"@Override\n\tpublic String visitValue(ValueContext ctx) {\n\t \n\t\t\n\t return ctx.getChild(0).getText();\n\t\t\n\t\t\n\t}",
"public final String toString ()\r\n {\r\n return _name + \" = \" + _value;\r\n }",
"protected String getFormattedValue(FacesContext context, UIComponent component,\n Object currentValue ) {\n return currentValue.toString();\n }",
"public boolean isShowDescAsValue()\n\t{\n\t\treturn showDescAsValue;\n\t}",
"public String getValue () { return value; }",
"public String getValue() { return value; }",
"protected String getValueTitle() {\r\n\t\treturn \"Value\";\r\n\t}",
"String getDisplayValue() {\n\t\treturn symbol;\n\t}",
"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 static String displayValue(TestExecutionParameter param) {\n if (param == null) {\n return \" \";\n }\n String value = param.getValue();\n if (value == null) {\n return \" \";\n }\n if (value.startsWith(\"http://\") || value.startsWith(\"https://\")) {\n if (value.length() > 100) {\n //the magic number 96 is arbitrary, it's used only so the text wouldn't be so long\n return \"<a href=\\\"\" + value + \"\\\">\" + value.substring(0, 96) + \" ...</a>\";\n } else {\n return \"<a href=\\\"\" + value + \"\\\">\" + value + \"</a>\";\n }\n } else if (value.length() > 100) {\n return \"<a href=\\\"\" + FacesContext.getCurrentInstance().getExternalContext().getRequestContextPath() + \"/param/\" + param.getId() + \"\\\">\" + StringEscapeUtils.escapeHtml(value.substring(0, 96)) + \" ...</a>\";\n } else {\n return StringEscapeUtils.escapeHtml(value);\n }\n }",
"@Override\n public String toString() {\n return getClass().getSimpleName() + \"[\" + value + \"]\";\n }",
"@Override\n public String toString()\n {\n return \"xValue: \" + xValue;\n }",
"@Override\r\n\tpublic String getValue() {\n\t\treturn value;\r\n\t}",
"@Override\n\t\t\tpublic String getValue() {\n\t\t\t\treturn value;\n\t\t\t}",
"@Override\n public String toString(){\n return \"w=\" + value;\n }",
"@Override\n\tpublic String getValue() {\n\t\treturn \"?\";\n\t}",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn type+\"(\"+id+\",\"+\"(\"+value+\")\"+\")\";\r\n\t}",
"@Override\n public String toString() {\n\n if (this.value == null) {\n return name;\n }\n final int len = this.name.length() + 1 + this.value.length();\n final StringBuilder buffer = new StringBuilder(len);\n buffer.append(this.name);\n buffer.append(\"=\");\n buffer.append(this.value);\n return buffer.toString();\n }",
"private static void showvalue(int n) {\n\t\tSystem.out.println(\"n is\"+ n);\r\n\t}",
"@Override\n public String toString() {\n\n if (this.value == null) {\n return name;\n }\n final int len = this.name.length() + 1 + this.value.length();\n final StringBuilder buffer = new StringBuilder(len);\n buffer.append(this.name);\n buffer.append(\"=\");\n buffer.append(this.value);\n return buffer.toString();\n }",
"@Override\r\n public @Nullable String getFormattedText(RenderContext ctx)\r\n {\n String oorPrefix = getOORPrefix(ctx);\r\n String formattedValue = \"\";\r\n Object value = getDisplayValue(ctx);\r\n if (null != value)\r\n {\r\n formattedValue = super.getFormattedText(ctx);\r\n if (null == formattedValue)\r\n formattedValue = ConvertUtils.convert(value);\r\n }\r\n assert null != formattedValue;\r\n return oorPrefix + formattedValue;\r\n }",
"@Override\n public String toString() {\n return value + symbol(this.type);\n }",
"@Override\n public String toString()\n {\n return value.replace(\"_\", \"\");\n }",
"protected abstract String display();",
"@Override\n\tprotected String formatted(Walue _) {\n\t\treturn \"\";\n\t}",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public String getValue();",
"public\t\tString\t\tgetValue()\n\t\t{\n\t\treturn(\"\" + getNormalizedValue());\n\t\t}",
"@Override\n\tpublic String getValue() {\n\t\treturn value;\n\t}",
"public String toString() {\n StringBuilder sb = new StringBuilder();\n return sb.append(summary).append(\" is \").append(getValueDescription()).toString();\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn getValor();\r\n\t}",
"public String getValue(){\n return this.value;\n }",
"private static void showValues(Derived derived) {\n\t\tSystem.out.println(\"\\n\\tX = \" + derived.getX()\n\t\t+ \";\\tY = \" + derived.getY() + \";\\tZ = \"\n\t\t+ derived.getZ() + \";\\tThe Largest Value Is : \"\n\t\t+ derived.getLargestValue());\n\t}",
"@Override\r\n public void infixDisplay() {\r\n System.out.print(value);\r\n }"
] | [
"0.6742314",
"0.62984425",
"0.6294255",
"0.62523454",
"0.6183244",
"0.61216795",
"0.6119047",
"0.61035424",
"0.6077037",
"0.6033257",
"0.60319674",
"0.60315484",
"0.60236585",
"0.601354",
"0.6013155",
"0.60091406",
"0.5991114",
"0.59878063",
"0.59449565",
"0.5923025",
"0.5911739",
"0.58705336",
"0.5869232",
"0.5855112",
"0.5852727",
"0.5833419",
"0.58271873",
"0.57871616",
"0.5785707",
"0.5770353",
"0.5754846",
"0.57471323",
"0.57429826",
"0.5735225",
"0.57348377",
"0.57271564",
"0.5721468",
"0.57185733",
"0.57110244",
"0.57110065",
"0.57097566",
"0.5706118",
"0.5701061",
"0.56872696",
"0.5644241",
"0.564192",
"0.5636699",
"0.5629286",
"0.56292266",
"0.5627464",
"0.56248915",
"0.5613387",
"0.5604324",
"0.55942464",
"0.5587968",
"0.5576533",
"0.5565371",
"0.5563431",
"0.5546402",
"0.5545741",
"0.5533803",
"0.55283034",
"0.5508633",
"0.5508633",
"0.5508633",
"0.5508633",
"0.5508633",
"0.5508633",
"0.5499502",
"0.5483596",
"0.5481895",
"0.5426975",
"0.54261744",
"0.5423652",
"0.54116327",
"0.5407949",
"0.5404011",
"0.5399802",
"0.538775",
"0.53858376",
"0.53764397",
"0.5375412",
"0.5362295",
"0.5354423",
"0.53516006",
"0.53516006",
"0.53516006",
"0.53516006",
"0.53516006",
"0.53516006",
"0.53516006",
"0.53516006",
"0.53516006",
"0.5345371",
"0.5341176",
"0.5336596",
"0.5322265",
"0.53200537",
"0.53191066",
"0.53003347"
] | 0.69493216 | 0 |
Helper binding method for function: showInternalValueGraph. | public static final SourceModel.Expr showInternalValueGraph(SourceModel.Expr calValue) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showInternalValueGraph), calValue});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void show() {\n super.show(color, value.toString());\n }",
"public static final SourceModel.Expr showInternalValue(SourceModel.Expr calValue) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showInternalValue), calValue});\n\t\t}",
"@Override public String toString() {\n return \"\" + \"Value=\" + Value; // NOI18N\n }",
"@Override\n public String toString() {\n return \"V\"+this.VS_ID+\"\\tNodes: \"+getNodes()[0]+\" & \"+getNodes()[1]+\"\\t\"+\"DC\\t\"+getValue()+\" V\";\n }",
"@Override\n\tpublic void display() {\n\t\tSystem.out.println(valueType+\": \"+value);\n\t}",
"public abstract String rawGraphToString();",
"@Override\n public String toString()\n {\n return \"xValue: \" + xValue;\n }",
"@Override\n public String toString() {\n return String.valueOf(value());\n }",
"@Override\n public String toString() {\n return \"\" + this.value;\n }",
"public void printDGraph(){\n System.out.println(this.toString());\n }",
"protected String toStringInternal() {\n return \"{\"\n + \"name='\" + name + '\\''\n + \", valueClassName='\" + valueClassName + '\\''\n + \", isInterface='\" + isInterface + '\\''\n + \", description='\" + description() + '\\''\n + \", implementingInterface='\" + implementingInterface + '\\''\n + \", listFieldDefinitions=\" + listSchemaFieldDefinitions + '}';\n }",
"protected void updateDisplay() {\r\n setValue(Integer.toString(value.getValue()));\r\n }",
"public String toString() {\r\n String modelString =\r\n \"value=\"\r\n + getValue()\r\n + \", \"\r\n + \"extent=\"\r\n + getExtent()\r\n + \", \"\r\n + \"min=\"\r\n + getMinimum()\r\n + \", \"\r\n + \"max=\"\r\n + getMaximum()\r\n + \", \"\r\n + \"adj=\"\r\n + getValueIsAdjusting();\r\n\r\n return getClass().getName() + \"[\" + modelString + \"]\";\r\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn val.toString();\r\n\t}",
"@Override\n public String toString() {\n return getClass().getSimpleName() + \"[\" + value + \"]\";\n }",
"@Override\n public final String toString() {\n return this.value;\n }",
"public void displayGraph() {\r\n\t\tgraph.display();\r\n\t}",
"@Override\n public String toString(){\n return this.getValue();\n }",
"@Override\n public String toString() {\n return value();\n }",
"@Override\n public String toGraphProperty(Float value) {\n return value.toString();\n }",
"public String toString()\r\n\t{\r\n\t\treturn \" \" + this.value;\r\n\t}",
"public void displayStateValues()\n\t{\n\t\tfor (State s : stateSpace)\n\t\t{\n\t\t\tSystem.out.println(s.state + \"\\t\" + this.value.get(s));\n\t\t}\n\t}",
"public void plot() {\n // TODO: Implement this method\n System.out.printf(\"%10s : [\",this.label);\n for (int i=1;i<=this.value;i++) {\n System.out.print(\"#\");\n }\n System.out.printf(\"] (%d)\\n\",this.value);\n }",
"@Override\n\tpublic String toString() {\n\t\treturn value;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn getValue() != null ? getValue().toString() : \"null\";\n\t}",
"private static void showValues(Derived derived) {\n\t\tSystem.out.println(\"\\n\\tX = \" + derived.getX()\n\t\t+ \";\\tY = \" + derived.getY() + \";\\tZ = \"\n\t\t+ derived.getZ() + \";\\tThe Largest Value Is : \"\n\t\t+ derived.getLargestValue());\n\t}",
"@Override\n public String toString(){\n return String.valueOf(value);\n }",
"@Override\n public String toString() {\n return (this.originalValue == null ? this.getValue() : this.originalValue) + (this.nodeType.getName() == null\n ? \"\" : (\":\" + this.nodeType.getName()));\n }",
"String displayValue();",
"public String shortRepr() {\n\t\treturn \"Value of some kind.\";\n\t}",
"public boolean isShowGraph() {\n return showGraph;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn String.format(\"%s:%s\", type, value);\n\t}",
"@Override\n public void showValueDestinationSelection() {\n calledMethods.add(\"showValueDestinationSelection\");\n }",
"public String toString() {\n\t\treturn (getValue().toString());\r\n\t}",
"public String toString()\n {\n return \"Label: \" + label + \", Value: \" + value + \", List: \"+linkString()\n + \", Edges: \" + edgeString() + \", Visited: \" + visited + \", Previous: \"\n + previous.getLabel() + \", Distance From Source: \" + distanceFromSource;\n }",
"public VBox getGraph(){\n\t\treturn graph.getGraph();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn rawValue;\n\t}",
"@Override\n public Pane visualization() {\n //TODO: this will be replaced with the correct addition visualizer\n HBox layout = new HBox();\n layout.setSpacing(0);\n layout.setAlignment(Pos.TOP_LEFT);\n Visualizer vis = new AdditionVisualizer();\n layout.getChildren().addAll(left.visualization(), vis.drawString(this.getValue()), right.visualization());\n return layout;\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn value + \"\";\r\n\t}",
"public String toString() {\n return value;\r\n }",
"@Override\n public String toString() {\n return new GsonBuilder().serializeSpecialFloatingPointValues().create().toJson(this);\n }",
"@Override\r\n public Collection<node_data> getV() {\r\n return this.graph.values();\r\n }",
"public String apGraph() {\n if(root != null){\n root.nameAvl();\n return doBigGraph();\n }else{\n return \"\";\n }\n }",
"public abstract String valueAsText();",
"public String toString() {\n return \"[\" + this.getNoLink() + \"|\" + this.getValue() + \"|\" + this.getYesLink() + \"]\";\n }",
"public String toString() {\n return value;\n }",
"private void display(int key, String value)\n {\n System.out.println(\"Value for id \" + key + \": \" + value);\n }",
"@Override\n public String toString() {\n \treturn String.valueOf(val);\n }",
"public String toString() {\n return \"Open: \" + isOpen() + \" Value: \" + getValue();\n }",
"public String toString()\n {\n StringBuffer sb = new StringBuffer(\"DoubleBoundedRangeModel[value=\"); //$NON-NLS-1$\n sb.append(\n Double.valueOf((double) getValue() / (double) multiplier).toString());\n sb.append(\", extent=\"); //$NON-NLS-1$\n sb.append(Double.valueOf(dblExtent).toString());\n sb.append(\", minimum=\"); //$NON-NLS-1$\n sb.append(Double.valueOf(dblMinimum).toString());\n sb.append(\", maximum=\"); //$NON-NLS-1$\n sb.append(Double.valueOf(dblMaximum).toString());\n sb.append(\", precision=\"); //$NON-NLS-1$\n sb.append(Integer.valueOf(precision).toString());\n sb.append(\", multiplier=\"); //$NON-NLS-1$\n sb.append(Integer.valueOf(multiplier).toString());\n sb.append(\", adj=\"); //$NON-NLS-1$\n sb.append(Boolean.valueOf(getValueIsAdjusting()).toString());\n sb.append(\"]\"); //$NON-NLS-1$\n\n return sb.toString();\n }",
"@Override public String toString() {\n return \"\" + \"Behavior=\" + Behavior // NOI18N\n + \", Key=\" + Key // NOI18N\n + \", Val=\" + Val; // NOI18N\n }",
"public void setGraph(){\r\n setDisplay(currentGraph);\r\n }",
"private void printNode() {\n System.out.println(\"value:\" + value + \" next:\" + nextNode);\n }",
"public String toString () {\n StringBuffer s = new StringBuffer();\n for (V v: dag.keySet()) s.append(\"\\n \" + v + \" -> \" + dag.get(v));\n return s.toString(); \n }",
"public String toString(){\n\t\treturn getValue();\n\t}",
"@Override\n public String toString() {\n return value + symbol(this.type);\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn type+\"(\"+id+\",\"+\"(\"+value+\")\"+\")\";\r\n\t}",
"public static String toDisplayValue(Value value, boolean encodeLtGt) {\n\t\tif (value instanceof URI)\n \t\treturn EndpointImpl.api().getRequestMapper().getReconvertableUri((URI) value, encodeLtGt);\n \t\treturn value.stringValue();\n\t}",
"void printGraph();",
"public String toString() {\n\t//if (this.color == IntervalNode.RED)\n\t// return(\"\" + this.low + \"\\t\" + this.high + \"\\tp:\" + p.low +\n\t// \"\\tl:\" + this.left.low + \"\\tr:\" +\n\t// this.right.low + \"\\tmx:\" + this.max + \"\\tmn:\" + this.min);\n\t//return(\"(\" + this.low + \")\" + \"\\t\" + this.high + \"\\tp:\" + p.low +\n\t// \"\\tl:\" + this.left.low + \"\\tr:\" +\n\t// this.right.low + \"\\tm:\" + this.max + \"\\tmn:\" + this.min);\n\treturn(low + \" \" + high + \" \" + proxyObj);\n }",
"@Override\r\n\t\tpublic String toString() {\n\t\t\treturn value+\":\"+k+\":\"+index;\r\n\t\t}",
"public String getDisplayValue()\n {\n return null;\n }",
"@Override\r\n\t\tpublic String toString() {\n\t\t\treturn \" \" + wt + \"- \" + val;\r\n\t\t}",
"public String toString() {\n/* 67 */ return String.valueOf(this.val);\n/* */ }",
"public final String toString ()\r\n {\r\n return _name + \" = \" + _value;\r\n }",
"public String toString()\n {\n return vis.name().toLowerCase() + \" \" + type + \" \" + name;\n }",
"public String toString() {\n\t\tcheckRep();\n\t\treturn (this.getLabel() + \" pointing to \" + this.getChild());\n\t}",
"@Override\n public String toString()\n {\n return getClass().getSimpleName() + \": \"\n + \"bounds=\" + bounds + \", isVisible=\" + visible\n + \", color=\" + color;\n }",
"public void display() {\r\n\t\tArrayList<String> vnames = new ArrayList<>(vces.keySet());\r\n\t\tfor (String vname : vnames) {\r\n\t\t\tString str = vname + \" => \";\r\n\t\t\tVertex vtx = vces.get(vname);\r\n\r\n\t\t\tArrayList<String> nbrnames = new ArrayList<>(vtx.nbrs.keySet());\r\n\t\t\tfor (String nbrname : nbrnames) {\r\n\t\t\t\tstr += nbrname + \"[\" + vtx.nbrs.get(nbrname) + \"], \";\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(str + \".\");\r\n\t\t}\r\n\t}",
"@Override\n public String toString() {\n return new Apfloat(this.value).toString(true);\n }",
"@Override\r\n public String toString() {\r\n return (value == null) ? \"\" : value;\r\n }",
"void showNoneParametersView();",
"@JsonValue\n @Override\n public String toString()\n {\n return value;\n }",
"View getShowReportGraphView();",
"public static void DrawIt (Graph<Integer,String> g) {\n\t\tISOMLayout<Integer,String> layout = new ISOMLayout<Integer,String>(g);\r\n\t\t// The Layout<V, E> is parameterized by the vertex and edge types\r\n\t\tlayout.setSize(new Dimension(650,650)); // sets the initial size of the space\r\n\t\t// The BasicVisualizationServer<V,E> is parameterized by the edge types\r\n\t\tBasicVisualizationServer<Integer,String> vv =\r\n\t\tnew BasicVisualizationServer<Integer,String>(layout);\r\n\t\tvv.setPreferredSize(new Dimension(650,650)); //Sets the viewing area size\r\n\t\tJFrame frame = new JFrame(\"Simple Graph View\");\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().add(vv);\r\n\t\tframe.pack();\r\n\t\tframe.setVisible(true);\r\n\r\n\t}",
"@Override\n public void applyPresentation(@Nullable Icon icon, @NotNull XValuePresentation valuePresentation, boolean hasChildren) {\n if (isObsolete()) return;\n\n setIcon(icon);\n boolean alreadyHasInline = myValuePresentation != null;\n myValuePresentation = valuePresentation;\n myRawValue = XValuePresentationUtil.computeValueText(valuePresentation);\n if (XDebuggerSettingsManager.getInstance().getDataViewSettings().isShowValuesInline() && !alreadyHasInline) {\n updateInlineDebuggerData();\n }\n updateText();\n setLeaf(!hasChildren);\n fireNodeChanged();\n myTree.nodeLoaded(this, myName);\n }",
"abstract String display(T value);",
"@Override\n public String toString(){\n return \"w=\" + value;\n }",
"public String toString(){\n\t\tStringBuffer sb = new StringBuffer();\n\t\tTList<T> root = this.getRoot();\n\t\tif (root == this) \n\t\t\tsb.append(\"*\");\n\t\tif (root.visited())\n\t\t\tsb.append(\"-\");\n\t\tsb.append(root.getValue());\n\t\twhile (root.hasNext()) {\n\t\t\tsb.append(\" -> \");\n\t\t\troot = root.getNext();\n\t\t\tif (root == this) \n\t\t\t\tsb.append(\"*\");\n\t\t\tif (root.visited())\n\t\t\t\tsb.append(\"-\");\n\t\t\tsb.append(root.getValue());\n\t\t}\n\t\treturn sb.toString();\n\t}",
"@Override\n public String toString() {\n return \"GraphModelNode: \" + getText(); //$NON-NLS-1$\n }",
"public String toString()\n\t{\n\t\tString output;\n\t\tif (value == null)\n\t\t\toutput = \"Null\";\n\t\telse\n\t\t\toutput = value.toString() + frequency;\n\t\tif (isLeaf())\n\t\t\treturn output;\n\t\t//don't need to check cases if only right or left is null\n\t\t//don't need to print out frequency\n\t\telse\n\t\t\treturn output + \"(\" + left.toString() + \",\" + right.toString() + \")\";\n\t}",
"@Override\n public String toString() {\n String str = \"graph [\\n\";\n\n Iterator<Node<E>> it = iterator();\n\n //Node display\n while(it.hasNext()){\n Node n = it.next();\n\n str += \"\\n\\tnode [\";\n str += \"\\n\\t\\tid \" + n;\n str += \"\\n\\t]\";\n }\n\n //Edge display\n it = iterator();\n\n while(it.hasNext()){\n Node n = it.next();\n\n Iterator<Node<E>> succsIt = n.succsOf();\n while(succsIt.hasNext()){\n Node succN = succsIt.next();\n\n str += \"\\n\\tedge [\";\n str += \"\\n\\t\\tsource \" + n;\n str += \"\\n\\t\\ttarget \" + succN;\n str += \"\\n\\t\\tlabel \\\"Edge from node \" + n + \" to node \" + succN + \" \\\"\";\n str += \"\\n\\t]\";\n }\n }\n\n str += \"\\n]\";\n\n return str;\n }",
"protected void displayOperatedValue(int value) {\n \tstack.push(value);\n \tcurrent = value;\n \tshow(current);\n \tcurrent = 0;\n }",
"@DISPID(18)\n\t// = 0x12. The runtime will prefer the VTID if present\n\t@VTID(29)\n\t@ReturnValue(type = NativeType.Dispatch)\n\tcom4j.Com4jObject buildSummaryGraph(\n\t\t\t@Optional @DefaultValue(\"\") java.lang.String xAxisField,\n\t\t\t@Optional @DefaultValue(\"\") java.lang.String groupByField,\n\t\t\t@Optional @DefaultValue(\"\") java.lang.String sumOfField,\n\t\t\t@Optional @DefaultValue(\"0\") int maxCols,\n\t\t\t@Optional @MarshalAs(NativeType.VARIANT) java.lang.Object filter,\n\t\t\t@Optional @DefaultValue(\"0\") boolean forceRefresh,\n\t\t\t@Optional @DefaultValue(\"0\") boolean showFullPath);",
"@Override\r\n public boolean isHasDirectValue() {\r\n return this.hasDirectValue;\r\n }",
"String explainValue() {\n ArrayList ts = new ArrayList();\n\n // collect all variables together that contribute to this variable's\n // value\n\n ts.add((variable) this);\n collectAntecedents( ts );\n\n // now, iterate over this set in order from ground up\n\n String result = \"\";\n Iterator i = ts.iterator();\n /*while(i.hasNext()){\n variable v = (variable) i.next();\n System.out.println(\"ts: \" + v.name + v.reason);\n }\n i = ts.iterator();*/\n while (i.hasNext()) {\n variable v = (variable) i.next();\n //System.out.println(\"explainValue: \" + v.name);\n result = v.explainVariable() + result;\n //System.out.println(\"returned explainValue: \" + v.name);\n }\n return result;\n }",
"public void displayMaxValues() {\r\n if (deltaX > deltaXMax) {\r\n deltaXMax = deltaX;\r\n maxX.setText(Float.toString(deltaXMax));\r\n }\r\n if (deltaY > deltaYMax) {\r\n deltaYMax = deltaY;\r\n maxY.setText(Float.toString(deltaYMax));\r\n }\r\n if (deltaZ > deltaZMax) {\r\n deltaZMax = deltaZ;\r\n maxZ.setText(Float.toString(deltaZMax));\r\n }\r\n }",
"public String toString() {\n StringBuffer sb = new StringBuffer(\"LabelValueBean[\");\n sb.append(this.label);\n sb.append(\", \");\n sb.append(this.value);\n sb.append(\"]\");\n return (sb.toString());\n }",
"void printGirth(Girth iGirth)\n {\n System.out.println(iGirth.getElementValue());\n }",
"public String toString() {\r\n\t\tString cad = \"\";\r\n\t\tfor (int i = 0; i < nodes_.size(); i++) {\r\n\t\t\tcad += nodes_.get(i).getVal() + \" - \";\r\n\t\t}\r\n\t\treturn cad;\r\n\t}",
"public String getDisplayValue() {\n return displayValue;\n }",
"@Override\r\n\tpublic void getExternal(){\r\n\t\tnng = new TNZNetworkNodeGraph_IuR();\r\n\t\tnng.setImgName(IMG_FNAME);\r\n\t\tnng.populate();\r\n\t\tnng.display();\r\n\t}",
"@AnyLogicInternalCodegenAPI\n private double __plot_expression1_dataSet_xjal_YValue() {\n return \nS \n;\n }",
"public AXValue getDescription() {\n return description;\n }",
"@AnyLogicInternalCodegenAPI\n private double __plot_expression0_dataSet_xjal_YValue() {\n return \nI \n;\n }",
"public Object getInternalValue()\n {\n return m_internalValue;\n }",
"public void displayMaxValues() {\n if (deltaX > deltaXMax) {\n deltaXMax = deltaX;\n maxX.setText(_DF.format(deltaXMax));\n }\n if (deltaY > deltaYMax) {\n deltaYMax = deltaY;\n maxY.setText(_DF.format(deltaYMax));\n }\n if (deltaZ > deltaZMax) {\n deltaZMax = deltaZ;\n maxZ.setText(_DF.format(deltaZMax));\n }\n\n }",
"public String toString() {\n\t\tString str = \"(\";\n\t\tif (this.title != null)\n\t\t\tstr += this.title;\n\t\telse if (this.varName != null)\n\t\t\tstr += this.varName;\n\t\tif (this.minVal != null)\n\t\t\tstr += \",\" + this.minVal;\n\t\tif (this.curVal != null)\n\t\t\tstr += \",\" + this.curVal;\n\t\tif (this.maxVal != null)\n\t\t\tstr += \",\" + this.maxVal;\n\t\tstr += \")\";\n\t\treturn str;\n\t}",
"public String display()\r\n {\r\n return recDisplay(root);\r\n }",
"protected abstract String display();"
] | [
"0.6067163",
"0.60297614",
"0.5979606",
"0.5952236",
"0.59142995",
"0.56436723",
"0.56240404",
"0.5609546",
"0.56074375",
"0.55749935",
"0.557229",
"0.5560749",
"0.55244553",
"0.551656",
"0.5500548",
"0.5497531",
"0.5479174",
"0.5470157",
"0.5460459",
"0.5445992",
"0.5433351",
"0.5428172",
"0.5415511",
"0.5407472",
"0.5355142",
"0.5341084",
"0.5304899",
"0.5291999",
"0.5259221",
"0.52582157",
"0.5250485",
"0.52464354",
"0.52450025",
"0.5243213",
"0.52409685",
"0.5236554",
"0.5235212",
"0.5226344",
"0.52146417",
"0.5208991",
"0.5206563",
"0.51998466",
"0.5197748",
"0.51913226",
"0.5176069",
"0.5168695",
"0.5167136",
"0.5157421",
"0.51504177",
"0.51303464",
"0.51276326",
"0.5120118",
"0.51161015",
"0.511572",
"0.51067954",
"0.509524",
"0.50893813",
"0.50859463",
"0.50852066",
"0.5080743",
"0.50699407",
"0.5065776",
"0.506098",
"0.50602317",
"0.5054769",
"0.5053632",
"0.50531965",
"0.5052432",
"0.5035367",
"0.50303715",
"0.5025492",
"0.5022497",
"0.5020487",
"0.501551",
"0.5011139",
"0.49977675",
"0.49958518",
"0.4993555",
"0.4974252",
"0.49739185",
"0.49712607",
"0.49664378",
"0.49424663",
"0.49395555",
"0.49367023",
"0.49336085",
"0.49315473",
"0.49302372",
"0.49301797",
"0.49284515",
"0.49265772",
"0.4922764",
"0.49214667",
"0.49128535",
"0.4910202",
"0.4909912",
"0.4899057",
"0.489905",
"0.48892424",
"0.48882687"
] | 0.74092126 | 0 |
handles the case where the JCollection object is null | public static final SourceModel.Expr showJCollection(SourceModel.Expr collection) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showJCollection), collection});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic String getCollection() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic List<Object> getCollection() {\n\t\treturn null;\n\t}",
"public static <T> Collection<T> requireNullOrNonEmpty(Collection<T> col) {\n if (col != null && col.isEmpty()) {\n throw new IllegalArgumentException();\n }\n return col;\n }",
"public static <T> void checkNull(Collection<T> obj){\n if(obj == null || obj.size() == 0){\n throw new IllegalArgumentException(\"Object is null\");\n }\n obj.forEach(AssertUtil::checkNull);\n }",
"public static <T> Collection<T> requireNullOrNonEmpty(Collection<T> col, String message) {\n if (col != null && col.isEmpty()) {\n throw new IllegalArgumentException(message);\n }\n return col;\n }",
"protected Boolean isJavaCollection(final Object dataObject, final String fieldName)\n {\n try\n {\n Field fld = dataObject.getClass().getDeclaredField(fieldName);\n if (fld != null)\n {\n return Collection.class.isAssignableFrom(fld.getType());\n \n }\n log.error(\"Couldn't find field [\"+fieldName+\"] in class [\"+getClass().getSimpleName()+\"]\");\n \n } catch (Exception ex)\n {\n edu.ku.brc.af.core.UsageTracker.incrHandledUsageCount();\n edu.ku.brc.exceptions.ExceptionTracker.getInstance().capture(DataModelObjBase.class, ex);\n ex.printStackTrace();\n }\n return null;\n }",
"private boolean isEmptyCollection(Object value) {\n try {\n return value instanceof Collection && ((Collection<?>) value).isEmpty();\n } catch (Exception e) {\n return true;\n }\n }",
"void setNullArray()\n/* */ {\n/* 1051 */ this.length = -1;\n/* 1052 */ this.elements = null;\n/* 1053 */ this.datums = null;\n/* 1054 */ this.pickled = null;\n/* 1055 */ this.pickledCorrect = false;\n/* */ }",
"private void clearCollection() {\n \n collection_ = getDefaultInstance().getCollection();\n }",
"QueryElement addEmpty(String collectionProperty);",
"public E choose() throws JMLNoSuchElementException {\n if (the_list != null) {\n E entry = the_list.val;\n if (entry == null) {\n //@ assume containsNull;\n return null;\n } else {\n E o = entry ;\n //@ assume o instanceof Object;\n //@ assume \\typeof(o) <: elementType;\n return o;\n }\n } else {\n throw new JMLNoSuchElementException(\"Tried to .choose() \"\n + \"with JMLObjectSet empty\");\n }\n }",
"@Test\n public void testGetPropertyValueSetNullCollection(){\n assertEquals(emptySet(), CollectionsUtil.getPropertyValueSet(null, \"id\", Integer.class));\n }",
"@Override\n\tpublic ProblemCollection<?> getProblemCollection() {\n\t\treturn null;\n\t}",
"private void setCollection(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n collection_ = value;\n }",
"@Override\r\n\tpublic Object toJSonObject() {\n\t\treturn null;\r\n\t}",
"public boolean isEmpty( Collection<?> collection ){\n if( collection == null || collection.isEmpty() ){\n return true;\n }\n return false;\n }",
"@Nullable\n public static <T, C extends Collection<T>> C forceEmptyToNull(@Nullable C potentiallyEmpty) {\n return potentiallyEmpty == null || potentiallyEmpty.isEmpty() ? null : potentiallyEmpty;\n }",
"public static java.util.Collection unmodifiableCollection(java.util.Collection arg0)\n { return null; }",
"QueryElement addOrEmpty(String collectionProperty);",
"public EmptyCollectionException (String collection)\n {\n super (\"The \" + collection + \" is empty.\");\n }",
"public static <T> Collection<T> requireNonEmpty(Collection<T> col) {\n if (col.isEmpty()) {\n throw new IllegalArgumentException();\n }\n return col;\n }",
"public static boolean isNullOrEmpty( final Collection< ? > c ) {\n return c == null || c.isEmpty();\n }",
"public EmptyCollectionException(String collection) {\r\n super(\"The \" + collection + \" is empty.\");\r\n }",
"public static java.util.Collection synchronizedCollection(java.util.Collection arg0)\n { return null; }",
"@Override\n public abstract Object getEmptyValue(DeserializationContext ctxt) throws JsonMappingException;",
"@Override\npublic Boolean isEmpty() {\n\treturn null;\n}",
"@Test\n\tvoid test4AddNullComponentToList() {\n\t\tlistItems.add(comp1);\n\t\tlistItems.add(comp2);\n\t\tvc = new VerticalComponentList(x, y, listItems,0);\n\t\tException e = assertThrows(IllegalArgumentException.class, () -> vc.addComponent(null));\n\t\tassertEquals(\"Null component cannot be added to a container\", e.getMessage());\n\t}",
"@Override\r\n\tpublic List<T> getCollectionData() {\n\t\treturn data == null ? null : data.list;\r\n\t}",
"public boolean isEmpty() {\r\n\t\treturn objectCollection.isEmpty();\r\n\t}",
"public void loadJList()\n {\n if(!namesArray.isEmpty() && !tempArray.isEmpty())\n {\n Vector<String> displayVec = new Vector<>();\n for(int i = 0; i < namesArray.size(); i++)\n {\n displayVec.add(namesArray.get(i) + \" (\" + tempArray.get(i).get(0)\n + \", \" + tempArray.get(i).get(1) + \")\");\n }\n cityJList.setListData(displayVec);\n cityJList.setSelectedIndex(0);\n }\n else\n {\n cityJList.setListData(new Vector<String>());\n }\n }",
"public void setBookCopiesNull()\n {\n bookCopies = new ArrayList<Book>();\n }",
"@Test\n public void supportsNullSelection() throws Exception {\n listView.select(null);\n verify(listener, only()).onItemSelection((Set) argThat(empty()));\n }",
"public T caseInCollectionElementsDeclaration(InCollectionElementsDeclaration object)\n {\n return null;\n }",
"public boolean checkListNull() {\n\t\treturn ((drawerItems == null) ? true : false);\n\t}",
"protected void currentReturnedNull(Controller c) {\n if (c.isDone()) {\n removeCurrentElement();\n } else {\n incrementCurrent();\n }\n }",
"@Test(timeout = 4000)\n public void test04() throws Throwable {\n Object object0 = JSONObject.NULL;\n JSONObject.valueToString(object0);\n JSONArray jSONArray0 = null;\n try {\n jSONArray0 = new JSONArray((Object) \"null\");\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // JSONArray initial value should be a string or collection or array.\n //\n verifyException(\"wheel.json.JSONArray\", e);\n }\n }",
"@Override\n public boolean isEmpty() { return true; }",
"private void readCollectionElement(\n \t final Object optionalOwner,\n \t final Serializable optionalKey,\n \t final CollectionPersister persister,\n \t final CollectionAliases descriptor,\n \t final ResultSet rs,\n \t final SessionImplementor session)\n \tthrows HibernateException, SQLException {\n \n \t\tfinal PersistenceContext persistenceContext = session.getPersistenceContext();\n \n \t\tfinal Serializable collectionRowKey = (Serializable) persister.readKey(\n \t\t\t\trs,\n \t\t\t\tdescriptor.getSuffixedKeyAliases(),\n \t\t\t\tsession\n \t\t\t);\n \n \t\tif ( collectionRowKey != null ) {\n \t\t\t// we found a collection element in the result set\n \n \t\t\tif ( LOG.isDebugEnabled() ) {\n \t\t\t\tLOG.debugf( \"Found row of collection: %s\",\n \t\t\t\t\t\tMessageHelper.collectionInfoString( persister, collectionRowKey, getFactory() ) );\n \t\t\t}\n \n \t\t\tObject owner = optionalOwner;\n \t\t\tif ( owner == null ) {\n \t\t\t\towner = persistenceContext.getCollectionOwner( collectionRowKey, persister );\n \t\t\t\tif ( owner == null ) {\n \t\t\t\t\t//TODO: This is assertion is disabled because there is a bug that means the\n \t\t\t\t\t//\t original owner of a transient, uninitialized collection is not known\n \t\t\t\t\t//\t if the collection is re-referenced by a different object associated\n \t\t\t\t\t//\t with the current Session\n \t\t\t\t\t//throw new AssertionFailure(\"bug loading unowned collection\");\n \t\t\t\t}\n \t\t\t}\n \n \t\t\tPersistentCollection rowCollection = persistenceContext.getLoadContexts()\n \t\t\t\t\t.getCollectionLoadContext( rs )\n \t\t\t\t\t.getLoadingCollection( persister, collectionRowKey );\n \n \t\t\tif ( rowCollection != null ) {\n \t\t\t\trowCollection.readFrom( rs, persister, descriptor, owner );\n \t\t\t}\n \n \t\t}\n \t\telse if ( optionalKey != null ) {\n \t\t\t// we did not find a collection element in the result set, so we\n \t\t\t// ensure that a collection is created with the owner's identifier,\n \t\t\t// since what we have is an empty collection\n \n \t\t\tif ( LOG.isDebugEnabled() ) {\n \t\t\t\tLOG.debugf( \"Result set contains (possibly empty) collection: %s\",\n \t\t\t\t\t\tMessageHelper.collectionInfoString( persister, optionalKey, getFactory() ) );\n \t\t\t}\n \n \t\t\tpersistenceContext.getLoadContexts()\n \t\t\t\t\t.getCollectionLoadContext( rs )\n \t\t\t\t\t.getLoadingCollection( persister, optionalKey ); // handle empty collection\n \n \t\t}\n \n \t\t// else no collection element, but also no owner\n \n \t}",
"@Override\n\tpublic CeStoreJsonObject handleQuestion() {\n\n\t\treturn null;\n\t}",
"private void checkCollection(SnmpCollection collection) {\n if (collection.getSystems() == null)\n collection.setSystems(new Systems());\n if (collection.getGroups() == null)\n collection.setGroups(new Groups());\n }",
"@Override\r\n\tpublic E element() {\n\t\treturn null;\r\n\t}",
"public WECollection()\n {\n }",
"@Override\n public <T> PCollection<T> read(Source<T> source) {\n return null;\n }",
"@Override\n public boolean isEmpty(){\n return itemCount == 0;\n }",
"private void handleEmptyCollections(\n \t final Serializable[] keys,\n \t final Object resultSetId,\n \t final SessionImplementor session) {\n \n \t\tif ( keys != null ) {\n \t\t\t// this is a collection initializer, so we must create a collection\n \t\t\t// for each of the passed-in keys, to account for the possibility\n \t\t\t// that the collection is empty and has no rows in the result set\n \n \t\t\tCollectionPersister[] collectionPersisters = getCollectionPersisters();\n \t\t\tfor ( int j=0; j<collectionPersisters.length; j++ ) {\n \t\t\t\tfor ( int i = 0; i < keys.length; i++ ) {\n \t\t\t\t\t//handle empty collections\n \n \t\t\t\t\tif ( LOG.isDebugEnabled() ) {\n \t\t\t\t\t\tLOG.debugf( \"Result set contains (possibly empty) collection: %s\",\n \t\t\t\t\t\t\t\tMessageHelper.collectionInfoString( collectionPersisters[j], keys[i], getFactory() ) );\n \t\t\t\t\t}\n \n \t\t\t\t\tsession.getPersistenceContext()\n \t\t\t\t\t\t\t.getLoadContexts()\n \t\t\t\t\t\t\t.getCollectionLoadContext( ( ResultSet ) resultSetId )\n \t\t\t\t\t\t\t.getLoadingCollection( collectionPersisters[j], keys[i] );\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \n \t\t// else this is not a collection initializer (and empty collections will\n \t\t// be detected by looking for the owner's identifier in the result set)\n \t}",
"public T caseCollectionLiteralPartsCS(CollectionLiteralPartsCS object) {\r\n return null;\r\n }",
"public static <T> Collection<T> requireNonEmpty(Collection<T> col, String message) {\n if (col.isEmpty()) {\n throw new IllegalArgumentException(message);\n }\n return col;\n }",
"@Test(timeout = 4000)\n public void test044() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n JSONArray jSONArray0 = jSONObject0.optJSONArray(\"[]\");\n assertNull(jSONArray0);\n }",
"public T caseCollectionLiteralPartsOclExpCS(CollectionLiteralPartsOclExpCS object) {\r\n return null;\r\n }",
"@Test\r\n public void test_containNull_True() {\r\n Collection<?> collection = Arrays.asList(new Object[] {1, TestsHelper.EMPTY_STRING, null});\r\n\r\n boolean res = Helper.containNull(collection);\r\n\r\n assertTrue(\"'containNull' should be correct.\", res);\r\n }",
"public Layer_ElementsCollection()\n\t{\n\t\tthis.elements = new ArrayList<GIS_element>();\n\t}",
"private boolean checkEmpty() {\n\t\treturn this.array[0] == null;\n\t}",
"public T caseCollectionLiteralExpCS(CollectionLiteralExpCS object) {\r\n return null;\r\n }",
"private Item checkItemNotNull(Item item) throws NullPointerException {\n if (item == null) {\n throw new NullPointerException(\"The item must not be null\");\n }\n return item;\n }",
"@Override\n public boolean isEmpty() {\n return false;\n }",
"@Override\n\tpublic Object processArrayValue(Object arg0, JsonConfig arg1) {\n\t\treturn null;\n\t}",
"@Override\n public void setNull() {\n\n }",
"@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn data != null && data.list != null && data.list.isEmpty();\r\n\t}",
"@Test\n\tpublic void shouldUseToEmptyStringForConvertNull() throws Exception {\n\t\tUISelectMany parent = mockParent(UISelectMany.class);\n\t\tthis.selectItems.setParent(parent);\n\t\tverify(parent).setConverter(this.converterCaptor.capture());\n\t\tString actual = this.converterCaptor.getValue().getAsString(this.facesContext, parent, null);\n\t\tassertThat(actual, is(\"\"));\n\t}",
"@Test\r\n public void testRootNullMustClearSelection_39966() {\r\n int index = 3;\r\n getSelectionModel().select(index);\r\n getView().setRoot(null);\r\n assertEmptySelection();\r\n }",
"public static <T> boolean m6262a(Collection<T> collection) {\n return collection == null || collection.isEmpty();\n }",
"public static boolean isEmpty(Collection<?> collection) {\n return collection == null || collection.isEmpty();\n }",
"java.lang.String getCollection();",
"@Override\n public Object getEmptyValue(DeserializationContext ctxt) throws JsonMappingException {\n return getNullValue(ctxt);\n }",
"@Override\r\n\tprotected Object getSelectData() {\n\t\treturn null;\r\n\t}",
"@Test\n public void testGetPropertyValueSetEmptyCollection(){\n assertEquals(emptySet(), CollectionsUtil.getPropertyValueSet(new ArrayList<>(), \"id\", Integer.class));\n }",
"public JSONObject validateCollections(Collections collection){\n\n\t\tInvalidValue[] invalidValues = collectionsValidator.getInvalidValues(collection);\n\t\tHashMap<String, String> errs=new HashMap<String, String>();\n\n\t\tfor (InvalidValue value : invalidValues) { \n\t\t\terrs.put(\"Collection \" + value.getPropertyName(), value.getMessage());\t\t\t \n\t\t}\n\t\treturn createJson(errs);\n\n\t}",
"@Override\npublic boolean isEmpty() {\n\treturn false;\n}",
"@Override\n protected void setChildrenEmptyFlags() {\n this.setIsRutaCollectionEmpty();\n }",
"public Object parseJSONVal(Object val) {\n\t\tif(!(val instanceof JSONObject) && !(val instanceof JSONArray))\n\t\t{\n\t\t\tif(JSONObject.NULL.equals(val))\n\t\t\t\tval = null;\n\t\t}\n\t\t\n\t\treturn val;\n\t}",
"public boolean isEmpty() {\n return collection.isEmpty();\n }",
"@Override\r\n\tpublic int getCollectionCount() {\n\t\treturn data != null && data.list != null ? data.list.size() : 0;\r\n\t}",
"public void setNilArrayOfValuationAggregate1()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.msbinfo.expresslync.rct.ArrayOfValuationAggregate1 target = null;\r\n target = (com.msbinfo.expresslync.rct.ArrayOfValuationAggregate1)get_store().find_element_user(ARRAYOFVALUATIONAGGREGATE1$0, 0);\r\n if (target == null)\r\n {\r\n target = (com.msbinfo.expresslync.rct.ArrayOfValuationAggregate1)get_store().add_element_user(ARRAYOFVALUATIONAGGREGATE1$0);\r\n }\r\n target.setNil();\r\n }\r\n }",
"@Override\n\t\t\tpublic boolean isEmpty() {\n\t\t\t\treturn false;\n\t\t\t}",
"public boolean supportsEmptyInList() {\n \t\treturn true;\n \t}",
"@Override\n public Object getSubElement(int index)\n {\n return null;\n }",
"public Collection() {\n this.collection = new ArrayList<>();\n }",
"public void setLBR_Collection_Default_UU (String LBR_Collection_Default_UU);",
"QueryElement addNotEmpty(String collectionProperty);",
"@Override\n public boolean isEmpty()\n {\n return false;\n }",
"@Override\n\tpublic Iterator<V> getValueIterator() {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic List parseArrayJSON(JSONObject jsonObj) throws NetRequestException {\n\t\treturn null;\r\n\t}",
"private static <T> Collection<T> fromNullSafeArray(T[] valor){\r\n\t\tCollection<T> collection = null;\r\n\t\tif (valor != null){\r\n\t\t\tcollection = Arrays.asList(valor);\r\n\t\t}\r\n\t\treturn collection;\r\n\t}",
"@Override\n\tpublic void bibliographyObjectNotFound() {\n\t\t_completionCallback.notifyStageCompletion();\n\t}",
"public ArrayJList(int initialCapacity) {\n if (initialCapacity > 0) {\n this.elementData = new Object[initialCapacity];\n } else {\n throw new IllegalArgumentException(\"Illegal Capacity: \" +\n initialCapacity);\n }\n }",
"@SuppressWarnings(\"unchecked\")\n public C entriesListIsEmpty() \n {\n STEP(\"REST API: Assert that entries list from response is empty\");\n Assert.assertTrue(modelCollection.isEmpty(), \"Entries list from response is not empty.Check the logs for more details!\");\n return (C) modelCollection;\n }",
"@Test\r\n public void test_containNull_False() {\r\n Collection<?> collection = Arrays.asList(new Object[] {1, TestsHelper.EMPTY_STRING});\r\n\r\n boolean res = Helper.containNull(collection);\r\n\r\n assertFalse(\"'containNull' should be correct.\", res);\r\n }",
"public boolean isNilArrayOfValuationAggregate1()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.msbinfo.expresslync.rct.ArrayOfValuationAggregate1 target = null;\r\n target = (com.msbinfo.expresslync.rct.ArrayOfValuationAggregate1)get_store().find_element_user(ARRAYOFVALUATIONAGGREGATE1$0, 0);\r\n if (target == null) return false;\r\n return target.isNil();\r\n }\r\n }",
"public static <T> T getFirstOrNull(final Collection<T> collection) {\n\n if (isEmpty(collection)) {\n return null;\n }\n if (collection instanceof List) {\n return ((List<T>) collection).get(0);\n } else {\n return collection.iterator().next();\n }\n }",
"public MYCollection() throws UnknownHostException, IOException, ClassNotFoundException {\r\n\t\tinitComponents();\r\n\r\n\t\t/*处理页面美化*/\r\n\t\tthis.drawCollection();\r\n\r\n\t\t/*显示所有收藏*/\r\n\t\tthis.showCollection();\r\n\r\n\t\tjScrollPane1\r\n\t\t\t\t.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\r\n\t\tthis.setDefaultCloseOperation(this.DISPOSE_ON_CLOSE);\r\n\t\tthis.setLocationRelativeTo(null);\r\n\t\tthis.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\t\t\r\n\t}",
"private static boolean handleNull(ResultSet rs, \n PreparedStatement ps, \n int index, \n int type)\n throws SQLException \n {\n boolean result = false;\n if (rs.wasNull()) {\n ps.setNull(index, type);\n result = true;\n }\n return result;\n }",
"@Test\n public void testSetPlayers() {\n List<Player> emptyPlayerList = new ArrayList<>();\n mTournament.setPlayerCollection(emptyPlayerList);\n assertTrue(\"Players list must be empty\", mTournament.getPlayerCollection().size() == 0);\n\n mTournament.setPlayerCollection(null);\n assertTrue(\"Players list is not null\", mTournament.getPlayerCollection().size() == 0);\n }",
"public M csolTitleNull(){if(this.get(\"csolTitleNot\")==null)this.put(\"csolTitleNot\", \"\");this.put(\"csolTitle\", null);return this;}",
"public ArrayJList() {\n this(DEFAULT_CAPACITY);\n }",
"public void clear() {collection.clear();}",
"public MultiStringColl() {\n c = null;\n how_many = 0;\n }",
"@Test(timeout = 4000)\n public void test046() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n LinkedList<JSONObject> linkedList0 = new LinkedList<JSONObject>();\n JSONArray jSONArray0 = new JSONArray((Collection) linkedList0);\n JSONArray jSONArray1 = jSONObject0.toJSONArray(jSONArray0);\n assertNull(jSONArray1);\n }",
"public boolean isEmpty()\n {return data == null;}",
"@Test\n public void testNullLimitsBeanItemContainer() {\n Indexed container = ContainerDataSourceTest.createTestBeanItemContainer();\n // Start and end dates to query for\n java.util.Calendar cal = getInstance();\n cal.setTime(getStart());\n Date start = cal.getTime();\n cal.add(MONTH, 1);\n Date end = cal.getTime();\n // Set datasource\n calendar.setContainerDataSource(container);\n // Test null start time\n List<CalendarEvent> events = calendar.getEventProvider().getEvents(null, end);\n Assert.assertEquals(container.size(), events.size());\n // Test null end time\n events = calendar.getEventProvider().getEvents(start, null);\n Assert.assertEquals(container.size(), events.size());\n // Test both null times\n events = calendar.getEventProvider().getEvents(null, null);\n Assert.assertEquals(container.size(), events.size());\n }",
"@Override\r\n\t\t\tpublic Object getValue() {\n\t\t\t\treturn null;\r\n\t\t\t}",
"public JSONArray(Object arrayOrCollection) throws JSONException {\n\t\tthis();\n\t\tif (arrayOrCollection.getClass().isArray()) {//数组\n\t\t\tint length = Array.getLength(arrayOrCollection);\n\t\t\tfor (int i = 0; i < length; i += 1) {\n\t\t\t\tthis.put(JSONUtil.wrap(Array.get(arrayOrCollection, i)));\n\t\t\t}\n\t\t} else if(arrayOrCollection instanceof Iterable<?>){//Iterable\n\t\t\tfor (Object o : (Collection<?>)arrayOrCollection) {\n\t\t\t\tthis.add(o);\n\t\t\t}\n\t\t}else{\n\t\t\tthrow new JSONException(\"JSONArray initial value should be a string or collection or array.\");\n\t\t}\n\t}"
] | [
"0.571623",
"0.567407",
"0.5609185",
"0.54981256",
"0.54686433",
"0.53849757",
"0.5315444",
"0.5275888",
"0.52662164",
"0.5236601",
"0.5208329",
"0.5203731",
"0.51627",
"0.5103663",
"0.50940806",
"0.5092733",
"0.5087688",
"0.50577664",
"0.5007347",
"0.5000303",
"0.49883264",
"0.49805716",
"0.49727285",
"0.49480408",
"0.49336183",
"0.49285796",
"0.49246532",
"0.49159178",
"0.49126932",
"0.48998103",
"0.4896224",
"0.48820168",
"0.4876872",
"0.48694268",
"0.486539",
"0.4846469",
"0.48168087",
"0.48160216",
"0.4811332",
"0.48076242",
"0.48045373",
"0.48039693",
"0.47957453",
"0.4792234",
"0.47887546",
"0.47852665",
"0.47843617",
"0.47690943",
"0.4755966",
"0.47483274",
"0.47387934",
"0.4737765",
"0.47365972",
"0.47256473",
"0.47248518",
"0.4720711",
"0.47153553",
"0.47061235",
"0.47030327",
"0.4685811",
"0.46833184",
"0.46823427",
"0.46807897",
"0.4677887",
"0.46769705",
"0.46756095",
"0.4671294",
"0.46697643",
"0.4666708",
"0.46606004",
"0.46461394",
"0.46386442",
"0.46348011",
"0.46338764",
"0.4633487",
"0.46318683",
"0.46301505",
"0.46287236",
"0.4619887",
"0.4615303",
"0.46141607",
"0.46050715",
"0.45990688",
"0.45977056",
"0.45962137",
"0.45954072",
"0.45920983",
"0.4587418",
"0.45838213",
"0.45808288",
"0.45776254",
"0.45770624",
"0.45760426",
"0.45748612",
"0.4573054",
"0.4570958",
"0.45688462",
"0.45681578",
"0.45650277",
"0.45627788",
"0.4561119"
] | 0.0 | -1 |
handles the case where the JList object is null | public static final SourceModel.Expr showJList(SourceModel.Expr list) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showJList), list});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void loadJList()\n {\n if(!namesArray.isEmpty() && !tempArray.isEmpty())\n {\n Vector<String> displayVec = new Vector<>();\n for(int i = 0; i < namesArray.size(); i++)\n {\n displayVec.add(namesArray.get(i) + \" (\" + tempArray.get(i).get(0)\n + \", \" + tempArray.get(i).get(1) + \")\");\n }\n cityJList.setListData(displayVec);\n cityJList.setSelectedIndex(0);\n }\n else\n {\n cityJList.setListData(new Vector<String>());\n }\n }",
"public void updateJList() {\n list.setModel(toListModel(auctionItemList));\n }",
"public JSmartList()\n {\n }",
"private void initList() {\n tempShopList=wdh.getTempShopList();\n final String[] listIndex=new String[tempShopList.size()];\n \n // System.out.println(tempShopList.size());\n \n for(int i=0;i<tempShopList.size();i++)\n listIndex[i]=String.valueOf(i+1); \n \n// jList1=new JList(listIndex);\n// jScrollPane1=new JScrollPane(jList1);\n// jScrollPane1.setViewportView(jList1);\n \n \n jList1.setModel(new javax.swing.AbstractListModel() {\n String[] strings1 = listIndex;\n public int getSize() { return strings1.length; }\n public Object getElementAt(int i) { return strings1[i]; }\n });\n jScrollPane1.setViewportView(jList1);\n \n }",
"public static void handleEmptyListException() {\n System.out.println(\"\\tYou do not have any pending task, sir.\");\n Duke.jarvis.printDivider();\n }",
"private void fillList(JList aListComponent,ArrayList<String> theList) {\n DefaultListModel itsModel = new DefaultListModel();\n aListComponent.setModel(itsModel);\n for(String anItem : theList){\n itsModel.addElement(anItem);\n }\n aListComponent.setModel(itsModel);\n }",
"protected abstract void setValue(JList<?> list, T value, int index, boolean isSelected, boolean cellHasFocus);",
"public T caseNonEmptyList(NonEmptyList object)\n {\n return null;\n }",
"private JList getJList() {\n\t\tif (macro_list == null) {\n\t\t\tmacro_list = new JList();\n\t\t}\n\t\treturn macro_list;\n\t}",
"private ArrayList<String> createList(JList aListComponent) {\n ArrayList<String> aList = new ArrayList<>();\n if (aListComponent.getModel().getSize() > 0) {\n for (int i=0; i < aListComponent.getModel().getSize();i++) {\n aList.add(aListComponent.getModel().getElementAt(i).toString());\n }\n }\n return aList;\n }",
"public boolean supportsEmptyInList() {\n \t\treturn true;\n \t}",
"@Override\r\n\tpublic List parseArrayJSON(JSONObject jsonObj) throws NetRequestException {\n\t\treturn null;\r\n\t}",
"private void setJList(LinkedTaskList myList) {\n masTasks = new String[myList.size()+5];\n for (int i = 0; i < myList.size(); i++) {\n masTasks[i] = myList.getTask(i).toString2();\n }\n taskList = new JList(masTasks);\n }",
"public void initJListModel() {\n\t\t\n\t\t// make a new list model for type ParsedIncident\n\t\tjListModel = new DefaultListModel<ParsedIncident>();\n\t\t// get the list of parsed incidents from the sightings list model\n\t\tparsedIncidents = sightingsList.getParsedIncidents();\n\t\t\n\t\t// for every incident in the list of parsed incidents\n\t\tfor (ParsedIncident parsedIncident : parsedIncidents) {\n\t\t\t\n\t\t\t// add the incident to the JList model\n\t\t\tjListModel.addElement(parsedIncident);\n\t\t\t\n\t\t}\n\t\t\n\t}",
"@Test\n\tvoid test4AddNullComponentToList() {\n\t\tlistItems.add(comp1);\n\t\tlistItems.add(comp2);\n\t\tvc = new VerticalComponentList(x, y, listItems,0);\n\t\tException e = assertThrows(IllegalArgumentException.class, () -> vc.addComponent(null));\n\t\tassertEquals(\"Null component cannot be added to a container\", e.getMessage());\n\t}",
"public boolean checkListNull() {\n\t\treturn ((drawerItems == null) ? true : false);\n\t}",
"protected static <C> boolean isNull(LIST<C> L) {\n if ( L == null || L.list == null ) {\n return true;\n }\n return false;\n }",
"private void initList() {\n\n }",
"@Override\n public void valueChanged(ListSelectionEvent le) {\n JMusicList list = (JMusicList) le.getSource();\n\n /* Si la lista existe y no ha sido seleccionada aun */\n if (list != null && JSoundsMainWindowViewController.isSelected)\n {\n /* Se obtiene el indice seleccionado. Si es distinto de -1 algo se selecciono */\n int idx = list.getSelectedIndex();\n if (idx != -1)\n {\n /* Si se selecciono la lista de otro album, se borra la seleccion de la lista anterior */\n if (JSoundsMainWindowViewController.jlActualListSongs != null &&\n !JSoundsMainWindowViewController.jlActualListSongs.equals(list))\n JSoundsMainWindowViewController.jlActualListSongs.clearSelection();\n\n /* La lista actual es la seleccionada */\n JSoundsMainWindowViewController.jlActualListSongs = list; \n }\n\n JSoundsMainWindowViewController.isSelected = false;\n }\n else\n {\n if (!JSoundsMainWindowViewController.isSelected)\n JSoundsMainWindowViewController.isSelected = true;\n }\n }",
"@Override\n public void valueChanged(ListSelectionEvent le) {\n JMusicList list = (JMusicList) le.getSource();\n\n /* Si la lista existe y no ha sido seleccionada aun */\n if (list != null && JSoundsMainWindowViewController.isSelected)\n {\n /* Se obtiene el indice seleccionado. Si es distinto de -1 algo se selecciono */\n int idx = list.getSelectedIndex();\n if (idx != -1)\n {\n /* Si se selecciono la lista de otro album, se borra la seleccion de la lista anterior */\n if (JSoundsMainWindowViewController.jlActualListSongs != null &&\n !JSoundsMainWindowViewController.jlActualListSongs.equals(list))\n JSoundsMainWindowViewController.jlActualListSongs.clearSelection();\n\n /* La lista actual es la seleccionada */\n JSoundsMainWindowViewController.jlActualListSongs = list; \n }\n\n JSoundsMainWindowViewController.isSelected = false;\n }\n else\n {\n if (!JSoundsMainWindowViewController.isSelected)\n JSoundsMainWindowViewController.isSelected = true;\n }\n }",
"@Override\n public void valueChanged(ListSelectionEvent le) {\n JMusicList list = (JMusicList) le.getSource();\n\n /* Si la lista existe y no ha sido seleccionada aun */\n if (list != null && JSoundsMainWindowViewController.isSelected)\n {\n /* Se obtiene el indice seleccionado. Si es distinto de -1 algo se selecciono */\n int idx = list.getSelectedIndex();\n if (idx != -1)\n {\n /* Si se selecciono la lista de otro album, se borra la seleccion de la lista anterior */\n if (JSoundsMainWindowViewController.jlActualListSongs != null &&\n !JSoundsMainWindowViewController.jlActualListSongs.equals(list))\n JSoundsMainWindowViewController.jlActualListSongs.clearSelection();\n\n /* La lista actual es la seleccionada */\n JSoundsMainWindowViewController.jlActualListSongs = list; \n }\n\n JSoundsMainWindowViewController.isSelected = false;\n }\n else\n {\n if (!JSoundsMainWindowViewController.isSelected)\n JSoundsMainWindowViewController.isSelected = true;\n }\n }",
"@Override\n public void valueChanged(ListSelectionEvent le) {\n JMusicList list = (JMusicList) le.getSource();\n\n /* Si la lista existe y no ha sido seleccionada aun */\n if (list != null && JSoundsMainWindowViewController.isSelected)\n {\n /* Se obtiene el indice seleccionado. Si es distinto de -1 algo se selecciono */\n int idx = list.getSelectedIndex();\n if (idx != -1)\n {\n /* Si se selecciono la lista de otro album, se borra la seleccion de la lista anterior */\n if (JSoundsMainWindowViewController.jlActualListSongs != null &&\n !JSoundsMainWindowViewController.jlActualListSongs.equals(list))\n JSoundsMainWindowViewController.jlActualListSongs.clearSelection();\n\n /* La lista actual es la seleccionada */\n JSoundsMainWindowViewController.jlActualListSongs = list; \n }\n\n JSoundsMainWindowViewController.isSelected = false;\n }\n else\n {\n if (!JSoundsMainWindowViewController.isSelected)\n JSoundsMainWindowViewController.isSelected = true;\n }\n }",
"@Override\n public void setListData() {}",
"@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">\r\n private void initComponents() {\r\n\r\n jScrollPane1 = new javax.swing.JScrollPane();\r\n jList1 = new ScrollableList();\r\n\r\n setLayout(new java.awt.BorderLayout());\r\n\r\n jScrollPane1.setBackground(new java.awt.Color(37, 37, 37));\r\n jScrollPane1.setBorder(null);\r\n\r\n jList1.setForeground(new java.awt.Color(51, 51, 51));\r\n jList1.setModel(new javax.swing.AbstractListModel() {\r\n String[] strings = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\" };\r\n public int getSize() { return strings.length; }\r\n public Object getElementAt(int i) { return strings[i]; }\r\n });\r\n jList1.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\r\n jList1.setOpaque(false);\r\n jList1.addListSelectionListener(new javax.swing.event.ListSelectionListener() {\r\n public void valueChanged(javax.swing.event.ListSelectionEvent evt) {\r\n jList1ValueChanged(evt);\r\n }\r\n });\r\n jList1.addComponentListener(new java.awt.event.ComponentAdapter() {\r\n public void componentResized(java.awt.event.ComponentEvent evt) {\r\n jList1ComponentResized(evt);\r\n }\r\n });\r\n jScrollPane1.setViewportView(jList1);\r\n\r\n add(jScrollPane1, java.awt.BorderLayout.CENTER);\r\n }",
"@Override\r\n\tpublic synchronized void refresh(TituloDeNoticia[] titulos) {\n\t\tif(titulos != null) {\r\n\t\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tlistModel.clear();\r\n//\t\t\t listField.setModel(listModel);\r\n\t\t\t\t\tlistField.setListData(titulos);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\t \r\n\t\t\t//listField = new JList<TituloDeNoticia>(titulos);\r\n\t\t\tSystem.out.println(listField.getModel().toString());\r\n\t\t}\r\n//\t\tframe.repaint();\r\n\t}",
"private JList getAnalyzaList() {\n\t\tif (analyzaList == null) {\n\t\t\tanalyzaList = new JList();\n\t\t\tanalyzaList.setBounds(new Rectangle(400, 100, 39, 27));\n\t\t}\n\t\treturn analyzaList;\n\t}",
"protected boolean checkEmptyList(){\n boolean emptyArray = true;\n String empty= alertList.get(AppCSTR.FIRST_ELEMENT).get(AppCSTR.NAME);\n if(!empty.equals(\"null\") && !empty.equals(\"\")) {\n emptyArray = false;\n }\n return emptyArray;\n }",
"public void updatelistuser(JList j) {\n try {\n\n DefaultListModel listModel = new <String>DefaultListModel();\n Statement stmt = null;\n\n stmt = cn.createStatement();\n\n ResultSet rs = stmt.executeQuery(\"Select username FROM dba_users \");\n while (rs.next()) {\n listModel.addElement(rs.getString(1));\n }\n j.setModel(listModel);\n\n } catch (SQLException ex) {\n Logger.getLogger(AjoutUtilisateur.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public Component getListCellRendererComponent(JList jlist, \n Object value, \n int cellIndex, \n boolean isSelected, \n boolean cellHasFocus)\n {\n if (value instanceof JPanel)\n {\n Component component = (Component) value;\n component.setForeground (Color.white);\n component.setBackground (isSelected ? UIManager.getColor(\"Table.focusCellForeground\") : Color.white);\n return component;\n }\n else\n {\n // TODO - I get one String here when the JList is first rendered; proper way to deal with this?\n //System.out.println(\"Got something besides a JPanel: \" + value.getClass().getCanonicalName());\n return new JLabel(\"???\");\n }\n }",
"@Override\n\tprotected void validateParameters() throws Exception {\n\t\tthis.dataList = json.getJSONArray(JsonInfoField.DATA_LIST);\n\t}",
"eList()\r\n {\r\n head = null;\r\n keyword = new String();\r\n }",
"@Override\n\tpublic List selectList() {\n\t\treturn null;\n\t}",
"public ArrayJList() {\n this(DEFAULT_CAPACITY);\n }",
"@Override\n public List<Object> list() {\n return null;\n }",
"private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n String userQuery = jTextField1.getText();\n String nameQuery = jTextField2.getText();\n String roleQuery = jComboBox1.getSelectedItem().toString();\n if(roleQuery.equals(\"all\"))\n roleQuery = \"\";\n DefaultListModel s1 = new DefaultListModel();\n s1.removeAllElements();\n lst.clear();\n try\n {\n int countT = 0;\n Class.forName(\"java.sql.DriverManager\");\n Connection con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/DBMS_Project\",\"root\", \"1234\");\n Statement stmt = con.createStatement();\n String q = \"select * from lib_users\";\n if(nameQuery.length() > 0 || userQuery.length() > 0 || roleQuery.length() > 0)\n q += \" where \";\n if(userQuery.length() > 0)\n {\n q += \"userId='\" + userQuery + \"' \";\n countT++;\n }\n if(nameQuery.length() > 0)\n {\n if(countT > 0)\n q += \"AND \";\n q += \"name like '%\" + nameQuery + \"%' \";\n countT++;\n }\n if(roleQuery.length() > 0)\n {\n if(countT > 0)\n q += \"AND \";\n q += \"userType='\" + roleQuery + \"'\";\n }\n q += \";\";\n ResultSet rs = stmt.executeQuery(q);\n int countRS = 0;\n while(rs.next())\n {\n String str= rs.getString(\"userId\");\n lst.put(str, new String[]{\n rs.getString(\"name\"), \n rs.getString(\"dob\"),\n rs.getString(\"address\"), \n rs.getString(\"userType\")\n });\n countRS++;\n s1.addElement(str);\n }\n if(countRS == 0)\n {\n try\n {\n jList1.setModel(s1);\n }\n catch(Exception e)\n {\n JOptionPane.showMessageDialog(this,e.getMessage());\n }\n JOptionPane.showMessageDialog(null, \"NO RECORDS WERE FOUND\");\n }\n else\n {\n try\n {\n jList1.setModel(s1);\n }\n catch(Exception e)\n {\n JOptionPane.showMessageDialog(this,e.getMessage());\n }\n }\n jTextField1.setText(\"\");\n jTextField2.setText(\"\");\n jLabel9.setText(\"\");\n jLabel10.setText(\"\");\n jLabel11.setText(\"\");\n jLabel12.setText(\"\");\n jLabel13.setText(\"\");\n }\n catch (Exception x)\n {\n JOptionPane.showMessageDialog(this,x.getMessage());\n } \n }",
"public ListFrameRobots(ArrayList<Team> teamRobotInfo)\r\n {\r\n super( \"List Test\" );\r\n setLayout( new FlowLayout() ); // set frame layout\r\n \r\n for(int i = 0; i < 12; i ++)\r\n {\r\n teamNames[i] = teamRobotInfo.get(i).getTeamName();\r\n }\r\n\r\n \r\n \r\n teamNamesJList = new JList(teamNames);\r\n teamNamesJList.setVisibleRowCount(12);\r\n \r\n \r\n \r\n teamNamesJList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n\r\n /*\r\n add( new JScrollPane(teamNamesJList));\r\n\r\n colorJList.addListSelectionListener(\r\n new ListSelectionListener() // anonymous inner class\r\n { \r\n // handle list selection events\r\n public void valueChanged( ListSelectionEvent event )\r\n {\r\n getContentPane().setBackground( \r\n colors[ colorJList.getSelectedIndex() ] );\r\n label.setName(\"Dogs\");\r\n } // end method valueChanged\r\n } // end anonymous inner class\r\n \r\n ); // end call to addListSelectionListener\r\n \r\n \r\n /* \r\n teamNamesJList.addListSelectionListener(\r\n new ListSelectionListener() // anonymous inner class\r\n { \r\n // handle list selection events\r\n public void valueChanged( ListSelectionEvent event )\r\n {\r\n getContentPane().setBackground( \r\n colors[ colorJList.getSelectedIndex() ] );\r\n } // end method valueChanged\r\n } // end anonymous inner class\r\n \r\n );\r\n \r\n */\r\n }",
"private void ucitajPodatke() {\n \n DefaultListModel<Voznja> m = new DefaultListModel<>();\n obrada.getPodaci().forEach(s->m.addElement(s));\n lstPodaci.setModel(m);\n\n }",
"public void EmptyList(){\n BusStopSearcherPresenter.setListview(initList(emptylist));\n }",
"@Override\n\tpublic void valueChanged(ListSelectionEvent e) {\n\t\tJList list = (JList) e.getSource();\n\t\t// System.out.println(list.getSelectedIndex() + \" \" +results.size() );\n\t\tif (results.size() < list.getSelectedIndex()\n\t\t\t\t|| list.getSelectedIndex() < 0) {\n\t\t\tupdateLabel(results.toArray(new String[0])[0]);\n\t\t} else\n\t\t\tupdateLabel(results.toArray(new String[0])[list.getSelectedIndex()]);\n\t}",
"private JList getJListAnimals() {\r\n if (jListAnimals == null) {\r\n jListAnimalsModel = new DefaultListModel();\r\n jListAnimals = new JList();\r\n jListAnimals.setVisibleRowCount(15);\r\n jListAnimals.setSize(new Dimension(140, 550));\r\n jListAnimals.setModel(jListAnimalsModel);\r\n jListAnimals.setVisibleRowCount(15);\r\n jListAnimals.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);\r\n jListAnimals.addListSelectionListener(new ListSelectionListener() {\r\n @Override\r\n public void valueChanged(ListSelectionEvent e) {\r\n if (jListAnimals.getSelectedIndex() == -1) {\r\n jbProcess.setEnabled(false);\r\n }\r\n else {\r\n jbProcess.setEnabled(true);\r\n }\r\n }\r\n });\r\n\r\n this.loadAnimals();\r\n }\r\n return jListAnimals;\r\n }",
"private void initialize() {\n\t\tfrmEjemploUsoListas = new JFrame();\n\t\tfrmEjemploUsoListas.setTitle(\"Ejemplo uso listas\");\n\t\tfrmEjemploUsoListas.setBounds(100, 100, 447, 260);\n\t\tfrmEjemploUsoListas.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfrmEjemploUsoListas.getContentPane().setLayout(null);\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tscrollPane.setBounds(12, 42, 138, 130);\n\t\tfrmEjemploUsoListas.getContentPane().add(scrollPane);\n\t\tJList list = new JList();\n\t\tscrollPane.setViewportView(list);\n\t\t\n\t\tJLabel lblAficiones = new JLabel(\"Aficiones\");\n\t\tlblAficiones.setBounds(12, 13, 138, 16);\n\t\tfrmEjemploUsoListas.getContentPane().add(lblAficiones);\n\t\t\n\t\tJTextPane textPaneAficiones = new JTextPane();\n\t\ttextPaneAficiones.setFont(new Font(\"Consolas\", Font.BOLD, 14));\n\t\ttextPaneAficiones.setBackground(SystemColor.menu);\n\t\ttextPaneAficiones.setEditable(false);\n\t\ttextPaneAficiones.setBounds(162, 62, 255, 113);\n\t\tfrmEjemploUsoListas.getContentPane().add(textPaneAficiones);\n\t\t\n\t\tlist.addListSelectionListener(new ListSelectionListener() {\n\t\t\tpublic void valueChanged(ListSelectionEvent e) {\n\t\t\t\tList values = list.getSelectedValuesList();\n\t\t\t\tString str = \"Elementos seleccionados: \" + values.size() + \". \";\n\t\t\t\tfor (int i = 0; i < values.size(); i++) {\n\t\t\t\t\tstr += values.get(i).toString();\n\t\t\t\t\tif (i != values.size()-1) str += \", \";\n\t\t\t\t\telse str += \".\";\n\t\t\t\t}\n\t\t\t\ttextPaneAficiones.setText(str);\n\t\t\t}\n\t\t});\n\t\tlist.setModel(new AbstractListModel() {\n\t\t\tString[] values = new String[] {\"Cine\", \"Series\", \"Videojuegos\", \"Cosplay\", \"Deportes\", \"M\\u00FAsica\", \"Viajes\", \"Cocina\"};\n\t\t\tpublic int getSize() {\n\t\t\t\treturn values.length;\n\t\t\t}\n\t\t\tpublic Object getElementAt(int index) {\n\t\t\t\treturn values[index];\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t}",
"private JList getJListTables() {\r\n\t\tif (jListTables == null) {\r\n\t\t\tjListTables = new JList();\r\n\t\t\tjListTables.setFont(new Font(\"Courier New\", Font.BOLD, 13));\r\n\t\t\tjListTables.addListSelectionListener(new ListSelectionListener(){\r\n\t\t\t\tpublic void valueChanged(ListSelectionEvent e) {\r\n\t\t\t\t\tDataIntoGui.this.setCursor(new Cursor(Cursor.WAIT_CURSOR));\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tString table = (String)jListTables.getSelectedValue();\r\n\t\t\t\t\t\tMySQLManager sqlmgr = \r\n\t\t\t\t\t\t\tnew MySQLManager(ConnFactory.getConnection());\r\n\t\t\t\t\t\tList<String> fields = sqlmgr.getTableFields(table);\r\n\t\t\t\t\t\tdbTableModel.removeAllData();\r\n\t\t\t\t\t\tfor (int i = 0; i < fields.size(); i++) {\r\n\t\t\t\t\t\t\tString [] row = {fields.get(i),\"0\"};\r\n\t\t\t\t\t\t\tdbTableModel.addData(row);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t} catch (Exception e2) {\r\n\t\t\t\t\t\te2.printStackTrace();\r\n\t\t\t\t\t\tDialogUtil.showError(DataIntoGui.this, \"连接数据库失败!\");\r\n\t\t\t\t\t} finally{\r\n\t\t\t\t\t\tDataIntoGui.this.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));\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\treturn jListTables;\r\n\t}",
"@Override\r\n\tpublic void excecute() {\n\t\tdata = stack.pop();\r\n\t\tJList1.setListData(stack.getStackVector()); // refresh the JList\r\n\t}",
"public JScrollPane vytvorList() {\n listModel = new DefaultListModel();\n //listModel.addElement(\"Hra: 0 DUMMY\");\n\n listHer = new JList(listModel);\n listHer.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n listHer.setSelectedIndex(0);\n listHer.addListSelectionListener(this);\n listHer.setVisibleRowCount(7);\n listHer.setVisible(true);\n\n JScrollPane listScrollPane = new JScrollPane(listHer);\n listScrollPane.setPreferredSize(new Dimension(250, 300));\n listScrollPane.setVisible(true);\n listScrollPane.setName(\"hry\");\n\n return listScrollPane;\n }",
"public void testCopyList_copyNullList()\n\t{\n\t\t// Arrange\n\t\t// let's add a new list, category, and a few items to the new list\n\t\tUri listUri = helper.insertNewList(\"testlist\");\n\t\tint listId = Integer.parseInt(listUri.getPathSegments().get(1));\n\t\tassertEquals(2, listId);\n\n\t\t// Act\n\t\tservice.copyList(-13, \"testList2\");\n\t\tActivitiesDataSource allLists = service.getActivitiesWithChildren(new Long[]\n\t\t{}, true);\n\t\tActivityBean newList = allLists.getActivity(\"testList2\");\n\n\t\t// Assert\n\t\tassertNull(newList);\n\t}",
"private JList getLogList() {\n\t\tif (logList == null) {\n\t\t\tlogList = new JList();\n\t\t\tlogList.setBounds(new Rectangle(124, 313, 300, 100));\n\t\t}\n\t\treturn logList;\n\t}",
"public JList obtenirList() {\r\n\t\treturn list;\r\n\t}",
"DefaultListModel<E> getListModel();",
"private void updateEmptyLists() {\n \n for(int i = 0; i < this.allLists.size(); i++) {\n if(this.allLists.get(i).size() == 0) {\n for(int c = 0; c < this.dataTable.getRowCount(); c++) {\n this.allLists.get(i).add(\"\");\n }\n }\n }\n }",
"@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn data != null && data.list != null && data.list.isEmpty();\r\n\t}",
"public void styleZoneAffichageJList(Vector contenu) {\r\n\r\n\t\t// Verifier l'existence d'une texteArea\r\n\t\t// ou d'une JList\r\n\t\t//\r\n\t\tif (zoneAffichage != null)\r\n\t\t\tgetContentPane().remove(zoneAffichage);\r\n\t\tif (list != null)\r\n\t\t\tgetContentPane().remove(list);\r\n\r\n\t\t// Creer la nouvelle JList\r\n\t\t// avec le contenu\r\n\t\t//\r\n\t\tlist = new JList();\r\n\t\tlist.setListData(contenu);\r\n\r\n\t\t// Ajouter la nouvelle liste\r\n\t\t// au frame support\r\n\t\t//\r\n\t\tgetContentPane().add(list);\r\n\t\tgetContentPane().setVisible(false);\r\n\t\tgetContentPane().setVisible(true);\r\n\t}",
"private void jList1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jList1MouseClicked\n Componente aux = this.d.getComponenteNome(this.jList1.getSelectedValue());\n if(aux!=null) {\n this.jLabel8.setText(aux.getDescricao());\n if (evt.getClickCount()== 2 && this.model2.getSize()<=5){\n if(!this.tipos.contains(aux.getTipo())) {\n this.auxC.addComponente(aux.getID(),aux.getPreco());\n dispose();\n execCriarConfGUI();\n }\n else {\n Object[] options = {\"SIM\",\"NÃO\"};\n int result = JOptionPane.showOptionDialog(null, \"Já existe um Componente do tipo \"+aux.getTipo()+\".\\nDeseja troca-lo?\"\n ,\"TIPOS IGUAIS\",JOptionPane.YES_NO_OPTION,JOptionPane.WARNING_MESSAGE,null,options,null );\n if (result == JOptionPane.YES_OPTION) {\n this.auxC = this.d.remComp(this.auxC,aux.getTipo());\n List<String> add = new ArrayList<>();\n add.add(aux.getID());\n this.auxC = this.d.addComponente(this.auxC,add);\n dispose();\n execCriarConfGUI();\n }\n }\n \n }\n }\n }",
"private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed\n // TODO add your handling code here:\n int index = jList1.getSelectedIndex();\n if (index != -1){\n String conteudo = jList1.getSelectedValue().toString();\n String[] parts = conteudo.split(\" | \", 2);\n String novaCategoria = jComboBox1.getSelectedItem().toString();\n this.facade.mudarCategoriaNova(Integer.parseInt(parts[0]), novaCategoria);\n List<String> conteudos = this.facade.listaConteudo();\n DefaultListModel<String> model = new DefaultListModel<>();\n jList1.setModel(model);\n for (String s : conteudos){\n model.addElement(s);\n }\n }\n }",
"private JScrollPane getPGrupos() {\r\n listaGrupos = new DefaultListModel();\r\n lGrupos = new JList(listaGrupos);\r\n lGrupos.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n lGrupos.addListSelectionListener(new javax.swing.event.ListSelectionListener() {\r\n public void valueChanged(javax.swing.event.ListSelectionEvent e) {\r\n if (lGrupos.getSelectedIndex()!=-1) {\r\n cargarGrupo();\r\n lInfo.setText(\"\");\r\n\r\n }\r\n }\r\n });\r\n if (pGrupos == null) {\r\n pGrupos = new JScrollPane(lGrupos); \r\n pGrupos.setBounds(new Rectangle(260, 40, 100, 120));\r\n cargarListaGrupos();\r\n }\r\n return pGrupos;\r\n }",
"@Override\n public R visit(BlankNodePropertyList n, A argu) {\n R _ret = null;\n n.nodeToken.accept(this, argu);\n n.propertyListNotEmpty.accept(this, argu);\n n.nodeToken1.accept(this, argu);\n return _ret;\n }",
"private Boolean checkForEmptyList() {\n Boolean emptyListAvailable = tin_perLitrePrice.getText().toString().trim().isEmpty() ||\n tin_fuelQuantityLitres.getText().toString().trim().isEmpty() ||\n tin_totalFuelPrice.getText().toString().trim().isEmpty() ||\n tin_currentKm.getText().toString().trim().isEmpty() ||\n tin_startingKm.getText().toString().trim().isEmpty() ||\n tin_distanceCovered.getText().toString().trim().isEmpty() ||\n tv_calculatedAverage_addEdit.getText().toString().trim().isEmpty() ||\n tv_coverableDistance_addEdit.getText().toString().trim().isEmpty() ||\n tv_nextFuelFill_addEdit.getText().toString().trim().isEmpty();\n\n if (emptyListAvailable) {\n validationList(); // set error messages\n }\n Log.d(TAG, \"checkForEmptyList: emptyListAvailable = \" + emptyListAvailable);\n\n\n return emptyListAvailable; //\n }",
"private void initComponents() {\n\n jScrollPane1 = new javax.swing.JScrollPane();\n jList1 = new javax.swing.JList();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jScrollPane2 = new javax.swing.JScrollPane();\n jList2 = new javax.swing.JList();\n jLabel3 = new javax.swing.JLabel();\n jScrollPane3 = new javax.swing.JScrollPane();\n jList3 = new javax.swing.JList();\n jLabel4 = new javax.swing.JLabel();\n jScrollPane4 = new javax.swing.JScrollPane();\n jTextArea1 = new javax.swing.JTextArea();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jLabel7 = new javax.swing.JLabel();\n jTextField2 = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n jLabel8 = new javax.swing.JLabel();\n jTextField3 = new javax.swing.JTextField();\n jScrollPane5 = new javax.swing.JScrollPane();\n jList4 = new javax.swing.JList();\n jLabel9 = new javax.swing.JLabel();\n jScrollPane6 = new javax.swing.JScrollPane();\n jList5 = new javax.swing.JList();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jScrollPane7 = new javax.swing.JScrollPane();\n jList6 = new javax.swing.JList();\n\n jList1.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n jScrollPane1.setViewportView(jList1);\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, \"QueryTopComponent.jLabel1.text\")); // NOI18N\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, \"QueryTopComponent.jLabel2.text\")); // NOI18N\n\n jList2.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n jScrollPane2.setViewportView(jList2);\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel3, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, \"QueryTopComponent.jLabel3.text\")); // NOI18N\n\n jList3.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n jScrollPane3.setViewportView(jList3);\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel4, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, \"QueryTopComponent.jLabel4.text\")); // NOI18N\n\n jTextArea1.setColumns(20);\n jTextArea1.setRows(5);\n jScrollPane4.setViewportView(jTextArea1);\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel5, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, \"QueryTopComponent.jLabel5.text\")); // NOI18N\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel6, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, \"QueryTopComponent.jLabel6.text\")); // NOI18N\n\n jTextField1.setText(org.openide.util.NbBundle.getMessage(QueryTopComponent.class, \"QueryTopComponent.jTextField1.text\")); // NOI18N\n jTextField1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField1ActionPerformed(evt);\n }\n });\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel7, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, \"QueryTopComponent.jLabel7.text\")); // NOI18N\n\n jTextField2.setText(org.openide.util.NbBundle.getMessage(QueryTopComponent.class, \"QueryTopComponent.jTextField2.text\")); // NOI18N\n jTextField2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField2ActionPerformed(evt);\n }\n });\n\n org.openide.awt.Mnemonics.setLocalizedText(jButton1, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, \"QueryTopComponent.jButton1.text\")); // NOI18N\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel8, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, \"QueryTopComponent.jLabel8.text\")); // NOI18N\n\n jTextField3.setText(org.openide.util.NbBundle.getMessage(QueryTopComponent.class, \"QueryTopComponent.jTextField3.text\")); // NOI18N\n\n jList4.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n jScrollPane5.setViewportView(jList4);\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel9, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, \"QueryTopComponent.jLabel9.text\")); // NOI18N\n\n jList5.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n jScrollPane6.setViewportView(jList5);\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel10, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, \"QueryTopComponent.jLabel10.text\")); // NOI18N\n\n org.openide.awt.Mnemonics.setLocalizedText(jLabel11, org.openide.util.NbBundle.getMessage(QueryTopComponent.class, \"QueryTopComponent.jLabel11.text\")); // NOI18N\n\n jList6.setModel(new javax.swing.AbstractListModel() {\n String[] strings = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\" };\n public int getSize() { return strings.length; }\n public Object getElementAt(int i) { return strings[i]; }\n });\n jScrollPane7.setViewportView(jList6);\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 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(46, 46, 46)\n .addComponent(jButton1)\n .addGap(484, 484, 484))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 346, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 326, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel8)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 409, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jLabel7)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, 317, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane7)\n .addComponent(jScrollPane6)\n .addComponent(jScrollPane1)\n .addComponent(jScrollPane5)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel11)\n .addComponent(jLabel10)\n .addComponent(jLabel9)\n .addComponent(jLabel1))\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n .addGroup(layout.createSequentialGroup()\n .addGap(449, 449, 449)\n .addComponent(jLabel6)\n .addGap(461, 461, 461))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane2)\n .addComponent(jScrollPane3)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jLabel2))\n .addGap(0, 0, Short.MAX_VALUE))))\n );\n\n layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jScrollPane4, jTextField1, jTextField2, jTextField3});\n\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(35, 35, 35)\n .addComponent(jLabel6)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel9)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel10)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(97, 97, 97)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(64, 64, 64)\n .addComponent(jButton1))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7))))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel11)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 93, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(80, 80, 80)\n .addComponent(jLabel2)\n .addGap(18, 18, 18)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 103, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(17, 17, 17))\n );\n }",
"@SuppressWarnings(\"deprecation\")\n @Override\n protected Transferable createTransferable(JComponent c) {\n\t// System.out.println(\"createTransferable\");\n\tif (c == jlist) {\n\t // JList list = (JList)c;\n\t indices = jlist.getSelectedIndices();\n\t Object[] values = jlist.getSelectedValues();\n\t return new ObjTransferable(values);\n\t} else {\n\t return null;\n\t}\n }",
"private void setJList(JList list, String strs[]) {\n List<Integer> indexes = new ArrayList<Integer>(); ListModel lm = list.getModel();\n for (int i=0;i<strs.length;i++) { for (int j=0;j<lm.getSize();j++) if (strs[i].equals(\"\" + lm.getElementAt(j))) indexes.add(j); }\n int index_array[] = new int[indexes.size()]; for (int i=0;i<index_array.length;i++) index_array[i] = indexes.get(i);\n list.setSelectedIndices(index_array);\n }",
"private void contactsListEvent(){\n UI.getContacts().addListSelectionListener(new ListSelectionListener() {\r\n @Override\r\n public void valueChanged(ListSelectionEvent e) {\r\n UI.getProperList().clear(); //Clear screen\r\n UI.getContacts().setCellRenderer(clearNotification); //Clear notification\r\n UI.getUserName().setText((String) UI.getContacts().getSelectedValue()); //Set selected username\r\n String currentChat = (String)UI.getContacts().getSelectedValue();\r\n if(chats.containsKey(currentChat)){ //If database exists\r\n for(String s: chats.get(currentChat)){ //Load messages to screen\r\n UI.getProperList().addElement(s);\r\n }\r\n }\r\n }\r\n });\r\n }",
"@Override\n\tpublic List selectList() {\n\t\t\n\t\t\n\t\t\n\t\treturn null;\n\t}",
"private void fillSelectionListFromArrayList(JList aListComponent,ArrayList<String> theList) {\n int[] toBeSelectedIndices = new int[theList.size()];\n int aValueIndex = 0;\n if(theList.size()>0){\n for(String aValue : theList){\n for(int in = 0; in < aListComponent.getModel().getSize();in++){\n String aCorrType = (String)aListComponent.getModel().getElementAt(in);\n if(aValue.equals(aCorrType)){\n toBeSelectedIndices[aValueIndex] = in;\n }\n }\n aValueIndex++;\n }\n aListComponent.setSelectedIndices(toBeSelectedIndices);\n \n }else{\n aListComponent.clearSelection();\n }\n \n }",
"public LinkedJList() {\n this(DEFAULT_CAPACITY);\n }",
"public void setList(DefaultListModel listModel) {\n // setting the model returns an NullPointerException that can be ignored\n try {\n recipeList.setModel(listModel);\n } catch (NullPointerException e) {\n // Do nothing\n }\n recipeList.setSelectedIndex(0);\n showSelectedRecipe();\n }",
"private void btnBuscarMouseClicked(java.awt.event.MouseEvent evt) {\n if(!txtCadena.getText().isEmpty()){\n DefaultListModel mdlList = new DefaultListModel(); \n mdlList=this.BuscarProcesos(txtCadena.getText());\n this.lstBusqueda.setModel(mdlList);\n }\n \n //System.out.println(lst.get(0).toString());\n \n \n }",
"public E choose() throws JMLNoSuchElementException {\n if (the_list != null) {\n E entry = the_list.val;\n if (entry == null) {\n //@ assume containsNull;\n return null;\n } else {\n E o = entry ;\n //@ assume o instanceof Object;\n //@ assume \\typeof(o) <: elementType;\n return o;\n }\n } else {\n throw new JMLNoSuchElementException(\"Tried to .choose() \"\n + \"with JMLObjectSet empty\");\n }\n }",
"private void initList() {\r\n\t\tlist = new JList<>();\r\n\t\tFile rootFile = new File(System.getProperty(\"user.dir\"));\r\n\t\tloadFilesInFolder(rootFile);\r\n\t\tlist.addListSelectionListener(new FileListSelectionListener());\r\n\t}",
"@Override\r\n public Object getItem(int arg0) {\n return null;\r\n }",
"@Override\r\n public Object getItem(int arg0) {\n return null;\r\n }",
"@Override\n public void valueChanged(ListSelectionEvent arg0) {\n\n }",
"@Override\n\t\t\tpublic void valueChanged(ListSelectionEvent e) {\n\t\t\t\tif (e.getValueIsAdjusting()) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(!filmJList.isSelectionEmpty()||filmJList.getMaxSelectionIndex()!=-1)\n\t\t\t\tsetDataPanel(dataJPanel,filmJList.getSelectedIndex());\n\t\t\t}",
"public void refresh(ArrayList pNewList) {\n listLivingBeings.setListData(pNewList.toArray());\n if (!pNewList.isEmpty()) {\n listLivingBeings.setSelectedIndex(0);\n }\n }",
"@Override\n\t\tpublic void initList() {\n\t\t\tadapter = new MsgItemAdapter(context);\n\t\t\tArrayList<MsgBean> datas = getData();\n\t\t\tadapter.setData(datas);\n\t\t\tmListView.setAdapter(adapter);\n\t\t\tmListView.setViewMode(true, true);\n\t\t\tif(!DataValidate.checkDataValid(datas)){\n\t\t\t\tpageView.setDefaultPage().setVisibility(View.VISIBLE);\n\t\t\t}\n\t\t}",
"private void initComponentsMeus(){\n taulaModelProveidor.getSelectionModel().addListSelectionListener(new ListSelectionListener() {\n @Override\n public void valueChanged(ListSelectionEvent e) {\n // Si seleccionem un proveidor posem les seues dades als jtextfields corresponents i els activem \n int i=taulaModelProveidor.getSelectedRow();\n if(i!=-1){\n \n //modNomCom.setText(Inici.llistaProveidors.get(i).get2nomCom());\n modNomCom.setText(taulaModelProveidor.getModel().getValueAt(i, 0).toString());\n modDataAlta.setText(taulaModelProveidor.getModel().getValueAt(i, 1).toString());\n modNomFis.setText(taulaModelProveidor.getModel().getValueAt(i, 2).toString());\n modCifNif.setText(taulaModelProveidor.getModel().getValueAt(i, 3).toString());\n modPais.setText(taulaModelProveidor.getModel().getValueAt(i, 4).toString());\n modPoblacio.setText(taulaModelProveidor.getModel().getValueAt(i, 5).toString());\n modDireccio.setText(taulaModelProveidor.getModel().getValueAt(i, 6).toString());\n modCp.setText((String)taulaModelProveidor.getModel().getValueAt(i, 7).toString());\n modTel.setText((String)taulaModelProveidor.getModel().getValueAt(i, 8).toString());\n modEmail.setText(taulaModelProveidor.getModel().getValueAt(i, 9).toString()); \n modWebsite.setText(taulaModelProveidor.getModel().getValueAt(i, 10).toString()); \n modCc.setText((String)taulaModelProveidor.getModel().getValueAt(i, 11).toString()); \n modDescompte.setText((String)taulaModelProveidor.getModel().getValueAt(i, 12).toString()); \n modNotes.setText(taulaModelProveidor.getModel().getValueAt(i, 13).toString());\n modEntrega.setText(taulaModelProveidor.getModel().getValueAt(i, 14).toString());\n modPorts.setText(taulaModelProveidor.getModel().getValueAt(i, 15).toString());\n modExpo.setText(taulaModelProveidor.getModel().getValueAt(i, 16).toString());\n \n \n modNomCom.setEnabled(true);\n modDataAlta.setEnabled(false);\n modNomFis.setEnabled(true);\n modCifNif.setEnabled(true);\n modPais.setEnabled(true);\n modPoblacio.setEnabled(true);\n modDireccio.setEnabled(true);\n modCp.setEnabled(true);\n modTel.setEnabled(true);\n modEmail.setEnabled(true);\n modWebsite.setEnabled(true);\n modCc.setEnabled(true); \n modDescompte.setEnabled(true); \n modNotes.setEnabled(true);\n modEntrega.setEnabled(true);\n modPorts.setEnabled(true);\n modExpo.setEnabled(true);\n \n \n \n String data = (taulaModelProveidor.getModel().getValueAt(i, 1).toString());\n indexupdate=0;\n for(int x = 0; data != (taulaModelProveidor.getModel().getValueAt(x, 1).toString()); x++){\n indexupdate++;\n }\n }\n //Si no hem seleccionat cap fila resetejem els jtextfields i els desactivem\n else{\n modNomCom.setText(\"\");\n modDataAlta.setText(\"\");\n modNomFis.setText(\"\");\n modCifNif.setText(\"\");\n modPais.setText(\"\");\n modPoblacio.setText(\"\");\n modDireccio.setText(\"\");\n modCp.setText(\"\");\n modTel.setText(\"\");\n modEmail.setText(\"\");\n modWebsite.setText(\"\");\n modCc.setText(\"\"); \n modDescompte.setText(\"\"); \n modNotes.setText(\"\");\n modEntrega.setText(\"\");\n modPorts.setText(\"\");\n modExpo.setText(\"\");\n \n \n modNomCom.setEnabled(false);\n modDataAlta.setEnabled(false);\n modNomFis.setEnabled(false);\n modCifNif.setEnabled(false);\n modPais.setEnabled(false);\n modPoblacio.setEnabled(false);\n modDireccio.setEnabled(false);\n modCp.setEnabled(false);\n modTel.setEnabled(false);\n modEmail.setEnabled(false);\n modWebsite.setEnabled(false);\n modCc.setEnabled(false); \n modDescompte.setEnabled(false); \n modNotes.setEnabled(false);\n modEntrega.setEnabled(false);\n modPorts.setEnabled(false);\n modExpo.setEnabled(false);\n \n \n }\n\n //Sempre que cliquem la taula desactivem el botó d'actualitzar fins que no es canvien els valors dels jtextfields\n btn_actualitzar.setEnabled(false);\n }\n }); \n }",
"public JList getJListCamaras() {\r\n\t\t\r\n\t\tcamaras = xmlParser.getCamaras(fileXmlCamaras);\r\n\t//\tString data[] = new String[camaras.size()];\r\n\t\tIterator iterator = camaras.iterator();\r\n\t\tString cam = null;\r\n\t\tString user = null;\r\n\t\tString domain = null;\r\n\t\tint sipCon = 0;\r\n\t\tDefaultListModel model = new DefaultListModel();\r\n\t\tListItem li = null;\r\n\t\t\r\n\t\twhile(iterator.hasNext()){\r\n\t\t\tcam = (String)iterator.next();\r\n\t\t\tuser = cam.substring(0, cam.indexOf('@'));\r\n\t\t\tdomain = cam.substring(cam.indexOf('@') + 1);\r\n\t\t \r\n\t\t\ttry {\r\n\t\t\t\t sipCon = getSipManager().createMessageSipConexion(user,domain);\r\n\t\t\t} catch (ExcGeneric e) {\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tgetSipManager().sendMessageRequest(sipCon);\r\n\t\t\t\tli = new ListItem(Color.white, cam);\r\n\t\t\t\tli.setIcon(new ImageIcon(getClass().getResource(\"img\" + File.separator + \"connected.gif\")));\r\n \r\n\t\t \t\t\t\r\n\t\t\t} catch (ExcGeneric e) {\r\n\t\t\t\tli = new ListItem(Color.LIGHT_GRAY, cam);\r\n\t\t\t\tli.setIcon(new ImageIcon(getClass().getResource(\"img\" + File.separator + \"delete.gif\")));\r\n\t\t }\r\n\t\t\tmodel.addElement(li);\r\n\t\t}\r\n\r\n\t\t\r\n\t\tif (jListCamaras == null) {\r\n\t\t\tjListCamaras = new JList(model);\r\n\t\t\tjListCamaras.setCellRenderer(new MyCellRenderer());\r\n\t\t\tjListCamaras.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED));\r\n\t\t\tjListCamaras.addMouseListener(this);\r\n\t\t\r\n\t\t}else{\r\n\t\t\tjListCamaras.clearSelection();\r\n\t\t jListCamaras.setModel(model);\r\n\t\t\tjListCamaras.setEnabled(true);\r\n\t\t\tjListCamaras.repaint();\r\n\t\t}\r\n\t\treturn jListCamaras;\r\n\t}",
"private boolean validateList(NodeList list, String error) {\n\t\tif (list == null || list.getLength() == 0) {\n\t\t\tCommonUITool.openErrorBox(error);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"@Override\n public R visit(PropertyListNotEmpty n, A argu) {\n R _ret = null;\n n.verb.accept(this, argu);\n n.objectList.accept(this, argu);\n n.nodeListOptional.accept(this, argu);\n return _ret;\n }",
"@Test\n public void testSetListItems() {\n System.out.println(\"setListItems\");\n List listItems = null;\n DataModel instance = new DataModel();\n instance.setListItems(listItems);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"private void cargarLista(ArrayList<CarritoDTO> arrayList)\n {\n DefaultListModel modelo = new DefaultListModel();\n //Recorrer el contenido del ArrayList\n for(int i=0; i<arrayList.size(); i++) \n {\n CarritoDTO item =(CarritoDTO) arrayList.get(i);\n //Añadir cada elemento del ArrayList en el modelo de la lista\n modelo.add(i, item.toString());\n }\n //Asociar el modelo de lista al JList\n jList1.setModel(modelo);\n }",
"private void initList() {\r\n\t\tthis.panelList = new JPanel();\r\n\t\tthis.panelList.setLayout(new BoxLayout(this.panelList,\r\n\t\t\t\tBoxLayout.PAGE_AXIS));\r\n\r\n\t\tJLabel labelList = new JLabel(\"Weapons list\");\r\n\t\tlabelList.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n\t\tthis.dlm = new DefaultListModel<String>();\r\n\t\tthis.list = new JList<String>(dlm);\r\n\t\tthis.scrollPane = new JScrollPane(this.list,\r\n\t\t\t\tJScrollPane.VERTICAL_SCROLLBAR_ALWAYS,\r\n\t\t\t\tJScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);\r\n\t\tthis.scrollPane.setBounds(new Rectangle(10, 10, 450, 80));\r\n\t\tthis.list.addMouseListener(this.editWeaponControl);\r\n\t\tthis.updateList();\r\n\t\tthis.panelList.add(labelList);\r\n\t\tthis.panelList.add(this.scrollPane);\r\n\t}",
"@Override\n public Component getListCellRendererComponent(JList<?> list, Object value, // value to display\n int index, // cell index\n boolean iss, // is the cell selected\n boolean chf) // the list and the cell have the focus\n {\n /* The DefaultListCellRenderer class will take care of\n * the JLabels text property, it's foreground and background\n * colors, and so on.\n */\n super.getListCellRendererComponent(list, value, index, iss, chf);\n\n /* We additionally set the JLabels icon property here.\n */\n String s = value.toString();\n if (entry.hasField(s)) {\n this.setForeground(Color.gray);\n this.setFont(usedFont);\n this.setIcon(okIcon);\n this.setToolTipText(Localization.lang(\"Filled\"));\n } else {\n this.setIcon(needIcon);\n this.setToolTipText(Localization.lang(\"Field is missing\"));\n }\n if (requiredFields.contains(s)) {\n this.setBackground(requiredColor);\n } else if (optionalFields.contains(s)) {\n this.setBackground(optionalColor);\n }\n return this;\n }",
"@Override\r\n\t\tpublic void valueChanged(ListSelectionEvent e) {\r\n\t\t\t\r\n\t\t}",
"public void valueChanged(ListSelectionEvent event) {\n\tString selectionStr= \"\";\n\n\n\tif (event.getSource() instanceof JList) {\n\t JList selected=(JList)event.getSource();\n\t selectionStr=(String)selected.getSelectedValue();\n\n\t if (selected==declJList) {\n\t\t//get the selected name\n\t\t//declJListSelected=selectionStr; //do nothing for now\n\t\treturn;\n\t }\n\t return;\n\t}\n }",
"public void oppdaterJliste()\n {\n bModel.clear();\n\n Iterator<Boligsoker> iterator = register.getBoligsokere().iterator();\n\n while(iterator.hasNext())\n bModel.addElement(iterator.next());\n }",
"@Override\r\n public Object getItem(int arg0) {\n return null;\r\n }",
"public Jahresrangliste() {\r\n\t\tLaeufe = new ArrayList<Lauf>();\r\n\t\tRennfahrer = new ArrayList<Fahrer>();\r\n\t}",
"@Override\n public Object getItem(int arg0) {\n return null;\n }",
"@Override\n public Object getItem(int arg0) {\n return null;\n }",
"@Override\n public Object getItem(int arg0) {\n return null;\n }",
"@Override\n public boolean isEmpty()\n {\n return list.size()<1;\n }",
"@Override\n \tpublic void valueChanged(ListSelectionEvent e) { \n \t\tListSelectionModel lsm = (ListSelectionModel) e.getSource();\n \n \t\tif (!lsm.isSelectionEmpty()) {\n \t\t\tint selection = table.convertRowIndexToModel(getSelection(lsm));\n \t\t\tnotifySelectionListeners(list.getPackage(selection));\t\n \t\t}\n \t}",
"@Override\n protected void updateItem(ListCountProject list, boolean empty) {\n super.updateItem(list, empty);\n \n if(empty || list == null) {\n\n setText(null);\n setGraphic(null);\n\n } else {\n if (mLLoader == null) {\n mLLoader = new FXMLLoader(getClass().getResource(\"/view/ListCellCountProject.fxml\"));\n mLLoader.setController(this);\n\n try {\n gridPane = mLLoader.load();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }\n \n textCivitas.setText(list.getCivitascol());\n valueCount.setText(list.getValueCount());\n \n }\n setText(null);\n setGraphic(list == null ? null : gridPane);\n \n\n }",
"public CellList() {\n head = null;\n size = 0;\n }",
"public ArrayJList(int initialCapacity) {\n if (initialCapacity > 0) {\n this.elementData = new Object[initialCapacity];\n } else {\n throw new IllegalArgumentException(\"Illegal Capacity: \" +\n initialCapacity);\n }\n }",
"@Override\n\tpublic void valueChanged(ListSelectionEvent e) {\n\t\tint idx = jlst.getSelectedIndex();\n\t\t\n\t\tif(idx != -1)\n\t\t\tjlab.setText(\"Current selection: \" + names[idx]);\n\t\t\n\t\telse \n\t\t\t\n\t\t\tjlab.setText(\"Please choose a name\");\n\t\t\n\t\t\n\t}",
"public static void init(final UsersController uc) {\n\n listModel = new DefaultListModel<>();\n list = new JList<>(listModel); //data has type Object[]\n\n list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n list.setLayoutOrientation(JList.VERTICAL);\n list.setVisibleRowCount(-1);\n\n\n list.addMouseListener(new MouseAdapter() {\n public void mouseClicked(MouseEvent me) {\n if (me.getClickCount() == 1) {\n JList target = (JList)me.getSource();\n int index = target.locationToIndex(me.getPoint());\n if (index >= 0) {\n User clickedUser = (User) target.getModel().getElementAt(index);\n\n uc.setCurrentUser(clickedUser);\n MainController.setMessageController(uc.getCurrentUser().getMessageController());\n\n ListFormatter<User> formatter = new MessageFormatter();\n MessageView.textArea.setText(MainController.getMessageController().format(formatter));\n \n /*\n if(ChatsController.exists(clickedUser)) {\n MainController.setUsersController(uc);\n //MessageStorageEl ms = ChatsController.getMessageStorage(clickedUser);\n //mc.updateMessages(clickedUser, ms.getMessages(), ms.getListeners());\n } else {\n JOptionPane.showMessageDialog(null, \"error, message controller wasn't initiated\");\n }\n */\n\n //JOptionPane.showMessageDialog(null, clickedUser.toString());\n }\n }\n }\n });\n\n userPanel = new JScrollPane(list, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n userPanel.setPreferredSize(new Dimension(250, 500));\n\n\n /*\n ListFormatter formatter = new UserFormatter();\n\n UsersView.textArea = new JTextArea(20, 40);\n UsersView.textArea.setEditable(false);\n\n uc.addChangeListener(event -> {\n UsersView.textArea.setText(uc.format(formatter));\n });\n */\n\n uc.setListModel(listModel);\n uc.addItem(new User(\"127.0.0.1\", \"test user\"));\n\n //userPanel = new JScrollPane(textArea, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n\n //textArea.add(comp)\n //userPanel.setPreferredSize(new Dimension(250, 500));\n }",
"@Override\r\n\tprotected ListBaseAdapter<News> getListAdapter() {\n\t\treturn null;\r\n\t}",
"public void setCurrentListToBeDoneList();",
"public void setList(DOCKSList param) {\r\n localListTracker = param != null;\r\n\r\n this.localList = param;\r\n }",
"@Override\n\tpublic boolean isEmpty()\n\t{\n if (list.isEmpty())\n {\n return true;\n } \n else\n {\n return false;\n }\n\t}",
"@Override\n public Object getItem(int arg0) {\n return null;\n }"
] | [
"0.6213294",
"0.5850278",
"0.5762016",
"0.5743063",
"0.57077",
"0.56260437",
"0.562537",
"0.5619628",
"0.5600247",
"0.55773616",
"0.55384517",
"0.553303",
"0.55328476",
"0.5513107",
"0.5493311",
"0.54917127",
"0.5417067",
"0.5387934",
"0.5367349",
"0.5367349",
"0.5367349",
"0.5367349",
"0.5359401",
"0.5356023",
"0.53415734",
"0.5333055",
"0.5314463",
"0.52894807",
"0.5285601",
"0.5279937",
"0.52722526",
"0.5267301",
"0.5262899",
"0.52548873",
"0.5241488",
"0.5240535",
"0.5234985",
"0.5232976",
"0.5230619",
"0.52289116",
"0.52236503",
"0.52199477",
"0.52065384",
"0.5202209",
"0.51918703",
"0.51868284",
"0.5183136",
"0.5180362",
"0.51634705",
"0.5161625",
"0.51601547",
"0.5158497",
"0.5152581",
"0.514814",
"0.5137439",
"0.51245916",
"0.5119465",
"0.5111949",
"0.51098144",
"0.51090646",
"0.5108508",
"0.5096494",
"0.5089014",
"0.5088223",
"0.50812477",
"0.5063807",
"0.5060821",
"0.5055827",
"0.5055827",
"0.50503516",
"0.5048522",
"0.50468427",
"0.5042728",
"0.50407",
"0.503649",
"0.50363266",
"0.50304097",
"0.50221306",
"0.50196314",
"0.50193805",
"0.50139225",
"0.501074",
"0.5010369",
"0.50061446",
"0.50034803",
"0.4994502",
"0.49923933",
"0.49923933",
"0.49923933",
"0.49908584",
"0.49882874",
"0.49878168",
"0.49785674",
"0.49769333",
"0.4974295",
"0.49737072",
"0.49723682",
"0.49701524",
"0.49676308",
"0.49661446",
"0.49592453"
] | 0.0 | -1 |
handles the case where the JMap object is null | public static final SourceModel.Expr showJMap(SourceModel.Expr map) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showJMap), map});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public MapLocation getMap() {\n return null;\n }",
"@Test\r\n public void testAllowNulls() {\r\n MapJsonRenderer renderer = new MapJsonRenderer(true);\r\n JSONStringer jsonWriter = new JSONStringer();\r\n jsonWriter.addRenderer(renderer);\r\n Map<String, Object> map = new LinkedHashMap<String, Object>();\r\n map.put(\"ff\", null);\r\n jsonWriter.value(map);\r\n\r\n assertEquals(jsonWriter.toString(), \"{\\\"ff\\\":null}\");\r\n }",
"public void testNormalPutNullValues()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkPutNullValues(pmf,\r\n HashMap1.class,\r\n ContainerItem.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }",
"@Override\n public boolean onLocalMapNotFound() {\n // non implementato\n return false;\n }",
"@Override\n\tpublic Object selectOne2(Object map) {\n\t\treturn null;\n\t}",
"@Test(timeout = 4000)\n public void test051() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n jSONObject0.putOpt((String) null, (Object) null);\n Object object0 = JSONObject.NULL;\n assertNotNull(object0);\n }",
"public void setInstanceOfMapForTesting(){\n instanceOfMap = null;\n }",
"@Override\r\n public ParaMap index(ParaMap inMap) throws Exception {\n return null;\r\n }",
"@Test(timeout = 4000)\n public void test015() throws Throwable {\n HashMap<Double, Float> hashMap0 = new HashMap<Double, Float>();\n JSONObject jSONObject0 = new JSONObject((Map) hashMap0);\n try { \n jSONObject0.put((String) null, (Map) hashMap0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Null key.\n //\n verifyException(\"wheel.json.JSONObject\", e);\n }\n }",
"public M csmiPlaceNull(){if(this.get(\"csmiPlaceNot\")==null)this.put(\"csmiPlaceNot\", \"\");this.put(\"csmiPlace\", null);return this;}",
"@Override\r\n\tpublic Map<String, Object> returnData(Map<String, Object> map,Model model, HttpServletRequest request) {\n\t\treturn null;\r\n\t}",
"@Test\n\tpublic void test() throws JsonProcessingException {\n\t\tJSONMap map = new JSONMap(testJSONObject);\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\t//If this call completes without throwing an exception, then our code\n\t\t//has performed as expected.\n\t\tmapper.writeValueAsString(map);\n\t}",
"@Test\n\tvoid testEdgesNull() {\n\t\tmap.put(\"Boston\", null);\n\t\tAssertions.assertNull(map.get(\"Boston\"));\n\n\t}",
"Object get(Object key) throws NullPointerException;",
"@Test(timeout = 4000)\n public void test077() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n JSONObject jSONObject1 = jSONObject0.putOpt(\"\", jSONObject0);\n jSONObject1.getJSONObject(\"\");\n Object object0 = JSONObject.NULL;\n JSONObject jSONObject2 = new JSONObject();\n assertEquals(0, jSONObject2.length());\n }",
"@Override\n\tpublic Object getMapper() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic GenericMapInfo get(PK id) {\n\t\treturn null;\n\t}",
"@Test\n @DisplayName(\"nothing happens when attempting to add a null entry\")\n void nothingHappensWhenAddingANewEntry() {\n assertThat(identityMap.add((JsonObject) null), is(nullValue()));\n }",
"private void setUpMapIfNeeded() {\n if (map == null) {\n map = fragMap.getMap();\n if (map != null) {\n setUpMap();\n }\n }\n }",
"@Override\r\n\tpublic Object getMapper() {\n\t\treturn null;\r\n\t}",
"public Map() {\n\t\t//intially empty\n\t}",
"public T caseMapType(MapType object)\n {\n return null;\n }",
"private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n \tmMap = ((com.google.android.gms.maps.MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();\n \t// Check if we were successful in obtaining the map.\n \tif (mMap != null) {\n \t\tmakeMarkers();\n \t\tloadMarkersFromParse();\n \t}\n }\n \n }",
"@Override\n public boolean isEmpty() {\n return map.isEmpty();\n }",
"@org.junit.Test\n public void mapGet003() {\n final XQuery query = new XQuery(\n \"map:get(map{}, 23)\",\n ctx);\n\n final QT3Result res = result(query);\n result = res;\n test(\n assertEmpty()\n );\n }",
"@Test\n public void fillMapIdAndCoordinateWithAttributeNull() {\n //Given\n \n String pathnameCityPlanXml = \"./ressources/fichiersTestXml/petitPlanMissingAttribute.xml\";\n Reseau resNoTronconValid = parser.parseCityPlan(pathnameCityPlanXml);\n Map map = new Map();\n \n // When\n \n map.fillMapIdAndCoordinate(resNoTronconValid);\n \n // Then\n \n assertNotNull(map);\n assertNull(map.getMapId());\n assertNull(map.getCoordinates());\n \n }",
"@Override\n\tpublic boolean isEmpty() \n\t{\n\t\treturn this.map.isEmpty();\n\t}",
"@Override\n public DataMapMeta getMeta() {\n return null;\n }",
"@Override\r\n\tpublic Object getObject(Object key) {\n\t\treturn null;\r\n\t}",
"private boolean isEmptyMap(Object value) {\n try {\n return value instanceof Map && ((Map<?, ?>) value).isEmpty();\n } catch (Exception e) {\n return true;\n }\n }",
"private void setUpMapIfNeeded() {\n\t\tif (mMap == null) {\n\t\t\t// Try to obtain the map from the SupportMapFragment.\n\t\t\tmMap = ((SupportMapFragment) getSupportFragmentManager()\n\t\t\t\t\t.findFragmentById(R.id.map1)).getMap();\n\t\t\t// Check if we were successful in obtaining the map.\n\t\t\tif (mMap != null) {\n\t\t\t\tsetUpMap();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n protected JsonNode _at(JsonPointer ptr) {\n return null;\n }",
"private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n try {\n setUpMap();\n } catch (JSONException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }",
"private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }",
"public M csmiPersonNull(){if(this.get(\"csmiPersonNot\")==null)this.put(\"csmiPersonNot\", \"\");this.put(\"csmiPerson\", null);return this;}",
"void putAll(HMap m) throws NullPointerException;",
"@Override\n\tpublic JSONObject get(JSONObject obj) {\n\t\treturn null;\n\t}",
"@Test(timeout = 4000)\n public void test368() throws Throwable {\n XmlEntityRef xmlEntityRef0 = new XmlEntityRef((String) null);\n // Undeclared exception!\n try { \n xmlEntityRef0.map((String) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"public static java.util.Map synchronizedMap(java.util.Map arg0)\n { return null; }",
"public boolean isEmpty( Map<?, ?> map ){\n if( map == null || map.isEmpty() ){\n return true;\n }\n return false;\n }",
"@Override\r\n\t\t\tpublic void onMapLoadFinish() {\n\t\t\t}",
"@Test(timeout = 4000)\n public void test032() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n try { \n jSONObject0.put((String) null, false);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Null key.\n //\n verifyException(\"wheel.json.JSONObject\", e);\n }\n }",
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn map.isEmpty();\n\t}",
"public abstract HashMap<Integer, ArrayList<TimeSlot>> onNullValue();",
"private void setUpMapIfNeeded() {\n if (mMap == null) {\r\n // Try to obtain the map from the SupportMapFragment.\r\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\r\n .getMap();\r\n // Check if we were successful in obtaining the map.\r\n if (mMap != null) {\r\n setUpMap();\r\n }\r\n }\r\n }",
"@Test(timeout = 4000)\n public void test021() throws Throwable {\n HashMap<String, Double> hashMap0 = new HashMap<String, Double>();\n JSONObject.getNames((Object) null);\n JSONArray jSONArray0 = new JSONArray();\n JSONObject jSONObject0 = jSONArray0.optJSONObject((byte)106);\n assertNull(jSONObject0);\n }",
"private void setUpMapIfNeeded() {\n\t\tif (mMap == null) {\n\t\t\tlogger.info(\"map is null\");\n\t\t\tlogger.debug(\"maps is null\");\n\t\t\tSystem.out.println(\"map is null\");\n\t\t\t// Try to obtain the map from the SupportMapFragment.\n\t\t\tmMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map)).getMap();\n\t\t\t// Check if we were successful in obtaining the map.\n\t\t\tif (mMap != null) {\n\t\t\t\taddMarker(markerLatLng);\n\t\t\t\t \n\t\t\t}\n\t\t}else\n\t\t{\n\t\t\t\n\t\t\t// Creating an instance of MarkerOptions\n addMarker(markerLatLng);\n \n\t\t\n\t\t}\n\t}",
"@Override\n\tpublic Map<String, Object> doWork() {\n\t\treturn null;\n\t}",
"@org.junit.Test\n public void mapGet906() {\n final XQuery query = new XQuery(\n \"map:get((map{}, map{\\\"a\\\":=\\\"b\\\"}), \\\"a\\\")\",\n ctx);\n\n final QT3Result res = result(query);\n result = res;\n test(\n error(\"XPTY0004\")\n );\n }",
"@org.junit.Test\n public void mapGet015() {\n final XQuery query = new XQuery(\n \"map:get(map{1:=\\\"Sunday\\\",2:=\\\"Monday\\\",3:=\\\"Tuesday\\\",number('NaN'):=\\\"Wednesday\\\",5:=\\\"Thursday\\\",6:=\\\"Friday\\\",7:=\\\"Saturday\\\"}, number('NaN'))\",\n ctx);\n\n final QT3Result res = result(query);\n result = res;\n test(\n assertEmpty()\n );\n }",
"protected void prepareComponentView(final Map<String, Object> map, final Locale locale) throws JSONException {\n }",
"@Test(timeout = 4000)\n public void test039() throws Throwable {\n String string0 = JSONObject.valueToString((Object) null);\n assertEquals(\"null\", string0);\n }",
"private void setUpMapIfNeeded() {\n \tif (mMap == null) {\r\n \t\t//Instanciamos el objeto mMap a partir del MapFragment definido bajo el Id \"map\"\r\n \t\tmMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();\r\n \t\t// Chequeamos si se ha obtenido correctamente una referencia al objeto GoogleMap\r\n \t\tif (mMap != null) {\r\n \t\t\t// El objeto GoogleMap ha sido referenciado correctamente\r\n \t\t\t//ahora podemos manipular sus propiedades\r\n \t\t\t//Seteamos el tipo de mapa\r\n \t\t\tmMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\r\n \t\t\t//Activamos la capa o layer MyLocation\r\n \t\t\tmMap.setMyLocationEnabled(true);\r\n \t\t\t\r\n \t\t\tAgregarPuntos();\r\n \t\t\t\r\n \t\t\t\r\n \t\t}\r\n \t}\r\n }",
"private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMapFragment = ((SupportMapFragment)getSupportFragmentManager().findFragmentById(R.id.fragment_show_place_info_map));\n mMap = mMapFragment.getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }",
"@Test\n public void test1 ()\n {\n MyMap m = new MyMap();\n assertEquals(0, m.size());\n assertNull(m.get(\"a\"));\n }",
"@Test\n public void testLenientDeserializeFromEmptyString() throws Exception {\n\n String key = \"zoneDateTime\";\n ObjectMapper mapper = newMapper();\n ObjectReader objectReader = mapper.readerFor(MAP_TYPE_REF);\n\n String valueFromNullStr = mapper.writeValueAsString(asMap(key, null));\n Map<String, ZonedDateTime> actualMapFromNullStr = objectReader.readValue(valueFromNullStr);\n ZonedDateTime actualDateFromNullStr = actualMapFromNullStr.get(key);\n assertNull(actualDateFromNullStr);\n\n String valueFromEmptyStr = mapper.writeValueAsString(asMap(key, \"\"));\n Map<String, ZonedDateTime> actualMapFromEmptyStr = objectReader.readValue(valueFromEmptyStr);\n ZonedDateTime actualDateFromEmptyStr = actualMapFromEmptyStr.get(key);\n assertEquals(\"empty string failed to deserialize to null with lenient setting\", null, actualDateFromEmptyStr);\n }",
"@org.junit.Test\n public void mapGet901() {\n final XQuery query = new XQuery(\n \"map:contains(map{1:=\\\"Sunday\\\",2:=\\\"Monday\\\",3:=\\\"Tuesday\\\",number('NaN'):=\\\"Wednesday\\\",5:=\\\"Thursday\\\",6:=\\\"Friday\\\",7:=\\\"Saturday\\\"}, (1 to 5)[10])\",\n ctx);\n\n final QT3Result res = result(query);\n result = res;\n test(\n error(\"XPTY0004\")\n );\n }",
"@Override\r\n \tpublic void setMap(Map m) {\n \t\t\r\n \t}",
"static void jmap() {\n\n }",
"private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.mapView2))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap( lat, longi, \"ISS/ NUS\");\n }\n }\n }",
"private void setUpMapIfNeeded() {\n if ( googleMap == null) {\r\n\r\n // Try to obtain the map from the SupportMapFragment.\r\n googleMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.routesMap)).getMap();\r\n // Check if we were successful in obtaining the map.\r\n if (googleMap != null) {\r\n setUpMap();\r\n }\r\n }\r\n }",
"public void getMap1() throws SQLException {\n\t}",
"private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }",
"private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }",
"private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }",
"@Test\n\tvoid testVerticesAndEdgesIntanceVariableNotNull() {\n\t\tAssertions.assertNotNull(map);\n\n\t}",
"public M cssePersonNull(){if(this.get(\"cssePersonNot\")==null)this.put(\"cssePersonNot\", \"\");this.put(\"cssePerson\", null);return this;}",
"public ConcurrentHashMapAllowNull() {\n super();\n }",
"@Test(timeout = 4000)\n public void test21() throws Throwable {\n HashMap<Long, Double> hashMap0 = new HashMap<Long, Double>();\n JSONObject jSONObject0 = new JSONObject((Map) hashMap0);\n JSONObject jSONObject1 = jSONObject0.put(\"\", 0L);\n jSONObject0.put(\"Expected '\", true);\n jSONObject0.optString(\"Z4 \");\n jSONObject0.optLong(\"Z4 \");\n jSONObject0.toString(111);\n Byte byte0 = new Byte((byte) (-109));\n LinkedList<Integer> linkedList0 = new LinkedList<Integer>();\n String string0 = null;\n try { \n jSONObject1.put((String) null, (Collection) linkedList0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Null key.\n //\n verifyException(\"wheel.json.JSONObject\", e);\n }\n }",
"public T caseMapChart(MapChart object)\n {\n return null;\n }",
"public final native void setMap(MapJSO map) /*-{\n\t\tthis.setMap(map);\n\t}-*/;",
"@Override\n\t\t\t\t\tpublic Element handleMap(ElementContainer<?> parent,\n\t\t\t\t\t\t\tFMapType src) {\n\t\t\t\t\t\treturn super.handleMap(parent, src);\n\t\t\t\t\t}",
"@Override\n public Object getValue(String key) {\n return null;\n }",
"@Override\n\tpublic JSONObject getData(JSONObject o) {\n\t\treturn null;\n\n\t}",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n }",
"@Override\n\tprotected JSONArray generateJsonData(Element responseElement,\n\t\t\tMap<String, String> reqMap) throws Exception {\n\t\treturn null;\n\t}",
"public static java.util.Map unmodifiableMap(java.util.Map arg0)\n { return null; }",
"private void setUpMapIfNeeded() {\n // Do a null check to confirm that we have not already instantiated the map.\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }",
"protected final Object get(final String key) {\n try {\n if (!jo.isNull(key)) {\n return jo.get(key);\n }\n } catch (JSONException e) {\n }\n return null;\n }",
"@Test(timeout = 4000)\n public void test055() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n LinkedList<Integer> linkedList0 = new LinkedList<Integer>();\n JSONArray jSONArray0 = new JSONArray();\n try { \n jSONObject0.put((String) null, true);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Null key.\n //\n verifyException(\"wheel.json.JSONObject\", e);\n }\n }",
"public void buildEmptyMap() {\n this.emptyMap = new BufferedImage(this.boulderDashModel.getArea().getDimensionWidth() * zoom, this.boulderDashModel.getArea().getDimensionHeight() * zoom, BufferedImage.TYPE_INT_RGB);\n final Graphics2D graphics = (Graphics2D) this.emptyMap.getGraphics();\n graphics.drawImage(this.boulderDashModel.getArea().getImage(), 0, 0, this.boulderDashModel.getArea().getDimensionWidth() * zoom, this.boulderDashModel.getArea().getDimensionHeight() * zoom, null);\n }",
"@Test\n public void fillMapIdAndCoordinateWithBaliseMissing() {\n //Given\n String pathnameXml = \"./ressources/fichiersTestXml/petitPlanMissingBalise.xml\";\n Reseau resAttributeNull = parser.parseCityPlan(pathnameXml);\n assertNotNull(resAttributeNull);\n assertNull(resAttributeNull.getNoeud());\n Map map = new Map();\n \n // When\n \n map.fillMapIdAndCoordinate(resAttributeNull);\n \n // Then\n \n assertNotNull(map);\n assertNull(map.getMapId());\n assertNull(map.getCoordinates());\n }",
"@Override\r\n\tpublic Object toJSonObject() {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic Map<String, Object> findOne(Long arg0) {\n\t\treturn null;\n\t}",
"@Override\n\tprotected Object handleGetObject(String arg0) {\n\t\treturn null;\n\t}",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n if(null!=sampleJsonModel){\n LatLng sydney = new LatLng(Double.valueOf(sampleJsonModel.getLocation().getLatitude()), Double.valueOf(sampleJsonModel.getLocation().getLongitude()));\n mMap.addMarker(new MarkerOptions().position(sydney).title(sampleJsonModel.getName()));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(Double.valueOf(sampleJsonModel.getLocation().getLatitude()), Double.valueOf(sampleJsonModel.getLocation().getLongitude())), 12.0f));\n }\n\n }",
"@Test(timeout = 4000)\n public void test043() throws Throwable {\n JSONObject jSONObject0 = new JSONObject();\n try { \n jSONObject0.put((String) null, 2424L);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Null key.\n //\n verifyException(\"wheel.json.JSONObject\", e);\n }\n }",
"public final native MapJSO getMap() /*-{\n\t\treturn this.getMap();\n\t}-*/;",
"public T caseMappingContainer(MappingContainer object) {\n\t\treturn null;\n\t}",
"@Override\n public void onRemoteMapNotFound() {\n // non implementato\n }",
"private void setUpMapIfNeeded() {\n // Do a null check to confirm that we have not already instantiated the map.\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n mMap.setOnMarkerDragListener(this);\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n setUpMap();\n }\n }\n }",
"@Override\n\tpublic Map<String, Object> preProccess() {\n\t\treturn null;\n\t}",
"public JSONNode() {\n map = new HashMap<>();\n }",
"@Override\n public abstract Object getEmptyValue(DeserializationContext ctxt) throws JsonMappingException;",
"private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n try {\n\t\t\t\t\tsetUpMap();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n }\n }\n }",
"private static void checkForNullKey(String key) {\n if ( key == null ) {\n throw new NullPointerException();\n }\n }",
"@Test(timeout = 4000)\n public void test052() throws Throwable {\n // Undeclared exception!\n try { \n SQLUtil.substituteMarkers(\"Kp3\\\"j=TorK/,xrf\", (String) null, (Object) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }",
"public JvnObject jvnLookupObject(String jon) throws jvn.JvnException {\n\t\tJvnObject jObject = null;\n\t\ttry{\n\t\t\tjObject = this.jRCoordonator.jvnLookupObject(jon,js);\t\t\t\n\t\t\t//on ajoute l'object au server si different de null\n\t\t\tif(jObject != null){\n\t\t\t\tthis.listJObject.put(jObject.jvnGetObjectId(),jObject);\n\t\t\t}\n\t\t\tSystem.out.println(\": JvnServerImpl -> jvnLookupObject : ok\");\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error jvnLookupObject : \" + e.getMessage());\n\t\t}\n\t\treturn jObject;\n\t}",
"@org.junit.Test\n public void mapGet904() {\n final XQuery query = new XQuery(\n \"map:get((), \\\"a\\\")\",\n ctx);\n\n final QT3Result res = result(query);\n result = res;\n test(\n error(\"XPTY0004\")\n );\n }",
"private void setUpMapIfNeeded() {\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n mMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))\n .getMap();\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n mMap.setOnMapLoadedCallback(new GoogleMap.OnMapLoadedCallback() {\n @Override\n public void onMapLoaded() {\n\n setUpMap();\n\n }\n });\n }\n }\n }",
"public Map<String, Object> dbJ() {\n return null;\n }"
] | [
"0.6358105",
"0.6067002",
"0.589686",
"0.5865279",
"0.57765996",
"0.5743113",
"0.5714423",
"0.5664334",
"0.5634267",
"0.56128067",
"0.55682147",
"0.5544604",
"0.5542794",
"0.5492212",
"0.5492165",
"0.5488887",
"0.54788977",
"0.5478156",
"0.54607344",
"0.5459354",
"0.5442774",
"0.5440679",
"0.5427223",
"0.5409162",
"0.54066056",
"0.54063356",
"0.5405039",
"0.53855485",
"0.537473",
"0.533568",
"0.5328661",
"0.5325109",
"0.5319741",
"0.53154796",
"0.5302937",
"0.5302689",
"0.5284059",
"0.52732277",
"0.5266962",
"0.52662593",
"0.5262292",
"0.526163",
"0.5252265",
"0.5243202",
"0.52408266",
"0.52299017",
"0.52295524",
"0.5226711",
"0.5212127",
"0.520836",
"0.5200685",
"0.5199941",
"0.5185741",
"0.51606816",
"0.5153352",
"0.5151462",
"0.5150941",
"0.51505065",
"0.51449823",
"0.51419073",
"0.51414895",
"0.5141214",
"0.5137435",
"0.5137435",
"0.5137435",
"0.51355714",
"0.51309675",
"0.512858",
"0.51227677",
"0.5118491",
"0.5117601",
"0.51162887",
"0.51134694",
"0.5109301",
"0.5095185",
"0.50947094",
"0.5094087",
"0.50934744",
"0.509221",
"0.5089815",
"0.5086848",
"0.50833523",
"0.5076699",
"0.5075697",
"0.50720257",
"0.5070596",
"0.5068568",
"0.5067783",
"0.50610334",
"0.50598854",
"0.5058374",
"0.50429064",
"0.50418764",
"0.5034523",
"0.5033151",
"0.50237054",
"0.50203496",
"0.5020246",
"0.5014279",
"0.501245",
"0.50092965"
] | 0.0 | -1 |
Used for derived Show instances for foreign types with an object implementation type. note: we want to handle the null object values here without terminating in an error and thus don't implement as java.lang.Object.toString(). | public static final SourceModel.Expr showJObject(SourceModel.Expr obj) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showJObject), obj});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic String toString() {\n\t\treturn \"Object [name = \" + name.get() + \", typ = \" + typ.get() + \"]\";\n\t}",
"@Override\n public String toString() {\n return metaObject.getType().toString();\n }",
"public abstract String getObjectType();",
"public Class getPreferredDisplayClass() {\n\t\treturn Object.class;\n\t}",
"@Override // m.h\n public String a(Object obj) {\n return obj.toString();\n }",
"private ClassInstance checkDerivedShowInstance(TypeConstructor typeCons,\r\n TypeConsApp instanceType,\r\n TypeClass typeClass, SourceRange position) throws UnableToResolveForeignEntityException {\r\n \r\n if (!typeClass.getName().equals(CAL_Debug.TypeClasses.Show)) {\r\n throw new IllegalStateException();\r\n }\r\n \r\n ModuleName currentModuleName = currentModuleTypeInfo.getModuleName();\r\n \r\n \r\n ForeignTypeInfo foreignTypeInfo = typeCons.getForeignTypeInfo(); \r\n \r\n if (foreignTypeInfo != null) {\r\n \r\n // foreign types\r\n \r\n Class<?> foreignType = foreignTypeInfo.getForeignType();\r\n \r\n if (foreignType.isPrimitive()) {\r\n \r\n if (foreignType == boolean.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showForeignBoolean},\r\n InstanceStyle.DERIVING); \r\n \r\n } else if (foreignType == byte.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showByte},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == char.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showForeignChar},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == short.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showShort},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == int.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showInt},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == long.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showLong},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == float.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showFloat},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == double.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showDouble},\r\n InstanceStyle.DERIVING);\r\n \r\n } else {\r\n throw new IllegalStateException(\"A type that claims to be primitive is not one of the known primitive types\");\r\n }\r\n \r\n } else {\r\n // Defer to String.valueOf(Object) for non-primitive foreign values\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showJObject}, \r\n InstanceStyle.DERIVING);\r\n }\r\n \r\n \r\n } else {\r\n \r\n // non-foreign types\r\n \r\n TypeExpr showTypeExpr = TypeExpr.makeFunType(instanceType, compiler.getTypeChecker().getTypeConstants().getStringType());\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeShowInstanceFunction(typeCons), showTypeExpr, position); \r\n \r\n return new ClassInstance(currentModuleName, instanceType, typeClass, null, InstanceStyle.DERIVING);\r\n }\r\n }",
"public String toString(Object o) { return Objects.toString(o,null); }",
"protected abstract String getDefaultDisplayTypeStringRepresentation();",
"abstract String display(T value);",
"@Override\n public Class<Object> getObjectType() {\n return Object.class;\n }",
"@SuppressWarnings(\"unchecked\")\n private String toString(Object obj)\n {\n if (obj instanceof Enum)\n return ((Enum) obj).name();\n return obj.toString();\n\n }",
"public static String toString(Object o,byte type) throws ExecException {\n try {\n switch (type) {\n case INTEGER:\n return ((Integer)o).toString();\n\n case LONG:\n return ((Long)o).toString();\n\n case FLOAT:\n return ((Float)o).toString();\n\n case DOUBLE:\n return ((Double)o).toString();\n\n case DATETIME:\n return ((DateTime)o).toString();\n\n case BYTEARRAY:\n return ((DataByteArray)o).toString();\n\n case CHARARRAY:\n return ((String)o);\n\n case BIGINTEGER:\n return ((BigInteger)o).toString();\n\n case BIGDECIMAL:\n return ((BigDecimal)o).toString();\n\n case NULL:\n return null;\n\n case BOOLEAN:\n return ((Boolean)o).toString();\n\n case BYTE:\n return ((Byte)o).toString();\n\n case MAP:\n case INTERNALMAP:\n case TUPLE:\n case BAG:\n case UNKNOWN:\n default:\n int errCode = 1071;\n String msg = \"Cannot convert a \" + findTypeName(o) +\n \" to a String\";\n throw new ExecException(msg, errCode, PigException.INPUT);\n }\n } catch (ClassCastException cce) {\n throw cce;\n } catch (ExecException ee) {\n throw ee;\n } catch (Exception e) {\n int errCode = 2054;\n String msg = \"Internal error. Could not convert \" + o + \" to String.\";\n throw new ExecException(msg, errCode, PigException.BUG);\n }\n }",
"private static String toString(Object obj) {\n return (obj == null ? null : obj.toString());\n }",
"public String getDisplayType();",
"@Override\n\tpublic String display() {\n\t\treturn \"null\";\n\t}",
"public Value restrictToTypeofObject() {\n checkNotPolymorphicOrUnknown();\n Value r = new Value(this);\n r.flags &= (~PRIMITIVE) | NULL;\n r.num = null;\n r.str = null;\n r.getters = r.setters = null;\n r.excluded_strings = r.included_strings = null;\n r.object_labels = newSet();\n if (object_labels != null)\n for (ObjectLabel objlabel : object_labels)\n if (objlabel.getKind() != Kind.FUNCTION && objlabel.getKind() != Kind.SYMBOL)\n r.object_labels.add(objlabel);\n if (r.object_labels.isEmpty())\n r.object_labels = null;\n return canonicalize(r);\n }",
"public void printType() {\n System.out.println(\"Type: \" + objRef.getClass().getName());\n }",
"public T caseVisualized(Visualized object) {\n\t\treturn null;\n\t}",
"public String calculateBaseTypeToString(Object value) \r\n\t{\r\n\t\tString valueString = \"\";\r\n\t\tif(value instanceof Boolean)\r\n\t\t{\r\n\t\t\tvalueString = value.toString();\r\n\t\t}\r\n\t\tif (value == null) \r\n\t\t{\r\n\t\t\tvalueString = \"\";\r\n\t\t}\r\n\t\tif (value instanceof Integer) \r\n\t\t{\r\n\t\t\tvalueString = ((Integer) value).toString();\r\n\t\t}\r\n\t\tif (value instanceof Long)\r\n\t\t{\r\n\t\t\tvalueString = ((Long) value).toString();\r\n\t\t}\r\n\t\tif (value instanceof Float) \r\n\t\t{\r\n\t\t\tvalueString = ((Float) value).toString();\r\n\t\t}\r\n\t\tif (value instanceof BigDecimal)\r\n\t\t{\r\n\t\t\tvalueString = ((BigDecimal) value).toString();\r\n\t\t}\r\n\t\treturn valueString;\r\n\t}",
"@Override\r\n\tpublic String getAsString(FacesContext context, UIComponent component,\r\n\t\t\tObject object) {\n\t\tloggerService.logPortalInfo(\" start getAsString method of ServiceConverter \");\r\n\t\tif (object instanceof String)\r\n\t\t\treturn null;\r\n\t\tif (object != null) {\r\n\t\t\treturn String.valueOf(((ProductTypeDTO) object).getId());\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t}",
"@Override\n public final String getAsString(FacesContext context, UIComponent component, Object value) {\n if (value == null || value.equals(\"\")) {\n return null;\n } else {\n //Get ID from the Person Object (primitive operation in the subclass)\n Integer id = getIdFromObjectPerson(value);\n //Create an Array for persisting personal Info (FirstName, LastName, E-mail - 3 fields)\n String [] personalInfo = getPersonalInfo(value);\n //Create String from the Person object\n String toString = getNewStringFromPerson(id, personalInfo[0], personalInfo[1], personalInfo[2]);\n \n return toString;\n }\n }",
"@Override\n public String toString() {\n StringBuilder b = new StringBuilder();\n boolean any = false;\n if (isUnknown()) {\n b.append(\"?\");\n any = true;\n } else if (isPolymorphic()) {\n b.append(\"^(\").append(var).append('[');\n if (isMaybeAbsent()) {\n b.append(\"absent\");\n any = true;\n }\n if (isMaybePresent()) {\n if (any)\n b.append('|');\n b.append(\"present\");\n }\n b.append(\"])\");\n any = true;\n } else {\n if (isMaybeUndef()) {\n b.append(\"Undef\");\n any = true;\n }\n if (isMaybeNull()) {\n if (any)\n b.append('|');\n b.append(\"Null\");\n any = true;\n }\n if (isMaybeAnyBool()) {\n if (any)\n b.append('|');\n b.append(\"Bool\");\n any = true;\n } else if (isMaybeTrueButNotFalse()) {\n if (any)\n b.append('|');\n b.append(\"true\");\n any = true;\n } else if (isMaybeFalseButNotTrue()) {\n if (any)\n b.append('|');\n b.append(\"false\");\n any = true;\n }\n if (isMaybeAnyNum()) {\n if (any)\n b.append('|');\n b.append(\"Num\");\n any = true;\n } else {\n if (num == null && isMaybeZero() && !isMaybeNumUIntPos()) {\n if (any)\n b.append('|');\n b.append(\"Zero\");\n any = true;\n } else if (!isMaybeZero() && isMaybeNumUIntPos()) {\n if (any)\n b.append('|');\n b.append(\"UIntPos\");\n any = true;\n } else if (isMaybeNumUInt()) {\n if (any)\n b.append('|');\n b.append(\"UInt\");\n any = true;\n }\n if (isMaybeNumOther()) {\n if (any)\n b.append('|');\n b.append(\"NotUInt\");\n any = true;\n }\n if (isMaybeNaN()) {\n if (any)\n b.append('|');\n b.append(\"NaN\");\n any = true;\n }\n if (isMaybeInf()) {\n if (any)\n b.append('|');\n b.append(\"Inf\");\n any = true;\n }\n if (num != null) {\n if (any)\n b.append('|');\n b.append(num);\n any = true;\n }\n }\n if (excluded_strings != null || included_strings != null) {\n if (any)\n b.append('|');\n b.append('(');\n any = false;\n }\n if (isMaybeAnyStr()) {\n if (any)\n b.append('|');\n b.append(\"Str\");\n any = true;\n } else {\n if (isMaybeStrUInt()) {\n if (any)\n b.append('|');\n b.append(\"UIntStr\");\n any = true;\n }\n if (isMaybeStrOtherNum()) {\n if (any)\n b.append('|');\n b.append(\"NotUIntStr\"); // TODO: change to OtherNumStr?\n any = true;\n }\n if (isMaybeStrIdentifier()) {\n if (any)\n b.append('|');\n b.append(\"IdentStr\");\n any = true;\n }\n if (isMaybeStrOtherIdentifierParts()) {\n if (any)\n b.append('|');\n b.append(\"OtherIdentPartsStr\");\n any = true;\n }\n if (isMaybeStrOther()) {\n if (any)\n b.append('|');\n b.append(\"OtherStr\");\n any = true;\n }\n if (isStrJSON()) {\n if (any)\n b.append(\"|\");\n b.append(\"JSONStr\");\n any = true;\n }\n if (isMaybeStrPrefix()) {\n if (any)\n b.append('|');\n b.append(\"PrefixStr[\").append(Strings.escape(str)).append(']');\n any = true;\n } else if (str != null) {\n if (any)\n b.append('|');\n b.append('\"').append(Strings.escape(str)).append('\"');\n any = true;\n }\n }\n if (excluded_strings != null || included_strings != null) {\n b.append(')');\n if (excluded_strings != null)\n b.append(\"\\\\{\").append(excluded_strings.stream().sorted().map(s -> '\"' + Strings.escape(s) + '\"').collect(java.util.stream.Collectors.joining(\",\"))).append(\"}\");\n if (included_strings != null)\n b.append(\"{\").append(included_strings.stream().sorted().map(s -> '\"' + Strings.escape(s) + '\"').collect(java.util.stream.Collectors.joining(\",\"))).append(\"}\");\n any = true;\n }\n if (object_labels != null) {\n if (any)\n b.append('|');\n b.append(object_labels);\n any = true;\n }\n if (getters != null) {\n if (any)\n b.append('|');\n b.append(\"getter \").append(getters);\n any = true;\n }\n if (setters != null) {\n if (any)\n b.append('|');\n b.append(\"setter \").append(setters);\n any = true;\n }\n if (isMaybeAbsent()) {\n if (any)\n b.append('|');\n b.append(\"absent\");\n any = true;\n }\n if (functionPartitions != null) {\n if (any)\n b.append(',');\n b.append(\"functionPartitions=\").append(functionPartitions);\n any = true;\n }\n if (functionTypeSignatures != null) {\n if (any)\n b.append(',');\n b.append(\"functionTypeSignatures=\").append(functionTypeSignatures);\n // any = true;\n }\n }\n if (!any)\n b.append(\"<no value>\");\n// if (isMaybeModified())\n// b.append(\"%\");\n return b.toString();\n }",
"@Override\n public String visit(InstanceOfExpr n, Object arg) {\n return null;\n }",
"private String literal(Object obj) {\n if (obj == null) {\n return \"NULL\";\n } else if (obj instanceof String) {\n return literal((String) obj);\n } else if (obj instanceof Number) {\n return literal((Number) obj);\n } else {\n return literal(obj.toString());\n }\n }",
"@Override\n public String toString() {\n return value + symbol(this.type);\n }",
"private static String getString(Object obj) {\n\t\tif (obj.getClass().isArray()) {\n\t\t\treturn array(obj);\n\t\t} else if (obj instanceof Map) {\n\t\t\treturn map(obj);\n\t\t} else if (obj instanceof Collection) {\n\t\t\treturn collection(obj);\n\t\t} else {\n\t\t\t// return obj.toString();\n\t\t\treturn obj(obj);\n\t\t}\n\t}",
"public DisplayType getDisplayType();",
"@Override\n public String toString() {\n return ObjectContracts.toString(this, \"objectType\", \"name\", \"atPath\");\n }",
"@Override\n\tpublic String toString() {\n\t\treturn getValue() != null ? getValue().toString() : \"null\";\n\t}",
"final protected String valueOf(Object obj) {\r\n if (obj == null) {\r\n return null;\r\n }\r\n return String.valueOf(obj);\r\n }",
"@Override\n\tpublic String getText(Object object) {\n\t\tString label = ((Bean)object).getClass_();\n\t\treturn label == null || label.length() == 0 ?\n\t\t\tgetString(\"_UI_Bean_type\") :\n\t\t\tgetString(\"_UI_Bean_type\") + \" \" + label;\n\t}",
"public void printType(){\n\t\tSystem.out.println(\"X Type : \"+objXReff.getClass().getName());\n\t\tSystem.out.println(\"Y Type : \"+objYReff.getClass().getName());\n\t}",
"@SuppressWarnings(\"rawtypes\")\n\tprotected static String asString(Object o){\n\t\tif(o == null)\n\t\t\treturn \"null\";\n\t\tif(o instanceof Integer)\n\t\t\treturn ((Integer)o).toString() + \" [Java]\";\n\t\tif(o instanceof String)\n\t\t\treturn ((String)o) + \" [Java]\";\n\t\tif(o instanceof IValue)\n\t\t\treturn ((IValue) o).toString() +\" [IValue]\";\n\t\tif(o instanceof Type)\n\t\t\treturn ((Type) o).toString() + \" [Type]\";\n\t\tif(o instanceof Object[]){\n\t\t\tStringBuilder w = new StringBuilder();\n\t\t\tObject[] lst = (Object[]) o;\n\t\t\tw.append(\"[\");\n\t\t\tfor(int i = 0; i < lst.length; i++){\n\t\t\t\tw.append(asString(lst[i]));\n\t\t\t\tif(i < lst.length - 1)\n\t\t\t\t\t\tw.append(\", \");\n\t\t\t}\n\t\t\tw.append(\"]\");\n\t\t\treturn w.toString() + \" [Object[]]\";\n\t\t}\n\t\tif(o instanceof Coroutine){\n\t\t\tif(((Coroutine)o).frame != null && ((Coroutine)o).frame.function != null){\n\t\t\t\treturn \"Coroutine[\" + ((Coroutine)o).frame.function.getName() + \"]\";\n\t\t\t} else {\n\t\t\t\treturn \"Coroutine[**no name**]\";\n\t\t\t}\n\t\t}\n\t\tif(o instanceof Function){\n\t\t\treturn \"Function[\" + ((Function)o).getName() + \"]\";\n\t\t}\n\t\tif(o instanceof FunctionInstance){\n\t\t\treturn \"Function[\" + ((FunctionInstance)o).function.getName() + \"]\";\n\t\t}\n\t\tif(o instanceof OverloadedFunctionInstance) {\n\t\t\treturn ((OverloadedFunctionInstance) o).toString();\n\t\t}\n\t\tif(o instanceof Reference){\n\t\t\tReference ref = (Reference) o;\n\t\t\treturn ref.toString(); //\"Reference[\" + ref.stack + \", \" + ref.pos + \"]\";\n\t\t}\n\t\tif(o instanceof IListWriter){\n\t\t\treturn \"ListWriter[\" + ((IListWriter) o).toString() + \"]\";\n\t\t}\n\t\tif(o instanceof ISetWriter){\n\t\t\treturn \"SetWriter[\" + ((ISetWriter) o).toString() + \"]\";\n\t\t}\n\t\tif(o instanceof IMapWriter){\n\t\t\treturn \"MapWriter[\" + ((IMapWriter) o).toString() + \"]\";\n\t\t}\n\t\tif(o instanceof Matcher){\n\t\t\treturn \"Matcher[\" + ((Matcher) o).pattern() + \"]\";\n\t\t}\n\t\tif(o instanceof Thrown) {\n\t\t\treturn \"THROWN[ \" + asString(((Thrown) o).getValue()) + \" ]\";\n\t\t}\n\t\t\n\t\tif(o instanceof StringBuilder){\n\t\t\treturn \"StringBuilder[\" + ((StringBuilder) o).toString() + \"]\";\n\t\t}\n\t\tif(o instanceof HashSet){\n\t\t\treturn \"HashSet[\" + ((HashSet<?>) o).toString() + \"]\";\n\t\t}\n\t\tif(o instanceof Map){\n\t\t\treturn \"Map[\" + ((Map<?, ?>) o).toString() + \"]\";\n\t\t}\n\t\tif(o instanceof HashMap){\n\t\t\treturn \"HashMap[\" + ((HashMap<?, ?>) o).toString() + \"]\";\n\t\t}\n\t\tif(o instanceof Map.Entry){\n\t\t\treturn \"Map.Entry[\" + ((Map.Entry) o).toString() + \"]\";\n\t\t}\n\t\t\n\t\treturn o.getClass().getName();\n\t\n\t\t//throw new CompilerError(\"asString cannot convert: \" + o);\n\t}",
"@Override\r\n\tpublic String display() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic String display() {\n\t\treturn null;\r\n\t}",
"@Override\n\t\tpublic String toString()\n\t\t{\n\t\t\treturn type;\n\t\t}",
"private static String getValue(Object o) {\n if (o != null) {\n return o.toString();\n }\n return \"null\";\n }",
"public static String toString(Object obj) {\n if(null != obj){\n if(obj instanceof Map){\n return convertMap2String((Map)obj);\n }\n }\n return obj == null ? \"\" : obj.toString();\n }",
"@Override\n\tpublic String getText(Object object) {\n\t\tString label = ((ColumnType4)object).getName();\n\t\treturn label == null || label.length() == 0 ?\n\t\t\tgetString(\"_UI_ColumnType4_type\") :\n\t\t\tgetString(\"_UI_ColumnType4_type\") + \" \" + label;\n\t}",
"public static String printPayloadType(final Object o) throws IOException, JsonGenerationException, JsonMappingException {\n if (o != null && o instanceof Payload) {\n final Payload p = (Payload) o;\n return p.fetchType();\n } else {\n return \"none\";\n }\n }",
"public static String toString(Object value) {\n if (value != null)\n return value.toString();\n else\n return null;\n }",
"public static String display(Object obj) throws JspTagException {\n if (obj == null) return \"\"; \n if (obj instanceof String) return obj.toString();\n /*\n if (obj instanceof Collection) {\n return \"FIXME\";\n }\n if (obj instanceof Map) {\n return \"FIXME\";\n } \n if (obj instanceof Iterator) {\n Iterator iter = (Iterator)obj;\n while (iter.hasNext()) {\n iter.next();\n }\n return \"FIXME\";\n } \n if (obj instanceof Enumeration) {\n Enumeration enum = (Enumeration)obj;\n while (enum.hasMoreElements()) {\n enum.nextElement();\n }\n return \"FIXME\";\n }\n */\n try {\n StringBuffer buf = new StringBuffer();\n int count = Array.getLength(obj);\n for (int i=0; i<count; i++) {\n buf.append(Array.get(obj, i).toString());\n if (i<count-1) buf.append(\"<font color='red'> • </font>\");\n }\n return buf.toString();\n } catch (IllegalArgumentException ex) {}\n throw new JspTagException(\"Bad Item\"); \n }",
"@Override\n public String toString ()\n {\n return \"type = \" + type;\n }",
"@Override\n\tpublic String display() {\n\t\treturn null;\n\t}",
"protected static DataType getDataTypeFromObject(Object obj)\n {\n if(obj instanceof Integer)\n {\n return Integer;\n }\n else if(obj instanceof Long)\n {\n return Long;\n }\n else if(obj instanceof Boolean)\n {\n return Boolean;\n }\n else if (obj instanceof Double)\n {\n return Double;\n }\n\n return String;\n }",
"@Override\n\tpublic void display() {\n\t\tSystem.out.println(valueType+\": \"+value);\n\t}",
"@Override\n public abstract String toString();",
"@Override\n public abstract String toString();",
"@Override\n public abstract String toString();",
"@Override\n public abstract String toString();",
"@Override\n public abstract String toString();",
"@Override\n public abstract String toString();",
"@Override\n public abstract String toString();",
"public String format(Object obj) throws JDBFException {\r\n if (type == 'N' || type == 'F') {\r\n if (obj == null) {\r\n obj = new Double(0.0D);\r\n }\r\n if (obj instanceof Number) {\r\n Number number = (Number) obj;\r\n StringBuffer stringbuffer = new StringBuffer(getLength());\r\n for (int i = 0; i < getLength(); i++) {\r\n stringbuffer.append(\"#\");\r\n }\r\n\r\n if (getDecimalCount() > 0) {\r\n stringbuffer.setCharAt(getLength() - getDecimalCount() - 1, '.');\r\n }\r\n DecimalFormat decimalformat = new DecimalFormat(stringbuffer.toString(), DFS);\r\n String s1 = decimalformat.format(number);\r\n int k = getLength() - s1.length();\r\n if (k < 0) {\r\n throw new JDBFException(\"Value \" + number + \" cannot fit in pattern: '\" + stringbuffer + \"'.\");\r\n }\r\n StringBuffer stringbuffer2 = new StringBuffer(k);\r\n for (int l = 0; l < k; l++) {\r\n stringbuffer2.append(\" \");\r\n }\r\n\r\n return stringbuffer2 + s1;\r\n } else {\r\n throw new JDBFException(\"Expected a Number, got \" + obj.getClass() + \".\");\r\n }\r\n }\r\n if (type == 'C') {\r\n if (obj == null) {\r\n obj = \"\";\r\n }\r\n if (obj instanceof String) {\r\n String s = (String) obj;\r\n if (s.length() > getLength()) {\r\n throw new JDBFException(\"'\" + obj + \"' is longer than \" + getLength() + \" characters.\");\r\n }\r\n StringBuffer stringbuffer1 = new StringBuffer(getLength() - s.length());\r\n for (int j = 0; j < getLength() - s.length(); j++) {\r\n stringbuffer1.append(' ');\r\n }\r\n\r\n return s + stringbuffer1;\r\n } else {\r\n throw new JDBFException(\"Expected a String, got \" + obj.getClass() + \".\");\r\n }\r\n }\r\n if (type == 'L') {\r\n if (obj == null) {\r\n obj = new Boolean(false);\r\n }\r\n if (obj instanceof Boolean) {\r\n Boolean boolean1 = (Boolean) obj;\r\n return boolean1.booleanValue() ? \"Y\" : \"N\";\r\n } else {\r\n throw new JDBFException(\"Expected a Boolean, got \" + obj.getClass() + \".\");\r\n }\r\n }\r\n if (type == 'D') {\r\n if (obj == null) {\r\n obj = new Date();\r\n }\r\n if (obj instanceof Date) {\r\n Date date = (Date) obj;\r\n SimpleDateFormat simpledateformat = new SimpleDateFormat(\"yyyyMMdd\");\r\n return simpledateformat.format(date);\r\n } else {\r\n throw new JDBFException(\"Expected a Date, got \" + obj.getClass() + \".\");\r\n }\r\n } else {\r\n throw new JDBFException(\"Unrecognized JDBFField type: \" + type);\r\n }\r\n }",
"private String toString(Object value) {\n if (value == null) return \"null\";\n // TODO: handle arrays in a nicer way.\n return value.toString();\n }",
"@SuppressWarnings(\"rawtypes\")\n\tpublic static ObjectType box(Class inst_class, ObjectType obj) {\n\t\tif (inst_class.equals(obj.getClass()))\n\t\t\treturn obj;\n\t\tif (inst_class.equals(StringType.class)) {\n\t\t\treturn obj.toStringType();\n\t\t} else\n\t\t\treturn obj;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn type;\n\t}",
"@NotNull\n protected String format(@NotNull final Object value) {\n return value != null\n ? value.toString()\n : \"\";\n }",
"public Value restrictToNotTypeofObject() {\n checkNotPolymorphicOrUnknown();\n Value r = new Value(this);\n r.flags &= ~NULL;\n r.object_labels = newSet();\n if (object_labels != null)\n for (ObjectLabel objlabel : object_labels)\n if (objlabel.getKind() == Kind.FUNCTION || objlabel.getKind() == Kind.SYMBOL)\n r.object_labels.add(objlabel);\n if (r.object_labels.isEmpty())\n r.object_labels = null;\n return canonicalize(r);\n }",
"@Override\n\tString toString(Employee obj) {\n\t\treturn null;\n\t}",
"public abstract Object getUnderlyingObject();",
"public static String toString(Object obj)\n {\n return obj.getClass().getName() + \"@\" + Integer.toHexString(obj.hashCode()); //$NON-NLS-1$\n }",
"@Override abstract public String type();",
"public String toString() {\n return type.toString();\n }",
"public static String m1458toStringimpl(Object obj) {\n return \"InlineList(holder=\" + obj + \")\";\n }",
"private static String asVerboseString(Object obj) {\n String name = obj.getClass().getSimpleName();\n String toString = String.valueOf(obj);\n if (toString.startsWith(name)) {\n return toString;\n } else {\n return String.format(\"%s:%s\", name, toString);\n }\n }",
"@Override\n\tpublic abstract String toString();",
"@Override\n public abstract String toString();",
"public void print(Object obj) {\n print(obj.toString());\n }",
"@org.jetbrains.annotations.NotNull()\n @java.lang.Override()\n public java.lang.String toString() {\n return null;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn String.format(\"%s:%s\", type, value);\n\t}",
"Optional<T> show();",
"@Override\n public String toString(){\n\n return this.getClass().getSimpleName();\n }",
"@Override\n public String visit(UnknownType n, Object arg) {\n return null;\n }",
"private void out(Object obj) {\r\n\t\tSystem.out.println(deb + obj.toString());\r\n\t}",
"@Override\n public String toString() {\n return displayString;\n }",
"String toStr(Object o);",
"@Override\n\tpublic abstract String toString ();",
"public String toString() { return kind() + \":\"+ text() ; }",
"@Override\n\tpublic String getText(Object object) {\n\t\tString label = ((InterfaceField)object).getName();\n\t\treturn label == null || label.length() == 0 ?\n\t\t\tgetString(\"_UI_InterfaceField_type\") :\n\t\t\tgetString(\"_UI_InterfaceField_type\") + \" \" + label;\n\t}",
"public String toString() {\n String leftstring = _left.toString();\n String rightstring = _right.toString();\n \n String left;\n if (_left.isArrowType()) left = \"(\" + leftstring + \")\";\n else if (_left.isBaseType()) left = leftstring;\n else throw new Error(\"Missed a case in a switch for type kinds.\");\n return left + \" ⇒ \" + rightstring;\n }",
"T getNullRepresentation();",
"@Override\n public String toString();",
"@Override\n public String toString();",
"@Override\n public String getText(Object object) {\n String label = ((Reference)object).getName();\n return label == null || label.length() == 0 ?\n getString(\"_UI_Reference_type\") :\n getString(\"_UI_Reference_type\") + \" \" + label;\n }",
"public String typeOf() { return null; }",
"protected abstract String display();",
"public abstract String mo83558a(Object obj);",
"@Override\r\n\tpublic String toString() {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic String getText(Object object) {\n\t\tString label = ((tzpropOptional) object).getTzname();\n\t\treturn label == null || label.length() == 0 ? getString(\"_UI_tzpropOptional_type\")\n\t\t\t\t: getString(\"_UI_tzpropOptional_type\") + \" \" + label;\n\t}",
"@Override\r\n public String toString();",
"@Override\n public String getText(Object object) {\n String label = ((ProceedingsType)object).getEditor();\n return label == null || label.length() == 0 ?\n getString(\"_UI_ProceedingsType_type\") :\n getString(\"_UI_ProceedingsType_type\") + \" \" + label;\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn type+\"(\"+id+\",\"+\"(\"+value+\")\"+\")\";\r\n\t}",
"private String getObjectString()\n {\n String returnString = \"Objects:\\n\\t\";\n Set<String> keys = items.keySet();\n if(items.size() <= 0) {\n returnString += \"[None]\";\n return returnString;\n }\n for(String item : keys) {\n returnString += \" [\" + item + \"]\";\n }\n return returnString;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn null;\n\t}"
] | [
"0.633485",
"0.6296634",
"0.60262984",
"0.59903586",
"0.5949171",
"0.59372914",
"0.5931336",
"0.59125316",
"0.59118193",
"0.5904902",
"0.57667947",
"0.575641",
"0.57551587",
"0.5754417",
"0.5729285",
"0.5710496",
"0.56973314",
"0.5689204",
"0.5579963",
"0.5532818",
"0.55143476",
"0.55099076",
"0.5496574",
"0.5479651",
"0.5470193",
"0.5462087",
"0.54614943",
"0.54614925",
"0.5453022",
"0.54407835",
"0.54379463",
"0.5424611",
"0.5424054",
"0.54167324",
"0.54167324",
"0.54082394",
"0.54073524",
"0.54068273",
"0.539835",
"0.53957915",
"0.5392445",
"0.538716",
"0.53728664",
"0.5370785",
"0.5362719",
"0.53622633",
"0.53577346",
"0.53577346",
"0.53577346",
"0.53577346",
"0.53577346",
"0.53577346",
"0.53577346",
"0.53518075",
"0.53514683",
"0.5348207",
"0.53401357",
"0.533497",
"0.5334838",
"0.53328097",
"0.53207844",
"0.5313356",
"0.53098375",
"0.53082573",
"0.5305661",
"0.5299552",
"0.52808",
"0.5280445",
"0.5277199",
"0.52771384",
"0.5273563",
"0.5269866",
"0.5264738",
"0.5248298",
"0.5247149",
"0.5245301",
"0.5245256",
"0.52438563",
"0.5239745",
"0.5229293",
"0.52286917",
"0.5227144",
"0.5226112",
"0.5226112",
"0.5225703",
"0.5224662",
"0.5223641",
"0.5219717",
"0.5214463",
"0.5211344",
"0.51952285",
"0.5194658",
"0.5194023",
"0.5189243",
"0.5182031",
"0.5182031",
"0.5182031",
"0.5182031",
"0.5182031",
"0.5182031"
] | 0.53012323 | 65 |
Helper binding method for function: showList. | public static final SourceModel.Expr showList(SourceModel.Expr list) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showList), list});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic boolean showInList()\n\t{\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic void goToShowList() {\n\t\t\r\n\t}",
"@Override\n public String getName() {\n return \"list\";\n }",
"public void printList() {\n userListCtrl.showAll();\n }",
"public void viewList() {\n\t\tSystem.out.println(\"Your have \" + contacts.size() + \" contacts:\");\n\t\tfor (int i=0; i<contacts.size(); i++) {\n\t\t\tSystem.out.println((i+1) + \". \" \n\t\t\t\t\t+ contacts.get(i).getName() + \" number: \" \n\t\t\t\t\t+ contacts.get(i).getPhoneNum());\n\t\t}\n\t}",
"private void viewList() {\r\n PrintListMenuView listMenu = new PrintListMenuView();\r\n listMenu.displayMenu();\r\n }",
"public ShowList(String title) {\n id = title;\n initComponents();\n updateListModel();\n }",
"public void getShowRecord(List<MentalShowStruct> list) {\n/* 55 */ this.component.getRevertShowList(list);\n/* */ }",
"@FXML\n public void Show_List(MouseEvent mouseEvent) {\n }",
"private void showList() {\n select();\n //create adapter\n adapter = new ArrayAdapter<>(this, android.R.layout.simple_list_item_1, studentInfo);\n //show data list\n listView.setAdapter(adapter);\n }",
"public void populateListView() {\n\n\n }",
"public void show() {\n numberList.show();\n }",
"void printList();",
"@Override\r\n\tpublic void showList() {\n\t\tSystem.out.println(\"I am a MAC list\");\r\n\t}",
"private void displayList(){\n\t\tmArrayAdapter.clear();\n\t\tBT.setupBT();\n\n\t\tListView newDevicesListView = (ListView)\n\t\t\t\tdialog.findViewById(R.id.device_list_display);\n\n\t\tnewDevicesListView.setAdapter(mArrayAdapter);\n\t\tnewDevicesListView.setClickable(true);\n\t}",
"@Override\r\n\tpublic String list() {\n\t\tList<HeadLine> dataList=new ArrayList<HeadLine>();\r\n\t\tPagerItem pagerItem=new PagerItem();\r\n\t\tpagerItem.parsePageSize(pageSize);\r\n\t\tpagerItem.parsePageNum(pageNum);\r\n\t\t\r\n\t\tLong count=headLineService.count();\r\n\t\tpagerItem.changeRowCount(count);\r\n\t\t\r\n\t\tdataList=headLineService.pager(pagerItem.getPageNum(), pagerItem.getPageSize());\r\n\t\tpagerItem.changeUrl(SysFun.generalUrl(requestURI, queryString));\r\n\t\t\r\n\t\trequest.put(\"DataList\", dataList);\r\n\t\trequest.put(\"pagerItem\", pagerItem);\r\n\t\t\r\n\t\t\r\n\t\treturn \"list\";\r\n\t}",
"ObservableList<Person> getDisplayedPersonList();",
"@Override\n\tpublic void printContent(List<Object> stingList) {\n\t\t\n\t}",
"public void showMediaList(){\r\n mediaView.showMediaList(getMediaList());\r\n }",
"private void getClientList(ActionEvent e){\r\n new ClientList().Display();\r\n }",
"public void showSupplierList(){\n\t\tfor(int i = 0; i<supplierList.size();i++) {\n\t\t\tSystem.out.println(supplierList.get(i).getSupID()+\";\"+\n\t\t\t\t\tsupplierList.get(i).getCompanyName()+\";\"+\n\t\t\t\t\tsupplierList.get(i).getAddress()+\";\"+\n\t\t\t\t\tsupplierList.get(i).getSaleRep());\n\t\t}\n\t}",
"private void showList() {\n\n if(USE_EXTERNAL_FILES_DIR) {\n mList = mFileUtil.getFileNameListInExternalFilesDir();\n } else {\n mList = mFileUtil.getFileListInAsset(FILE_EXT);\n }\n mAdapter.clear();\n mAdapter.addAll(mList);\n mAdapter.notifyDataSetChanged();\n mListView.invalidate();\n}",
"private void showListView()\n {\n SimpleCursorAdapter adapter = new SimpleCursorAdapter(\n this,\n R.layout.dataview,\n soldierDataSource.getCursorALL(), //\n _allColumns,\n new int[]{ R.id.soldierid, R.id.username, R.id.insertedphone, R.id.password},\n 0);\n\n table.setAdapter(adapter);\n }",
"void updateFilteredListToShowAll();",
"void updateFilteredListToShowAll();",
"@Override\n\tprotected String getListView() {\n\t\tthis.getRequest().setAttribute(\"typeList\",PhoneMemberEnum.values());\n\t\tthis.getRequest().setAttribute(\"useList\",PhoneMemberUseEnum.values());\n\t\tthis.getRequest().setAttribute(\"customerId\", ParamUtils.getParamValue(PhoneMemberUtil.CMCT_CUSOMETID));\n\t\tthis.getRequest().setAttribute(\"state\", \"UNUSE\");\n\t\tthis.getRequest().setAttribute(\"org\", SystemUtil.getCurrentOrg());\n\t\treturn \"cmct/phone/phoneUnMatchList\";\n\t}",
"public void openList() {\n\t\tString title = resourceManager.getString(\"process.view.list.title\");\n\t\tint indexOfTab = tabbedPane.indexOfTab(title);\n\t\tif (indexOfTab >= 0) {\n\t\t\ttabbedPane.setSelectedIndex(indexOfTab);\n\t\t} else {\n\t\t\tlView = new ListView(this, resourceManager);\n\t\t\ttabbedPane.addTab(title, lView);\n\n\t\t\ttabbedPane.setTabComponentAt(tabbedPane.indexOfTab(title),\n\t\t\t\t\tnew ButtonTabComponent(tabbedPane, this, lView,\n\t\t\t\t\t\t\tresourceManager));\n\t\t\tindexOfTab = tabbedPane.indexOfTab(title);\n\t\t\ttabbedPane.setSelectedIndex(indexOfTab);\n\t\t\tloadListView();\n\t\t}\n\t}",
"public void list()\n {\n for(Personality objectHolder : pList)\n {\n String toPrint = objectHolder.getDetails();\n System.out.println(toPrint);\n }\n }",
"public String listTitle();",
"private void showSimpleAdaptView() {\n\t\tList<HashMap<String, Object>> data = new ArrayList<HashMap<String,Object>>();\n\t\tfor (Person person : persons) {\n\t\t\tHashMap<String, Object> hashMap = new HashMap<String, Object>();\n\t\t\thashMap.put(\"name\", person.getNameString());\n\t\t\thashMap.put(\"phone\", person.getPhoneNum());\n\t\t\thashMap.put(\"amount\", person.getAmount());\n\t\t\thashMap.put(\"personid\", person.getId());\n\t\t\tdata.add(hashMap);\n\t\t}\n\t\tSimpleAdapter simpleAdapter = new SimpleAdapter(this, data, R.layout.listview_item,\n\t\t\t\tnew String[]{\"name\",\"phone\",\"amount\"}, \n\t\t\t\tnew int[]{R.id.name,R.id.phone,R.id.account});\n\t\t\n\t\tlistView.setAdapter(simpleAdapter);\n\t}",
"@FXML\n public void Load_Multiple_Lists(ActionEvent actionEvent) {\n }",
"@Override\n public String toString() {\n return list.toString();\n }",
"private void printEvaList(){\n\t\tEvaluatedlistModel = new DefaultListModel();\n\t\tEvaluatedList.setModel(EvaluatedlistModel);\n\t\t\n\t}",
"public String listViaje() {\n\t\t\t//resetForm();\n\t\t\treturn \"/boleta/list.xhtml\";\t\n\t\t}",
"public <T extends Object> void showAll(List<T> theList){\n theList.forEach(System.out::println);\n }",
"private static void showList(StringBuffer aBuf,\n String[] aItems, String aStartTag, String aEndTag) {\n aBuf.append(aStartTag).append(NEW_LINE);\n for (int i=0; i<aItems.length; i++) {\n appendLI(aBuf, aItems[i]);\n }\n aBuf.append(aEndTag).append(NEW_LINE);\n}",
"public static void displayList(ExtendedListInterface aList) throws ListException {\r\n Object dataItem;\r\n\r\n for (int index = 1; index < aList.size(); index++){\r\n dataItem = aList.get(index);\r\n System.out.print(dataItem + \", \");\r\n }\r\n if (aList.size() >= 1) {\r\n dataItem = aList.get(aList.size());\r\n System.out.println(dataItem + \".\");\r\n } else {\r\n throw new ListException(\"displayList on an empty list\");\r\n }\r\n }",
"@VTID(38)\n boolean getList();",
"private void displayListings() {\r\n\r\n //Lists all current listings\r\n System.out.println(\"Current Listings: \\n\" + cars.getListings());\r\n placeBid();\r\n }",
"void showAll();",
"private void showCursorAdaptView() {\n\t\tCursor cursor = personService.getCursor(0, personService.getCnt());\n\t\tSimpleCursorAdapter adapter = new SimpleCursorAdapter(this, R.layout.listview_item, cursor,\n\t\t\t\tnew String[]{\"name\",\"phone\",\"amount\"}, \n\t\t\t\tnew int[]{R.id.name,R.id.phone,R.id.account});\n\t\t\n\t\tlistView.setAdapter(adapter);\n\t}",
"private void showMyAdapt() {\n\t\tmyAdapt = new MyAdapt(this, persons);\n\t\tlistView.setAdapter(myAdapt);\n\t}",
"private List<SimpleComponent> list() {\n\t\treturn this.list(null);\n\t}",
"@Override\n\tpublic void showItems(JZMatchBean bean, LinearLayout parent_layout) {\n\t\t\n\t}",
"void showFacts(List<Fact> facts);",
"boolean getIsList();",
"boolean getIsList();",
"public void showListData() {\n List<Operator> operators = operatorService.queryAll();\n String[][] datas = new String[operators.size()][8];\n for (int i = 0; i < datas.length; i++) {\n datas[i][0] = operators.get(i).getId().toString();\n datas[i][1] = operators.get(i).getName();\n datas[i][2] = operators.get(i).getSex();\n datas[i][3] = operators.get(i).getAge().toString();\n datas[i][4] = operators.get(i).getIdentityCard();\n datas[i][5] = operators.get(i).getWorkDate().toString();\n datas[i][6] = operators.get(i).getTel();\n datas[i][7] = operators.get(i).getAdmin().toString();\n }\n operatorManagetable.setModel(new DefaultTableModel(\n datas, new String[]{\"编号\", \"用户名\", \"性别\", \"年龄\", \"证件号\", \"工作时间\", \"电话号码\", \"是否为管理员\"}\n ));\n scrollPane1.setViewportView(operatorManagetable);\n }",
"public void displayUsers(){\n //go through the userName arraylist and add them to the listView\n for(String val:this.userNames){\n this.userListView.getItems().add(val);\n }\n }",
"@Override\n\tpublic List selectList2(Object map) {\n\t\t\n\t\tList list= session.selectList(\"party.party_show_list\",map);\n\t\t\n\t\treturn list;\n\t}",
"public native DisplayList toDisplayList(boolean no_annotations);",
"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 List<T> showAllClients();",
"public void showSuggestionList() {\n \t\tif (isAttached()) {\n \t\t\tcurrentText = null;\n \t\t\trefreshSuggestions();\n \t\t}\n \t}",
"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}",
"protected void showList(String[] convertLis) {\n sL.register(null, \"INFO\", \"Successful - showList - start\");\n for (int j = convertLis.length - 1; j >= 0; j-- ) {\n listConverting.getListModel().addElement(convertLis[j]);\n }\n sL.register(null, \"INFO\", \"Successful - showList - finished\");\n }",
"@Override\r\n\tpublic String ShowListCMD() {\n\t\treturn \"dir\";\r\n\t}",
"@Override\n\tprotected String getView() {\n\t\treturn ORSView.COLLEGE_LIST_VIEW;\n\t}",
"private void showList() {\n try {\n swipeRefreshLayout.setVisibility(View.VISIBLE);\n tvMessage.setVisibility(View.GONE);\n\n /* to void duplicate data*/\n Set<NewsDetail> newsDetailSet = new HashSet<NewsDetail>(newsList);\n\n newsList.clear();\n newsList = new ArrayList<NewsDetail>(newsDetailSet);\n if (adapter == null) {\n adapter = new NewsListAdapter(mContext, newsList);\n listView.setAdapter(adapter);\n } else {\n adapter.notifyDataSetChanged();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }",
"private void showArrayAdaptView() {\n\t\tPersonAdapt personAdapt = new PersonAdapt(this, persons, R.layout.listview_item);\n\t\tlistView.setAdapter(personAdapt);\n\t}",
"private static void showList(ArrayList<? extends Machine> list) {\n System.out.println(\"In showlist method\");\n for(Machine machine: list) {\n System.out.println(machine);\n }\n\n }",
"protected List ensureDisplayList()\n {\n if (m_listDisplay == null)\n {\n m_listDisplay = new LinkedList();\n }\n return m_listDisplay;\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 displaySelections() {\n List<VendingItem> listOfItems = service.getAllItemsNonZero(); //<-- uses lambda\n view.displaySelections(listOfItems);\n }",
"private void showFavouriteList() {\n setToolbarText(R.string.title_activity_fave_list);\n showFavouriteIcon(false);\n buildList(getFavourites());\n }",
"public static void displayResults(List<String> list, String companyName)\n {\n List<Company> lstCompany = new ArrayList<>();\n for (String tickerSymbol: list)\n {\n Hyperlink symbol = new Hyperlink(tickerSymbol);\n symbol.setOnAction(ev -> //Registers event handler \n {\n tfSymbol.setText(symbol.getText()); //Sets TextField Text property in MainStage\n tableData.clear();\n colSymbol.getColumns().clear();\n colName.getColumns().clear();\n stage.hide();\n });\n\n lstCompany.add(new Company(symbol, companyName));\n }\n \n tableData.addAll(lstCompany); //Adds collection of symbols to ObservableList\n tableView.setItems(tableData); \n }",
"public interface ExpensesRecordView extends BaseView {\n void showData(List entityList);\n}",
"void onListClick();",
"public String supplierList(SupplierDetails s);",
"public final synchronized String list()\r\n { return a_info(true); }",
"public UserList list();",
"void updateFilteredListsToShowAll();",
"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}",
"public boolean isList();",
"public boolean isList();",
"@Override\n\t\tpublic void initList() {\n\t\t\tadapter = new MsgItemAdapter(context);\n\t\t\tArrayList<MsgBean> datas = getData();\n\t\t\tadapter.setData(datas);\n\t\t\tmListView.setAdapter(adapter);\n\t\t\tmListView.setViewMode(true, true);\n\t\t\tif(!DataValidate.checkDataValid(datas)){\n\t\t\t\tpageView.setDefaultPage().setVisibility(View.VISIBLE);\n\t\t\t}\n\t\t}",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tLog.d(\"jsonlog\", \"on click of show list view\");\r\n\t\t\t\t\r\n\t\t\t\t detailsList = new ArrayList<HashMap<String,String>>();\r\n\t\t\t\turl = \"http://10.0.2.2:8080/allgreetings\";\r\n\t\t\t\t\r\n\t\t\t\tnew getjsonlist().execute();\r\n\t\t\t\t\r\n\t\t\t}",
"private static void showContacts(List<Contact> contactList) {\r\n\t\tcontactList.forEach(System.out::println);\r\n\t}",
"private void updateListVisibility() {\n switch (currentFilter) {\n case 0: // Available quests...\n if (user.getInt(QuestApp.ALIGNMENT_KEY) == 0) { //... for good heroes\n setListAdapter(adapterAvailableGood);\n } else if (user.getInt(QuestApp.ALIGNMENT_KEY) == 1) { //... for neutral heroes\n setListAdapter(adapterAvailableNeutral);\n } else if (user.getInt(QuestApp.ALIGNMENT_KEY) == 2){ //... for evil heroes\n setListAdapter(adapterAvailableEvil);\n }\n break;\n case 1: // Accepted quests\n setListAdapter(adapterAccepted);\n break;\n case 2: // Completed quests\n setListAdapter(adapterCompleted);\n break;\n }\n }",
"@FXML\n public void Load_List(ActionEvent actionEvent) {\n }",
"ListView getShowReportListView();",
"private static void displayList(ArrayList list) {\n System.out.println(\"The list contains \" + list.getCurrentSize()\n + \" string(s), as follows:\");\n Object[] listArray = list.toArray();\n for (int index = 0; index < listArray.length; index++) {\n System.out.print(listArray[index] + \" \");\n } // end for\n System.out.println();\n }",
"public OverviewSmallListChoosrDialogOptions showListChooser(String referenceID, boolean multiSelect, boolean showFilter, String title, String okText, String cancelText, IDLabelList items, Collection<String> selectedIDs){\n/*Generated! Do not modify!*/ \tListChooserParameters parameters = createListChooserParameters(referenceID, multiSelect, showFilter, title, okText, cancelText);\n/*Generated! Do not modify!*/ \tSet<String> selectedIDsSet = new HashSet<String>();\n/*Generated! Do not modify!*/ \tif (selectedIDs != null){\n/*Generated! Do not modify!*/ \t\tselectedIDsSet = new HashSet<String>(selectedIDs);\n/*Generated! Do not modify!*/ \t}\n/*Generated! Do not modify!*/ \tList<ListChooserItem> chooserItems = new ArrayList<ListChooserItem>();\n/*Generated! Do not modify!*/ \tfor (IDLabel i: items.getItems()){\n/*Generated! Do not modify!*/ \t\tchooserItems.add(createItem(i.getID(), i.getLabel(), null, selectedIDsSet.contains(i.getID())));\n/*Generated! Do not modify!*/ \t}\n/*Generated! Do not modify!*/ \tparameters.setShowIcons(false);\n/*Generated! Do not modify!*/ \tparameters.setItems(chooserItems);\n/*Generated! Do not modify!*/ \treplyDTO.setListChooserParameters(parameters);\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ \taddRecordedAction(ReplyActionType.SHOW_LIST_CHOOSER_TEXTS, \"showListChooser(\" + escapeString(referenceID) + \", \" + multiSelect + \", \" + showFilter + \", \" + escapeString(title) \n/*Generated! Do not modify!*/ \t\t\t+ \", \" + escapeString(okText) + \", \" + escapeString(cancelText) + \", \", gson.toJson(items), selectedIDs);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ return new OverviewSmallListChoosrDialogOptions(this, parameters);\n/*Generated! Do not modify!*/ }",
"public static void printContactList()\n {\n if(myList.size() < 1)\n System.out.println(\"~empty list~\");\n else\n {\n System.out.println(\"Current Items\");\n System.out.println(\"-------------\");\n for(int i = 0; i < myList.size(); i++)\n {\n System.out.printf(i+\")\");\n Item itemPrint = myList.get(i);\n itemPrint.printItem(itemPrint.getFirstName(), itemPrint.getLastName(), itemPrint.getPhoneNumber(), itemPrint.getEmail());\n }\n }\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 }",
"public String list(){\n\t\tlist = connC.getAll();\n\t\tint index = 0, begin = 0;\n\t\tbegin = (pageIndex - 1) * STATIC_ROW_MAX;\n\t\tif(pageIndex < totalPage) {\n\t\t\tindex = pageIndex * STATIC_ROW_MAX;\n\t\t} else {\n\t\t\tindex = list.size();\n\t\t}\n\t\tfor(int i = begin; i < index; i++) {\n\t\t\tlistCustomer.add(list.get(i));\t\t\t\t\n\t\t}\n\t\treturn \"list\";\n\t}",
"private void listViewPendentes(List<Compra> listAll) {\n\t\t\n\t}",
"public void showList(List<String> userList,Map<String, MessageFrame> frameList) {\n\t\t\n\t\tuList=userList;\n\t\tfList=frameList;\n\t\tif(list==null) { // if it's the first time that the list is created, all the JComponents are created\n\t\t\tlist= new JList(uList.toArray());\n\t\t\tchatButton=new JButton(\"Chat\");\n\t\t\tbottomPanel=new JPanel();\n\t\t\tchatButton.addActionListener(chatActionListener);\n\t\t\tlist.setSize(300, 500);\n\t\t\tbottomPanel.setLayout(new BorderLayout());\n\t\t\tbottomPanel.add(list,BorderLayout.CENTER);\n\t\t\tbottomPanel.add(chatButton,BorderLayout.EAST);\n\t\t\tcontentPane.add(bottomPanel, BorderLayout.CENTER);\n\t\t\tbottomPanel.revalidate();\n\t\t}else\n\t\t{\n\t\t\tlist.setListData(uList.toArray()); // updates the list with the current clients connected to the servers\n\t\t\tbottomPanel.revalidate();\n\t\t}\n\t}",
"public interface TicketManageListView extends WrapView {\n\n\n void showTicketList(TicketManageListModel data);\n}",
"public static final SourceModel.Expr showJList(SourceModel.Expr list) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showJList), list});\n\t\t}",
"void showSublist()\n {\n System.out.println(subs);\n }",
"public synchronized void PrintDisplayList()\t{\n\t\tSystem.out.print(\"\\n\\tCar Model:\"+getModel()+\"\\n\\tBase Price is:\"\n +getBasePrice());\n\t\tfor(OptionSet Temp: opset)\n System.out.print(Temp.DisplayOptionSet());\n }",
"public void populateList() {\n }",
"@Override\n\tpublic List selectList() {\n\t\t\n\t\t\n\t\t\n\t\treturn null;\n\t}",
"public static void displayProductsList(List list){\r\n Iterator iter = list.iterator();\r\n if (!iter.hasNext()){\r\n System.out.println(\"No products to display.\");\r\n return;\r\n }\r\n while (iter.hasNext()){\r\n Product product = (Product) iter.next();\r\n String msg = product.getSupplier().getName() + \"\\t\";\r\n msg += product.getName() + \"\\t\";\r\n msg += product.getPrice() + \"\\t\";\r\n msg += product.getDescription();\r\n System.out.println(msg);\r\n }\r\n }",
"public void showAnimalList() {\n\t\tshowAnimalList(Calendar.getInstance().getTime());\n\t}",
"public String showList() {\n String listMessage = \"Here yer go! These are all your tasks!\";\n return listMessage;\n }",
"@Override\n public void success(List<String> list, Response arg1) {\n if (list == null || list.size() < 1) {\n return;\n }\n mSuggestListView.setVisibility(View.VISIBLE);\n mSuggestListView.setAdapter(new SuggestDataAdapter(TrimeService.this, list));\n }",
"@Override\r\n\tpublic void showlist() {\n int studentid = 0;\r\n System.out.println(\"请输入学生学号:\");\r\n studentid = input.nextInt();\r\n StudentDAO dao = new StudentDAOimpl();\r\n List<Course> list = dao.showlist(studentid);\r\n System.out.println(\"课程编号\\t课程名称\\t教师编号\\t课程课时\");\r\n for(Course c : list) {\r\n System.out.println(c.getCourseid()+\"\\t\"+c.getCoursename()+\"\\t\"+c.getTeacherid()+\"\\t\"+c.getCoursetime());\r\n }\r\n \r\n\t}",
"@Override\n public int getCount() {\n return listInfoList.size();\n }"
] | [
"0.7143884",
"0.69862884",
"0.66155237",
"0.6468131",
"0.6409471",
"0.63323385",
"0.6227706",
"0.6143784",
"0.61371005",
"0.6125205",
"0.6123151",
"0.60831153",
"0.604773",
"0.60352546",
"0.6026208",
"0.59970117",
"0.5954278",
"0.59393555",
"0.5938284",
"0.5915428",
"0.5901262",
"0.5897764",
"0.5891281",
"0.5859767",
"0.5859767",
"0.5849709",
"0.5843132",
"0.5818644",
"0.58016694",
"0.57861197",
"0.5784889",
"0.577115",
"0.5770812",
"0.5763199",
"0.5758022",
"0.5741901",
"0.5724298",
"0.572184",
"0.57070184",
"0.57027704",
"0.57025874",
"0.56904685",
"0.5687332",
"0.5674223",
"0.5673426",
"0.5668867",
"0.5668867",
"0.56584156",
"0.5646397",
"0.56442374",
"0.5638942",
"0.56295663",
"0.562859",
"0.562775",
"0.56275445",
"0.56258994",
"0.562343",
"0.5613883",
"0.5600371",
"0.5598298",
"0.55982786",
"0.5579234",
"0.55770856",
"0.5575561",
"0.55601424",
"0.55548555",
"0.55519927",
"0.5538249",
"0.55124646",
"0.5510778",
"0.550962",
"0.5509466",
"0.5500474",
"0.5495096",
"0.5495096",
"0.5489762",
"0.54794836",
"0.5478143",
"0.54763633",
"0.5472249",
"0.54660004",
"0.5457231",
"0.54566824",
"0.54535085",
"0.5443752",
"0.54314",
"0.542814",
"0.54268557",
"0.5420777",
"0.5418335",
"0.5417743",
"0.54147065",
"0.54144186",
"0.541046",
"0.54015774",
"0.53976375",
"0.5386914",
"0.5385314",
"0.53828835",
"0.53691256"
] | 0.62739915 | 6 |
Used for derived Show instances for foreign types with implementation type long. | public static final SourceModel.Expr showLong(SourceModel.Expr i) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showLong), i});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ClassInstance checkDerivedShowInstance(TypeConstructor typeCons,\r\n TypeConsApp instanceType,\r\n TypeClass typeClass, SourceRange position) throws UnableToResolveForeignEntityException {\r\n \r\n if (!typeClass.getName().equals(CAL_Debug.TypeClasses.Show)) {\r\n throw new IllegalStateException();\r\n }\r\n \r\n ModuleName currentModuleName = currentModuleTypeInfo.getModuleName();\r\n \r\n \r\n ForeignTypeInfo foreignTypeInfo = typeCons.getForeignTypeInfo(); \r\n \r\n if (foreignTypeInfo != null) {\r\n \r\n // foreign types\r\n \r\n Class<?> foreignType = foreignTypeInfo.getForeignType();\r\n \r\n if (foreignType.isPrimitive()) {\r\n \r\n if (foreignType == boolean.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showForeignBoolean},\r\n InstanceStyle.DERIVING); \r\n \r\n } else if (foreignType == byte.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showByte},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == char.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showForeignChar},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == short.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showShort},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == int.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showInt},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == long.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showLong},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == float.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showFloat},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == double.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showDouble},\r\n InstanceStyle.DERIVING);\r\n \r\n } else {\r\n throw new IllegalStateException(\"A type that claims to be primitive is not one of the known primitive types\");\r\n }\r\n \r\n } else {\r\n // Defer to String.valueOf(Object) for non-primitive foreign values\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showJObject}, \r\n InstanceStyle.DERIVING);\r\n }\r\n \r\n \r\n } else {\r\n \r\n // non-foreign types\r\n \r\n TypeExpr showTypeExpr = TypeExpr.makeFunType(instanceType, compiler.getTypeChecker().getTypeConstants().getStringType());\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeShowInstanceFunction(typeCons), showTypeExpr, position); \r\n \r\n return new ClassInstance(currentModuleName, instanceType, typeClass, null, InstanceStyle.DERIVING);\r\n }\r\n }",
"@ZenCodeType.Caster\n @ZenCodeType.Method\n default long asLong() {\n \n return notSupportedCast(BasicTypeID.LONG);\n }",
"public boolean isLong() {\n return field.getJavaType() == FieldDescriptor.JavaType.LONG && !isInt52();\n }",
"public boolean isLong() {\n return _isLong;\n }",
"public String getLongType() { return \"Technology\"; }",
"@Override\r\n public String toString() {\r\n if (value == (long) value) {\r\n //if the number`s decimal is 0 will print it like a long one\r\n return super.toString() + \":\" + String.format(\"%d\",(long)value);\r\n } else\r\n return super.toString() + \":\" + value;\r\n }",
"public String getDisplayType();",
"@java.lang.Override\n public long getLongValue() {\n if (typeCase_ == 3) {\n return (java.lang.Long) type_;\n }\n return 0L;\n }",
"public Long getLongAttribute();",
"@Override\n public String toString() {\n return getLongDescription();\n }",
"public static LongType getInstance() {\n return INSTANCE;\n }",
"public Class<Long> getIdType() {\n return Long.class;\n }",
"public boolean isLong() {\n return this.data instanceof Long;\n }",
"public void print(long someLong) {\r\n print(someLong + \"\");\r\n }",
"public long getMyLong() {\n return myLong;\n }",
"public String getType() {\r\n return \"Block Data Long\";\r\n }",
"@Override\r\n\tpublic String getShowDescribing() {\n\t\treturn \"所属乡镇:\"+ getSsxz().getName();\r\n\t}",
"public String shortRepr() {\n\t\treturn \"Value of some kind.\";\n\t}",
"@Override\n\tpublic String Show()\n\t{\n\t\treturn id;\n\t\t\n\t}",
"protected abstract String getDefaultDisplayTypeStringRepresentation();",
"public void setTypeid(Long typeid) {\n this.typeid = typeid;\n }",
"public Class getPreferredDisplayClass() {\n\t\treturn Object.class;\n\t}",
"public DisplayType getDisplayType();",
"public void printTypeInfo(){\n\t\tSystem.out.println(\"This type of computer is suitable for massive usage, when it comes to portability.\");\n\t\tSystem.out.println(\"Main thing at these computers is portability and funcionality.\");\n\t\t\n\t}",
"public final Long mo28864a(Object obj) {\n if (obj instanceof Long) {\n return (Long) obj;\n }\n if (obj instanceof String) {\n try {\n return Long.valueOf(Long.parseLong((String) obj));\n } catch (NumberFormatException unused) {\n }\n }\n String b = super.mo28865b();\n String valueOf = String.valueOf(obj);\n StringBuilder sb = new StringBuilder(String.valueOf(b).length() + 25 + String.valueOf(valueOf).length());\n sb.append(\"Invalid long value for \");\n sb.append(b);\n sb.append(\": \");\n sb.append(valueOf);\n Log.e(\"PhenotypeFlag\", sb.toString());\n return null;\n }",
"public void printLongBinary(long l) {\n\t}",
"default void show1() {\n\t\t\n\t\t\n\t}",
"@DerivedProperty\n\tString getShortRepresentation();",
"@Override\n public String toString() {\n if(toStringLong().length() > 28) {\n return toStringLong().substring(0, 25) + \"...\";\n }\n return toStringLong();\n }",
"long getLongValue();",
"long getLongValue();",
"public long getLongValue() {\n if (typeCase_ == 3) {\n return (java.lang.Long) type_;\n }\n return 0L;\n }",
"public Long getShortForm()\n {\n return SHORT_FORM;\n }",
"public Long getShortForm()\n {\n return SHORT_FORM;\n }",
"@Override\r\n\tpublic String typeV() {\n\t\treturn hio.TyreType();\r\n\t}",
"boolean hasLongValue();",
"@Override\n\tpublic void show4() {\n\t\t\n\t}",
"public long mo1264d() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }",
"@Override\n\tpublic void show() {\n\t\tSystem.out.println(\"´óTÐô\");\n\t}",
"public QueryPolymorphismSiteSetter() {\n super(\"org.tair.db.locusdetail\", 2147483647);\n }",
"@Override\n public String getFullType() {\n return fullType;\n }",
"abstract String display(T value);",
"@Override\n\tpublic void setDisplayOptions(int options) {\n\t\t\n\t}",
"long getUnknown2();",
"public Class getType() {\n\t if ( type != null )\n\t return type;\n\t return long.class;\n\t }",
"boolean hasLong();",
"@Override\n public Hashtable<String, String> getLongInformation() {\n Hashtable<String, String> information = getInformation();\n \n information.put(\"size\", getSize().getTextual());\n information.put(\"chemical\", \"\" + isChemical());\n information.put(\"trapped people\", \"\" + getTrappedPeople());\n information.put(\"number of injured\", \"\" + getNumberOfInjured());\n information.put(\"description\", \"\" + getDescription());\n \n return information;\n }",
"protected abstract String display();",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"public String toString() {\r\n return \"Type: Integer\";\r\n }",
"public void showProperties(Class type);",
"@Override\n public void show() {\n }",
"public long longValue();",
"public Integer getTypeShortForm()\n {\n return TYPE_SHORT_FORM;\n }",
"public Integer getTypeShortForm()\n {\n return TYPE_SHORT_FORM;\n }",
"public interface DisplayView<U> {\n\n void display(final List<U> u);\n}",
"public Long getTypeid() {\n return typeid;\n }",
"public abstract String toString_short();",
"@Override\n\tpublic void display() {\n\t\tSystem.out.println(valueType+\": \"+value);\n\t}",
"public void setOpcintype(java.lang.Long value) {\n\t\tsetValue(test.generated.pg_catalog.tables.PgOpclass.PG_OPCLASS.OPCINTYPE, value);\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn Long.toString(id);\r\n\t}",
"long getUnknown12();",
"@Override\n public String toString ()\n {\n return \"type = \" + type;\n }",
"@Override\r\n\tpublic void show(Integer t) {\n\t\tSystem.out.println(\"show:\" + t * t);\r\n\t}",
"public static void show() {\n\t\t\n\t}",
"@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:58:16.462 -0500\", hash_original_method = \"E8D546530FFFC5C2FC6E86FFB85AACEC\", hash_generated_method = \"8D9CE2FDC7E6CD726BBA9CB740736852\")\n \n private int _eglGetDisplay(Object native_display){\n \taddTaint(native_display.getTaint());\n \treturn getTaintInt();\n }",
"public abstract long mo24412e();",
"default String display() { //just wanted to try out default methods we learned in class here-- abstract format below\r\n\t\treturn \"Nothing to show here\";\r\n\t}",
"@Override\n\tvoid Show() {\n\t\tanimal.Show();\n\t\tSystem.out.print(\" Shorts\");\n\t}",
"@Override\r\n\tpublic void show() {\n\t}",
"public void show() \r\n\t {\n\t PI1.super.show(); \r\n\t \r\n\t // use super keyword to call the show \r\n\t // method of PI2 interface \r\n\t PI2.super.show(); \r\n\t }",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\t}",
"@Override\n\tpublic void show() {\n\t}",
"public String toString() {\n/* */ return this.field_176894_i;\n/* */ }",
"@Override\n\tpublic void show() {\n\t\tSystem.out.println(\"´ó¿ãñÃ\");\n\t}",
"public Obj getType3GlyphStream(long paramLong) {\n/* 954 */ return Obj.__Create(GetType3GlyphStream(this.a, paramLong), this.b);\n/* */ }",
"@Override\n\tpublic int getDisplayOptions() {\n\t\treturn 0;\n\t}",
"String getTypeDefn(String shortName, boolean assoc) {\n if (assoc) {\n // PLong<R>\n return propertyType + \"<R>\";\n\n } else {\n // PLong<QCustomer>\n return propertyType + \"<Q\" + shortName + \">\";\n }\n }"
] | [
"0.6013455",
"0.5780857",
"0.5610728",
"0.55926794",
"0.5437977",
"0.53732544",
"0.53542244",
"0.53257334",
"0.5287671",
"0.5283226",
"0.52672595",
"0.52544737",
"0.5244555",
"0.5234144",
"0.52007765",
"0.51985824",
"0.5190397",
"0.5177548",
"0.51535803",
"0.51445585",
"0.50826865",
"0.50794625",
"0.5070722",
"0.50671357",
"0.50631475",
"0.50401294",
"0.50207144",
"0.5007571",
"0.4995229",
"0.4981442",
"0.4981442",
"0.49679106",
"0.49436352",
"0.49436352",
"0.4902985",
"0.49009293",
"0.48963603",
"0.4891002",
"0.48898327",
"0.48784953",
"0.4864264",
"0.48557824",
"0.4852657",
"0.4850311",
"0.48467648",
"0.48440427",
"0.48424858",
"0.48345807",
"0.48207295",
"0.48207295",
"0.48207295",
"0.48207295",
"0.48207295",
"0.48207295",
"0.48207295",
"0.48207295",
"0.48207295",
"0.48207295",
"0.48207295",
"0.48207295",
"0.48207295",
"0.48207295",
"0.48207295",
"0.48187867",
"0.48171982",
"0.48120728",
"0.48092416",
"0.48006287",
"0.48006287",
"0.4799155",
"0.47881746",
"0.47863397",
"0.47795516",
"0.47752175",
"0.47659189",
"0.47627062",
"0.47544768",
"0.4753599",
"0.47431818",
"0.4742673",
"0.47425312",
"0.4740464",
"0.47391456",
"0.47371736",
"0.47320655",
"0.47309458",
"0.47309458",
"0.47309458",
"0.47309458",
"0.47309458",
"0.47309458",
"0.47309458",
"0.47309458",
"0.4726596",
"0.4726596",
"0.47257382",
"0.47230735",
"0.47209197",
"0.47197354",
"0.47153732"
] | 0.61640114 | 0 |
Helper binding method for function: showMaybe. | public static final SourceModel.Expr showMaybe(SourceModel.Expr maybe) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showMaybe), maybe});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Optional<T> show();",
"@Override\n public String toString() {\n StringBuilder b = new StringBuilder();\n boolean any = false;\n if (isUnknown()) {\n b.append(\"?\");\n any = true;\n } else if (isPolymorphic()) {\n b.append(\"^(\").append(var).append('[');\n if (isMaybeAbsent()) {\n b.append(\"absent\");\n any = true;\n }\n if (isMaybePresent()) {\n if (any)\n b.append('|');\n b.append(\"present\");\n }\n b.append(\"])\");\n any = true;\n } else {\n if (isMaybeUndef()) {\n b.append(\"Undef\");\n any = true;\n }\n if (isMaybeNull()) {\n if (any)\n b.append('|');\n b.append(\"Null\");\n any = true;\n }\n if (isMaybeAnyBool()) {\n if (any)\n b.append('|');\n b.append(\"Bool\");\n any = true;\n } else if (isMaybeTrueButNotFalse()) {\n if (any)\n b.append('|');\n b.append(\"true\");\n any = true;\n } else if (isMaybeFalseButNotTrue()) {\n if (any)\n b.append('|');\n b.append(\"false\");\n any = true;\n }\n if (isMaybeAnyNum()) {\n if (any)\n b.append('|');\n b.append(\"Num\");\n any = true;\n } else {\n if (num == null && isMaybeZero() && !isMaybeNumUIntPos()) {\n if (any)\n b.append('|');\n b.append(\"Zero\");\n any = true;\n } else if (!isMaybeZero() && isMaybeNumUIntPos()) {\n if (any)\n b.append('|');\n b.append(\"UIntPos\");\n any = true;\n } else if (isMaybeNumUInt()) {\n if (any)\n b.append('|');\n b.append(\"UInt\");\n any = true;\n }\n if (isMaybeNumOther()) {\n if (any)\n b.append('|');\n b.append(\"NotUInt\");\n any = true;\n }\n if (isMaybeNaN()) {\n if (any)\n b.append('|');\n b.append(\"NaN\");\n any = true;\n }\n if (isMaybeInf()) {\n if (any)\n b.append('|');\n b.append(\"Inf\");\n any = true;\n }\n if (num != null) {\n if (any)\n b.append('|');\n b.append(num);\n any = true;\n }\n }\n if (excluded_strings != null || included_strings != null) {\n if (any)\n b.append('|');\n b.append('(');\n any = false;\n }\n if (isMaybeAnyStr()) {\n if (any)\n b.append('|');\n b.append(\"Str\");\n any = true;\n } else {\n if (isMaybeStrUInt()) {\n if (any)\n b.append('|');\n b.append(\"UIntStr\");\n any = true;\n }\n if (isMaybeStrOtherNum()) {\n if (any)\n b.append('|');\n b.append(\"NotUIntStr\"); // TODO: change to OtherNumStr?\n any = true;\n }\n if (isMaybeStrIdentifier()) {\n if (any)\n b.append('|');\n b.append(\"IdentStr\");\n any = true;\n }\n if (isMaybeStrOtherIdentifierParts()) {\n if (any)\n b.append('|');\n b.append(\"OtherIdentPartsStr\");\n any = true;\n }\n if (isMaybeStrOther()) {\n if (any)\n b.append('|');\n b.append(\"OtherStr\");\n any = true;\n }\n if (isStrJSON()) {\n if (any)\n b.append(\"|\");\n b.append(\"JSONStr\");\n any = true;\n }\n if (isMaybeStrPrefix()) {\n if (any)\n b.append('|');\n b.append(\"PrefixStr[\").append(Strings.escape(str)).append(']');\n any = true;\n } else if (str != null) {\n if (any)\n b.append('|');\n b.append('\"').append(Strings.escape(str)).append('\"');\n any = true;\n }\n }\n if (excluded_strings != null || included_strings != null) {\n b.append(')');\n if (excluded_strings != null)\n b.append(\"\\\\{\").append(excluded_strings.stream().sorted().map(s -> '\"' + Strings.escape(s) + '\"').collect(java.util.stream.Collectors.joining(\",\"))).append(\"}\");\n if (included_strings != null)\n b.append(\"{\").append(included_strings.stream().sorted().map(s -> '\"' + Strings.escape(s) + '\"').collect(java.util.stream.Collectors.joining(\",\"))).append(\"}\");\n any = true;\n }\n if (object_labels != null) {\n if (any)\n b.append('|');\n b.append(object_labels);\n any = true;\n }\n if (getters != null) {\n if (any)\n b.append('|');\n b.append(\"getter \").append(getters);\n any = true;\n }\n if (setters != null) {\n if (any)\n b.append('|');\n b.append(\"setter \").append(setters);\n any = true;\n }\n if (isMaybeAbsent()) {\n if (any)\n b.append('|');\n b.append(\"absent\");\n any = true;\n }\n if (functionPartitions != null) {\n if (any)\n b.append(',');\n b.append(\"functionPartitions=\").append(functionPartitions);\n any = true;\n }\n if (functionTypeSignatures != null) {\n if (any)\n b.append(',');\n b.append(\"functionTypeSignatures=\").append(functionTypeSignatures);\n // any = true;\n }\n }\n if (!any)\n b.append(\"<no value>\");\n// if (isMaybeModified())\n// b.append(\"%\");\n return b.toString();\n }",
"private static void optinalOfNullableBasic() {\n String answer1 = \"Yes\";\n String answer2 = null;\n System.out.println(\"\" + Optional.ofNullable(answer1));\n \n // we cn pass null value in ofNullable method. In this case it will return empty optional\n // rather then Null Pointer Exception\n System.out.println(\"\" + Optional.ofNullable(answer2));\n }",
"@Override\n\tpublic String display() {\n\t\treturn \"null\";\n\t}",
"public String shortRepr() {\n\t\treturn \"Value of some kind.\";\n\t}",
"abstract String display(T value);",
"String displayValue();",
"private static void optionalOrElseBasic() {\n \n System.out.println(\"name remains = \"+Optional.ofNullable(\"Yassir\").orElse(\"Arafat\"));\n System.out.println(\"name changed = \"+Optional.ofNullable(null).orElse(\"Arafat\"));\n }",
"public String show() {\n\t\treturn null;\r\n\t}",
"public static <T> T genericDisplayMethod(T a){\n System.out.println(a);\n return a;\n }",
"public String wantDetail();",
"@Override\r\n\tpublic String display() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic String display() {\n\t\treturn null;\r\n\t}",
"public String showPerson(){\n return _person.toString();\n }",
"public String getDisplayValue()\n {\n return null;\n }",
"java.lang.String getOptionalValue();",
"private static String getValue(Object o) {\n if (o != null) {\n return o.toString();\n }\n return \"null\";\n }",
"@Override\n\tpublic String display() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn getValue() != null ? getValue().toString() : \"null\";\n\t}",
"public static final SourceModel.Expr showRecord(SourceModel.Expr arg_1) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showRecord), arg_1});\n\t\t}",
"void showNoneParametersView();",
"public String getDetailInfo(Object ... obj) {\n\t\treturn null;\n\t}",
"private String getNullValueText() {\n return getNull();\n }",
"private String bindNull() {\n String op;\n \n if (operator == null) {\n op = null;\n } else if (operator.equals(\"=\")) {\n op = \"IS\";\n } else if (operator.equals(\"!=\")) {\n op = \"IS NOT\";\n } else {\n op = operator;\n }\n if (column != null && skipNulls) {\n return \"1 = 1\";\n } else {\n return cond(column, op, \"NULL\");\n }\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\tif (value != null)\r\n\t\t\treturn String.format(\"Optional[%s]\", value);\r\n\t\telse\r\n\t\t\treturn \"Optional.empty\";\r\n\t}",
"@Override\n\tpublic void debug(Supplier<?> msgSupplier) {\n\n\t}",
"public String show() {\n\t\tif (opened) {\n\t\t\tif (isBomb()) {\n\t\t\t\treturn \"o*\";\n\t\t\t} else{\n\t\t\t\treturn \"\"+value;\n\t\t\t}\n\t\t} else {\n\t\t\treturn \"\";\n\t\t}\n\t}",
"protected abstract void showHint();",
"public String toDisplayString() {\r\n String ret = null;\r\n try {\r\n ret = this.toString(\"DMY.\");\r\n } catch (Exception ex) {/* Exception kann nicht auftreten */\r\n }\r\n return ret;\r\n }",
"protected abstract String display();",
"T getNullRepresentation();",
"public String display();",
"public void test6(){\n User user = null;\n\n String name = Optional.ofNullable(user).map(User :: getName).orElse(\"taotao\");\n\n System.out.println(name);\n }",
"@NotNull\n protected String format(@NotNull final Object value) {\n return value != null\n ? value.toString()\n : \"\";\n }",
"@Test\n\tpublic void getDisplayValueShouldReturnNullWhenValueIsNull(){\n\t\tVitalsResult l = new VitalsResult();\n\t\tassertNull(l.getDisplayValue());\n\t}",
"private static void optionalIfPresent() {\n Optional<String> optionalOb = Optional.of(\"Yassir\");\n optionalOb.ifPresent(name -> {System.out.println(\"Name = \"+name);});\n }",
"default String display() { //just wanted to try out default methods we learned in class here-- abstract format below\r\n\t\treturn \"Nothing to show here\";\r\n\t}",
"protected View getDisplayView(final T field, Fragment frag){\n return null;\n }",
"public String toString() {\n return \"[ \" + nullCheck.toString() + \" is null ]\";\n }",
"public abstract String display();",
"@Override\n public String visit(UnknownType n, Object arg) {\n return null;\n }",
"static public void emitNullableString(RowEmitter outputEmitter, String value) {\r\n\t\tif(value != null)\r\n\t\t\toutputEmitter.addString(value);\r\n\t\telse\r\n\t\t\toutputEmitter.addNull();\r\n\t}",
"boolean getNullable();",
"default void show1() {\n\t\t\n\t\t\n\t}",
"private static String asVerboseString(Object obj) {\n String name = obj.getClass().getSimpleName();\n String toString = String.valueOf(obj);\n if (toString.startsWith(name)) {\n return toString;\n } else {\n return String.format(\"%s:%s\", name, toString);\n }\n }",
"abstract public String getDisplayValue(String fieldname);",
"private String notNull(String value) {\n return value != null ? value : \"\";\n }",
"public static String formatNull() {\n\t\treturn \"null\";\n\t}",
"@Override\r\n\tpublic View getInfoWindow(Marker arg0) {\n\t\treturn null;\r\n\t}",
"@Override\n\t\t\t\tpublic View getInfoWindow(Marker arg0) {\n\t\t\t\t\treturn null;\n\t\t\t\t}",
"public void dispHardNull()\r\n {\r\n //Null block of code was original display method; keeping just in case\r\n /*switch (Win)\r\n {\r\n case 1: \r\n case 2: \r\n case 3: JOptionPane.showMessageDialog(null, \r\n \"It's a tie!\",\r\n \"digiRPS - Results\",\r\n JOptionPane.INFORMATION_MESSAGE);\r\n break;\r\n case 4: \r\n case 5: \r\n case 6: JOptionPane.showMessageDialog(null, \r\n userName + \" won!\",\r\n \"digiRPS - Results\",\r\n JOptionPane.INFORMATION_MESSAGE);\r\n break;\r\n case 7: \r\n case 8: \r\n case 9: JOptionPane.showMessageDialog(null, \r\n \"Computer won!\",\r\n \"digiRPS - Results\",\r\n JOptionPane.INFORMATION_MESSAGE);\r\n break;\r\n }*/\r\n }",
"@Override\n\tpublic void debug(Marker marker, Supplier<?> msgSupplier) {\n\n\t}",
"default V getOrThrow() {\n return getOrThrow(\"null\");\n }",
"public abstract Optional<A> val();",
"private void display(Object a) {\r\n System.out.print(a.toString());\t\r\n }",
"@Override\n\tpublic String toStringDebug() {\n\t\treturn null;\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic <E> Maybe<E> getInputValueMaybe(FlowUnit u, FlowExec exec, String arg, Class<E> obj) throws Exception\n\t\t{\n\t\tfor(FlowConn c:conns)\n\t\t\tif(c.toUnit==u && c.toArg.equals(arg))\n\t\t\t\t{\n\t\t\t\tMap<String,Object> lastOutput=exec.getLastOutput(c.fromUnit);\n\t\t\t\treturn (Maybe<E>)(Maybe<?>)Maybe.just(lastOutput.get(c.fromArg));\n\t\t\t\t}\n\t\treturn new Maybe<E>();\n\t\t}",
"@Nonnull\n public Function<Object, String> getValueToString()\n {\n return _valueToString;\n }",
"public Optional<String> getDisplayName() {\n return Optional.ofNullable(displayName);\n }",
"private String showWasThenNow() {\n if (then1Price == null && then2Price == null)\r\n return showWasNow();\r\n\r\n return String.format(\"Was %s, then %s, now %s\",\r\n getFormattedPrice(wasPrice),\r\n getFormattedPrice((then2Price != null) ? then2Price : then1Price),\r\n getFormattedPrice(nowPrice));\r\n }",
"private static String toString(Object obj) {\n return (obj == null ? null : obj.toString());\n }",
"public static String nvlToString(Object value) {\r\n\t\treturn nvlToString(value, EMPTY);\r\n\t}",
"public static String null2String(Object obj) {\n\t\treturn obj == null ? \"\" : obj.toString();\n\t}",
"public void showDisplaySolution(Solution<Position> solution);",
"private String getOne2OneDisplayName() {\n Logger.d(TAG, \"getOne2OneDisplayName() entry\");\n if (null != mChatMap) {\n Object obj = mChatMap.get(ChatListFragment.NUMBER);\n Logger.d(TAG, \"getOne2OneDisplayName() the obj is \" + obj);\n if (obj instanceof String) {\n String displayName = ContactsListManager.getInstance()\n .getDisplayNameByPhoneNumber((String) obj);\n Logger.d(TAG,\n \"getOne2OneDisplayName() the display name is \"\n + displayName);\n return displayName;\n } else {\n Logger.e(TAG, \"getOne2OneDisplayName() obj is not a String\");\n return null;\n }\n } else {\n Logger.e(TAG, \"getOne2OneDisplayName() mChatMap is null\");\n return null;\n }\n }",
"private ClassInstance checkDerivedShowInstance(TypeConstructor typeCons,\r\n TypeConsApp instanceType,\r\n TypeClass typeClass, SourceRange position) throws UnableToResolveForeignEntityException {\r\n \r\n if (!typeClass.getName().equals(CAL_Debug.TypeClasses.Show)) {\r\n throw new IllegalStateException();\r\n }\r\n \r\n ModuleName currentModuleName = currentModuleTypeInfo.getModuleName();\r\n \r\n \r\n ForeignTypeInfo foreignTypeInfo = typeCons.getForeignTypeInfo(); \r\n \r\n if (foreignTypeInfo != null) {\r\n \r\n // foreign types\r\n \r\n Class<?> foreignType = foreignTypeInfo.getForeignType();\r\n \r\n if (foreignType.isPrimitive()) {\r\n \r\n if (foreignType == boolean.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showForeignBoolean},\r\n InstanceStyle.DERIVING); \r\n \r\n } else if (foreignType == byte.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showByte},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == char.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showForeignChar},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == short.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showShort},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == int.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showInt},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == long.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showLong},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == float.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showFloat},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == double.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showDouble},\r\n InstanceStyle.DERIVING);\r\n \r\n } else {\r\n throw new IllegalStateException(\"A type that claims to be primitive is not one of the known primitive types\");\r\n }\r\n \r\n } else {\r\n // Defer to String.valueOf(Object) for non-primitive foreign values\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showJObject}, \r\n InstanceStyle.DERIVING);\r\n }\r\n \r\n \r\n } else {\r\n \r\n // non-foreign types\r\n \r\n TypeExpr showTypeExpr = TypeExpr.makeFunType(instanceType, compiler.getTypeChecker().getTypeConstants().getStringType());\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeShowInstanceFunction(typeCons), showTypeExpr, position); \r\n \r\n return new ClassInstance(currentModuleName, instanceType, typeClass, null, InstanceStyle.DERIVING);\r\n }\r\n }",
"@Override\r\n public String toString() {\r\n return (value == null) ? \"\" : value;\r\n }",
"public void optional() {\n\n // .stream\n Stream<Optional<Employee>> emp = getEmployeeStream(\"Some employee ID\");\n Stream<Employee> empStream = emp.flatMap(Optional::stream);\n\n // .or\n Optional<Employee> or = getEmployee(\"123\").or(() -> Optional.of(new Employee(\"123\")));\n\n // .ifPresentOrElse\n or.ifPresentOrElse(employee -> {\n System.out.println(\"Present\");\n }, () -> {\n System.out.println(\"Else\");\n });\n\n }",
"public static String nvl(Object obj, String def) {\r\n\t\tif (obj == null)\r\n\t\t\treturn def;\r\n\t\telse {\r\n\t\t\tString v = obj.toString();\r\n\t\t\treturn v == null ? \"\" : v;\r\n\t\t}\r\n\t}",
"public abstract String showDetails();",
"@Override\n\tpublic void debug(Supplier<?> msgSupplier, Throwable t) {\n\n\t}",
"public void show() {\r\n show(\"\");\r\n }",
"public OptionalOutputSchema detailDosen(String nip, String clientNM) {\n\t\ttry {\n\t\t\tlogger.trace(\"DETAIL\");\n\t\t\toptionalOutputSchema = new OptionalOutputSchema();\n\t\t\terrorSchema = new ErrorSchema();\n\t\t\tif (clientNM.equals(\"\")) {\n\t\t\t\terrorSchema = errorSchema(\"SIA-11-444\");\n\t\t\t\toptionalOutputSchema.setError_schema(errorSchema);\n\t\t\t} else if (!clientNM.equals(\"siapti\")) {\n\t\t\t\terrorSchema = errorSchema(\"SIA-22-404\");\n\t\t\t\toptionalOutputSchema.setError_schema(errorSchema);\n\t\t\t} else {\n\t\t\t\toptDosen = dosenInterface.findByNip(nip);\n\t\t\t\t\n\t\t\t\tif (optDosen.isPresent()) {\n\t\t\t\t\tlogger.info(\"DETAIL SUKSES\");\n\t\t\t\t\terrorSchema = errorSchema(\"SIA-01-200\");\n\t\t\t\t\toptionalOutputSchema.setError_schema(errorSchema);\n\t\t\t\t\toptionalOutputSchema.setOutput_schema(optDosen);\n\t\t\t\t} else {\n\t\t\t\t\tlogger.error(\"DETAIL ERROR : SIA-01-404\");\n\t\t\t\t\terrorSchema = errorSchema(\"SIA-01-404\");\n\t\t\t\t\toptionalOutputSchema.setError_schema(errorSchema);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\terrorSchema = errorSchema(\"SIA-51-500\");\n\t\t\toptionalOutputSchema.setError_schema(errorSchema);\n\t\t}\n\n\t\treturn optionalOutputSchema;\n\t}",
"@Override\n public View getInfoWindow(Marker arg0) {\n return null;\n }",
"protected <U> String toString(Supplier<U> supp) {\n\t\ttry {\n\t\t\treturn \"\"+supp.get();\n\t\t} catch (RuntimeException ex) {\n\t\t\treturn ex.getClass().getSimpleName();\n\t\t}\n\t}",
"private static void printIntOrDouble(double value) {\n if (value == (int) value) {\n System.out.print(\" \" + (int) value);\n } else {\n System.out.print(\" \" + value);\n }\n }",
"@Override\n\tpublic String toString(@javax.annotation.Nullable Event arg0, boolean arg1) {\n\t\treturn \"get visibility\";\n\t}",
"public static final SourceModel.Expr showJObject(SourceModel.Expr obj) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showJObject), obj});\n\t\t}",
"public T caseExprPrint(ExprPrint object)\n {\n return null;\n }",
"void doShow() throws AmbiguousException, PlayerDebugException\n\t{\n\t\tif (!hasMoreTokens())\n\t\t\tout( getHelpTopic(\"show\") ); //$NON-NLS-1$\n\t\telse\n\t\t{\n\t\t\t/* otherwise we have a boatload of options */\n\t\t\tString subCmdString = nextToken();\n\t\t\tint subCmd = showCommandFor(subCmdString);\n\t\t\tswitch(subCmd)\n\t\t\t{\n\t\t\t\tcase SHOW_NET_CMD:\n\t\t\t\t\tdoShowStats();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase SHOW_FUNC_CMD:\n\t\t\t\t\tdoShowFuncs();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase SHOW_URI_CMD:\n\t\t\t\t\tdoShowUri();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase SHOW_PROPERTIES_CMD:\n\t\t\t\t\tdoShowProperties();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase SHOW_FILES_CMD:\n\t\t\t\t\tdoShowFiles();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase SHOW_BREAK_CMD:\n\t\t\t\t\tdoShowBreak();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase SHOW_VAR_CMD:\n\t\t\t\t\tdoShowVariable();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase SHOW_MEM_CMD:\n\t\t\t\t\tdoShowMemory();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase SHOW_LOC_CMD:\n\t\t\t\t\tdoShowLocations();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase SHOW_DIRS_CMD:\n\t\t\t\t\tdoShowDirectories();\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tdoUnknown(\"show\", subCmdString); //$NON-NLS-1$\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public String visit(UnionType n, Object arg) {\n return null;\n }",
"public static final SourceModel.Expr showDefault(SourceModel.Expr arg_1) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showDefault), arg_1});\n\t\t}",
"public String reveal() { \n String message = \"\";\n \n if(verifyMessagePresence()){\n for(int ii = 3; ii < terminalLocation(); ii = ii + 1){\n message = message + (char)(getHidden(ii));\n }\n }else{\n return null;\n }\n return message;\n }",
"boolean getSearchValueNull();",
"@Override\n\tpublic void debug(Marker marker, MessageSupplier msgSupplier) {\n\n\t}",
"@Override\r\n\tpublic String show(HttpServletResponse paramHttpServletResponse) {\n\t\treturn null;\r\n\t}",
"public static String toString(Object value) {\n if (value != null)\n return value.toString();\n else\n return null;\n }",
"@Override\n\t\t\tpublic View getInfoContents(Marker arg0) {\n\t\t\t\treturn null;\n\t\t\t}",
"@Override\n\tpublic String getText(Object object) {\n\t\tString label = ((tzpropOptional) object).getTzname();\n\t\treturn label == null || label.length() == 0 ? getString(\"_UI_tzpropOptional_type\")\n\t\t\t\t: getString(\"_UI_tzpropOptional_type\") + \" \" + label;\n\t}",
"public String toString(Object o) { return Objects.toString(o,null); }",
"default Optional<V> toOptional() {\n V item = orElseNull();\n return item == null ? Optional.empty() : Optional.of( item );\n }",
"@Override\n public View getInfoWindow(Marker arg0) {\n return null;\n }",
"private String toString(Object value) {\n if (value == null) return \"null\";\n // TODO: handle arrays in a nicer way.\n return value.toString();\n }",
"public String displayString() {\r\n\treturn recupValCle(displayString);\r\n }",
"java.lang.String getDetailsOrDefault(\n java.lang.String key,\n /* nullable */\n java.lang.String defaultValue);",
"public static final SourceModel.Expr showBoolean(SourceModel.Expr x) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showBoolean), x});\n\t\t}",
"public String format(Object obj) throws JDBFException {\r\n if (type == 'N' || type == 'F') {\r\n if (obj == null) {\r\n obj = new Double(0.0D);\r\n }\r\n if (obj instanceof Number) {\r\n Number number = (Number) obj;\r\n StringBuffer stringbuffer = new StringBuffer(getLength());\r\n for (int i = 0; i < getLength(); i++) {\r\n stringbuffer.append(\"#\");\r\n }\r\n\r\n if (getDecimalCount() > 0) {\r\n stringbuffer.setCharAt(getLength() - getDecimalCount() - 1, '.');\r\n }\r\n DecimalFormat decimalformat = new DecimalFormat(stringbuffer.toString(), DFS);\r\n String s1 = decimalformat.format(number);\r\n int k = getLength() - s1.length();\r\n if (k < 0) {\r\n throw new JDBFException(\"Value \" + number + \" cannot fit in pattern: '\" + stringbuffer + \"'.\");\r\n }\r\n StringBuffer stringbuffer2 = new StringBuffer(k);\r\n for (int l = 0; l < k; l++) {\r\n stringbuffer2.append(\" \");\r\n }\r\n\r\n return stringbuffer2 + s1;\r\n } else {\r\n throw new JDBFException(\"Expected a Number, got \" + obj.getClass() + \".\");\r\n }\r\n }\r\n if (type == 'C') {\r\n if (obj == null) {\r\n obj = \"\";\r\n }\r\n if (obj instanceof String) {\r\n String s = (String) obj;\r\n if (s.length() > getLength()) {\r\n throw new JDBFException(\"'\" + obj + \"' is longer than \" + getLength() + \" characters.\");\r\n }\r\n StringBuffer stringbuffer1 = new StringBuffer(getLength() - s.length());\r\n for (int j = 0; j < getLength() - s.length(); j++) {\r\n stringbuffer1.append(' ');\r\n }\r\n\r\n return s + stringbuffer1;\r\n } else {\r\n throw new JDBFException(\"Expected a String, got \" + obj.getClass() + \".\");\r\n }\r\n }\r\n if (type == 'L') {\r\n if (obj == null) {\r\n obj = new Boolean(false);\r\n }\r\n if (obj instanceof Boolean) {\r\n Boolean boolean1 = (Boolean) obj;\r\n return boolean1.booleanValue() ? \"Y\" : \"N\";\r\n } else {\r\n throw new JDBFException(\"Expected a Boolean, got \" + obj.getClass() + \".\");\r\n }\r\n }\r\n if (type == 'D') {\r\n if (obj == null) {\r\n obj = new Date();\r\n }\r\n if (obj instanceof Date) {\r\n Date date = (Date) obj;\r\n SimpleDateFormat simpledateformat = new SimpleDateFormat(\"yyyyMMdd\");\r\n return simpledateformat.format(date);\r\n } else {\r\n throw new JDBFException(\"Expected a Date, got \" + obj.getClass() + \".\");\r\n }\r\n } else {\r\n throw new JDBFException(\"Unrecognized JDBFField type: \" + type);\r\n }\r\n }",
"public static String displayNull (String input)\r\n {\r\n //because of short circuiting, if it's null, it never checks the length.\r\n if (input == null || input.length() == 0)\r\n return \"N/A\";\r\n else\r\n return input;\r\n }",
"@Override\npublic String toString(@Nullable Event arg0, boolean arg1) {\n\treturn null;\n}",
"public Type show_tail() {\n \t \n \t //just return element in tail\n\t return(len != 1 ? tail.show_element(): null);\n }"
] | [
"0.68511945",
"0.5601088",
"0.5367622",
"0.5237414",
"0.51644576",
"0.5102048",
"0.50512594",
"0.49762285",
"0.49712926",
"0.48742312",
"0.48343405",
"0.4833247",
"0.4833247",
"0.47743735",
"0.4773326",
"0.47502843",
"0.4749854",
"0.4740613",
"0.47219196",
"0.47099015",
"0.47065362",
"0.4697517",
"0.4689584",
"0.46864164",
"0.46796823",
"0.46759766",
"0.46693116",
"0.46488923",
"0.46460104",
"0.46316925",
"0.46274853",
"0.46218738",
"0.46190783",
"0.45891064",
"0.45888495",
"0.45585245",
"0.455761",
"0.451664",
"0.45125216",
"0.45030707",
"0.44951183",
"0.4495021",
"0.44725734",
"0.446342",
"0.44587913",
"0.44554508",
"0.4443017",
"0.444218",
"0.4437018",
"0.44359687",
"0.4435107",
"0.44197947",
"0.44156048",
"0.44115",
"0.4410853",
"0.44032082",
"0.43996766",
"0.4394466",
"0.43915144",
"0.43893942",
"0.4388199",
"0.43662378",
"0.4365944",
"0.43528587",
"0.4352649",
"0.43508697",
"0.43397763",
"0.43376845",
"0.43314198",
"0.43218377",
"0.43129286",
"0.43103024",
"0.4308779",
"0.43067285",
"0.4304376",
"0.43017992",
"0.42940867",
"0.42884618",
"0.42884094",
"0.42848366",
"0.42828763",
"0.42773363",
"0.42737907",
"0.42662063",
"0.42608988",
"0.42595488",
"0.4256715",
"0.42556208",
"0.4254006",
"0.4253927",
"0.4251627",
"0.42491218",
"0.42488384",
"0.42460734",
"0.4240977",
"0.42403862",
"0.42386037",
"0.4232865",
"0.4224738",
"0.4217413"
] | 0.753744 | 0 |
Helper binding method for function: showOrdering. | public static final SourceModel.Expr showOrdering(SourceModel.Expr x) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showOrdering), x});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getSortOrder();",
"java.lang.String getOrderBy();",
"public String sortOrder();",
"public void changeSortOrder();",
"public final native String getOrderBy() /*-{\n return this.getOrderBy();\n }-*/;",
"java.lang.String getOrderByDataItem();",
"@FXML\n private void updateNameOrder(ActionEvent event) {\n\n if (sortOrder == Order.NAME_ASC) {\n\n sortOrder = Order.NAME_DESC;\n\n } else if (sortOrder == Order.NAME_DESC) {\n\n sortOrder = Order.DEFAULT;\n\n } else {\n\n sortOrder = Order.NAME_ASC;\n\n }\n\n updateOrderButtons();\n\n }",
"private static void DoOrderBy()\n\t{\n\t\tArrayList<Attribute> inAtts = new ArrayList<Attribute>();\n\t\tinAtts.add(new Attribute(\"Int\", \"n_n_nationkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"n_n_name\"));\n\t\tinAtts.add(new Attribute(\"Int\", \"n_n_regionkey\"));\n\t\tinAtts.add(new Attribute(\"Str\", \"n_n_comment\"));\n\n\t\tArrayList<Attribute> outAtts = new ArrayList<Attribute>();\n\t\toutAtts.add(new Attribute(\"Int\", \"att1\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att2\"));\n\t\toutAtts.add(new Attribute(\"Int\", \"att3\"));\n\t\toutAtts.add(new Attribute(\"Str\", \"att4\"));\n\n\t\t// These could be more complicated expressions than simple input columns\n\t\tMap<String, String> exprsToCompute = new HashMap<String, String>();\n\t\texprsToCompute.put(\"att1\", \"n_n_nationkey\");\n\t\texprsToCompute.put(\"att2\", \"n_n_name\");\n\t\texprsToCompute.put(\"att3\", \"n_n_regionkey\");\n\t\texprsToCompute.put(\"att4\", \"n_n_comment\");\n\t\t\n\t\t// Order by region key descending then nation name ascending\n\t\tArrayList<SortKeyExpression> sortingKeys = new ArrayList<SortKeyExpression>();\n\t\tsortingKeys.add(new SortKeyExpression(\"Int\", \"n_n_regionkey\", false));\n\t\tsortingKeys.add(new SortKeyExpression(\"Str\", \"n_n_name\", true));\n\t\t\n\t\t// run the selection operation\n\t\ttry\n\t\t{\n\t\t\tnew Order(inAtts, outAtts, exprsToCompute, sortingKeys, \"nation.tbl\", \"out.tbl\", \"g++\", \"cppDir/\");\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}",
"@FXML\n private void updateOrganOrder(ActionEvent event) {\n\n if (sortOrder == Order.ORGAN_ASC) {\n\n sortOrder = Order.ORGAN_DESC;\n\n } else if (sortOrder == Order.ORGAN_DESC) {\n\n sortOrder = Order.DEFAULT;\n\n } else {\n\n sortOrder = Order.ORGAN_ASC;\n\n }\n\n updateOrderButtons();\n\n }",
"public final native String getSortOrder() /*-{\n return this.getSortOrder();\n }-*/;",
"@Override\r\n\tpublic void editSort() {\n\t\t\r\n\t}",
"@Override\n\t\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t\tupdateSortingProperty(property);\n\t\t\t\t}",
"void sortUI();",
"Sort asc(QueryParameter parameter);",
"public String sortBy();",
"public String asc() {\n return this.column + \" ASC\";\n }",
"public String asc() {\n return this.column + \" ASC\";\n }",
"@VTID(28)\n boolean getSortUsingCustomLists();",
"@java.lang.Deprecated\n java.lang.String getOrderBy();",
"@Override\n\tpublic String getOrder() {\n\t\treturn \"zjlxdm,asc\";\n\t}",
"OrderExpression<T> asc();",
"public boolean getOrderAscending()\n {\n return this.orderAscending;\n }",
"public void setOrderAscending(boolean ascending)\n {\n this.orderAscending = ascending;\n }",
"public Short getSortOrder() {\n return sortOrder;\n }",
"public void sortAscending()\r\n\t{\r\n\t\tList<Book> oldItems = items;\r\n\t\titems = new ArrayList<Book>(items);\r\n\t\tCollections.sort(items);\r\n\t\tfirePropertyChange(\"books\", oldItems, items);\r\n\t}",
"@Override\n public JSONObject viewOrderByDirector() {\n return in_orderformdao.viewOrderFormByDirector();\n }",
"private String viewOrderBy( String orderby ) {\n if(orderby.equals(\"Name\")) {\n orderby = \"db.nama\";\n }\n else if(orderby.equals(\"Category\")) {\n orderby = \"kategori\";\n }\n else if(orderby.equals(\"Sale Price\")) {\n orderby = \"harga_jual\";\n }\n else if(orderby.equals(\"Modal Price\")) {\n orderby = \"harga_modal\";\n }\n return orderby;\n }",
"protected void fireSortOrderChanged() {\n fireRowSorterChanged(new RowSorterEvent(this));\n }",
"@Override\n\tpublic List<WxOrder> queryOrderByExpressList() {\n\t\treturn orderMapper.queryOrderByExpressList();\n\t}",
"Ordering<Part> getOrdering();",
"@Override\n\tpublic String sort() {\n\t\tString s=\"Insertionsort Function\";\n\t\treturn s;\n\t}",
"public int getOrder();",
"void sort(OrderBy orderBy);",
"protected String getFieldOrderForReadList() {\n\t\treturn \"o.OwnerAccountId, o.ProjectCode ASC\";\n\t}",
"public void completeOrderByDirective_Ascending(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {\n\t\t// subclasses may override\n\t}",
"@Override\n public int compare(Map<String, Object> o1, Map<String, Object> o2) {\n if(!descflag){\n return String.valueOf(o2.get(orderField)).compareTo(String.valueOf(o1.get(orderField)));\n }else {\n return String.valueOf(o1.get(orderField)).compareTo(String.valueOf(o2.get(orderField)));\n }\n // return 0;//加一个默认返回\n }",
"public void setSortOrder(String sortOrder);",
"@FXML\n private void updateDateOrder(ActionEvent event) {\n\n if (sortOrder == Order.DATE_ASC) {\n\n sortOrder = Order.DATE_DESC;\n\n } else if (sortOrder == Order.DATE_DESC) {\n\n sortOrder = Order.DEFAULT;\n\n } else {\n\n sortOrder = Order.DATE_ASC;\n\n }\n\n updateOrderButtons();\n\n }",
"public tudresden.ocl20.core.jmi.uml15.datatypes.OrderingKind getOrdering()\n {\n \tModelFacade instance = ModelFacade.getInstance(this.refOutermostPackage().refMofId());\n \tif (instance != null && \n \t\tinstance.isRepresentative(this.refMofId())&&\n \t\tinstance.hasRefObject(this.refMofId()))\n \t{ \t\t\n \t\treturn instance.getOrdering(this.refMofId());\n \t} \n \t\n \treturn super_getOrdering();\n \t\n\t}",
"OrderByClauseArg createOrderByClauseArg();",
"public int getSortOrder() {\r\n return sortOrder;\r\n }",
"public Integer getOrder();",
"public PriorityContractForActListForm() {\n\t\tsetSortBy(\"5 desc,2\");\n\t}",
"public String sortOriginOrReturn();",
"public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }",
"public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }",
"public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }",
"public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }",
"public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }",
"public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }",
"public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }",
"public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }",
"public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }",
"public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }",
"public String asc() {\n return this.getEscapedColumnName() + \" ASC\";\n }",
"public Boolean getSortOrder() {\n return sortOrder;\n }",
"public PriceComparator()\n\t{\n\t\tascending=true;\n\t}",
"public final native void setOrderBy(String orderBy) /*-{\n this.setOrderBy(orderBy);\n }-*/;",
"private static void printSortActorMenu() {\n\t\tprintln(\"Actor Sorting Options:\");\n\t\tprintln(\"\\tAA: Alphabetically Ascending\");\n\t\tprintln(\"\\tAD: Alphabetically Descending\");\n\t\tprintln(\"\\tNA: By Number of Movies They Are In Ascending\");\n\t\tprintln(\"\\tND: By Number of Movies They Are In\");\n\t}",
"private String doSortOrder(SlingHttpServletRequest request) {\n RequestParameter sortOnParam = request.getRequestParameter(\"sortOn\");\n RequestParameter sortOrderParam = request.getRequestParameter(\"sortOrder\");\n String sortOn = \"sakai:filename\";\n String sortOrder = \"ascending\";\n if (sortOrderParam != null\n && (sortOrderParam.getString().equals(\"ascending\") || sortOrderParam.getString()\n .equals(\"descending\"))) {\n sortOrder = sortOrderParam.getString();\n }\n if (sortOnParam != null) {\n sortOn = sortOnParam.getString();\n }\n return \" order by @\" + sortOn + \" \" + sortOrder;\n }",
"public String doSort();",
"protected List<Order> getOrdering(Path<?> t, CriteriaBuilder cb) {\r\n if (sortPropertyIds == null || sortPropertyIds.length == 0) {\r\n sortPropertyIds = nativeSortPropertyIds;\r\n sortPropertyAscendingStates = nativeSortPropertyAscendingStates;\r\n }\r\n \r\n ArrayList<Order> ordering = new ArrayList<Order>();\r\n \tif (sortPropertyIds == null || sortPropertyIds.length == 0) return ordering;\r\n \t\r\n\t\tfor (int curItem = 0; curItem < sortPropertyIds.length; curItem++ ) {\r\n\t \tfinal String id = (String)sortPropertyIds[curItem];\r\n\t\t\tif (sortPropertyAscendingStates[curItem]) {\r\n\t\t\t\tordering.add(cb.asc(t.get(id)));\r\n\t\t\t} else {\r\n\t\t\t\tordering.add(cb.desc(t.get(id)));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ordering;\r\n\t}",
"private void sort(){\r\n\t\tCollections.sort(people,new PeopleComparator(columnSelect.getSelectedIndex(),(String)sortOrder.getSelectedItem()));\r\n\t\tpersonTableModel.fireTableDataChanged();\r\n\t}",
"public void setOrderBy(boolean value) {\n this.orderBy = value;\n }",
"protected void generateOrderBy( SQLQueryModel query, LogicalModel model, List<Order> orderBy,\n DatabaseMeta databaseMeta, String locale, Map<LogicalTable, String> tableAliases, Map<String, String> columnsMap,\n Map<String, Object> parameters, boolean genAsPreparedStatement ) {\n if ( orderBy != null ) {\n for ( Order orderItem : orderBy ) {\n LogicalColumn businessColumn = orderItem.getSelection().getLogicalColumn();\n String alias = null;\n if ( columnsMap != null ) {\n // The column map is a unique mapping of Column alias to the column ID\n // Here we have the column ID and we need the alias.\n // We need to do the order by on the alias, not the column name itself.\n // For most databases, it can be both, but the alias is more standard.\n //\n // Using the column name and not the alias caused an issue on Apache Derby.\n //\n for ( String key : columnsMap.keySet() ) {\n String value = columnsMap.get( key );\n if ( value.equals( businessColumn.getId() ) ) {\n // Found it: the alias is the key\n alias = key;\n break;\n }\n }\n }\n SqlAndTables sqlAndTables =\n getBusinessColumnSQL( model, orderItem.getSelection(), tableAliases, parameters, genAsPreparedStatement,\n databaseMeta, locale );\n query.addOrderBy( sqlAndTables.getSql(), databaseMeta.quoteField( alias ), orderItem.getType() != Type.ASC\n ? OrderType.DESCENDING : null );\n }\n }\n }",
"@Override\n\tpublic void widgetSelected(SelectionEvent event) {\n\t\tif (event.widget instanceof TreeColumn) {\n\t\t\tint columnIndex = this.tree.indexOf((TreeColumn) event.widget);\n\t\t\tthis.sort(columnIndex);\n\t\t}\n\t}",
"public void listOrder()\r\n {o.listOrder();}",
"private String getOrderBy( List<Integer> listSortBy )\n {\n StringBuffer strOrderBy = new StringBuffer( );\n String strReturn = SuggestUtils.EMPTY_STRING;\n int ncpt = 0;\n\n if ( ( listSortBy != null ) && ( listSortBy.size( ) != 0 ) )\n {\n strOrderBy.append( SQL_ORDER_BY );\n\n for ( Integer sort : listSortBy )\n {\n ncpt++;\n\n switch ( sort )\n {\n case SubmitFilter.SORT_BY_DATE_RESPONSE_ASC:\n strOrderBy.append( SQL_FILTER_SORT_BY_DATE_RESPONSE_ASC );\n\n break;\n\n case SubmitFilter.SORT_BY_DATE_RESPONSE_DESC:\n strOrderBy.append( SQL_FILTER_SORT_BY_DATE_RESPONSE_DESC );\n\n break;\n\n case SubmitFilter.SORT_BY_SCORE_ASC:\n strOrderBy.append( SQL_FILTER_SORT_BY_SCORE_ASC );\n\n break;\n\n case SubmitFilter.SORT_BY_SCORE_DESC:\n strOrderBy.append( SQL_FILTER_SORT_BY_SCORE_DESC );\n\n break;\n\n case SubmitFilter.SORT_BY_NUMBER_COMMENT_ASC:\n strOrderBy.append( SQL_FILTER_SORT_BY_NUMBER_COMMENT_ENABLE_ASC );\n\n break;\n\n case SubmitFilter.SORT_BY_NUMBER_COMMENT_DESC:\n strOrderBy.append( SQL_FILTER_SORT_BY_NUMBER_COMMENT_ENABLE_DESC );\n\n break;\n\n case SubmitFilter.SORT_BY_NUMBER_VIEW_ASC:\n strOrderBy.append( SQL_FILTER_SORT_BY_NUMBER_VIEW_ASC );\n\n break;\n\n case SubmitFilter.SORT_BY_NUMBER_VIEW_DESC:\n strOrderBy.append( SQL_FILTER_SORT_BY_NUMBER_VIEW_DESC );\n\n break;\n\n case SubmitFilter.SORT_BY_NUMBER_VOTE_ASC:\n strOrderBy.append( SQL_FILTER_SORT_BY_NUMBER_VOTE_ASC );\n\n break;\n\n case SubmitFilter.SORT_BY_NUMBER_VOTE_DESC:\n strOrderBy.append( SQL_FILTER_SORT_BY_NUMBER_VOTE_DESC );\n\n break;\n\n case SubmitFilter.SORT_MANUALLY:\n strOrderBy.append( SQL_FILTER_SORT_MANUALLY );\n\n break;\n\n default:\n break;\n }\n\n if ( ncpt < listSortBy.size( ) )\n {\n strOrderBy.append( \",\" );\n }\n }\n\n strReturn = strOrderBy.toString( );\n\n if ( strReturn.endsWith( \",\" ) )\n {\n strReturn = strReturn.substring( 0, strReturn.length( ) - 1 );\n }\n }\n\n return strReturn;\n }",
"private void createSortLink() {\n\n String newGrouping;\n\n if (\"plugin\".equals(grouping)) {\n newGrouping = \"publisher\";\n } else {\n newGrouping = \"plugin\";\n }\n String timeString = \"\";\n if (\"accurate\".equals(timeKey)) {\n timeString = \"&timeKey=\" + timeKey;\n }\n\n String linkHref = \"/DisplayContentStatus?group=\" + newGrouping + timeString;\n String linkText = \"Order by \" + newGrouping;\n Link sortLink = new Link(linkHref);\n sortLink.attribute(\"class\", \"filters\");\n sortLink.add(linkText);\n page.add(sortLink);\n }",
"@FXML\n private void updateRegionOrder(ActionEvent event) {\n\n if (sortOrder == Order.REGION_ASC) {\n\n sortOrder = Order.REGION_DESC;\n\n } else if (sortOrder == Order.REGION_DESC) {\n\n sortOrder = Order.DEFAULT;\n\n } else {\n\n sortOrder = Order.REGION_ASC;\n\n }\n\n updateOrderButtons();\n\n }",
"public Number getDisplayOrder() {\n return (Number) getAttributeInternal(DISPLAYORDER);\n }",
"@VTID(25)\n com.exceljava.com4j.excel.XlSlicerSort getSortItems();",
"String getSortColumn();",
"public Integer getSortOrder() {\n return sortOrder;\n }",
"@Override\n\tpublic int getOrder() {\n\t\treturn 1;\n\t}",
"@Override\r\n public int getOrder() {\r\n return this.order;\r\n }",
"int order();",
"@Override\r\n\tpublic void addSort() {\n\t\t\r\n\t}",
"public com.sforce.soap.partner.ListViewOrderBy[] getOrderBy() {\r\n return orderBy;\r\n }",
"protected Sort getSortASC() {\n Sort.Order order = new Sort.Order(Sort.Direction.ASC, \"id\");\n return Sort.by(order);\n }",
"public void sort() {\n }",
"public ArrayList<Integer> getOrdering() {\n return T.getRoot().getOrder();\n }",
"@FXML\n private void sorteerAction(ActionEvent event) {\n \n taOutput.setText(woordenMethods.calcsort(DEFAULT_TEXT));\n //throw new UnsupportedOperationException(\"Not supported yet.\"); \n }",
"@Override\n\tprotected String getDefaultOrderBy() {\n\t\treturn \"date asc\";\n\t}",
"@Override\n public void toggleSortOrder(int column) {\n if (column == TablesTableModel.COLUMN_CREATED || column == TablesTableModel.COLUMN_SEATS) {\n List<? extends SortKey> sortKeys = getSortKeys();\n if (sortKeys.size() == 2) {\n // clear sort on second click\n setSortKeys(null);\n } else {\n // setup sort on first click\n List<SortKey> list = new ArrayList<>();\n list.add(new RowSorter.SortKey(TablesTableModel.COLUMN_SEATS, SortOrder.ASCENDING));\n list.add(new RowSorter.SortKey(TablesTableModel.COLUMN_CREATED, SortOrder.DESCENDING));\n setSortKeys(list);\n }\n } else {\n super.toggleSortOrder(column);\n }\n }",
"private void sort()\n {\n pd = new ProgressDialog(this);\n pd.setMessage(\"Sorting movies...\");\n pd.setCancelable(false);\n pd.show();\n\n movieList.clear();\n if(show.equals(\"notWatched\"))\n watched(false);\n else if(show.equals(\"watched\"))\n watched(true);\n else movieList.addAll(baseMovieList);\n\n if(orderBy.equals(\"alphabet\"))\n sortAlphabet();\n else if(orderBy.equals(\"date\"))\n sortDate();\n else sortRating();\n\n if(orderType)\n Collections.reverse(movieList);\n\n recyclerView.setAdapter(movieAdapter);\n pd.dismiss();\n }",
"private void sort(final OrderBy orderBy) {\n callback.orderByProperty().set(orderBy);\n\n sort();\n }",
"static String getSorting(String sortingKey, boolean modifier)\r\n {\r\n String s;\r\n if (sortingMap.containsKey(sortingKey))\r\n {\r\n s = sortingMap.get(sortingKey);\r\n }\r\n else\r\n {\r\n s = sortingMap.get(SORT_PROPERTY_NAME);\r\n }\r\n\r\n if (modifier)\r\n {\r\n s += \" ASC\";\r\n }\r\n else\r\n {\r\n s += \" DESC\";\r\n }\r\n\r\n return s;\r\n }",
"boolean hasOrderByDataItem();",
"public void setSortOrder(int value) {\r\n this.sortOrder = value;\r\n }",
"private void sortAndNotify() {\n Collections.sort(todoDBList, listComparator);\n adapter.notifyDataSetChanged();\n }",
"public void Show(int _order){\n\t\tSystem.out.println(_order + \": \" + name + \" is at floor #\" + actualFloor + \", he wants to go to floor #\" + targetFloor);\n\t}",
"boolean isSortAscending();",
"private static void printSortMovieMenu() {\n\t\tprintln(\"Movie Sorting Options:\");\n\t\tprintln(\"\\tTA: Title Ascending (A-Z)\");\n\t\tprintln(\"\\tTD: Title Descending (Z-A)\");\n\t\tprintln(\"\\tYA: Year Ascending\");\n\t\tprintln(\"\\tYD: Year Descending\");\n\t}",
"public PriceComparator(boolean asc)\n\t{\n\t\tascending=asc;\n\t}",
"private void updateOrderButtons() {\n\n // Reset button names.\n nameButton.setText(\"Name\");\n organButton.setText(\"Organ\");\n regionButton.setText(\"Region\");\n dateButton.setText(\"Date Added\");\n\n if (sortOrder == Order.NAME_ASC) {\n\n nameButton.setText(nameButton.getText() + ascText);\n sortedRecords.setComparator(new RecNameAlphabeticalComparator());\n\n } else if (sortOrder == Order.NAME_DESC) {\n\n nameButton.setText(nameButton.getText() + descText);\n sortedRecords.setComparator(new RecNameAlphabeticalComparator().reversed());\n\n } else if (sortOrder == Order.ORGAN_ASC) {\n\n organButton.setText(organButton.getText() + ascText);\n sortedRecords.setComparator(new RecOrganComparator());\n\n } else if (sortOrder == Order.ORGAN_DESC) {\n\n organButton.setText(organButton.getText() + descText);\n sortedRecords.setComparator(new RecOrganComparator().reversed());\n\n } else if (sortOrder == Order.DATE_ASC) {\n\n dateButton.setText(dateButton.getText() + ascText);\n sortedRecords.setComparator(new RecDateComparator());\n\n } else if (sortOrder == Order.DATE_DESC) {\n\n dateButton.setText(dateButton.getText() + descText);\n sortedRecords.setComparator(new RecDateComparator().reversed());\n\n } else if (sortOrder == Order.REGION_ASC) {\n\n regionButton.setText(regionButton.getText() + ascText);\n sortedRecords.setComparator(new RegionComparatorRec());\n\n } else if (sortOrder == Order.REGION_DESC) {\n\n regionButton.setText(regionButton.getText() + descText);\n sortedRecords.setComparator(new RegionComparatorRec().reversed());\n\n } else if (sortOrder == Order.DEFAULT) {\n\n // Revert to default order based on name.\n sortedRecords.setComparator(new RecNameAlphabeticalComparator());\n\n }\n\n updatePageCount();\n updateTableView();\n\n }",
"private void constructOrder(CriteriaBuilderImpl cb, CriteriaQueryImpl<?> q, Tree orderBy) {\n \t\tfinal List<Order> orders = Lists.newArrayList();\n \n \t\tfor (int i = 0; i < orderBy.getChildCount(); i++) {\n \t\t\tfinal Tree orderByItem = orderBy.getChild(i);\n \t\t\tfinal Order order = orderByItem.getChildCount() == 2 ? //\n \t\t\t\tcb.desc(this.getExpression(cb, q, orderByItem.getChild(0), null)) : //\n \t\t\t\tcb.asc(this.getExpression(cb, q, orderByItem.getChild(0), null));\n \n \t\t\torders.add(order);\n \t\t}\n \n \t\tq.orderBy(orders);\n \t}",
"public void setSortOrder(Short sortOrder) {\n this.sortOrder = sortOrder;\n }",
"public void sortProposals() {\n\n\t}",
"@Override\n\tpublic String queryOrderByOrderNo(String orderno) {\n\treturn null;\n\t}"
] | [
"0.6608616",
"0.6464334",
"0.6407324",
"0.6352793",
"0.62738854",
"0.6208542",
"0.6171628",
"0.60726535",
"0.6040087",
"0.6036559",
"0.60194474",
"0.5915465",
"0.591034",
"0.58577913",
"0.580979",
"0.58074415",
"0.58074415",
"0.5775538",
"0.5768745",
"0.576858",
"0.574235",
"0.5741132",
"0.57347107",
"0.5693714",
"0.5678663",
"0.5677414",
"0.5670719",
"0.5669006",
"0.56673026",
"0.5661409",
"0.564934",
"0.5648651",
"0.56466043",
"0.5641863",
"0.5635475",
"0.56338036",
"0.56263745",
"0.5623591",
"0.56065226",
"0.5580947",
"0.557862",
"0.55721927",
"0.5563083",
"0.55574036",
"0.554447",
"0.554447",
"0.554447",
"0.554447",
"0.554447",
"0.554447",
"0.554447",
"0.554447",
"0.554447",
"0.554447",
"0.554447",
"0.5541708",
"0.55291146",
"0.552729",
"0.55225694",
"0.5495623",
"0.5485008",
"0.54738206",
"0.5465123",
"0.54614645",
"0.5442396",
"0.54351515",
"0.542179",
"0.5405697",
"0.5398141",
"0.5398084",
"0.5390131",
"0.5376216",
"0.53757733",
"0.5369214",
"0.53684217",
"0.53646433",
"0.536144",
"0.53519225",
"0.53474057",
"0.5343889",
"0.53323406",
"0.531891",
"0.5310973",
"0.53104645",
"0.53036827",
"0.5302195",
"0.529822",
"0.5288117",
"0.52855206",
"0.5278189",
"0.5271853",
"0.5266606",
"0.5265212",
"0.52634096",
"0.52564615",
"0.5256363",
"0.5250551",
"0.5249465",
"0.5245274",
"0.5242177"
] | 0.6576934 | 1 |
Helper binding method for function: showRecord. | public static final SourceModel.Expr showRecord(SourceModel.Expr arg_1) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showRecord), arg_1});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract String showDetails();",
"private void viewRecordButtonActionPerformed() {\n String uri = recordURIComboBox.getSelectedItem().toString();\n String recordJSON = \"\";\n\n try {\n if(aspaceClient == null) {\n String host = hostTextField.getText().trim();\n String admin = adminTextField.getText();\n String adminPassword = adminPasswordTextField.getText();\n\n aspaceClient = new ASpaceClient(host, admin, adminPassword);\n aspaceClient.getSession();\n }\n\n recordJSON = aspaceClient.getRecordAsJSON(uri, paramsTextField.getText());\n\n if(recordJSON == null || recordJSON.isEmpty()) {\n recordJSON = aspaceClient.getErrorMessages();\n }\n } catch (Exception e) {\n recordJSON = e.toString();\n }\n\n // see whether to display window with syntax highlighting\n if (mainFrame == null || mainFrame.getAtVersionNumber().contains(\"15\")) {\n CodeViewerDialog codeViewerDialog = new CodeViewerDialog(this, SyntaxConstants.SYNTAX_STYLE_JAVASCRIPT, recordJSON, true, true);\n codeViewerDialog.setTitle(\"REST ENDPOINT URI: \" + uri);\n codeViewerDialog.setASpaceClient(aspaceClient);\n codeViewerDialog.pack();\n codeViewerDialog.setVisible(true);\n } else {\n ImportExportLogDialog logDialog = new ImportExportLogDialog(null, ImportExportLogDialog.DIALOG_TYPE_IMPORT, recordJSON);\n logDialog.setTitle(\"REST ENDPOINT URI: \" + uri);\n logDialog.showDialog();\n }\n }",
"private void showrecordthroughmodel()\n {\n if(treatmentRequestModel != null)\n {\n tv_right_hand_dia.setText(\"\" + treatmentRequestModel.getSYSBeforeRight());\n tv_right_hand_sys.setText(\"\" + treatmentRequestModel.getDIABeforeRight());\n tv_right_hand_pulse.setText(\"\" + treatmentRequestModel.getPulseBeforeRight());\n\n tv_left_hand_dia.setText(\"\" + treatmentRequestModel.getDIABeforeLeft());\n tv_left_hand_sys.setText(\"\" + treatmentRequestModel.getSYSBeforeLeft());\n tv_left_hand_pulse.setText(\"\" + treatmentRequestModel.getPulseBeforeLeft());\n }\n\n }",
"@Override\n public String getRecordDetail() {\n return \"[\" + type + \"] \"\n + \"[\" + people + \" pax] \"\n + \"[\" + \"Total: $\" + amount + \"] \"\n + \"[\" + amountToMoney() + \" per person] \"\n + nameList;\n }",
"public String getRecordName();",
"public void displayRecords() {\n\t\tSystem.out.println(\"****Display Records****\");\n\t\tSystem.out.print(\"Firstname \\tLastname \\tAddress \\t\\tCity \\t\\tState \\t\\t\\tZIP \\t\\tPhone \\n\");\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tif (details[i] == null) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tSystem.out.println(details[i]);\n\t\t}\n\t\tSystem.out.println();\n\t}",
"public void display() {\r\n System.out.println(\"<<Person>>>\" + this); \r\n }",
"public Record getRecord() {\n return record;\n }",
"public Record getRecord() {\n return record;\n }",
"public String showPerson(){\n return _person.toString();\n }",
"public void setRecord(Record record) {\n this.record = record;\n }",
"public static void outputRecord() {\r\n System.out.println(\"First Name: Len\");\r\n System.out.println(\"Last Name: Payne\");\r\n System.out.println(\"College: Lambton College\");\r\n }",
"@Override\n\tpublic String Show()\n\t{\n\t\treturn id;\n\t\t\n\t}",
"public String getRecord() {\n\t\tif (null != this.record) {\n\t\t\treturn this.record;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"record\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public static void displayStudentRecords() {\n\t\tSystem.out.println(\"Student records in the database are:\");\n\t\tSelectStudentRecords records = new SelectStudentRecords();\n\t\ttry {\n\t\t\tList<Student> studentList = records.selectStudentRecords();\n\t\t\tstudentList.forEach(System.out::println);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}",
"DescribeRecordResult describeRecord(DescribeRecordRequest describeRecordRequest);",
"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 showrecord(View v) {\n\t // Do something in response to button\n\t\tIntent intent = new Intent(this, SelectLevel2.class);\n\t startActivity(intent);\n\t\tLog.d(\"record\",\"clicked\");\n\t}",
"public String show() {\r\n\t\treturn \"show\";\r\n\t}",
"public ViewObjectImpl getQueryRecordVOInstance() {\n return (ViewObjectImpl)findViewObject(\"QueryRecordVOInstance\");\n }",
"public static void showResultPerson( Result<Record> result){\n \t for (Record r : result) {\n// Integer id = r.getValue(PERSON.PERSO_ID);\n String firstName = r.getValue(PERSON.PERSO_FIRSTNAME);\n String lastName = r.getValue(PERSON.PERSO_LASTNAME);\n\n System.out.println(\"Name : \" + firstName + \" \" + lastName);\n }\n }",
"public String wantDetail();",
"@Override\r\n\tpublic List<SbiBank> DisplayingRecord() {\n\t\tTransaction tx=null;\r\n\t\tSession ses=HBNutility.getSession();\r\n\t\ttx=ses.beginTransaction();\r\n\t\tCriteria ct=ses.createCriteria(SbiBank.class);\r\n\t\tList<SbiBank> sb=ct.list();\r\n\t\treturn sb;\r\n\t}",
"@Override\r\n\tpublic List<Logbook> viewRecords() {\n\t\treturn user.viewRecords();\r\n\t}",
"public String getRecordText();",
"public String getRecordText();",
"@Override\n\tpublic void showDetails(Manufacturer entity) {\n\n\t}",
"void showPatients() {\n\t\t\t\n\t}",
"public int getRecordNumber () {\n return recordNumber;\n }",
"public String show() {\r\n return \"show\";\r\n }",
"public String showDetails() {\n\t\treturn \"Person Name is : \" + name + \"\\n\" + \"Person Address is : \" + address;\n\t}",
"@Override\r\n\t\t\t\r\n\t\t\tpublic Account viewDetails(String MobileNo) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\treturn dao.viewDetails(MobileNo);\r\n\t\t\t}",
"RecordResult retrieveRecord(String recordID) throws RepoxException;",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"void display() {\n System.out.println(id + \" \" + name + \" \" + age);\n }",
"@Override\n\tpublic void displayTheDatabase() {\n\t\t\n\t}",
"@Override \n public String toString() \n { \n return \"user\" + \n \"\\n\\t RecordNo: \" + this.recordNo + \n \"\\n\\t EmployeeName: \" + this.name + \n \"\\n\\t Age: \" + this.age + \n \"\\n\\t Sex: \" + this.sex + \n \"\\n\\t Date of Birth: \" + this.dob + \n \"\\n\\t Remark: \" + this.remark; \n }",
"@Override\n public void onDisplayImageRecord(ImageRecord imageRecord) {\n FragmentTransaction ft = getSupportFragmentManager().beginTransaction();\n Fragment prev = getSupportFragmentManager().findFragmentByTag(TAG_RECORD_INFO_DIALOG_FRAGMENT);\n if (prev != null) {\n ft.remove(prev);\n ft.commit();\n }\n\n RecordInfoDialogFragment recordInfoDialogFragment = RecordInfoDialogFragment.newInstance(imageRecord);\n recordInfoDialogFragment.show(getSupportFragmentManager(), TAG_RECORD_INFO_DIALOG_FRAGMENT);\n }",
"protected abstract String display();",
"public R onFindForObject(final R record) {\n return record;\n // can be overridden.\n }",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic boolean showInList()\n\t{\n\t\treturn true;\n\t}",
"public void showHealthCarePersonaledata(){\n }",
"public void show() {\n }",
"void display() {\n System.out.println(id + \" \" + name);\n }",
"protected void viewRow(E rowObject) {\n }",
"@Override\n\tpublic void show() {\n\t}",
"@Override\n\tpublic void show() {\n\t}",
"@Override\r\n\tpublic void show() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void show() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void show() {\n\t\t\r\n\t}",
"public XXONGbwRecordsDisplayVOImpl getXXONGbwRecordsDisplayVO1() {\n return (XXONGbwRecordsDisplayVOImpl)findViewObject(\"XXONGbwRecordsDisplayVO1\");\n }",
"abstract public String getDisplayValue(String fieldname);",
"@Override\r\n public void onShowQueryResult() {\n }",
"@Override\r\n\tpublic void show() {\n\t}",
"public static void show() {\n\t\t\n\t}",
"public String getRecordId() {\n return recordId;\n }",
"@Override\r\n\tpublic String detail() {\n\t\tSystem.out.println(\"detailView.\");\r\n\t\t//javax.servlet.http.HttpSession session=request.getSession();\r\n\t\t//javax.servlet.ServletContext application=request.getServletContext();\r\n\t\t\r\n\t\t//String vId=request.getParameter(\"id\");\r\n\t\tif(!SysFun.isNullOrEmpty(id)) {\r\n\t\t\tLong iId=SysFun.parseLong(id);\r\n\t\t\tHeadLine bean=headLineService.load(iId);\r\n\t\t\tif(bean!=null) {\r\n\t\t\t\trequest.put(\"bean\", bean);\r\n\t\t\t\treturn \"detail\";\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn \"detail\";\r\n\t}",
"@Override\n public void show() {\n }",
"public void displayData();",
"private void loadRecordDetails() {\n updateRecordCount();\n loadCurrentRecord();\n }",
"@Override\n protected Class<RecordType> getBoundType() {\n return RecordType.class;\n }",
"public interface ExpensesRecordView extends BaseView {\n void showData(List entityList);\n}",
"@Override\r\n\tpublic void show() {\n\t\t\r\n\t\t\r\n\t}",
"public void show() {\n\tSystem.out.println(\"show-method\");\t\n\t}",
"private void addRecordDetails(int p_recNum)\n throws PaginatedResultSetXmlGenerationException\n {\n Task t = taskAt(p_recNum);\n m_recProf = recordProfile(t.getRecordProfileId());\n m_proxy = resultSetProxy(m_recProf, t.getParameterString());\n if (m_proxy != null && m_proxy.size() > 0)\n {\n incrementIndent();\n addRecordHeader();\n addParameter(t.getParameterString());\n addColumnDetails();\n addRecordFooter();\n decrementIndent();\n }\n }",
"@Override\n public void display(){\n System.out.println(\"Student id: \"+getStudentId()+\"\\nName is: \"+getName()+\"\\nAge :\"+getAge()+\"\\nAcademic year: \"+getSchoolYear()\n +\"\\nNationality :\"+getNationality());\n }",
"protected abstract boolean handleRecord(T mainRecord, T lookupRecord);",
"@Override\r\n\tpublic Botany show(int id) {\n\t\treturn dao.show(id);\r\n\t}",
"public static void show() {\n\n\t}",
"void display() {\r\n\t\tSystem.out.println(id + \" \" + name);\r\n\t}",
"public void displayPreviousRecord(){\r\n\r\n // dec in recordNumber to display previous person info, already stored in personsList during search \r\n\trecordNumber--;\r\n\r\n\tif(recordNumber < 0 )\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"You have reached at begining of search results\"); \r\n\r\n\t\t/*if user has reached the begining of results, disable back button*/\r\n\t\tbForward.setEnabled(true);\r\n\t\tbBack.setEnabled(false);\r\n\r\n // inc by one to counter last dec\r\n recordNumber++;\r\n\t}\r\n\telse\r\n\t{\r\n\t\tbForward.setEnabled(true);\r\n\t\tPersonInfo person = (PersonInfo) personsList.get(recordNumber);\r\n\r\n // displaying search record in text fields \r\n\t\ttfName.setText(person.getName());\r\n\t\ttfAddress.setText(person.getAddress());\r\n\t\ttfPhone.setText(\"\"+person.getPhone());\r\n\t\ttfEmail.setText(person.getEmail());\r\n\t}\r\n\r\n }",
"void showBookResult(Book book);",
"void printEmployeeDetail(){\n\t\tSystem.out.println(\"First name: \" + firstName);\n\t\tSystem.out.println(\"Last name: \" + lastName);\n\t\tSystem.out.println(\"Age: \" + age);\n\t\tSystem.out.println(\"Salary: \" + salary);\n\t\tSystem.out.println(firstName + \" has \" + car.color + \" \" + car.model + \" it's VIN is \" + car.VIN + \" and it is make year is \" + car.year );\n\t\t\n\t}",
"public abstract String display();",
"public int getRecordNum() {\n return RecordNum;\n }",
"public void viewRecord(int pos){\n\n Intent i = new Intent(getApplicationContext(),addExpensesPage.class);\n\n Expenses _e = recordList.getMyRecords().get(pos);\n\n i.putExtra(\"Edit\",pos);\n i.putExtra(\"Date\",_e.getExpenseDate());\n i.putExtra(\"Amount\",_e.getAmount());\n i.putExtra(\"Category\",_e.getCategory());\n i.putExtra(\"Choice\",_e.getCategory_choice());\n i.putExtra(\"Payment\",_e.getpMethod());\n i.putExtra(\"Description\",_e.getDescription());\n\n startActivity(i);\n }",
"public void displayNextRecord(){\r\n\r\n // inc in recordNumber to display next person info, already stored in personsList during search \r\n\trecordNumber++;\r\n\r\n\tif(recordNumber >= personsList.size())\r\n\t{\r\n JOptionPane.showMessageDialog(null, \"You have reached at end of search results\"); \r\n\r\n\t\t/*if user has reached the end of results, disable froward button*/\r\n\t\tbForward.setEnabled(false);\r\n\t\tbBack.setEnabled(true);\r\n\r\n // dec by one to counter last inc\r\n recordNumber -- ; \r\n\t}\r\n\telse\r\n\t{\r\n\t\tbBack.setEnabled(true);\r\n\t\tPersonInfo person = (PersonInfo) personsList.get(recordNumber);\r\n\r\n // displaying search record in text fields \r\n\t\ttfName.setText(person.getName());\r\n\t\ttfAddress.setText(person.getAddress());\r\n\t\ttfPhone.setText(\"\"+person.getPhone());\r\n\t\ttfEmail.setText(person.getEmail());\r\n\t}\r\n}",
"public void showNoteView(MyNoteDto noteDto);"
] | [
"0.5987324",
"0.5973236",
"0.58746356",
"0.5866437",
"0.573395",
"0.5702158",
"0.5658269",
"0.5655508",
"0.5655508",
"0.56549805",
"0.5571482",
"0.556077",
"0.5555938",
"0.5519855",
"0.5514097",
"0.5456666",
"0.5423868",
"0.5413348",
"0.54109794",
"0.54068667",
"0.5405791",
"0.53833055",
"0.53707135",
"0.5346676",
"0.53277713",
"0.53277713",
"0.5326393",
"0.531534",
"0.5308912",
"0.5306696",
"0.529738",
"0.5271346",
"0.5266774",
"0.5262913",
"0.5262913",
"0.5262913",
"0.5262913",
"0.5262913",
"0.5262913",
"0.5262913",
"0.5262913",
"0.52603793",
"0.5257791",
"0.52575606",
"0.52506363",
"0.52467245",
"0.524349",
"0.5234011",
"0.5234011",
"0.5234011",
"0.5234011",
"0.5234011",
"0.5234011",
"0.5234011",
"0.5234011",
"0.5234011",
"0.5234011",
"0.5234011",
"0.5234011",
"0.5234011",
"0.5234011",
"0.5234011",
"0.5226399",
"0.52201504",
"0.52172744",
"0.5209713",
"0.5199548",
"0.5195092",
"0.5195092",
"0.51855594",
"0.51855594",
"0.51855594",
"0.5177709",
"0.51757103",
"0.51732177",
"0.5170182",
"0.5165204",
"0.51607317",
"0.5159839",
"0.5151802",
"0.5149258",
"0.51464903",
"0.51438904",
"0.51426715",
"0.5140418",
"0.5127066",
"0.5126882",
"0.51198566",
"0.51190436",
"0.511366",
"0.5108403",
"0.5095003",
"0.5094612",
"0.50917983",
"0.5090832",
"0.5084021",
"0.50821936",
"0.50789076",
"0.5077249",
"0.50725424"
] | 0.7201427 | 0 |
Used for derived Show instances for foreign types with implementation type short. | public static final SourceModel.Expr showShort(SourceModel.Expr s) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showShort), s});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@DerivedProperty\n\tString getShortRepresentation();",
"@ZenCodeType.Caster\n @ZenCodeType.Method\n default short asShort() {\n \n return notSupportedCast(BasicTypeID.SHORT);\n }",
"public boolean isShortTypes() {\n return shortTypes;\n }",
"private ClassInstance checkDerivedShowInstance(TypeConstructor typeCons,\r\n TypeConsApp instanceType,\r\n TypeClass typeClass, SourceRange position) throws UnableToResolveForeignEntityException {\r\n \r\n if (!typeClass.getName().equals(CAL_Debug.TypeClasses.Show)) {\r\n throw new IllegalStateException();\r\n }\r\n \r\n ModuleName currentModuleName = currentModuleTypeInfo.getModuleName();\r\n \r\n \r\n ForeignTypeInfo foreignTypeInfo = typeCons.getForeignTypeInfo(); \r\n \r\n if (foreignTypeInfo != null) {\r\n \r\n // foreign types\r\n \r\n Class<?> foreignType = foreignTypeInfo.getForeignType();\r\n \r\n if (foreignType.isPrimitive()) {\r\n \r\n if (foreignType == boolean.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showForeignBoolean},\r\n InstanceStyle.DERIVING); \r\n \r\n } else if (foreignType == byte.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showByte},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == char.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showForeignChar},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == short.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showShort},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == int.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showInt},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == long.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showLong},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == float.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showFloat},\r\n InstanceStyle.DERIVING);\r\n \r\n } else if (foreignType == double.class) {\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showDouble},\r\n InstanceStyle.DERIVING);\r\n \r\n } else {\r\n throw new IllegalStateException(\"A type that claims to be primitive is not one of the known primitive types\");\r\n }\r\n \r\n } else {\r\n // Defer to String.valueOf(Object) for non-primitive foreign values\r\n return new ClassInstance(currentModuleName, instanceType, typeClass, \r\n new QualifiedName[] {CAL_Debug_internal.Functions.showJObject}, \r\n InstanceStyle.DERIVING);\r\n }\r\n \r\n \r\n } else {\r\n \r\n // non-foreign types\r\n \r\n TypeExpr showTypeExpr = TypeExpr.makeFunType(instanceType, compiler.getTypeChecker().getTypeConstants().getStringType());\r\n addDerivedInstanceFunction(derivedInstanceFunctionGenerator.makeShowInstanceFunction(typeCons), showTypeExpr, position); \r\n \r\n return new ClassInstance(currentModuleName, instanceType, typeClass, null, InstanceStyle.DERIVING);\r\n }\r\n }",
"@Override\n\tvoid Show() {\n\t\tanimal.Show();\n\t\tSystem.out.print(\" Shorts\");\n\t}",
"public Integer getTypeShortForm()\n {\n return TYPE_SHORT_FORM;\n }",
"public Integer getTypeShortForm()\n {\n return TYPE_SHORT_FORM;\n }",
"public abstract String toString_short();",
"public String shortRepr() {\n\t\treturn \"Value of some kind.\";\n\t}",
"public String getDisplayType();",
"public String getShortType() { return \"Tech\"; }",
"default void show1() {\n\t\t\n\t\t\n\t}",
"@Test\n public void testShort() {\n assertEquals(\"32767\", hiveTypeToJson(new MyHiveType(new ShortWritable(Short.MAX_VALUE), shortTypeInfo)));\n }",
"public String getShort() {\n return m_short;\n }",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t\t\n\t}",
"public DisplayType getDisplayType();",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"@Override\n\tpublic void show() {\n\n\t}",
"public Short getShortAttribute();",
"@Override\n public void show() {\n }",
"protected abstract String getDefaultDisplayTypeStringRepresentation();",
"@Override\n\tpublic void show4() {\n\t\t\n\t}",
"@Override\n\tpublic void show() {\n\t}",
"@Override\n\tpublic void show() {\n\t}",
"void doShow() throws AmbiguousException, PlayerDebugException\n\t{\n\t\tif (!hasMoreTokens())\n\t\t\tout( getHelpTopic(\"show\") ); //$NON-NLS-1$\n\t\telse\n\t\t{\n\t\t\t/* otherwise we have a boatload of options */\n\t\t\tString subCmdString = nextToken();\n\t\t\tint subCmd = showCommandFor(subCmdString);\n\t\t\tswitch(subCmd)\n\t\t\t{\n\t\t\t\tcase SHOW_NET_CMD:\n\t\t\t\t\tdoShowStats();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase SHOW_FUNC_CMD:\n\t\t\t\t\tdoShowFuncs();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase SHOW_URI_CMD:\n\t\t\t\t\tdoShowUri();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase SHOW_PROPERTIES_CMD:\n\t\t\t\t\tdoShowProperties();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase SHOW_FILES_CMD:\n\t\t\t\t\tdoShowFiles();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase SHOW_BREAK_CMD:\n\t\t\t\t\tdoShowBreak();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase SHOW_VAR_CMD:\n\t\t\t\t\tdoShowVariable();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase SHOW_MEM_CMD:\n\t\t\t\t\tdoShowMemory();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase SHOW_LOC_CMD:\n\t\t\t\t\tdoShowLocations();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase SHOW_DIRS_CMD:\n\t\t\t\t\tdoShowDirectories();\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tdoUnknown(\"show\", subCmdString); //$NON-NLS-1$\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tpublic void show() {\n\t}",
"@Override\r\n\tpublic String getShowDescribing() {\n\t\treturn \"所属乡镇:\"+ getSsxz().getName();\r\n\t}",
"private String getShortType(String aKey) {\n if (iConnection == null){\n return ModificationConversion.getShortType(aKey);\n } else {\n return ModificationConversion.getShortType(aKey,iConnection);\n }\n }",
"public JodaBeanSer withShortTypes(boolean shortTypes) {\n return new JodaBeanSer(indent, newLine, converter, iteratorFactory, shortTypes, deserializers, includeDerived);\n }",
"public static void show() {\n\t\t\n\t}",
"public String displayShort(){\n return \"\\tId: \" + id + \"\\n\" +\n \"\\tName: \" + name + \"\\n\" +\n \"\\tDescription: \" + description + \"\\n\";\n }",
"public Long getShortForm()\n {\n return SHORT_FORM;\n }",
"public Long getShortForm()\n {\n return SHORT_FORM;\n }",
"void show() {\n super.show();\n System.out.println(\"i am in Flavor1Demo class\"); // remember\n }",
"@Override\r\n\tpublic void show() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void show() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void show() {\n\t\t\r\n\t}",
"public static void show() {\n\n\t}",
"@Override\n public void show() {\n\n }",
"@Override\n public void show() {\n\n }",
"public void show() \r\n\t {\n\t PI1.super.show(); \r\n\t \r\n\t // use super keyword to call the show \r\n\t // method of PI2 interface \r\n\t PI2.super.show(); \r\n\t }",
"boolean hasShort();",
"@Override\r\n public void show()\r\n {\r\n\r\n }",
"@Override\r\n public void show()\r\n {\r\n\r\n }",
"@Override\n\tpublic void show() {\n\t\tSystem.out.println(\"´óTÐô\");\n\t}",
"public String getShortContent();",
"@Override\r\n\tpublic void show() {\n\r\n\t}",
"@Override\r\n\tpublic void show() {\n\r\n\t}",
"@Override\r\n\tpublic void show() {\n\t\t\r\n\t\t\r\n\t}",
"T print(short data) throws PrintingException;",
"public String show() {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic void show() {\n\t\tsuper.show();\n\t\t\n\t}",
"public abstract String shortName();",
"public short get_short() {\n return local_short;\n }",
"@Override\n\tpublic String showTypeCard() {\n\t\treturn \"It's payment by Visa\";\n\t}",
"public short toShort()\n\t{\n\t\treturn (short)this.ordinal();\n\t}",
"@Override\n\tpublic void display() {\n\t\tSystem.out.println(valueType+\": \"+value);\n\t}",
"public String show() {\r\n\t\treturn \"show\";\r\n\t}",
"public void printTypeInfo(){\n\t\tSystem.out.println(\"This type of computer is suitable for massive usage, when it comes to portability.\");\n\t\tSystem.out.println(\"Main thing at these computers is portability and funcionality.\");\n\t\t\n\t}",
"public interface Showable {\n void show();\n}",
"public Class getPreferredDisplayClass() {\n\t\treturn Object.class;\n\t}",
"public void setShortID(String shortID) {\n this.shortID = shortID;\n }",
"public void show() {\n\t\t// TODO Auto-generated method stub\n\n\t}",
"public String getShortID() {\n return shortID;\n }",
"public String kind() { return kind; }",
"void method(){\r\n\t\tInteger i = new Integer(Integer.MAX_VALUE);\r\n\t\tShort s = new Short(Short.MAX_VALUE);\r\n\t\t\r\n\t\tSystem.out.println(\"Int max \"+ Integer.MAX_VALUE + \" int min \"+ Integer.MIN_VALUE);\r\n\t\tSystem.out.println(\"Short max \"+ Short.MAX_VALUE + \" Short min \"+ Short.MIN_VALUE);\t\t\r\n\t\t\r\n\t\t//this is not upcast ! , this is side-cats !!-> Illegal\r\n\t\t//Short ss = (Short) new Integer(Integer.MAX_VALUE);\r\n\t\t\r\n\t\t//Illegal\r\n\t\t//Integer ii = (Integer) new Short(Short.MAX_VALUE);\r\n\t\t\r\n\t\t// real up-cast\r\n\t\tNumber ii = new Short(Short.MAX_VALUE);\r\n\t\tSystem.out.println((Short)ii);\r\n\t\t\r\n\t\t\r\n\t\tInteger iii = Integer.valueOf(s);\r\n\t\t\r\n\t\t\r\n\t}",
"void writeShort(short value);",
"public interface ShowDetailsInfoView {\n void displayShow(Show show);\n}",
"public String show() {\r\n return \"show\";\r\n }",
"@Override\n\tpublic void show() {\n\t\tSystem.out.println(\"´ó¿ãñÃ\");\n\t}",
"public short readShort()\r\n/* 399: */ {\r\n/* 400:412 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 401:413 */ return super.readShort();\r\n/* 402: */ }",
"@Override\n public void show() {\n \n }",
"@Override\r\n\tpublic String typeV() {\n\t\treturn hio.TyreType();\r\n\t}",
"public String toStringShort() {\n\treturn AbstractFormatter.shape(this);\n}",
"default String toShortString() {\n return toString().substring(0, 5);\n }",
"public String getShort() { \n\t\treturn getShortElement().getValue();\n\t}",
"public void show() {\n }",
"public void show() {\n\t\t System.out.println(\"这是A型产品\"); \r\n\t}",
"Optional<T> show();",
"@Override\n public String getFullType() {\n return fullType;\n }"
] | [
"0.65998423",
"0.6340138",
"0.63250375",
"0.6274216",
"0.62131876",
"0.6122452",
"0.6122452",
"0.60518926",
"0.60103506",
"0.5874089",
"0.58378875",
"0.58234966",
"0.56982327",
"0.5698143",
"0.56399524",
"0.56399524",
"0.56399524",
"0.56399524",
"0.56399524",
"0.56399524",
"0.56399524",
"0.56399524",
"0.56399524",
"0.56399524",
"0.56399524",
"0.56399524",
"0.56399524",
"0.56399524",
"0.56399524",
"0.56270146",
"0.56024003",
"0.56024003",
"0.56024003",
"0.56024003",
"0.56024003",
"0.56024003",
"0.56024003",
"0.56024003",
"0.5591805",
"0.55867267",
"0.55739427",
"0.55719256",
"0.5556642",
"0.5556642",
"0.5555608",
"0.55515474",
"0.5547523",
"0.55448973",
"0.55398583",
"0.5530553",
"0.551531",
"0.55019754",
"0.55019754",
"0.54923457",
"0.5483397",
"0.5483397",
"0.5483397",
"0.546551",
"0.544961",
"0.544961",
"0.54418325",
"0.54322785",
"0.54203016",
"0.54203016",
"0.5404535",
"0.5401795",
"0.5399524",
"0.5399524",
"0.5389154",
"0.53756285",
"0.5364029",
"0.5358262",
"0.5353212",
"0.53497225",
"0.5348691",
"0.53314126",
"0.53239113",
"0.5318503",
"0.5304468",
"0.5285667",
"0.5281321",
"0.5279769",
"0.52645135",
"0.52622414",
"0.52585286",
"0.525769",
"0.52487683",
"0.5244769",
"0.52386534",
"0.5236801",
"0.52331465",
"0.5228472",
"0.5227161",
"0.5217039",
"0.52152944",
"0.521103",
"0.52066755",
"0.51944184",
"0.5193563",
"0.5188175"
] | 0.5937463 | 9 |
Helper binding method for function: showUnit. | public static final SourceModel.Expr showUnit(SourceModel.Expr x) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showUnit), x});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getUnit();",
"public String getUnit();",
"public abstract String getUnit();",
"public String getUnit()\n {\n return (this.unit);\n }",
"public String getUnit () {\n\treturn this.unit;\n }",
"public String getUnit() {\n return unit;\n }",
"public String getUnit() {\n return unit;\n }",
"public String getUnit() {\n return unit;\n }",
"@Override\r\n public String toString() {\r\n return unit.getName();\r\n }",
"public String getUnit() {\n\t\treturn(symbol);\n\t}",
"public String unit() {\n return this.unit;\n }",
"public String getUnit() {\n\t\treturn unit;\n\t}",
"Unit getUnit();",
"String getUnitsString();",
"public void setUnit (String value) {\n\tthis.unit = value;\n }",
"public void setUnit(String unit);",
"public String getToUnit() {\r\n return this.toUnit;\r\n }",
"public void showUnitContext(Unit unit) {\r\n\t\teraseContainer();\r\n\t\tthis.add(new UnitInfoPanel(unit, controlPanel), BorderLayout.CENTER);\r\n\t}",
"public String getUnitnm() {\r\n return unitnm;\r\n }",
"public void setUnit(String unit) {\n this.unit = unit;\n }",
"public void setUnit(String unit)\n {\n this.unit = unit;\n }",
"public String getUnitName () {\n return unitName;\n }",
"public String getUnitDescription ()\n {\n return unitDescription;\n }",
"public String getUnitName() {\r\n return unitName;\r\n }",
"public Unit getUnit() {\n return unit;\n }",
"public String getUnitName() {\n return unitName;\n }",
"public String getUnitName() {\n return unitName;\n }",
"public void setUnit(Unit unit) {\r\n\t\tthis.unit = unit;\r\n\t}",
"public final String explainUnit () {\n\t\tStringBuffer b = new StringBuffer(120) ;\n\t\tParsing t = new Parsing(symbol);\n\t\tUnit u = new Unit();\n\t\tint ini1 = 0;\n\t\ttry { u.unitec(t, b); }\n\t\tcatch (Exception e) {\n\t\t\tif (DEBUG>0) {\n\t\t\t\tSystem.out.println(\"++++explainUnit: catched: \" + e);\n\t\t\t\ttry { Thread.sleep(2000); } catch(Exception i) {;}\n\t\t\t}\n\t\t\tif (t.currentChar() == '\"') {\t// \"picture\" unit\n\t\t\t\tb.append(Parsing.explainComplex(t.toString()));\n\t\t\t}\n\t\t\telse { String prefix = \"?***bad Unit <\";\n\t\t\tb.insert(0, prefix);\n\t\t\tb.insert(prefix.length(), symbol);\n\t\t\tb.insert(prefix.length() + symbol.length(), \"> \");\n\t\t\t}\n\t\t}\t\t\t// Should never happen!\n\t\tini1 = skipBrackets(b);\t\t\t// Remove enclosing Parentheses\n\t\tb.append(\" (\"); toSI(b, 1); b.append(\")\") ;\n\t\t// return(\"\"+b.substring(ini1));\t// Java>=1.2\n\t\treturn(b.toString().substring(ini1));\t// AnyJavaVersion\n\t}",
"public String getUnit() {\n String unit = (String) comboUnits.getSelectedItem();\n if (\"inch\".equals(unit)) {\n return \"in\";\n } else if (\"cm\".equals(unit)) {\n return \"cm\";\n } else if (\"mm\".equals(unit)) {\n return \"mm\";\n } else if (\"pixel\".equals(unit)) {\n return \"px\";\n }\n return \"\";\n }",
"public String getFromUnit() {\r\n return this.fromUnit;\r\n }",
"@Updatable\n public String getUnit() {\n return unit;\n }",
"public abstract double toBasicUnit(double unit);",
"private String getResultUnit() {\n switch (mCalculationType) {\n case CONSUMPTION_L_100_KM:\n return \"l/100 km\";\n case CONSUMPTION_KM_L:\n return \"km/l\";\n case CONSUMPTION_MPG:\n return \"mpg\";\n default:\n return \"\";\n }\n }",
"public void showUnitContext(int type) {\r\n\t\teraseContainer();\r\n\t\tthis.add(new UnitInfoPanel(type, controlPanel), BorderLayout.CENTER);\r\n\t}",
"public Unit getUnit() {\n\t\treturn unit;\n\t}",
"public void setUnit(String unit) {\n\t\tthis.unit = unit;\n\t}",
"public String getUnit() {\n\t\tString unit;\n\t\ttry {\n\t\t\tunit = this.getString(\"unit\");\n\t\t} catch (Exception e) {\n\t\t\tunit = null;\n\t\t}\n\t\treturn unit;\n\t}",
"private void displayTenantUnit(){\n Landlord landlord = dm.getLandlord();\n if (unit.getPhoto() != null) {\n GlideApp.with(this /* context */)\n .load(unit.getPhoto())\n .placeholder(R.drawable.unit_placeholder).transition(withCrossFade())\n .into(imgUnitPhoto);\n }\n colToolbar.setTitle(unit.getName());\n lblName.setText(unit.getName());\n lblAddress.setText(unit.getAddress().toString());\n lblType.setText(unit.getTypeString());\n String beds = Integer.toString(unit.getBeds());\n lblBeds.setText(beds);\n String baths = Double.toString(unit.getBaths());\n lblBaths.setText(baths);\n String sqft = Integer.toString(unit.getSquareFeet());\n lblSqFt.setText(sqft);\n String rent = Double.toString(unit.getRent());\n lblCost.setText(rent);\n String rentDay = Integer.toString(unit.getRentDueDay());\n lblRentDue.setText(rentDay);\n String year = Integer.toString(unit.getYearBuilt());\n lblYearBuilt.setText(year);\n String name = landlord.getFirstName() + \" \" + landlord.getLastName();\n lblUnitLandlord.setText(name);\n }",
"public String getUserUnitString() {\n\t\treturn NonSIext.getUnitString(userUnit);\n\t}",
"String getUnits();",
"String getUnits();",
"String getUnits();",
"public void setDisplayUnit(Unit newUnit) {\n super.setDisplayUnit(newUnit);\n if (distanceUnitLabels != null) {\n for (JLabel label : distanceUnitLabels) {\n label.setText(\" (\"+newUnit+\") \");\n }\n }\n }",
"public Builder setUnit(final Unit value) {\n _unit = value;\n return this;\n }",
"TimeUnit getUnit();",
"ChronoUnit getUnit();",
"DefinedUnitType getDefinedUnit();",
"public String getUnitName() {\n\n\treturn \"Block(s)\";\n }",
"@javax.persistence.Column(name = \"unit\", precision = 5)\n\tpublic java.lang.String getUnit() {\n\t\treturn getValue(org.jooq.examples.cubrid.demodb.tables.Record.RECORD.UNIT);\n\t}",
"public static void showUnitTile(Unit unit, Color color) {\r\n\t\tint posX = unit.getTilePosition().getX();\r\n\t\tint posY = unit.getTilePosition().getY();\r\n\t\tint tileSizeX = 1;\r\n\t\tint tileSizeY = 1;\r\n\r\n\t\t// Show building sizes accordingly\r\n\t\tif (unit.getType().isBuilding()) {\r\n\t\t\ttileSizeX = unit.getType().tileWidth();\r\n\t\t\ttileSizeY = unit.getType().tileHeight();\r\n\t\t}\r\n\r\n\t\tdrawTile(posX, posY, tileSizeX, tileSizeY, color);\r\n\t}",
"Unit infantryUnit(Canvas canvas ,String name);",
"public String getUnitDescription() {\r\n\t\treturn this.unitDescription;\r\n\t}",
"public Unit<Length> footSurveyUS() {return footSurveyUS;}",
"private String getAmountUnit(int unit) {\n switch (unit) {\n case UNIT_LITERS:\n return getResourceString(R.string.val_l);\n case UNIT_GALLONS:\n return getResourceString(R.string.val_g);\n }\n\n return \"\";\n }",
"public final Unit getUnit()\n { \n return Unit.forValue(m_Unit);\n }",
"public void setUnit(Unit u)\r\n {\r\n display.setUnit(u);\r\n selectedIndex = -1;\r\n }",
"String getBaseUnit() {\n return baseUnit;\n }",
"public Length getUnit() {\n return unit;\n }",
"@Override\n\tpublic String getUnitsString() {\n\t\treturn null;\n\t}",
"public String getUnitsString() {\n return units;\n }",
"DefiningUnitType getDefiningUnit();",
"public void setUnit(Length units) {\n unit = units;\n }",
"public void setUnitnm(String unitnm) {\r\n this.unitnm = unitnm;\r\n }",
"public int getUnitNum(){\n\t\treturn Integer.parseInt(unitNumLbl.getText());\n\t}",
"public Units getUnitTable();",
"public void setUnit(String unit) {\n this.unit = unit == null ? null : unit.trim();\n }",
"public void setUnit(String unit) {\n this.unit = unit == null ? null : unit.trim();\n }",
"TraceDefinedUnitsView definedUnits();",
"public String getUnitcd() {\r\n return unitcd;\r\n }",
"public String getUnits() {\n return units;\n }",
"public String getDataUnit() {\n return dataUnit;\n }",
"public String getUnitsString() {\n String result = null;\n if (forVar != null) {\n Attribute att = forVar.findAttributeIgnoreCase(CDM.UNITS);\n if ((att != null) && att.isString())\n result = att.getStringValue();\n }\n return (result == null) ? units : result.trim();\n }",
"public String display();",
"public String getUnits() {\n return this.units;\n }",
"public void setUnitName (String unitName) {\n this.unitName = unitName;\n }",
"Unit getHasUnit();",
"protected String getUnits()\n {\n return units;\n }",
"public static void showUnits(List<Unit> units) {\r\n\t\tList<String> outputList = new ArrayList<String>();\r\n\t\tList<UnitType> alreadyCountedTypes = new ArrayList<UnitType>();\r\n\r\n\t\t// Count each unit and display the number on the left side of it.\r\n\t\tfor (Unit unit : units) {\r\n\t\t\t// Do not count the buildings and avoid adding the same type more\r\n\t\t\t// than one time.\r\n\t\t\tif (!unit.getType().isBuilding() && !alreadyCountedTypes.contains(unit.getType())) {\r\n\t\t\t\tint unitCounter = 0;\r\n\r\n\t\t\t\t// Iterate through all units and\r\n\t\t\t\tfor (Unit referenceUnit : units) {\r\n\t\t\t\t\tif (referenceUnit.getType() == unit.getType()) {\r\n\t\t\t\t\t\tunitCounter++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// Specify the output for a symmetric list.\r\n\t\t\t\tString output = \"\";\r\n\t\t\t\tif (unitCounter < 10) {\r\n\t\t\t\t\toutput += \" \";\r\n\t\t\t\t} else if (unitCounter < 100) {\r\n\t\t\t\t\toutput += \" \";\r\n\t\t\t\t}\r\n\t\t\t\toutput += unitCounter + \" - \" + unit.getType();\r\n\r\n\t\t\t\talreadyCountedTypes.add(unit.getType());\r\n\t\t\t\toutputList.add(output);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tshowList(outputList, OFFSET_LEFT, LINE_HEIGHT * 5);\r\n\t}",
"public Unit<?> getUnit() {\n return _unit;\n }",
"@Accessor(qualifier = \"Unit\", type = Accessor.Type.GETTER)\n\tpublic B2BUnitModel getUnit()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(UNIT);\n\t}",
"public void calculateAndDisplay() {\n fromUnitString = fromUnitEditText.getText().toString();\r\n if (fromUnitString.equals(\"\")) {\r\n fromValue = 0;\r\n }\r\n else {\r\n fromValue = Float.parseFloat(fromUnitString);\r\n }\r\n\r\n // calculate the \"to\" value\r\n toValue = fromValue * ratio;\r\n\r\n // display the results with formatting\r\n NumberFormat number = NumberFormat.getNumberInstance();\r\n number.setMaximumFractionDigits(2);\r\n number.setMinimumFractionDigits(2);\r\n toUnitTextView.setText(number.format(toValue));\r\n }",
"protected abstract String display();",
"public java.lang.String getUnitDWT() {\n\t\treturn _tempNoTiceShipMessage.getUnitDWT();\n\t}",
"abstract String display(T value);",
"public abstract double fromBasicUnit(double valueJTextInsert);",
"public String getUnits() {\n return units;\n }",
"public void setUnitTable(Units value);",
"public String getSIunit() {\n\t\tStringBuffer b = new StringBuffer(64);\n\t\ttoSI(b, 0);\n\t\treturn(\"\"+b);\n\t}",
"@Test\n\tpublic void toStrindMethodIsWiredToAFormatter() {\n\t\tDummyUnit unit = new DummyUnit(SYMBOL);\n\t\tSimpleUnitFormat.getInstance().label(unit, LABEL);\n\t\tassertEquals(LABEL, unit.toString());\n\t}",
"public String getUnitOfMeasurement() {\r\n\t\treturn unitOfMeasurement;\r\n\t}",
"public com.mpe.financial.model.ItemUnit getItemUnit () {\r\n\t\treturn itemUnit;\r\n\t}",
"public void setUnitName(String unitName) {\n this.unitName = unitName;\n }",
"public void setUnitName(String unitName) {\n this.unitName = unitName;\n }",
"private void setupConvertDialog() {\n\t\tfinal int displayUnit = preferences.getInt(\"displayUnit\", UnitType.FOOTINCH\n\t\t\t\t.getId());\n\t\tfinal CharSequence[] unitCharSequence = UnitType\n\t\t\t\t.getCharSequenceItemsForDisplay();\n\t\tAlertDialog.Builder unitDialog = new AlertDialog.Builder(context);\n\t\tunitDialog.setTitle(context.getString(R.string.menuDisplayConvertToUnit) + \"...\");\n\t\tunitDialog.setItems(unitCharSequence,\n\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int item) {\n\t\t\t\t\t\tString s = (String) unitCharSequence[item];\n\t\t\t\t\t\tUnitType ut = UnitType.getUnitTypeFromDisplayFormat(s);\n\n\t\t\t\t\t\tString abbreviation = ut.getAbbreviation();\n\t\t\t\t\t\tLog.i(\"convert\", \"convert to unit: \" + abbreviation);\n\t\t\t\t\t\t// convert to specified format\n\t\t\t\t\t\t\n\t\t\t\t\t\t//expression in this case should be the entire formula in memory\n\t\t\t\t\t\t//String expression = display.get()\n\t\t\t\t\t\t//\t\t+ context.getString(R.string.equal);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//String expressionToConvert = expression + context.getString(R.string.equal);\n\t\t\t\t\t\t\n\t\t\t\t\t\texpression = \"\";\t\t\t\t\t\t\n\t\t\t\t\t\tString expressionToConvert = display.get() + context.getString(R.string.equal);\n\t\t\t\t\t\tdisplay.clear();\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t//Measurement result = parser.convert(expression, ut);\n\t\t\t\t\t\t\tMeasurement result = parser.convert(parser.solve(expressionToConvert), ut);\n\t\t\t\t\t\t\tif (result == null) {\n\t\t\t\t\t\t\t\tdisplay.add(context.getString(R.string.error));\n\t\t\t\t\t\t\t\tLog.e(\"convert\", \"result null for: \"\n\t\t\t\t\t\t\t\t\t\t+ expressionToConvert);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//HACK -- set display unit to correct unit\n\t\t\t\t\t\t\t\tsaveCurrentPreferences();\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tSharedPreferences.Editor editor = preferences.edit();\n\t\t\t\t\t\t\t\teditor = preferences.edit();\n\t\t\t\t\t\t\t\teditor.putInt(\"displayUnit\", ut.getId());\n\t\t\t\t\t\t\t\teditor.commit();\n\t\t\t\t\t\t\t\t//HACK -- set display unit to correct unit\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tString printable = parser\n\t\t\t\t\t\t\t\t\t\t.getPrintableResult(result);\n\t\t\t\t\t\t\t\tdisplay.add(printable);\n\t\t\t\t\t\t\t\tLog.i(\"convert\", \"printable result: \"\n\t\t\t\t\t\t\t\t\t\t+ printable);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//HACK -- set display unit to correct unit\n\t\t\t\t\t\t\t\trestoreCurrentPreferences();\n\t\t\t\t\t\t\t\t//HACK -- set display unit to correct unit\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (ExpressionParserException epe) {\n\t\t\t\t\t\t\tshowErrorAndResetDisplay(epe.getMessage(), false);\n\t\t\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\t\t\tdisplay.add(context.getString(R.string.error));\n\t\t\t\t\t\t\tLog.e(\"convert\", \"expression: \" + expressionToConvert\n\t\t\t\t\t\t\t\t\t+ ex.toString());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tAlertDialog alert = unitDialog.create();\n\t\talert.show();\n\t}",
"@Override\n protected String formatValue(Object value) {\n String formatted = \"float\".equals(format) ? formatWithDigits(value, this.digits) : String.valueOf(value);\n return formatted + \" \" + this.unitText;\n }",
"public UnitTypes GetCurrentUnitType()\n {\n return MethodsCommon.GetTypeFromUnit(Unit);\n }",
"public abstract void showStat();",
"public static void unitInfo(StarUnit u) {\t\t\t//공격 행위(메소드=함수) public = 클래스 외부에서 쓸수있음\n\t\tSystem.out.println(\"유닛이름:\"+u.getName());\n\t\tSystem.out.println(\"유닛체력:\"+u.getHp());\n\t\tSystem.out.println(\"유닛공격력:\"+u.getAttack());\n\t\tSystem.out.println(\"--------------------\");\n\t}",
"@Override // androidx.lifecycle.Observer\n public final void onChanged(Unit unit) {\n int i = this.a;\n if (i != 0) {\n if (i != 1) {\n throw null;\n } else if (unit != null) {\n ((DeliveryCourierSummaryViewImpl) this.b).b.showLoading();\n }\n } else if (unit != null) {\n ((DeliveryCourierSummaryViewImpl) this.b).b.showContent();\n }\n }"
] | [
"0.7315407",
"0.7287542",
"0.6888019",
"0.6876998",
"0.6848171",
"0.67548084",
"0.67548084",
"0.67548084",
"0.6660635",
"0.6619463",
"0.6596904",
"0.6530961",
"0.65177506",
"0.64882064",
"0.64797705",
"0.6479713",
"0.6469852",
"0.6466508",
"0.63993514",
"0.63886964",
"0.63882977",
"0.6324724",
"0.63195616",
"0.6317486",
"0.6310242",
"0.630816",
"0.630816",
"0.6262829",
"0.6254168",
"0.62465936",
"0.62137794",
"0.61819124",
"0.61715144",
"0.6159078",
"0.6147904",
"0.6137039",
"0.6131652",
"0.60956573",
"0.60908103",
"0.60653514",
"0.6049757",
"0.6049757",
"0.6049757",
"0.60432047",
"0.59911567",
"0.5964273",
"0.5908673",
"0.59022343",
"0.5892648",
"0.5888632",
"0.58773947",
"0.58682436",
"0.5863774",
"0.58499354",
"0.58366096",
"0.5834445",
"0.58328325",
"0.5832675",
"0.58220947",
"0.58006024",
"0.5799673",
"0.5792838",
"0.57877886",
"0.5779083",
"0.5708124",
"0.56979257",
"0.5694965",
"0.5694965",
"0.5687321",
"0.56851405",
"0.566997",
"0.5666869",
"0.5647719",
"0.56429577",
"0.5636545",
"0.56362206",
"0.56207895",
"0.5609555",
"0.56062734",
"0.5603051",
"0.55944407",
"0.55939937",
"0.5587446",
"0.55823",
"0.5574797",
"0.5573808",
"0.55614465",
"0.5554047",
"0.55522466",
"0.55500436",
"0.55375296",
"0.5534949",
"0.55297166",
"0.55297166",
"0.5522861",
"0.5517746",
"0.5513162",
"0.5502595",
"0.5501604",
"0.5497814"
] | 0.7213491 | 2 |
Helper binding method for function: thread_sleep. | public static final SourceModel.Expr thread_sleep(SourceModel.Expr arg_1) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.thread_sleep), arg_1});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void sleep();",
"void sleep();",
"@Override\n\tpublic void sleep() {\n\t\t\n\t}",
"void sleep ();",
"public Integer threadDelay();",
"void sleep()\r\n\t{\r\n\t\t\r\n\t}",
"@Override\n\tpublic void sleeps() {\n\t\t\n\t}",
"private void schedulerSleep() {\n\n\t\ttry {\n\n\t\t\tThread.sleep(timeSlice);\n\n\t\t} catch (InterruptedException e) {\n\t\t}\n\t\t;\n\n\t}",
"private void sleepFor(long t) {\n\t\ttry {\n\t\t\tThread.sleep(t);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void waitSleep(int pTime)\n{\n\n try {Thread.sleep(pTime);} catch (InterruptedException e) { }\n\n}",
"public interface Sleepable\n{\n\tvoid sleep();\n}",
"private void sleep(int number) {\n\t\ttry {\n\t\t\tThread.sleep(number);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}}",
"public abstract int delay();",
"private void sleep()\n {\n try {\n Thread.sleep(Driver.sleepTimeMs);\n }\n catch (InterruptedException ex)\n {\n\n }\n }",
"public void testSleep() {\n System.out.println(\"sleep\");\n long thinkTime = 0L;\n IOUtil.sleep(thinkTime);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"@Override\n protected void sleep(int milliseconds) {\n super.sleep(milliseconds);\n }",
"@Override\n\tpublic void msgGoToSleep() {\n\t\t\n\t}",
"private void sleep() {\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"private static void delay() throws InterruptedException {\n\t\tTimeUnit.MILLISECONDS.sleep((long) (minDelay + (long)(Math.random() * ((maxDelay - minDelay) + 1))));\n\t}",
"private Sleep(Duration duration) {\n this.duration = duration;\n }",
"@Override\n\tpublic void sleep() {\n\t\t((Application) application()).unlockEC();\n\t\tsuper.sleep();\n\t}",
"protected void sleep() {\n\t\tSystem.out.println(\"human sleep\");\n\t}",
"public static void sleep() {\n\t\ttry {\n\t\t\tThread.sleep(10 * 1000);\n\t\t} catch (InterruptedException e) {\n\t\t}\n\t}",
"private void Sleep() {\n\t\ttry {\n\t\t\tThread.sleep(10 * 1000);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void sleep(){\n System.out.println(\"Human Sleeps\");\n }",
"private void DisplaySleep(){\n\n try {\n TimeUnit.SECONDS.sleep(1);\n }\n catch(InterruptedException e){}\n }",
"public void sleep()\n\t{\n\t\ttry\n\t\t{\n\t\t\tThread.sleep(getMilliseconds());\n\t\t}\n\t\tcatch (InterruptedException e)\n\t\t{\n\t\t\t// ignore but return\n\t\t}\n\t}",
"public static void sleep1 () throws InterruptedException {\n\n // throws is cheaper way to get rid of exception\n Thread.sleep(2000);\n\n }",
"private void sleep(long ms) throws InterruptedException {\n Thread.sleep(ms);\n }",
"public Sleep() {\n\n\t}",
"private void Perform_SLEEP()\n {\n if (Utils.bit5(get_ioreg(MCUCR)))\n mSleeping = true;\n return;\n }",
"public static void sleep(double a){\n\n try {\n Thread.sleep((long)a*1000);\n } catch (InterruptedException e) {\n\n }\n\n }",
"private void sleep(int mul)\n {\n try {\n Thread.sleep(Driver.sleepTimeMs * mul);\n }\n catch (InterruptedException ex)\n {\n\n }\n }",
"@Override\n public int getSleepTime() {\n return this.sleepTime;\n }",
"@Override\n public native void delay(int ms);",
"private void sleep() {\n\t\tSystem.out.println(\"Ape sleeping\");\n\t}",
"private static void sleep(int n) {\n try {\n TimeUnit.MILLISECONDS.sleep(n);\n } catch (InterruptedException e) {\n System.out.print(\"\\ndelay failed\");\n }\n }",
"@Override\n public void setSleepTime(int st) {\n this.sleepTime = st;\n\n // notify the update thread so that it can recalculate\n if (updateThread.isRunning())\n updateThread.interrupt();\n }",
"public void sleep(){\n\n System.out.println(\"ZZZZZZZZZ bubble bubble bubble\");\n }",
"public static void zsleep(int t) {\n try { Thread.sleep(t);\n } catch(InterruptedException e) {}\n }",
"private void delay() {\n\ttry {\n\t\tThread.sleep(500);\n\t} catch (InterruptedException e) {\n\t\t// TODO Auto-generated catch block\n\t\te.printStackTrace();\n\t}\t\n\t}",
"private void sleep() {\n try {\n Thread.sleep(3000L);\n }\n catch (Exception ignored) {\n Log.trace(\"Sleep got interrupted.\");\n }\n }",
"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}",
"@Override\n public void sleep() {\n System.out.println(\"Zzz...\");\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}",
"private void sleep() {\n try {\n for(long count = 0L; this.DATA_STORE.isButtonPressed() && count < this.sleepTime; count += 20L) {\n Thread.sleep(20L);\n }\n } catch (InterruptedException iEx) {\n // For now, InterruptedException may be ignored if thrown.\n }\n\n if (this.sleepTime > 20L) {\n this.sleepTime = (long)((double)this.sleepTime / 1.3D);\n }\n }",
"public static void sleep(int delay) {\n try {\n \t// int delay = (int)(Math.random()*maxDelay);\n Thread.sleep(delay);\n } catch (InterruptedException e) {}\n\t}",
"void pauseThread();",
"public void sleep() {\n \t\thealth = maxHealthModifier;\n \t\ttoxicity = 0;\n \t}",
"public static void delay() {\n\n long ONE_SECOND = 1_000;\n\n try {\n Thread.sleep(ONE_SECOND);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public static void sleep(int seconds){\n seconds*=1000;\n try {\n Thread.sleep(seconds);\n }catch (InterruptedException e){\n e.getStackTrace();\n }\n }",
"public void sleep() throws InterruptedException, IllegalArgumentException, Time.Ex_TimeNotAvailable, Time.Ex_TooLate\n {\n // The current time.\n AbsTime now;\n // The duration to wait.\n RelTime duration;\n\n // Make error if NEVER.\n if (isNEVER()) {\n throw new IllegalArgumentException(\"this == NEVER\");\n }\n\n // Don't do anything if ASAP.\n if (!isASAP()) {\n\n // Calculate the time now.\n now = new AbsTime();\n\n // Figure out how long to wait for.\n duration = Time.diff(this, now);\n\n // If duration is negative, throw the Ex_TooLate exception.\n if (duration.getValue() < 0L) {\n throw new Time.Ex_TooLate();\n }\n\n // Do the wait.\n duration.sleep();\n }\n }",
"@Override\n\tpublic Object visitSleepStatement(SleepStatement sleepStatement, Object arg) throws Exception {\n\t\tsleepStatement.getE().visit(this, arg);\n\t\tSystem.out.println(\"sleep visited\");\n\t\tmv.visitInsn(I2L);\n\t\tmv.visitMethodInsn(INVOKESTATIC, \"java/lang/Thread\", \"sleep\", \"(J)V\", false);\n\t\treturn null;\n\t}",
"@When(\"^user wait for (.*) seconds$\")\n\tpublic void user_wait_for_seconds(int arg1) throws Throwable {\n\t\tThread.sleep(arg1*1000);\n\t \n\t}",
"public static void sleepFor(long duration) {\n try {\n Thread.sleep(duration);\n } catch (InterruptedException e) {\n // There is nothing to be done here\n }\n }",
"@Override\n\tpublic void run() {\n\n\t\tdouble d = Math.random() * 299;\n\t\tlong val = (long) d;\n\n\t\ttry {\n\t\t\tThread.sleep(val);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif (Thread.currentThread().getName().equals(\"one\")) {\n\t\t\tSystem.out.println(Thread.currentThread().getName()\n\t\t\t\t\t+ \" sleep time: \" + val);\n\n\t\t} else {\n\t\t\tSystem.out.println(Thread.currentThread().getName()\n\t\t\t\t\t+ \" sleep time: \" + val);\n\t\t}\n\n\t}",
"@Override\n public String call() throws Exception {\n System.out.println(\"start\");\n Thread.sleep(2000);\n System.out.println(\"sleep end\");\n return \"s\";\n }",
"private void sleep(int seconds) {\n\n\t\ttry {\n\t\t\tTimeUnit.SECONDS.sleep(seconds);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private static void attendre (int tms) {\n try {Thread.currentThread().sleep(tms);} \r\n catch(InterruptedException e){ }\r\n }",
"private static void attendre (int tms) {\n try {Thread.currentThread().sleep(tms);} \r\n catch(InterruptedException e){ }\r\n }",
"static void onSpinWait() {\n }",
"public static void sleep(int delay) {\n try {\n Thread.sleep(delay);\n } catch (InterruptedException e) {\n }\n }",
"@Override\n\tpublic boolean isSleeping() {\n\t\treturn false;\n\t}",
"ThreadWait(long timeTowakeUp, KThread threadS){\n wakeUp = timeTowakeUp;\n thread = threadS;\n }",
"private long sleepForRandomAmountOfTime() throws InterruptedException {\n final long backOffMillis = zeroTo(MAX_BACK_OFF_MILLIS);\n if (LOGGER.isTraceEnabled()) {\n LOGGER.trace(\"Backing off for \" + backOffMillis + \"ms\");\n }\n Thread.sleep(backOffMillis);\n return backOffMillis;\n }",
"@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tsleep(dauer);\n\t\t\tt.interrupt();\n\t\t} catch (InterruptedException e) {\n\t\t}\n\t}",
"public static void sleepFor(int sec) throws InterruptedException {\n Thread.sleep(sec * 1000);\n }",
"@Override\n\tpublic Boolean call() throws Exception {\n\t\tRandom rand = new Random();\n\t\tint seconds = rand.nextInt(6);\n\t\tif (seconds == 0) {\n\t\t\t// pretend there was an error\n\t\t\tthrow new RuntimeException(\"I love the new thread stuff!!! :)\");\n\t\t}\n\t\ttry {\n\t\t\tThread.sleep(seconds * 100);\n\t\t} catch (InterruptedException e) {\n\t\t}\n\t\t// even = true, odd = false\n\t\treturn seconds % 2 == 0;\n\t}",
"public static void sleep(int sec) {\n\t try {\n\t Thread.sleep(sec * 1000);\n\t }\n\t catch(Exception ex) {\n\t \tlogger.error(\"Error:Sleeping the thread\", ex);\n\t }\n\t}",
"void setSleeping(boolean sleeping);",
"int getSleepBeforeRetry();",
"@Override\n\tpublic String call() throws Exception {\n\t\t\n\t\tString name = Thread.currentThread().getName();\n\t\tSystem.out.println(name + \" is running...\");\n\t\tlong s = getRandomSleep();\n\t\tSystem.out.println(name + \" will sleep \" + s);\n\t\tThread.sleep(s);\n\t\treturn name + \" \"+runtimeFmt();\n\t}",
"private void sleepMilliseconds(int time) {\n int multipliedParam = (int) (Math.random() * time + 1);\n\n try {\n TimeUnit.MILLISECONDS.sleep(multipliedParam);\n Log.v(\"DLASync.sleep\", \" sleep \" + multipliedParam + \" milliseconds...\");\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public void sleep(Agent ag, long millis) throws InterruptedException {\n getThreadFor(ag).sleep(millis);\n stats.add(new SleepStat(ag.getClass()), millis);\n\n }",
"@Override\r\n\t\tpublic void run() {\n\t\t\twhile(true){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tTimeUnit.SECONDS.sleep(10);\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}",
"public void sleep() {\r\n System.out.println(this.animalName + \" sleeps\");\r\n }",
"private long getSleepTime()\n {\n return sleepTime;\n }",
"@Given(\"^user wait for (.*) seconds1$\")\n\tpublic void user_wait_for_seconds1(int arg1) throws Throwable {\n\t\tThread.sleep(arg1*1000);\n\t\t\n\t\t\n\t \n\t}",
"public void sleep(int slp)\n {\n try {\n Thread.sleep(slp);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public static void sleep(long aInDelay) {\n try {\n Thread.sleep(aInDelay);\n } catch (InterruptedException e) {\n Display.logUnexpectedError(e);\n }\n }",
"public static void sleep(long msec)\n {\n try\n {\n Thread.sleep(msec);\n }\n catch (InterruptedException e)\n {\n }\n }",
"public boolean sleep ( Location location , boolean force ) {\n\t\treturn invokeSafe ( \"sleep\" , new Class[] { Location.class , boolean.class } , location , force );\n\t}",
"public static void sleepForTwoSec() throws InterruptedException {\n Thread.sleep(2000);\n }",
"protected final void sleep(int inMilliseconds) {\r\n\r\n\t\ttry {\r\n\t\t\tThread.sleep(inMilliseconds);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t} // catch\r\n\t}",
"public void onSleep() {\n\t\tbehaviour.onSleep();\n\t}",
"private void thinking(){\n int sleepTime = (int)(Math.random()*2000);\n try{\n Thread.sleep(sleepTime);\n }catch (InterruptedException e){\n e.printStackTrace();\n }\n }",
"private void delay (int milliSec)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tThread.sleep (milliSec);\r\n\t\t}\r\n\t\tcatch (InterruptedException e)\r\n\t\t{\r\n\t\t}\r\n\t}",
"public static void sleepFor(float time) {\n try {\r\n Thread.sleep((int)(time*1000));\r\n } catch (InterruptedException e){\r\n }\r\n }",
"public void sleepy(long ms)\n\t{\n\t\ttry {\n\t\t\tsleep(ms);\n\t\t} catch(InterruptedException e) {}\n\t}",
"public int getSleepTicks ( ) {\n\t\treturn extract ( handle -> handle.getSleepTicks ( ) );\n\t}",
"private void emulateDelay() {\n try {\n Thread.sleep(700);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"private static void addDelay() {\n try {\n Thread.sleep(4000);\n } catch (InterruptedException ignored) {\n }\n }",
"@Override\n public void run() {\n System.out.println(\"2\");\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }",
"public static void delay() throws InterruptedException {\n // This is the sleep thread method that makes the program sleep\n // for a program amount of milliseconds to slow down the program\n Thread.sleep(1500);\n }",
"@Override\n\tpublic void run() {\n\t\tSystem.err.println(\"Test:\"+Thread.currentThread());\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"private void esperarPorFatherThread() {\n\t\ttry {\n\t\t\tThread.sleep(50000);\n\t\t} catch (InterruptedException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t}",
"private void backoff() {\n nextSleep *= 2;\n if (nextSleep > MAX_SLEEP) nextSleep = MAX_SLEEP;\n try {\n Thread.sleep(nextSleep);\n } catch (InterruptedException e) {\n }\n }",
"private void sleep(long millis){\n\t\ttry {\n\t\t\tThread.sleep(millis);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private static void wait(int seconds) {\n try {\n Thread.sleep(seconds * 1000);\n }\n catch(InterruptedException ie) {\n System.out.println(\"ERROR WAITING: Failed to generate a Thread to wait.\");\n ie.printStackTrace();\n }\n }",
"private static void wait(int seconds) {\n try {\n Thread.sleep(seconds * 1000);\n }\n catch(InterruptedException ie) {\n System.out.println(\"ERROR WAITING: Failed to generate a Thread to wait.\");\n ie.printStackTrace();\n }\n }"
] | [
"0.7365317",
"0.7365317",
"0.71825373",
"0.71709895",
"0.71553713",
"0.7140694",
"0.7029595",
"0.68651146",
"0.6725352",
"0.6696968",
"0.66903794",
"0.6567368",
"0.6566056",
"0.6537021",
"0.65165776",
"0.6508624",
"0.6469546",
"0.6466288",
"0.64631015",
"0.6437825",
"0.64017606",
"0.6363695",
"0.63579506",
"0.6354429",
"0.6301017",
"0.62884116",
"0.62494814",
"0.6213987",
"0.6205048",
"0.6193323",
"0.6183593",
"0.6176496",
"0.61764604",
"0.61730146",
"0.6156846",
"0.61477935",
"0.6140848",
"0.6116098",
"0.61066645",
"0.60964495",
"0.60834974",
"0.6068639",
"0.6028509",
"0.6018205",
"0.5957456",
"0.5929868",
"0.5923044",
"0.5918894",
"0.59056705",
"0.5905335",
"0.5896872",
"0.5876292",
"0.58666146",
"0.5848074",
"0.5847267",
"0.5846016",
"0.583167",
"0.5821325",
"0.5811701",
"0.5811701",
"0.5809971",
"0.57992953",
"0.579891",
"0.57934165",
"0.5790653",
"0.57858706",
"0.5775353",
"0.5756174",
"0.5753467",
"0.5747998",
"0.57430226",
"0.5738557",
"0.57380915",
"0.5737806",
"0.5712194",
"0.5710176",
"0.57010645",
"0.5691618",
"0.5683355",
"0.5675065",
"0.56651133",
"0.56632507",
"0.5658259",
"0.5655998",
"0.5654912",
"0.56519115",
"0.5651666",
"0.5645253",
"0.56410086",
"0.5640612",
"0.56378126",
"0.5631152",
"0.562863",
"0.56245375",
"0.56219774",
"0.56218535",
"0.5612423",
"0.5608829",
"0.5608525",
"0.5608525"
] | 0.73197997 | 2 |
Fill fields on screen | private void populateFields() {
typeNameTF.setText("");
unitsTF.setText("");
unitMeasureTF.setText("");
validityDaysTF.setText("");
reorderPointTF.setText("");
notesTF.setText("");
statusCB.getItems().addAll("Active", "Inactive");
statusCB.setValue("Active");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void fillPanel(){\n\t\t\tcontent.setLayout(new GridLayout(9,1));\n\t\t\tcontent.setBackground(Color.BLACK);\n\t\t\tcontent.add(playerNameLabel);\n\t\t\tcontent.add(playerNameField);\n\t\t\tcontent.add(placeHolder);\n\t\t\tcontent.add(passwordLabel);\n\t\t\tcontent.add(passwordField);\n\t\t\tcontent.add(passwordLabelRepeat);\n\t\t\tcontent.add(passwordFieldRepeat);\n\t\t\tcontent.add(placeHolder2);\n\t\t\tcontent.add(createButton);\t\n\t\t}",
"private void setupDisplay() {\n sizeFirstField_.setText(Double.toString(af_.SIZE_FIRST));\n numFirstField_.setText(Double.toString(af_.NUM_FIRST));\n sizeSecondField_.setText(Double.toString(af_.SIZE_SECOND));\n numSecondField_.setText(Double.toString(af_.NUM_SECOND));\n cropSizeField_.setText(Double.toString(af_.CROP_SIZE));\n thresField_.setText(Double.toString(af_.THRES));\n channelField1_.setText(af_.CHANNEL1);\n channelField2_.setText(af_.CHANNEL2);\n }",
"private void fillFields() {\n\t\tInteger owner = this.contractor.getOwner();\n\n\t\tnameField.setText(getTrimmedValue(this.contractor.getName()));\n\t\tlocationField.setText(getTrimmedValue(this.contractor.getLocation()));\n\t\townerField.setText(owner == null ? \"\" : owner.toString());\n\t\tsizeField.setText(contractor.getSize().toString());\n\t\trateField.setText(Contractor.RATE_FORMAT.format(this.contractor\n\t\t\t\t.getRate()));\n\t\tspecialtiesList.setListData(this.contractor.getSpecialties());\n\t}",
"private void updateFieldValues(){\r\n \tgenChainLengthField.setText(String.valueOf(settings.genChainLength));\r\n \tgenChainLengthFluxField.setText(String.valueOf(settings.genChainLengthFlux));\r\n \tstepGenDistanceField.setText(String.valueOf(settings.stepGenDistance));\r\n \trowsField.setText(String.valueOf(settings.rows));\r\n \tcolsField.setText(String.valueOf(settings.cols));\r\n \tcellWidthField.setText(String.valueOf(settings.cellWidth));\r\n \tstartRowField.setText(String.valueOf(settings.startRow));\r\n \tstartColField.setText(String.valueOf(settings.startCol));\r\n \tendRowField.setText(String.valueOf(settings.endRow));\r\n \tendColField.setText(String.valueOf(settings.endCol));\r\n \tprogRevealRadiusField.setText(String.valueOf(settings.progRevealRadius));\r\n \tprogDrawCB.setSelected(settings.progDraw);\r\n \tprogDrawSpeedField.setText(String.valueOf(settings.progDrawSpeed));\r\n }",
"private void fillSearchFields() {\n view.setMinPrice(1);\n view.setMaxPrice(10000);\n view.setMinSQM(1);\n view.setMaxSQM(10000);\n view.setBedrooms(1);\n view.setBathrooms(1);\n view.setFloor(1);\n view.setHeating(false);\n view.setLocation(\"Athens\");\n }",
"private void fillAll() {\n this.fill_M0();\n this.fill_W();\n this.fill_C();\n }",
"private void fillComponents() {\n\t\tthis.pass.setSize(new Dimension(110, 25));\n\t\tthis.setGridBagConstraints(0, 0, 0, 0, 0, 3, 1);\n\t\tthis.center.add(new JLabel(\"Password:\"),c);\n\t\tthis.setGridBagConstraints(1, 0, 0, 0, 0, 3, 1);\n\t\tthis.center.add(pass, c);\n\t\tthis.setGridBagConstraints(2, 1, 0, 0, 0, 1, 1);\n\t\tthis.center.add(back, c);\n\t\tthis.add(center, BorderLayout.CENTER);\n\t}",
"public void limparCampos() {\n\t\tcodigoField.setText(\"\");\n\t\tdescricaoField.setText(\"\");\n\t\tcodigoField.setEditable(true);\n\t\tBorder border = BorderFactory.createLineBorder(Color.RED);\n\t\tcodigoField.setBorder(border);\n\t\tcodigoField.requestFocus();\n\t\tBorder border1 = BorderFactory.createLineBorder(Color.BLACK);\n\t\tdescricaoField.setBorder(border1);\n\t\t\n\t\t\n\t}",
"public void fillGUI()\n \t{\n \t\tsuper.fillGUI();\n \t\tsuper.fillGUI( gui );\n \t}",
"private void setFields() {\n\t\tfirstname.setText(guest.getFirstName());\n\t\tlastname.setText(guest.getLastName());\n\t\tpassport.setText(guest.getPassportNumber());\n\t\ttelephone.setText(guest.getTelephoneNumber());\n\t\tarrival.setText(arrivalDate.toString());\n\t\tdeparture.setText(departureDate.toString());\n\n\t\tif (hotelChoice.getName() != null && hotelChoice.getName() != \"\"\n\t\t\t\t&& !(hotelChoice.getName() == Controller.DEFAULT_HOTEL_CHOICE)) {\n\t\t\thotel.setText(hotelChoice.getName());\n\t\t} else {\n\t\t\thotelChoice = new Hotel();\n\t\t\thotelChoice.setName(\"\");\n\t\t\thotel.clear();\n\t\t}\n\t\tif (roomQualityChoice.getQuality() != null && roomQualityChoice.getQuality() != \"\"\n\t\t\t\t&& !(roomQualityChoice.getQuality() == Controller.DEFAULT_QUALITY_CHOICE)) {\n\t\t\tquality.setText(roomQualityChoice.getQuality());\n\t\t} else {\n\t\t\troomQualityChoice = new RoomQuality();\n\t\t\troomQualityChoice.setQuality(\"\");\n\t\t\tquality.clear();\n\t\t}\n\t\tif (discountChoice > 0) {\n\t\t\tdiscount.setText(\"(-\" + discountChoice + \"%)\");\n\t\t}\n\n\t\tloadAvailableRooms();\n\n\t}",
"private static void draw() {\n\t\tinitField();\n\t\tview = new View(field);\n\t\tview.setSize(viewWidth, viewHeight);\n\t\tframe = new JFrame();\n\t\tframe.setSize(fwidth, fheight);\n\t\tframe.setTitle(\"Land Mine\");\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.add(view);\n\t\tframe.setVisible(true);\n\t}",
"private void fillData() {\n\tparname.setText(UpStudentController.getName());\r\n\tparphone.setText(UpStudentController.getPhone());\r\n\tparmail.setText(UpStudentController.getMail());\r\n\taddres.setText(UpStudentController.getAdr());\r\n\tlocation.setText(UpStudentController.getLoc());\r\n\tkazi.setText(UpStudentController.getOc());\r\n\ttaifa.setText(UpStudentController.getNat());\r\n\t}",
"private void initiateEarnBlueEssenceFields(JFrame frame) {\r\n JLabel q1 = new JLabel(\"Add amount to mainAccount or altAccount?\");\r\n new Label(q1);\r\n// q1.setPreferredSize(new Dimension(750, 100));\r\n// q1.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n frame.add(q1);\r\n\r\n JTextField account = new JTextField();\r\n new TextField(account);\r\n// account.setPreferredSize(new Dimension(750, 100));\r\n// account.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n frame.add(account);\r\n\r\n JLabel q2 = new JLabel(\"Amount of Blue Essence Earned\");\r\n new Label(q2);\r\n// q2.setPreferredSize(new Dimension(750, 100));\r\n// q2.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n frame.add(q2);\r\n\r\n JTextField amount = new JTextField();\r\n new TextField(amount);\r\n// amount.setPreferredSize(new Dimension(750, 100));\r\n// amount.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n frame.add(amount);\r\n\r\n ImageIcon icon = new ImageIcon(\"./data/be.JPG\");\r\n JLabel label = new JLabel(icon);\r\n label.setPreferredSize(new Dimension(750, 100));\r\n frame.add(label);\r\n\r\n initiateEarnBlueEssenceEnter(frame, account, amount);\r\n }",
"private void clearFields() {\n this.upperTextField.setText(\"\");\n this.bottomTextField.setText(\"\");\n this.titleTextField.setText(\"\");\n this.tagTextField.setText(\"\");\n this.imageStackPane.getChildren().clear();\n }",
"public SetupScreen() \r\n { \r\n _userLabel = new LabelField(Ipoki._resources.getString(LBL_USER), DrawStyle.ELLIPSIS);\r\n add(_userLabel);\r\n _userEdit = new EditField(\"\", Ipoki._user, 20, Field.EDITABLE);\r\n add(_userEdit);\r\n _passLabel = new LabelField(Ipoki._resources.getString(LBL_PASSWORD), DrawStyle.ELLIPSIS);\r\n add(_passLabel);\r\n _passEdit = new PasswordEditField(\"\", Ipoki._pass, 20, Field.EDITABLE);\r\n add(_passEdit);\r\n _freqLabel = new LabelField(Ipoki._resources.getString(LBL_FREQ), DrawStyle.ELLIPSIS);\r\n add(_freqLabel);\r\n _freqEdit = new EditField(\"\", String.valueOf(Ipoki._freq), 20, Field.EDITABLE | EditField.FILTER_INTEGER);\r\n add(_freqEdit);\r\n }",
"public void updatePropertyFields()\n {\n amountLabel .setText(retrieveText(\"AmountLabel\", amountLabel));\n reasonCodeLabel .setText(retrieveText(\"ReasonCodeLabel\", reasonCodeLabel));\n paidToLabel .setText(retrieveText(\"PaidToLabel\", paidToLabel));\n employeeIDLabel .setText(retrieveText(\"EmployeeIDLabel\", employeeIDLabel));\n addressLine1Label.setText(retrieveText(\"AddressLine1Label\", addressLine1Label));\n addressLine2Label.setText(retrieveText(\"AddressLine2Label\", addressLine2Label));\n addressLine3Label.setText(retrieveText(\"AddressLine3Label\", addressLine3Label));\n approvalCodeLabel.setText(retrieveText(\"ApprovalCodeLabel\", approvalCodeLabel));\n commentLabel .setText(retrieveText(\"CommentLabel\", commentLabel));\n\n amountField .setLabel(amountLabel);\n reasonCodeField .setLabel(reasonCodeLabel);\n paidToField .setLabel(paidToLabel);\n employeeIDField .setLabel(employeeIDLabel);\n addressLine1Field.setLabel(addressLine1Label);\n addressLine2Field.setLabel(addressLine2Label);\n addressLine3Field.setLabel(addressLine3Label);\n approvalCodeField.setLabel(approvalCodeLabel);\n commentField .setLabel(commentLabel);\n }",
"private void setLayout() {\n\t\ttxtNickname.setId(\"txtNickname\");\n\t\ttxtPort.setId(\"txtPort\");\n\t\ttxtAdress.setId(\"txtAdress\");\n\t\tlblNickTaken.setId(\"lblNickTaken\");\n\n\t\tgrid.setPrefSize(516, 200);\n\t\tbtnLogin.setDisable(true);\n\t\ttxtNickname.setPrefSize(200, 25);\n\t\tlblNickTaken.setPrefSize(250, 10);\n\t\tlblNickTaken.setText(null);\n\t\tlblNickTaken.setTextFill(Color.RED);\n\t\tlblNick.setPrefSize(120, 50);\n\t\ttxtAdress.setText(\"localhost\");\n\t\ttxtPort.setText(\"4455\");\n\t\tlblCardDesign.setPrefSize(175, 25);\n\t\tcomboBoxCardDesign.getSelectionModel().select(0);\n\t\tbtnLogin.setGraphic(imvStart);\n\t}",
"@Override\n public void display(JPasswordField passFirstnameTextField,\n JTextField userFirstnameTextField,\n JTextField userLastnameTextField,\n JTextField DoBTextField,\n JTextField contactNumberTextField,\n JTextField emailTextField,\n JTextField salaryTextField,\n JTextField positionStatusTextField,\n JTextField nameTextField,\n JTextField buildingNameTextField,\n JTextField streetTextField,\n JTextField buildingNoTextField,\n JTextField areaTextField,\n JTextField cityTextField,\n JTextField countryTextField,\n JTextField postcodeTextField){\n\n\n\n passFirstnameTextField.setText(getPassword());\n userFirstnameTextField.setText(getFirstname());\n userLastnameTextField.setText(getLastname());\n DoBTextField.setText(DMY.format(getDoB()));\n contactNumberTextField.setText(getContactNumber());\n emailTextField.setText(getEmail());\n salaryTextField.setText(String.valueOf(getSalary()));\n positionStatusTextField.setText(getPositionStatus());\n homeAddress.display(nameTextField,buildingNameTextField,streetTextField,\n buildingNoTextField,areaTextField,cityTextField,\n countryTextField,postcodeTextField);\n }",
"private void refreshSettingsFields() {\r\n\t\tif(mediaSrc.getActiveCamera() != null) {\r\n\t\t\txPos.setText(Float.toString(mediaSrc.getActiveCamera().getxPos()));\r\n\t\t\tyPos.setText(Float.toString(mediaSrc.getActiveCamera().getyPos()));\r\n\t\t\tzPos.setText(Float.toString(mediaSrc.getActiveCamera().getzPos()));\r\n\t\t\thOrientation.setText(Float.toString(mediaSrc.getActiveCamera().getHorOrientation()));\r\n\t\t\tvOrientation.setText(Float.toString(mediaSrc.getActiveCamera().getVerOrientation()));\r\n\t\t\tfov.setText(Float.toString(mediaSrc.getActiveCamera().getFov()));\r\n\t\t}\r\n\t\t\r\n\t\txPos.setBackground(Color.WHITE);\r\n\t\tyPos.setBackground(Color.WHITE);\r\n\t\tzPos.setBackground(Color.WHITE);\r\n\t\thOrientation.setBackground(Color.WHITE);\r\n\t\tvOrientation.setBackground(Color.WHITE);\r\n\t\tfov.setBackground(Color.WHITE);\r\n\t}",
"private void setFields() {\n\t\t// create nine rectangles to represent the cells\n\t\tfor (int x=0;x<3;x++) {\n\t\t\tfor (int y=0;y<3;y++) {\n\t\t\t\t// create the fields based on the dimensions of the board\n\t\t\t\tfieldsArrayGeometry[x][y]= new Rectangle2D.Double(xBoardMin+fieldWidthX*x, yBoardMin+fieldHeightY*y, fieldWidthX, fieldHeightY);\n\t\t\t}\n\t\t\t//System.out.println(Arrays.deepToString(fieldsArrayGeometry));\n\t\t}\n\t\t// write fields to file\n\t\ttry {\n FileWriter fileWriterFields = new FileWriter(fileNameFieldsDimensions,true);\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriterFields);\n bufferedWriter.write(\"New Fields \"+fieldWidthX+\" \"+fieldHeightY+\" \"+\"\\n\");\n \t\t\tfor (int x=0;x<3;x++) {\n \t\t\t\tfor (int y=0;y<3;y++) {\n \t\t\t\t\tbufferedWriter.write(x+\",\"+y+\",\"+\n \t\t\t\t\t\t\t(int) fieldsArrayGeometry[x][y].getMinX()+\",\"+\n \t\t\t\t\t\t\t(int) fieldsArrayGeometry[x][y].getMaxX()+\",\"+\n \t\t\t\t\t\t\t(int) fieldsArrayGeometry[x][y].getMinY()+\",\"+\n \t\t\t\t\t\t\t(int) fieldsArrayGeometry[x][y].getMaxY()+\"\\n\");\n \t\t\t\t}\n \t\t\t}\n bufferedWriter.close(); }\n catch(IOException ex2) {\n System.out.println(\"Error writing to file '\"+ fileNameFieldsDimensions + \"'\");\n }\n\t}",
"private void populateForm() {\n Part selectedPart = (Part) PassableData.getPartData();\n partPrice.setText(String.valueOf(selectedPart.getPrice()));\n partName.setText(selectedPart.getName());\n inventoryCount.setText(String.valueOf(selectedPart.getStock()));\n partId.setText(String.valueOf(selectedPart.getId()));\n maximumInventory.setText(String.valueOf(selectedPart.getMax()));\n minimumInventory.setText(String.valueOf(selectedPart.getMin()));\n\n if (PassableData.isOutsourced()) {\n Outsourced part = (Outsourced) selectedPart;\n variableTextField.setText(part.getCompanyName());\n outsourced.setSelected(true);\n\n } else if (!PassableData.isOutsourced()) {\n InHouse part = (InHouse) selectedPart;\n variableTextField.setText(String.valueOf(part.getMachineId()));\n inHouse.setSelected(true);\n }\n\n\n }",
"private void initiateBlueEssencePurchaseFields(JFrame frame) {\r\n JLabel q5 = new JLabel(\"Make purchase for mainAccount or altAccount?\");\r\n// q5.setPreferredSize(new Dimension(1000, 100));\r\n// q5.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n new Label(q5);\r\n frame.add(q5);\r\n\r\n JTextField account = new JTextField();\r\n// account.setPreferredSize(new Dimension(1000, 100));\r\n// account.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n new TextField(account);\r\n frame.add(account);\r\n\r\n JLabel q6 = new JLabel(\"Name of the champion you wish to purchase?\");\r\n// q6.setPreferredSize(new Dimension(1000, 100));\r\n// q6.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n new Label(q6);\r\n frame.add(q6);\r\n\r\n JTextField name = new JTextField();\r\n// name.setPreferredSize(new Dimension(1000, 100));\r\n// name.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n new TextField(name);\r\n frame.add(name);\r\n\r\n ImageIcon icon = new ImageIcon(\"./data/shopicon.JPG\");\r\n JLabel label = new JLabel(icon);\r\n label.setPreferredSize(new Dimension(750, 100));\r\n frame.add(label);\r\n\r\n initiateBlueEssencePurchaseEnter(frame, account, name);\r\n }",
"public void fillInnerParts() {\n if (this.staff.getCurrentView().isPresent()) {\n Staff currentStaff = this.staff.getCurrentView().get();\n Index index = this.staff.getIndex();\n staffBasicInfoDisplay = new StaffBasicInfoDisplay(currentStaff, index);\n basicInfoPlaceholder.getChildren().add(staffBasicInfoDisplay.getRoot());\n\n commentListPanel = new CommentListPanel(staff.getCommentList());\n commentListPanelPlaceholder.getChildren().add(commentListPanel.getRoot());\n\n leaveInfoDisplay = new LeaveInfoDisplay(staff.getLeaveList(), currentStaff.getLeaveTaken());\n leaveInfoPlaceholder.getChildren().add(leaveInfoDisplay.getRoot());\n }\n }",
"private void buildFields() {\r\n buildField(txtPizzaName, GUIResource.getLabel(DIALOG, NAME_PIZZA), 0);\r\n buildField(txtCustomerName, GUIResource.getLabel(DIALOG, NAME_CUSTOMER), 1);\r\n buildField(txtPhone, GUIResource.getLabel(DIALOG, PHONE), 2);\r\n buildField(txtEmail, GUIResource.getLabel(DIALOG, EMAIL), 3);\r\n }",
"private void reset(){\n locationFieldX.setText(\"0.00\");\n locationFieldY.setText(\"0.00\");\n locationFieldZ.setText(\"0.00\");\n rotationFieldX.setText(\"0.00\");\n rotationFieldY.setText(\"0.00\");\n rotationFieldZ.setText(\"0.00\");\n scaleField.setText(\"1.00\");\n \n setObjects();\n setImage();\n }",
"private void fillPanel(){\n populateLittlesComboBox(littlesRankingsBox);\n populateLittlesComboBox(whoRanksLittleBox);\n populateBigsComboBox(bigsRankingsBox);\n populateBigsComboBox(whoRanksBigBox);\n\n }",
"private void resetFields() {\n\t\tthis.barcodeField.clear();\r\n\t\tthis.barcodeField.setDisable(false);\r\n\t\tthis.nameField.clear();\r\n\t\tthis.descriptionField.clear();\r\n\t\tthis.mrpField.clear();\r\n\t\tthis.revisedMrpField.clear();\r\n\t\tthis.stockField.clear();\r\n\t\tthis.availableStockLabelValue.setText(\"0.0\");\r\n\t\tthis.barcodeImageView.setImage(null);\r\n\t\tthis.barcodeDisplayLabel.setVisible(true);\r\n\t\tthis.barcodeNumberLabel.setVisible(false);\r\n\r\n\t}",
"public void Fill(WymiaryDTO wymiary)\n {\n this.wymiary=wymiary;\n //updateGUI();\n }",
"private void setFieldsEmpty(){\n nameInput.setText(\"\");\n frontTrackInput.setText(\"\");\n cornerWeightFLInput.setText(\"\");\n cornerWeightRLInput.setText(\"\");\n rearTrackInput.setText(\"\");\n cornerWeightRRInput.setText(\"\");\n cornerWeightFRInput.setText(\"\");\n cogInput.setText(\"\");\n frontRollDistInput.setText(\"\");\n wheelBaseInput.setText(\"\");\n }",
"void fillInputBox() {\n\t\tBox inputs = Box.createVerticalBox();\n\n\t\tfor (int i = 0; i < overviewRule.listOfParametersNeeded.size(); i++) {\n\t\t\tJLabel input = new JLabel(overviewRule.listOfParametersNeeded.get(i));\n\t\t\tinputs.add(input);\n\t\t}\n\n\t\tinputBox.add(inputLabel);\n\n\t\tinputBox.add(inputs);\n\t}",
"private void formFiller(FormLayout fl)\n\t{\n fl.setSizeFull();\n\n\t\ttf0=new TextField(\"Name\");\n\t\ttf0.setRequired(true);\n\t\t\n sf1 = new Select (\"Customer\");\n try \n {\n\t\t\tfor(String st :db.selectAllCustomers())\n\t\t\t{\n\t\t\t\tsf1.addItem(st);\n\t\t\t}\n\t\t} \n \tcatch (UnsupportedOperationException | SQLException e) \n \t{\n \t\tErrorWindow wind = new ErrorWindow(e); \n\t UI.getCurrent().addWindow(wind);\n \t\te.printStackTrace();\n \t}\n sf1.setRequired(true);\n \n sf2 = new Select (\"Project Type\");\n sf2.addItem(\"In house\");\n sf2.addItem(\"Outsourcing\");\n df3=new DateField(\"Start Date\");\n df3.setDateFormat(\"d-M-y\");\n df3.setRequired(true);\n \n df4=new DateField(\"End Date\");\n df4.setDateFormat(\"d-M-y\");\n \n df4.setRangeStart(df3.getValue());\n \n df5=new DateField(\"Next DeadLine\");\n df5.setDateFormat(\"d-M-y\");\n df5.setRangeStart(df3.getValue());\n df5.setRangeEnd(df4.getValue());\n sf6 = new Select (\"Active\");\n sf6.addItem(\"yes\");\n sf6.addItem(\"no\");\n sf6.setRequired(true);\n \n tf7=new TextField(\"Budget(mandays)\");\n \n tf8=new TextArea(\"Description\");\n \n tf9=new TextField(\"Inserted By\");\n \n tf10=new TextField(\"Inserted At\");\n \n tf11=new TextField(\"Modified By\");\n \n tf12=new TextField(\"Modified At\");\n \n if( project.getName()!=null)tf0.setValue(project.getName());\n else tf0.setValue(\"\");\n\t\tif(!editable)tf0.setReadOnly(true);\n fl.addComponent(tf0, 0);\n \n\n if(project.getCustomerID()!=-1)\n\t\t\ttry \n \t{\n\t\t\t\tsf1.setValue(db.selectCustomerforId(project.getCustomerID()));\n\t\t\t}\n \tcatch (ReadOnlyException | SQLException e) \n \t{\n \t\tErrorWindow wind = new ErrorWindow(e); \n\t\t UI.getCurrent().addWindow(wind);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\telse sf1.setValue(\"\");\n if(!editable)sf1.setReadOnly(true);\n fl.addComponent(sf1, 1);\n \n \n if(project.getProjectType()!=null)sf2.setValue(project.getProjectType());\n else sf2.setValue(\"\");\n if(!editable)sf2.setReadOnly(true);\n fl.addComponent(sf2, 2);\n \n if(project.getStartDate()!=null) df3.setValue(project.getStartDate());\n if(!editable)df3.setReadOnly(true);\n fl.addComponent(df3, 3);\n \n if(project.getEndDate()!=null) df4.setValue(project.getEndDate());\n if(!editable)df4.setReadOnly(true);\n fl.addComponent(df4, 4);\n \n if(project.getNextDeadline()!=null)df5.setValue(project.getNextDeadline());\n if(!editable)df5.setReadOnly(true);\n fl.addComponent(df5, 5);\n \n if (project.isActive())sf6.setValue(\"yes\");\n else sf6.setValue(\"no\");\n if(!editable)sf6.setReadOnly(true);\n fl.addComponent(sf6, 6);\n \n if(project.getBudget()!=-1.0) tf7.setValue(String.valueOf(project.getBudget()));\n else tf7.setValue(\"\");\n if(!editable)tf7.setReadOnly(true);\n fl.addComponent(tf7, 7);\n \n if(project.getDescription()!=null)tf8.setValue(project.getDescription());\n else tf8.setValue(\"\");\n if(!editable)tf8.setReadOnly(true);\n fl.addComponent(tf8, 8);\n \n if(project.getInserted_by()!=null)tf9.setValue(project.getInserted_by());\n else tf9.setValue(\"\");\n tf9.setEnabled(false);\n fl.addComponent(tf9, 9);\n \n if(project.getInserted_at()!=null)tf10.setValue(project.getInserted_at().toString());\n else tf10.setValue(\"\");\n tf10.setEnabled(false);\n fl.addComponent(tf10, 10);\n \n if(project.getModified_by()!=null)tf11.setValue(project.getModified_by());\n else tf11.setValue(\"\");\n tf11.setEnabled(false);\n fl.addComponent(tf11, 11);\n \n if(project.getModified_at()!=null)tf12.setValue(project.getModified_at().toString());\n else tf12.setValue(\"\");\n tf12.setEnabled(false);\n fl.addComponent(tf12, 12);\n \n \n\t}",
"public void fillIdentity() {\n\t\tString shipName = ship.getShipName();\n\t\tString name = shipsNameLabel.getText();\n\t\tshipsNameLabel.setText( name + shipName);\n\t\t\n\t\tdouble shipStatus = ship.getShipsStatus();\n\t\tString status = shipsStatusLabel.getText();\n\t\tshipsStatusLabel.setText( status + shipStatus + \"HP\");\n\t\t\n\t\tdouble shipCap = ship.getCapacity();\n\t\tString capacity = shipsCurrentCapacityLabel.getText();\n\t\tshipsCurrentCapacityLabel.setText(capacity + String.format(\"%.2f\", shipCap) + \"m^3\");\n\t\t\n\t\tint shipSpeed = ship.getShipsSpeed();\n\t\tString speed = shipsSpeedLabel.getText();\n\t\tshipsSpeedLabel.setText( speed + shipSpeed + \" km/day\");\n\t\t\n\t\tint shipCrew = ship.getCrew();\n\t\tString crew = crewsInShipLabel.getText();\n\t\tcrewsInShipLabel.setText(crew + shipCrew + \" people\");\n\t\t\n\t\tArrayList<Equipment> shipsEquipment = ship.getEquipment();\n\t\tArrayList<String> shipsEquipmentName = new ArrayList<String>();\n\t\tfor (Equipment equipment: shipsEquipment) {\n\t\t\tshipsEquipmentName.add(equipment.getName());\n\t\t}\n\t\tString equipments = shipsEquipmentLabel.getText();\n\t\tshipsEquipmentLabel.setText(equipments + shipsEquipmentName);\n\t\t\n\t}",
"private void initiateAccountPrintFields(JFrame frame) {\r\n JLabel q5 = new JLabel(\"Print details for mainAccount or altAccount?\");\r\n new Label(q5);\r\n// q5.setPreferredSize(new Dimension(1000, 100));\r\n// q5.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n frame.add(q5);\r\n\r\n JTextField account = new JTextField();\r\n new TextField(account);\r\n// account.setPreferredSize(new Dimension(1000, 100));\r\n// account.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n frame.add(account);\r\n\r\n ImageIcon icon = new ImageIcon(\"./data/printicon.JPG\");\r\n JLabel label = new JLabel(icon);\r\n label.setPreferredSize(new Dimension(1000, 100));\r\n frame.add(label);\r\n\r\n initiateAccountPrintEnter(frame, account);\r\n }",
"private void initiateRiotPointsPurchaseFields(JFrame frame) {\r\n JLabel q7 = new JLabel(\"Make purchase for mainAccount or altAccount?\");\r\n// q7.setPreferredSize(new Dimension(1000, 100));\r\n// q7.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n new Label(q7);\r\n frame.add(q7);\r\n\r\n JTextField account = new JTextField();\r\n// account.setPreferredSize(new Dimension(1000, 100));\r\n// account.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n new TextField(account);\r\n frame.add(account);\r\n\r\n JLabel q8 = new JLabel(\"Name of the champion you wish to purchase?\");\r\n// q8.setPreferredSize(new Dimension(1000, 100));\r\n// q8.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n new Label(q8);\r\n frame.add(q8);\r\n\r\n JTextField name = new JTextField();\r\n// name.setPreferredSize(new Dimension(1000, 100));\r\n// name.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n new TextField(name);\r\n frame.add(name);\r\n\r\n ImageIcon icon = new ImageIcon(\"./data/shopicon.JPG\");\r\n JLabel label = new JLabel(icon);\r\n label.setPreferredSize(new Dimension(750, 100));\r\n frame.add(label);\r\n\r\n initiateRiotPointsPurchaseEnter(frame, account, name);\r\n }",
"public void fillGamePanel() {\n for (int row = 0; row < world.getRowCount(); row++) {\n for (int col = 0; col < world.getColumnCount(); col++) {\n add(world.getCellAt(row, col));\n world.getCellAt(row, col).setBorder(\n BorderFactory.createMatteBorder(\n 1, 1, 0, 0, Color.BLACK));\n }\n }\n for (int row = 0; row < world.getRowCount(); row++) {\n for (int col = 0; col < world.getColumnCount(); col++) {\n gridPanel.add(world.getCellAt(row, col));\n world.getCellAt(row, col).setBorder(\n BorderFactory.createMatteBorder(\n 1, 1, 0, 0, Color.BLACK));\n }\n }\n }",
"private void initializeFields() {\r\n myFrame = new JFrame();\r\n myFrame.setSize(DEFAULT_SIZE);\r\n }",
"private void initFields(){\n labels.put(\"patientID\", new JLabel(\"Patient ID:\"));\n labels.put(\"newOwed\", new JLabel(\"New Owed:\"));\n \n fields.put(\"patientID\", new JTextField());\n fields.put(\"newOwed\", new JTextField());\n }",
"public void drawScreen(int par1, int par2, float par3)\n {\n drawRect(2, height - 14, width - 2, height - 2, 0x80000000);\n field_50064_a.drawTextBox();\n super.drawScreen(par1, par2, par3);\n }",
"public void fillPropertyArray()\n \t{\n \t\tsuper.fillPropertyArray();\n \t\tsuper.fillPropertyArray( gui );\n \t}",
"public void limpiarCampos(){\n\n\t\tcampoInicio.setText(\"yyyy-mm-dd\");\n\t\tcampoInicio.setForeground(new Color(111,111,111));\n\t\tcampoFinal.setText(\"yyyy-mm-dd\");\n\t\tcampoFinal.setForeground(new Color(111,111,111));\n\n\t}",
"private void clearFields() {\r\n\t\tmCardNoValue1.setText(\"\");\r\n\t\tmCardNoValue1.setHint(\"-\");\r\n\t\tmCardNoValue2.setText(\"\");\r\n\t\tmCardNoValue2.setHint(\"-\");\r\n\t\tmCardNoValue3.setText(\"\");\r\n\t\tmCardNoValue3.setHint(\"-\");\r\n\t\tmCardNoValue4.setText(\"\");\r\n\t\tmCardNoValue4.setHint(\"-\");\r\n\t\tmZipCodeValue.setText(\"\");\r\n\t\tmZipCodeValue.setHint(\"Zipcode\");\r\n\t\tmCVVNoValue.setText(\"\");\r\n\t\tmCVVNoValue.setHint(\"CVV\");\r\n\t}",
"public void limpiarCampos() {\n jtCargo.setText(\"\");\n jtCiudadNacimiento.setText(\"\");\n jtCorreo.setText(\"\");\n jtDepartamento.setText(\"\");\n jtDireccion.setText(\"\");\n jtDocumento.setText(\"\");\n jtMovil.setText(\"\");\n jtPrimerApellido.setText(\"\");\n jtPrimerNombre.setText(\"\");\n jtProfesion.setText(\"\");\n jtSegundoApellido.setText(\"\");\n jtSegundoNombre.setText(\"\");\n jtTelefono.setText(\"\");\n jtDocumento.setEnabled(true);\n jdFechaContratacion.setEnabled(true);\n jcTipoDocumento.setSelectedIndex(0);\n jcTipoSangre.setSelectedIndex(0);\n jcTipoContrato.setSelectedIndex(0);\n cjFactorRH.setSelectedIndex(0);\n jdFechaNacimiento.setDate(null);\n jdFechaTitulacion.setDate(null);\n jdFechaContratacion.setDate(null);\n\n repaint();\n }",
"private static void addField() {\n double width = FIELD_FRACTION * FLAG_WIDTH;\n double height = FLAG_HEIGHT * 7 / 13;\n PPRect field = new PPRect(x0, y0, width, height);\n field.setColor(Color.BLUE);\n slide.add(field);\n double dx = width / 6;\n double dy = height / 5;\n double starSize = STAR_FRACTION * Math.min(dx, dy);\n for (int row = 0; row < 5; row++) {\n double y = y0 + (row + 0.5) * dy;\n for (int col = 0; col < 6; col++) {\n double x = x0 + (col + 0.5) * dx;\n PPStar star = new PPStar(x - starSize / 2, y - starSize / 2,\n starSize, starSize);\n star.setColor(Color.WHITE);\n slide.add(star);\n }\n }\n for (int row = 0; row < 4; row++) {\n double y = y0 + (row + 1) * dy;\n for (int col = 0; col < 5; col++) {\n double x = x0 + (col + 1) * dx;\n PPStar star = new PPStar(x - starSize / 2, y - starSize / 2,\n starSize, starSize);\n star.setColor(Color.WHITE);\n slide.add(star);\n }\n }\n }",
"public static void updateField() {\r\n\t\tfor (int i = 0; i < ROWS; i++) {\r\n\t\t\tfor (int j = 0; j < COLUMNS; j++) {\r\n\t\t\t\tfield[i][j] = EMPTY;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < food.size(); i++) {\r\n\t\t\tfield[food.get(i)[1]][food.get(i)[2]] = food.get(i)[0];\r\n\t\t}\r\n\r\n\t\tfor (int i = 0; i < snake.size(); i++) {\r\n\t\t\tfield[snake.get(i)[0]][snake.get(i)[1]] = SNAKE;\r\n\t\t}\r\n\t}",
"public void limpaTextFields() {\n tfMatricula.setText(\"\");\n tfNome.setText(\"\");\n tfDataNascimento.setText(\"\");\n tfTelefone.setText(\"\");\n tfSalario.setText(\"\");\n }",
"private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.getContentPane().setBackground(new Color(255, 255, 255));\r\n\t\tframe.setBounds(100, 100, 450, 511);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJPanel panel = new JPanel();\r\n\t\tpanel.setBackground(Color.DARK_GRAY);\r\n\t\tpanel.setBounds(10, 95, 414, 187);\r\n\t\tframe.getContentPane().add(panel);\r\n\t\tpanel.setLayout(null);\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"Height(m)\");\r\n\t\tlblNewLabel.setFont(new Font(\"Stencil\", Font.PLAIN, 13));\r\n\t\tlblNewLabel.setForeground(new Color(255, 255, 255));\r\n\t\tlblNewLabel.setBackground(new Color(255, 255, 255));\r\n\t\tlblNewLabel.setBounds(97, 29, 86, 21);\r\n\t\tpanel.add(lblNewLabel);\r\n\t\t\r\n\t\tH = new JTextField();\r\n\t\tH.setBounds(244, 29, 86, 20);\r\n\t\tpanel.add(H);\r\n\t\tH.setColumns(10);\r\n\t\t\r\n\t\tJLabel lblNewLabel_1 = new JLabel(\"Weight(KG)\");\r\n\t\tlblNewLabel_1.setFont(new Font(\"Stencil\", Font.PLAIN, 14));\r\n\t\tlblNewLabel_1.setForeground(new Color(255, 255, 255));\r\n\t\tlblNewLabel_1.setBackground(new Color(255, 255, 255));\r\n\t\tlblNewLabel_1.setBounds(97, 72, 86, 14);\r\n\t\tpanel.add(lblNewLabel_1);\r\n\t\t\r\n\t\tW = new JTextField();\r\n\t\tW.setBounds(244, 69, 86, 20);\r\n\t\tpanel.add(W);\r\n\t\tW.setColumns(10);\r\n\t\t\r\n\t\tJLabel lblNewLabel_2 = new JLabel(\"BMI :\");\r\n\t\tlblNewLabel_2.setForeground(new Color(255, 255, 255));\r\n\t\tlblNewLabel_2.setFont(new Font(\"Stencil\", Font.PLAIN, 16));\r\n\t\tlblNewLabel_2.setBounds(64, 115, 46, 14);\r\n\t\tpanel.add(lblNewLabel_2);\r\n\t\t\r\n\t\tbmi = new JTextField();\r\n\t\tbmi.setBounds(126, 112, 86, 20);\r\n\t\tpanel.add(bmi);\r\n\t\tbmi.setColumns(10);\r\n\t\t\r\n\t\tJLabel re = new JLabel(\"\");\r\n\t\tre.setForeground(new Color(255, 255, 255));\r\n\t\tre.setBounds(262, 115, 89, 14);\r\n\t\tpanel.add(re);\r\n\t\t\r\n\t\tJButton cal = new JButton(\"Calculate\");\r\n\t\tcal.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tfloat r1=Float.parseFloat(H.getText());\r\n\t\t\t\tfloat r2=Float.parseFloat(W.getText());\r\n\t\t\t\tfloat res=(float)(r2/(r1*r1));\r\n\t\t\t\tbmi.setText(String.valueOf(res));\r\n\t\t\t\tif(res<=18.5)\r\n\t\t\t\t{\r\n\t\t\t\t\tre.setForeground(Color.YELLOW);\r\n\t\t\t\t\tre.setText(\"Under Weight\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(res>18.5&&res<24.9)\r\n\t\t\t\t{\r\n\t\t\t\t\tre.setForeground(Color.GREEN);\r\n\t\t\t\t\tre.setText(\"Normal Weight\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(res>25&&res<29.9)\r\n\t\t\t\t{\r\n\t\t\t\t\tre.setForeground(Color.ORANGE);\r\n\t\t\t\t\tre.setText(\"OverWeight\");\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tre.setForeground(Color.RED);\r\n\t\t\t\tre.setText(\"Obese\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tcal.setBounds(50, 153, 89, 23);\r\n\t\tpanel.add(cal);\r\n\t\t\r\n\t\tJButton clr = new JButton(\"Clear\");\r\n\t\tclr.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tH.setText(\"\");\r\n\t\t\t\tW.setText(\"\");\r\n\t\t\t\tbmi.setText(\"\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tclr.setBounds(171, 153, 89, 23);\r\n\t\tpanel.add(clr);\r\n\t\t\r\n\t\tJButton ex = new JButton(\"Exit\");\r\n\t\tex.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tSystem.exit(0);\r\n\t\t\t}\r\n\t\t});\r\n\t\tex.setBounds(284, 153, 89, 23);\r\n\t\tpanel.add(ex);\r\n\t\t\r\n\t\tJPanel panel2 = new JPanel();\r\n\t\tpanel2.setBackground(Color.LIGHT_GRAY);\r\n\t\tpanel2.setBounds(10, 293, 414, 169);\r\n\t\tframe.getContentPane().add(panel2);\r\n\t\tpanel2.setLayout(null);\r\n\t\t\r\n\t\ttable = new JTable();\r\n\t\ttable.setBackground(new Color(255, 255, 255));\r\n\t\ttable.setFillsViewportHeight(true);\r\n\t\ttable.setSurrendersFocusOnKeystroke(true);\r\n\t\ttable.setModel(new DefaultTableModel(\r\n\t\t\tnew Object[][] {\r\n\t\t\t\t{\"UnderWeight\", \"UnderWeight\", \"Normal Weight\", \"Obese\"},\r\n\t\t\t\t{\"< 18.5\", \"18.5 to 24.9\", \"25 to 29.9\", \"> 30\"},\r\n\t\t\t},\r\n\t\t\tnew String[] {\r\n\t\t\t\t\"UnderWeight\", \"Normal Weight\", \"Over Weight\", \"Obese\"\r\n\t\t\t}\r\n\t\t) {\r\n\t\t\tboolean[] columnEditables = new boolean[] {\r\n\t\t\t\ttrue, true, true, false\r\n\t\t\t};\r\n\t\t\tpublic boolean isCellEditable(int row, int column) {\r\n\t\t\t\treturn columnEditables[column];\r\n\t\t\t}\r\n\t\t});\r\n\t\ttable.getColumnModel().getColumn(0).setResizable(false);\r\n\t\ttable.getColumnModel().getColumn(0).setPreferredWidth(77);\r\n\t\ttable.setBorder(new EtchedBorder(EtchedBorder.LOWERED, null, null));\r\n\t\ttable.setColumnSelectionAllowed(true);\r\n\t\ttable.setCellSelectionEnabled(true);\r\n\t\ttable.setBounds(25, 112, 349, 46);\r\n\t\tpanel2.add(table);\r\n\t\t\r\n\t\tJPanel panel_2 = new JPanel();\r\n\t\tpanel_2.setBackground(Color.LIGHT_GRAY);\r\n\t\tpanel_2.setBounds(10, 11, 414, 73);\r\n\t\tframe.getContentPane().add(panel_2);\r\n\t\tpanel_2.setLayout(null);\r\n\t\t\r\n\t\tJLabel lblNewLabel_4 = new JLabel(\"BODY MASS INDEX\");\r\n\t\tlblNewLabel_4.setForeground(new Color(255, 255, 255));\r\n\t\tlblNewLabel_4.setFont(new Font(\"Bernard MT Condensed\", Font.BOLD | Font.ITALIC, 15));\r\n\t\tlblNewLabel_4.setBounds(132, 11, 136, 32);\r\n\t\tpanel_2.add(lblNewLabel_4);\r\n\t}",
"private void clearFields() {\r\n jTextFieldID.setText(\"\");\r\n jTextFieldNome.setText(\"\");\r\n jTextFieldPreco.setText(\"\");\r\n jTextFieldDescricao.setText(\"\");\r\n }",
"@Override\n public void startEdit() {\n super.startEdit();\n\n if (text_field == null) {\n createTextField();\n }\n setText(null);\n setGraphic(text_field);\n text_field.selectAll();\n }",
"private void createTextField(){\n Font font = new Font(\"Verdana\", Font.BOLD,3*getGameContainer().getWidth()/100);\n TrueTypeFont ttf = new TrueTypeFont(font,true);\n int fieldWidth = getGameContainer().getWidth()/3;\n int fieldHeight = getGameContainer().getHeight()/18;\n nameField = new TextField(getGameContainer(), ttf,43*getGameContainer().getWidth()/100,24*getGameContainer().getHeight()/100, fieldWidth, fieldHeight);\n nameField.setBackgroundColor(Color.white);\n nameField.setTextColor(Color.black);\n passwordField= new TextField(getGameContainer(), ttf,43*getGameContainer().getWidth()/100,32*getGameContainer().getHeight()/100, fieldWidth, fieldHeight);\n passwordField.setBackgroundColor(Color.white);\n passwordField.setTextColor(Color.black);\n }",
"public void setField(int fieldWidth, int fieldHeight){\n this.fieldWidth = fieldWidth;\n this.fieldHeight = fieldHeight;\n }",
"private void fillFirstRow() {\n\t\tputBeeper();\n\t\tputEveryOtherBeeper();\t\t\n\t}",
"private void setDataInFields() \n {\n quantityTxtFld.setText(farmer.getCropQuantity()+\"\");\n quantityTxtFld.setEnabled(false);\n }",
"private void layoutControls()\n {\n getChildren().addAll(\n new Label(\"Abfahrt\"),\n departureTimeField,\n new Label(\"Bahnhof\"),\n destinationField\n );\n }",
"private void initiateBuyRiotPointsFields(JFrame frame) {\r\n JLabel q3 = new JLabel(\"Make purchase for mainAccount or altAccount?\");\r\n new Label(q3);\r\n// q3.setPreferredSize(new Dimension(750, 100));\r\n// q3.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n frame.add(q3);\r\n\r\n JTextField account = new JTextField();\r\n new TextField(account);\r\n// account.setPreferredSize(new Dimension(750, 100));\r\n// account.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n frame.add(account);\r\n\r\n JLabel q4 = new JLabel(\"Amount of money you wish to spend (5, 10, 20, 35, 50, or 100)$\");\r\n new Label(q4);\r\n// q4.setPreferredSize(new Dimension(750, 100));\r\n// q4.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n frame.add(q4);\r\n\r\n JTextField amount = new JTextField();\r\n new TextField(amount);\r\n// amount.setPreferredSize(new Dimension(750, 100));\r\n// amount.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n frame.add(amount);\r\n\r\n ImageIcon icon = new ImageIcon(\"./data/rp.JPG\");\r\n JLabel label = new JLabel(icon);\r\n label.setPreferredSize(new Dimension(750, 100));\r\n frame.add(label);\r\n\r\n initiateBuyRiotPointsEnter(frame, account, amount);\r\n }",
"@Focus\n\tpublic void setFocus() \n\t{\n\t\t\tfor(int r = Board.LENGTH - 1; r >= 0; r--)\n\t\t\t{\t\n\t\t\t\t\tfor(int c=0;c<Board.LENGTH;c++)\n\t\t\t\t\t{\t\n\t\t\t\t\t\tsquares[r][c+1].setBackground(Display.getDefault().getSystemColor(SWT.COLOR_DARK_GRAY));\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tif(((Square) squares[r][c+1].getData()).isLegal())//It returns the legal attribute wrong\n\t\t\t\t\t\t{squares[r][c+1].setBackground(Display.getDefault().getSystemColor(SWT.COLOR_YELLOW));}\n\t\t\t\t\t\t\n\t\t\t\t\t\tPiece piece = ((Square) squares[r][c+1].getData()).getPiece();\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(piece == null)\t\n\t\t\t\t\t\t\tsquares[r][c+1].setImage(IconHandler.getBlankIcon());\t\t\t\t\t\t\t\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tsquares[r][c+1].setImage(piece.getIcon());\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t}\t\t\n\t}",
"public void setInfor() {\n\t\t\t\tidJLabel.setSize(200,30);\n\t\t\t\tidJLabel.setLocation(100,20);\n\t\t\t\tadd(idJLabel);\n\t\t\t\tidField.setSize(200, 30);\n\t\t\t\tidField.setLocation(300,20);\n\t\t\t\tadd(idField);\n\t\t\t\t\n\t\t\t\t//set thong tin cho title label\n\t\t\t\ttitleJLabel.setSize(200,30);\n\t\t\t\ttitleJLabel.setLocation(100,60);\n\t\t\t\tadd(titleJLabel);\n\t\t\t\ttitleField.setSize(200, 30);\n\t\t\t\ttitleField.setLocation(300,60);\n\t\t\t\tadd(titleField);\n\t\t\t\t\n\t\t\t\t//set thong tin cho category label\n\t\t\t\tcategoryJLabel.setSize(200,30);\n\t\t\t\tcategoryJLabel.setLocation(100,100);\n\t\t\t\tadd(categoryJLabel);\n\t\t\t\tcateField.setSize(200, 30);\n\t\t\t\tcateField.setLocation(300,100);\n\t\t\t\tadd(cateField);\n\t\t\t\t\n\t\t\t\t// set thong tin cho cost label\n\t\t\t\tcostJLabel.setSize(200,30);\n\t\t\t\tcostJLabel.setLocation(100,140);\n\t\t\t\tadd(costJLabel);\n\t\t\t\tcostField.setSize(200, 30);\n\t\t\t\tcostField.setLocation(300,140);\n\t\t\t\tadd(costField);\n\t\t\t\t\n\t\t\t\t// set thong tin cho nut 'ok'\t\n\t\t\t\tokJButton.setSize(100,30);\n\t\t\t\tokJButton.setLocation(250,330);\n\t\t\t\tokJButton.setFocusPainted(false);\n\t\t\t\tadd(okJButton);\n \n\t}",
"@Override\r\n\tpublic void initializeBoard() {\r\n\t\t\r\n\t\tfor(int i = 0; i < FieldData.FIELDNAME_DATA.length; i++){\r\n\t\t\tswitch(FieldData.FIELDTYPE_DATA[i]){\r\n\t\t\tcase REFUGE:\r\n\t\t\t\tfields[i] = new Refuge.Builder().build();\r\n\t\t\t\tfields[i].setDescription(reader.getElement(\"get\", 0) + \" \" + FieldData.FIELDRENT1_DATA[i]);\r\n\t\t\t\tbreak;\r\n\t\t\tcase TAX:\r\n\t\t\t\tfields[i] = new Tax.Builder().build();\r\n\t\t\t\tfields[i].setDescription(reader.getElement(\"pay\", 0) + \" \" + FieldData.FIELDRENT1_DATA[i]);\r\n\t\t\t\tbreak;\r\n\t\t\tcase TERRITORY:\r\n\t\t\t\tfields[i] = new Street.Builder()\r\n\t\t\t\t.setBgColor(FieldData.fieldColor[i])\r\n\t\t\t\t.build();\r\n\t\t\t\tfields[i].setDescription(reader.getElement(\"ownable\", 0) + \" \" + FieldData.FIELDBUYPRICE_DATA[i] +\r\n\t\t\t\t\t\t\", \" + reader.getElement(\"territory\", 0) + \" \" +FieldData.FIELDRENT1_DATA[i]);\r\n\t\t\t\tbreak;\r\n\t\t\tcase LABOR_CAMP:\r\n\t\t\t\tfields[i] = new Brewery.Builder().build();\r\n\t\t\t\tfields[i].setDescription(reader.getElement(\"ownable\", 0) + \" \" + FieldData.FIELDBUYPRICE_DATA[i] +\r\n\t\t\t\t\t\t\", \" + reader.getElement(\"laborCamp\", 0));\r\n\t\t\t\tbreak;\r\n\t\t\tcase FLEET:\r\n\t\t\t\tfields[i] = new Shipping.Builder().build();\r\n\t\t\t\tfields[i].setDescription(reader.getElement(\"ownable\", 0) + \" \" + FieldData.FIELDBUYPRICE_DATA[i] +\r\n\t\t\t\t\t\t\", \" + reader.getElement(\"fleet\", 0));\r\n\t\t\t\tbreak;\r\n\t\t\tcase PRISON:\r\n\t\t\t\tfields[i] = new Jail.Builder().build();\r\n\t\t\t\tfields[i].setDescription(reader.getElement(\"fine\", 0)+ \" \" + \"Kr. 1000\");\r\n\t\t\t\tbreak;\r\n\t\t\tcase START:\r\n\t\t\t\tfields[i] = new Start.Builder().build();\r\n\t\t\t\tfields[i].setDescription(reader.getElement(\"bonus\", 0) + \" \" + \"Kr. 4000\");\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tcase LUCKYCARD:\r\n\t\t\t\tfields[i] = new Chance.Builder().build();\r\n\t\t\t\tfields[i].setDescription(reader.getElement(\"lucky\", 0));\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tfields[i].setTitle(String.valueOf(i+1));\r\n\t\t\tfields[i].setSubText(reader.getElement(FieldData.FIELDNAME_DATA[i], 0));\r\n\t\t}\r\n\t\tGUI.create(fields);\r\n\t}",
"private void configureFields() {\n\t\ttargetDiastolic.setValueFactory(new SpinnerValueFactory.IntegerSpinnerValueFactory(LOWER_DIASTOLIC_LIMIT,UPPER_DIASTOLIC_LIMIT));\n\t\ttargetDiastolic.setEditable(true);\n\t\ttargetSystolic.setValueFactory(new SpinnerValueFactory.IntegerSpinnerValueFactory(LOWER_SYSTOLIC_LIMIT,UPPER_SYSTOLIC_LIMIT));\n\t\ttargetSystolic.setEditable(true);\n\t\tdiastolicAlarm.setValueFactory(new SpinnerValueFactory.IntegerSpinnerValueFactory(DIASTOLIC_ALARM_LOWER, DIASTOLIC_ALARM_HIGHER));\n\t\tdiastolicAlarm.setEditable(true);\n\t\tsystolicAlarm.setValueFactory(new SpinnerValueFactory.IntegerSpinnerValueFactory(SYSTOLIC_ALARM_LOWER, SYSTOLIC_ALARM_HIGHER));\n\t\tsystolicAlarm.setEditable(true);\n\t\tSpinnerValueFactory.DoubleSpinnerValueFactory rateFactory=new SpinnerValueFactory.DoubleSpinnerValueFactory(MIN_FLOW_RATE, MAX_FLOW_RATE);\n\t\trateFactory.setAmountToStepBy(0.1);\n\t\tinfusionRate.setValueFactory(rateFactory);\n\t\t\n\t\t/*\n\t\t * We use bindBidirectional here because systolicProperty and diastolicProperty and numbers,\n\t\t * but the text field is a String, and bindBidrectional allows us to specify a converter\n\t\t * to handle the change between the two.\n\t\t */\n\t\tcurrentSystolic.textProperty().bindBidirectional(systolicProperty, new NumberStringConverter());\n\t\tcurrentDiastolic.textProperty().bindBidirectional(diastolicProperty, new NumberStringConverter());\n\t\t\n\t\tcurrentSystolic.setEditable(false);\n\t\tcurrentDiastolic.setEditable(false);\n\t\t\n\n\t\toperatingMode.selectedToggleProperty().addListener(new ChangeListener<Toggle>() {\n\n\t\t\t@Override\n\t\t\tpublic void changed(ObservableValue<? extends Toggle> ov, Toggle oldToggle, Toggle newToggle) {\n\t\t\t\tif(newToggle.equals(openRadio)) {\n\t\t\t\t\tbpVBox.setVisible(false);\n\t\t\t\t\tbpVBox.setManaged(false);\n\t\t\t\t} else {\n\t\t\t\t\tbpVBox.setManaged(true);\n\t\t\t\t\tbpVBox.setVisible(true);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\n\t}",
"void resetTextFields();",
"public void setFilled(boolean filled) {\n this.filled = filled;\n }",
"public void clearFields()\r\n {\r\n\t txtID.setText(\"\");\r\n\t txtName.setText(\"\");\r\n\t txtYear.setText(\"\");\r\n\t txtMonth.setText(\"\");\r\n\t txtPDate.setText(\"\");\r\n txtFees.setText(\"0\");\r\n }",
"public void clearFields()\n {\n txtDate.setText(\"\");\n txtIC.setText(\"\");\n txtBrand.setText(\"\");\n txtSerial.setText(\"\");\n txtCPT.setText(\"\");\n txtRMB.setText(\"\");\n txtRTYP.setText(\"\");\n txtCap.setText(\"\");\n txtSpeed.setText(\"\");\n txtWar.setText(\"\");\n txtRemarks.setText(\"\");\n }",
"private void limpiarCampos(){\n\ntxtId.setText(\"\");\ntxtCosto.setText(\"\");\ntxtDestino.setText(\"\");\ntxtKilom.setText(\"\");\ntxtMatricula.setText(\"\");\n\n\n\n}",
"@Override\n\tpublic void fillData() {\n\t}",
"public void updateField() {\n\n boolean[][] tempField = new boolean[getLength()][getHeight()];\n for (int y = 0; y < getHeight(); y++) {\n for (int x = 0; x < getLength(); x++) {\n tempField[x][y] = checkSurrounding(x, y);\n }\n }\n setFields(tempField);\n }",
"@Override\r\n public void fillFieldValues() {\n if (panelType == CompetitivePropsPanelType.CREATE_GROUP) {\r\n competitive = new CompetitiveGroup(null, 1);\r\n tfNumCompetitiveNeurons.setText(\"\"\r\n + DEFAULT_NUM_COMPETITIVE_NEURONS);\r\n fillCompetitiveGroupFieldValues();\r\n } else if (panelType == CompetitivePropsPanelType.CREATE_NETWORK) {\r\n competitive = new CompetitiveNetwork(null, 1, 1,\r\n networkPanel.getWhereToAdd());\r\n tfNumCompetitiveNeurons.setText(\"\"\r\n + DEFAULT_NUM_COMPETITIVE_NEURONS);\r\n tfNumInputNeurons.setText(\"\" + DEFAULT_NUM_INPUT_NEURONS);\r\n fillCompetitiveNetworkFieldValues();\r\n } else if (panelType == CompetitivePropsPanelType.EDIT_GROUP) {\r\n fillCompetitiveGroupFieldValues();\r\n }\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 }",
"private void setUpView(int width, int height){\n addKeyListener(new KeyPadListener());\n setFocusable(true);\n setLayout(null);\n setBounds(0,0,width,height);\n setBackground(new Color(0,0,0,0));\n requestFocus();\n addMouseListener(new MouseCatcher());\n }",
"protected void adjustGridLayout() {\n\t\tint numColumns = calcNumberOfColumns();\n\t\t((GridLayout) fieldEditorParent.getLayout()).numColumns = numColumns;\n\t\tif (fields != null) {\n\t\t\tfor (int i = 0; i < fields.size(); i++) {\n\t\t\t\tFieldEditor fieldEditor = fields.get(i);\n\t\t\t\tfieldEditor.fillIntoGrid(fieldEditorParent, numColumns);\n\t\t\t}\n\t\t}\n\t}",
"private void blank() {\n tgl_pengobatanField.setText(null);\n waktu_pengobatanField.setText(null);\n keluhan_pasienField.setText(null);\n hasil_diagnosaField.setText(null);\n biayaField.setText(null);\n }",
"@Override\n public void fillRectangle(int x, int y, int width, int height) {\n Rectangle2D rect = new Rectangle2D.Float(x + transX, y + transY, width - 1, height - 1);\n\n checkState();\n getGraphics2D().setPaint(getColor(getSWTGraphics().getBackgroundColor()));\n getGraphics2D().fill(rect);\n }",
"private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 695, 385);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tframe.getContentPane().add(panel, BorderLayout.CENTER);\n\t\tpanel.setLayout(null);\n\t\t\n\t\tJPanel panel_1 = new JPanel();\n\t\tpanel_1.setBounds(6, 6, 472, 121);\n\t\tpanel.add(panel_1);\n\t\tpanel.setLayout(null);\n\t\tpanel_1.setBorder(new TitledBorder(null, \"Datos Generales\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\n\t\tpanel_1.setLayout(null);\n\t\t\n\t\tJLabel lblNombre = new JLabel(\"Nombre:\");\n\t\tlblNombre.setBounds(6, 21, 61, 16);\n\t\tpanel_1.add(lblNombre);\n\t\t\n\t\tJLabel lblApellido = new JLabel(\"Apellido:\");\n\t\tlblApellido.setBounds(6, 49, 61, 16);\n\t\tpanel_1.add(lblApellido);\n\t\t\n\t\tJLabel lblCedula = new JLabel(\"Cedula:\");\n\t\tlblCedula.setBounds(6, 77, 61, 16);\n\t\tpanel_1.add(lblCedula);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setBounds(79, 16, 130, 26);\n\t\tpanel_1.add(textField);\n\t\ttextField.setColumns(10);\n\t\t\n\t\ttextField_1 = new JTextField();\n\t\ttextField_1.setBounds(79, 44, 130, 26);\n\t\tpanel_1.add(textField_1);\n\t\ttextField_1.setColumns(10);\n\t\t\n\t\ttextField_2 = new JTextField();\n\t\ttextField_2.setBounds(79, 72, 130, 26);\n\t\tpanel_1.add(textField_2);\n\t\ttextField_2.setColumns(10);\n\t\t\n\t\tJLabel lblEdad = new JLabel(\"Edad:\");\n\t\tlblEdad.setBounds(221, 21, 61, 16);\n\t\tpanel_1.add(lblEdad);\n\t\t\n\t\tJLabel lblEstadoCivil = new JLabel(\"Estado Civil:\");\n\t\tlblEstadoCivil.setBounds(221, 49, 86, 16);\n\t\tpanel_1.add(lblEstadoCivil);\n\t\t\n\t\tJComboBox comboBox = new JComboBox();\n\t\tcomboBox.setModel(new DefaultComboBoxModel(new String[] {\"<Seleccione>\", \"Casado\", \"Soltero\"}));\n\t\tcomboBox.setBounds(308, 48, 147, 20);\n\t\tpanel_1.add(comboBox);\n\t\t\n\t\tJSpinner spinner = new JSpinner();\n\t\tspinner.setBounds(308, 16, 46, 26);\n\t\tpanel_1.add(spinner);\n\t\t\n\t\tJPanel panel_2 = new JPanel();\n\t\tpanel_2.setBounds(6, 139, 423, 180);\n\t\tpanel.add(panel_2);\n\t\tpanel_2.setBorder(new TitledBorder(null, \"Fecha y Hora\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\n\t\tpanel_2.setLayout(null);\n\t\t\n\t\tJCalendar calendar = new JCalendar();\n\t\tcalendar.setBounds(10, 26, 305, 137);\n\t\tpanel_2.add(calendar);\n\t\t\n\t\tJLabel lblHora = new JLabel(\"Hora:\");\n\t\tlblHora.setBounds(327, 26, 61, 16);\n\t\tpanel_2.add(lblHora);\n\t\t\n\t\tJSpinner spinner_1 = new JSpinner();\n\t\tspinner_1.setBounds(327, 54, 42, 26);\n\t\tpanel_2.add(spinner_1);\n\t\t\n\t\tJSpinner spinner_2 = new JSpinner();\n\t\tspinner_2.setBounds(327, 92, 42, 26);\n\t\tpanel_2.add(spinner_2);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Hr\");\n\t\tlblNewLabel.setBounds(381, 59, 36, 16);\n\t\tpanel_2.add(lblNewLabel);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"Min\");\n\t\tlblNewLabel_1.setBounds(381, 97, 36, 16);\n\t\tpanel_2.add(lblNewLabel_1);\n\t\t\n\t\tJPanel panel_3 = new JPanel();\n\t\tpanel_3.setBorder(new TitledBorder(null, \"Motivo de cita\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\n\t\tpanel_3.setBounds(453, 139, 236, 180);\n\t\tpanel.add(panel_3);\n\t\tpanel_3.setLayout(null);\n\t\t\n\t\tJTextArea textArea = new JTextArea();\n\t\ttextArea.setBounds(6, 29, 224, 145);\n\t\tpanel_3.add(textArea);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Cancel\");\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tframe.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setBounds(572, 328, 117, 29);\n\t\tpanel.add(btnNewButton);\n\t\t\n\t\tJButton btnNewButton_1 = new JButton(\"Confirmar\");\n\t\tbtnNewButton_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setBounds(443, 328, 117, 29);\n\t\tpanel.add(btnNewButton_1);\n\t}",
"private void clearFields(){\n\t\tmiMatriculaLabel.setText(\"-\");\n\t\tmatriculaSearch.setText(\"\");\n\t\tmarcaText.setText(\"\");\n\t\tmodeloText.setText(\"\");\n\t\tanioText.setText(\"\");\n\t\titvText.setText(\"\");\n\t\tvehiculoSelected = null;\n\t\tchangeFieldsState(false);\n\t}",
"private void refresh(int width, int height) {\n Integer numUnexposed = mainField.numUnexposed();\n nonminesLabel.setText(numUnexposed.toString());\n Integer numMarked = mainField.numMarked();\n if (numMarked < 0) {\n cellsUnmarked.setText(\"Too Many Marked!\");\n }\n else {\n cellsUnmarked.setText(numMarked.toString());\n }\n // iterate through all the buttons and update the text if it's an exposed cell\n for (int i = 0;i < width;i++) {\n for (int j = 0;j < height;j++) {\n int cellState = mainField.getCellState(i,j);\n if (cellState == mainField.EXPOSED) {\n Integer numValue = mainField.getValue(i,j);\n if (numValue == -1) {\n btArray[i][j].setText(\"B\");\n btArray[i][j].setStyle(\"-fx-background-color: #FF0000;\");\n }\n else if (numValue == 0) {\n btArray[i][j].setStyle(\"-fx-background-color: #CCCCCC;\");\n }\n else {\n btArray[i][j].setText(numValue.toString());\n btArray[i][j].setStyle(\"-fx-background-color: #CCCCCC;\");\n }\n }\n }\n }\n }",
"private void blank() {\r\n txt_name.requestFocus();\r\n txt_id.setText(null);\r\n txt_name.setText(null);\r\n txt_bagian.setText(null);\r\n txt_telp.setText(null);\r\n txt_address.setText(null);\r\n\r\n }",
"public void setFilled(boolean filled) \n\t{\n\t\tthis.filled = filled;\n\t}",
"@Override\n public void fill() {\n graphicsEnvironmentImpl.fill(canvas);\n }",
"private void resetFields() {\n tf_diachi_user.setText(\"\");\n tf_hoten_user.setText(\"\");\n tf_socmtnd_user.setText(\"\");\n tf_sotienkhoitao.setText(\"\");\n tp.setText(\"\");\n ngaysinh.setText(\"\");\n \n }",
"public void initializeLayout(){\r\n\tsuper.addField(FIELDTYPE_PICX, 1);\r\n\tsuper.addField(FIELDTYPE_PICX, 8);\r\n\tsuper.addField(FIELDTYPE_PICX, 1);\r\n\tsuper.addField(FIELDTYPE_PICX, 3);\r\n\tsuper.addField(FIELDTYPE_PICX, 5);\r\n\tsuper.addField(FIELDTYPE_PICX, 18);\r\n\tsuper.addField(FIELDTYPE_PICX, 4);\r\n\tsuper.addField(FIELDTYPE_PICX, 110);\r\n\tsuper.addField(FIELDTYPE_PICX, 105);\r\n}",
"public void setFilled(boolean filled) {\r\n this.filled = filled;\r\n }",
"private void limpaCampos() {\n txtNome.setText(\"\");\n txtRG.setText(\"\");\n txtFCpf.setText(\"\");\n txtFNascimento.setText(\"\");\n txtEmail.setText(\"\");\n txtFCelular.setText(\"\");\n txtFTelefone.setText(\"\");\n txtRua.setText(\"\");\n txtComplemento.setText(\"\");\n txtFCep.setText(\"\");\n txtBairro.setText(\"\");\n txtCidade.setText(\"\");\n }",
"public void setupFields()\n {\n FieldInfo field = null;\n field = new FieldInfo(this, \"ID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"LastChanged\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Date.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Deleted\", 10, null, new Boolean(false));\n field.setDataClass(Boolean.class);\n field.setHidden(true);\n field = new FieldInfo(this, \"Description\", 25, null, null);\n field = new FieldInfo(this, \"CurrencyCode\", 3, null, null);\n field = new FieldInfo(this, \"LastRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"RateChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"RateChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"CostingRate\", 10, null, null);\n field.setDataClass(Double.class);\n field.setScale(-1);\n field = new FieldInfo(this, \"CostingChangedDate\", 12, null, null);\n field.setDataClass(Date.class);\n field.setScale(Constants.DATE_ONLY);\n field = new FieldInfo(this, \"CostingChangedBy\", 16, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"RoundAt\", 1, null, null);\n field.setDataClass(Short.class);\n field = new FieldInfo(this, \"IntegerDesc\", 20, null, \"Dollar\");\n field = new FieldInfo(this, \"FractionDesc\", 20, null, null);\n field = new FieldInfo(this, \"FractionAmount\", 10, null, new Integer(100));\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"Sign\", 3, null, \"$\");\n field = new FieldInfo(this, \"LanguageID\", Constants.DEFAULT_FIELD_LENGTH, null, null);\n field.setDataClass(Integer.class);\n field = new FieldInfo(this, \"NaturalInteger\", 20, null, null);\n field = new FieldInfo(this, \"NaturalFraction\", 20, null, null);\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 }",
"private static void resetFields() {\n tf_name.setText(\"\");\n tf_title.setText(\"\");\n tf_info.setText(\"\");\n tf_path.setText(\"\");\n cb_bgColor.setSelectedItem(\"white\");\n cb_titleColor.setSelectedItem(\"black\");\n cb_infoColor.setSelectedItem(\"gray\");\n rb_url.setSelected(false);\n rb_file.setSelected(true);\n b_fileSelect.setEnabled(true);\n }",
"private void refreshFieldsVisibility()\n {\n \n }",
"public void clearFields(){\n PlayerID.setText(\"\");\n passwordField.setText(\"\");\n }",
"private void initFields(){\r\n \tintDocumentFilter = new IntegerDocumentFilter();\r\n \tJLabel label;\r\n \r\n \tlabel=new JLabel(\"Gen Chain Length\");\r\n \r\n \tgenChainLengthField = new JTextField(5);\r\n \tdoc = (PlainDocument)genChainLengthField.getDocument();\r\n \tdoc.setDocumentFilter(intDocumentFilter);\r\n \tthis.add(label);\r\n \tthis.add(genChainLengthField);\r\n \r\n \tlabel=new JLabel(\"Gen Chain Length Flux\");\r\n \r\n \tgenChainLengthFluxField = new JTextField(5);\r\n \tdoc = (PlainDocument)genChainLengthFluxField.getDocument();\r\n \tdoc.setDocumentFilter(intDocumentFilter);\r\n \tthis.add(label);\r\n \tthis.add(genChainLengthFluxField);\r\n \r\n \tlabel=new JLabel(\"Step Gen Distance\");\r\n \r\n \tstepGenDistanceField = new JTextField(5);\r\n \tdoc = (PlainDocument)stepGenDistanceField.getDocument();\r\n \tdoc.setDocumentFilter(intDocumentFilter);\r\n \tthis.add(label);\r\n \tthis.add(stepGenDistanceField);\r\n \r\n \tlabel=new JLabel(\"Rows\");\r\n \r\n \trowsField = new JTextField(5);\r\n \tlabel.setToolTipText(\"Number of total rows in maze\");\r\n \tdoc = (PlainDocument)rowsField.getDocument();\r\n \tdoc.setDocumentFilter(intDocumentFilter);\r\n \tthis.add(label);\r\n \tthis.add(rowsField);\r\n \r\n \tlabel=new JLabel(\"Columns\");\r\n \r\n \tcolsField = new JTextField(5);\r\n \tlabel.setToolTipText(\"Number of total columns in maze.\");\r\n \tdoc = (PlainDocument)colsField.getDocument();\r\n \tdoc.setDocumentFilter(intDocumentFilter);\r\n \tthis.add(label);\r\n \tthis.add(colsField);\r\n \r\n \tlabel=new JLabel(\"Start Row\");\r\n \r\n \tstartRowField = new JTextField(5);\r\n \tlabel.setToolTipText(\"Row of starting position (0,0 is top left)\");\r\n \tdoc = (PlainDocument)startRowField.getDocument();\r\n \tdoc.setDocumentFilter(intDocumentFilter);\r\n \tthis.add(label);\r\n \tthis.add(startRowField);\r\n \r\n \tlabel=new JLabel(\"Start Column\");\r\n \r\n \tstartColField = new JTextField(5);\r\n \tlabel.setToolTipText(\"Column of starting position (0,0 is top left)\");\r\n \tdoc = (PlainDocument)startColField.getDocument();\r\n \tdoc.setDocumentFilter(intDocumentFilter);\r\n \tthis.add(label);\r\n \tthis.add(startColField);\r\n \r\n \tlabel=new JLabel(\"End Row\");\r\n \r\n \tendRowField = new JTextField(5);\r\n \tlabel.setToolTipText(\"Row of ending (goal) position (0,0 is top left)\");\r\n \tdoc = (PlainDocument)endRowField.getDocument();\r\n \tdoc.setDocumentFilter(intDocumentFilter);\r\n \tthis.add(label);\r\n \tthis.add(endRowField);\r\n \r\n \tlabel=new JLabel(\"End Column\");\r\n \r\n \tendColField = new JTextField(5);\r\n \tlabel.setToolTipText(\"Column of ending (goal) position (0,0 is top left)\");\r\n \tdoc = (PlainDocument)endColField.getDocument();\r\n \tdoc.setDocumentFilter(intDocumentFilter);\r\n \tthis.add(label);\r\n \tthis.add(endColField);\r\n \r\n \tlabel=new JLabel(\"Cell Width\");\r\n \r\n \tcellWidthField = new JTextField(5);\r\n \tlabel.setToolTipText(\"Width of a single cell in pixels\");\r\n \tdoc = (PlainDocument)cellWidthField.getDocument();\r\n \tdoc.setDocumentFilter(intDocumentFilter);\r\n \tthis.add(label);\r\n \tthis.add(cellWidthField);\r\n \r\n \tlabel=new JLabel(\"Progressive Reveal Radius\");\r\n \r\n \tprogRevealRadiusField = new JTextField(5);\r\n \tdoc = (PlainDocument)progRevealRadiusField.getDocument();\r\n \tdoc.setDocumentFilter(intDocumentFilter);\r\n \tthis.add(label);\r\n \tthis.add(progRevealRadiusField);\r\n \r\n \tlabel=new JLabel(\"Progressive Draw\");\r\n \r\n \tprogDrawCB = new JCheckBox();\r\n \tlabel.setToolTipText(\"Whether maze should be drawn progressively or not (immediately)\");\r\n \tthis.add(label);\r\n \tthis.add(progDrawCB);\r\n \r\n \tlabel=new JLabel(\"Progressive Draw Speed\");\r\n \r\n \tprogDrawSpeedField = new JTextField(5);\r\n \tlabel.setToolTipText(\"Size of chunks in which maze should be drawn progressively (larger is faster)\");\r\n \tdoc = (PlainDocument)progDrawSpeedField.getDocument();\r\n \tdoc.setDocumentFilter(intDocumentFilter);\r\n \tthis.add(label);\r\n \tthis.add(progDrawSpeedField);\r\n \r\n \r\n \r\n \r\n \tokButton = new JButton(\"OK\");\r\n \tokButton.addActionListener(new ActionListener(){\r\n \t\tpublic void actionPerformed(ActionEvent e){\r\n \t\t writeback();\r\n \t\t JDialog parentDialog = (JDialog)(getRootPane().getParent());\r\n \t\t parentDialog.setVisible(false);\r\n \t\t}\r\n \t });\r\n \tthis.add(okButton);\r\n \r\n \tcancelButton = new JButton(\"Cancel\");\r\n \tcancelButton.addActionListener(new ActionListener(){\r\n \t\tpublic void actionPerformed(ActionEvent e){\r\n \t\t JDialog parentDialog = (JDialog)(getRootPane().getParent());\r\n \t\t parentDialog.setVisible(false);\r\n \t\t}\r\n \t });\r\n \tthis.add(cancelButton);\r\n }",
"public void emptyTextField(){\n spelerIDField.setText(\"\");\n typeField.setText(\"\");\n codeField.setText(\"\");\n heeftBetaaldField.setText(\"\");\n }",
"private void createPageContent() \n\t{\n\t\tGridLayout gl = new GridLayout(4, true);\n gl.verticalSpacing = 10;\n\t\t\n\t\tGridData gd;\n\t\tfinal Label wiz1Label = new Label(shell, SWT.NONE);\n\t\twiz1Label.setText(\"Enter Fields\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\twiz1Label.setLayoutData(gd);\n\t\twiz1Label.pack();\n\t\tText nameInput = new Text(shell, SWT.BORDER);\n\t\tnameInput.setMessage(\"Name\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tnameInput.setLayoutData(gd);\n\t\tnameInput.pack();\n\t\t//Component\n\t\tText componentInput = new Text(shell, SWT.BORDER);\n\t\tcomponentInput.setMessage(\"Component\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tcomponentInput.setLayoutData(gd);\n\t\tcomponentInput.pack();\n\t\t//school\n\t\tText schoolInput = new Text(shell, SWT.BORDER);\n\t\tschoolInput.setMessage(\"School\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tschoolInput.setLayoutData(gd);\n\t\tschoolInput.pack();\n\t\t//range\n\t\tText rangeInput = new Text(shell, SWT.BORDER);\n\t\trangeInput.setMessage(\"Range\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\trangeInput.setLayoutData(gd);\n\t\trangeInput.pack();\n\t\t//Effect\n\t\tText effectInput = new Text(shell, SWT.BORDER);\n\t\teffectInput.setMessage(\"Effect\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\teffectInput.setLayoutData(gd);\n\t\teffectInput.pack();\n\t\t//castingtime\n\t\tText castimeInput = new Text(shell, SWT.BORDER);\n\t\tcastimeInput.setMessage(\"Casting Time\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tcastimeInput.setLayoutData(gd);\n\t\tcastimeInput.pack();\n\t\t//materialcomponent\n\t\tText materialInput = new Text(shell, SWT.BORDER);\n\t\tmaterialInput.setMessage(\"Material Component\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tmaterialInput.setLayoutData(gd);\n\t\tmaterialInput.pack();\n\t\t//Savingthrow\n\t\tText savthrowInput = new Text(shell, SWT.BORDER);\n\t\tsavthrowInput.setMessage(\"Saving Throw\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tsavthrowInput.setLayoutData(gd);\n\t\tsavthrowInput.pack();\n\t\t//Focus\n\t\tText focusInput = new Text(shell, SWT.BORDER);\n\t\tfocusInput.setMessage(\"Focus\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 2;\n\t\tfocusInput.setLayoutData(gd);\n\t\tfocusInput.pack();\n\t\t//Duration\n\t\tText durationInput = new Text(shell, SWT.BORDER);\n\t\tdurationInput.setMessage(\"Duration\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tdurationInput.setLayoutData(gd);\n\t\tdurationInput.pack();\n\t\t//spellresistance\n\t\tLabel resistanceLabel = new Label(shell, SWT.NONE);\n\t\tresistanceLabel.setText(\"Can Spell Be Resisted\");\n\t\tgd = new GridData(GridData.CENTER, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tresistanceLabel.setLayoutData(gd);\n\t\tresistanceLabel.pack();\n\t\tButton resistanceInput = new Button(shell, SWT.CHECK);\n\t\tgd = new GridData(GridData.CENTER, GridData.FILL, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tresistanceInput.setLayoutData(gd);\n\t\tresistanceInput.pack();\n\t\t//level\n\t\tText levelInput = new Text(shell, SWT.BORDER);\n\t\tlevelInput.setMessage(\"Level\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, false, false);\n\t\tlevelInput.setLayoutData(gd);\n\t\tlevelInput.pack();\n\t\t//Damage\n\t\tText damageInput = new Text(shell, SWT.BORDER);\n\t\tdamageInput.setMessage(\"Damage\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 1;\n\t\tdamageInput.setLayoutData(gd);\n\t\tdamageInput.pack();\n\t\t//DamageAlternative\n\t\tText damagealterInput = new Text(shell, SWT.BORDER);\n\t\tdamagealterInput.setMessage(\"Damage Alternative\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 2;\n\t\tdamagealterInput.setLayoutData(gd);\n\t\tdamagealterInput.pack();\n\t\n\t\t//description\n\t\t\n\t\tText descriptionInput = new Text(shell, SWT.WRAP | SWT.V_SCROLL);\n\t\tdescriptionInput.setText(\"Description (Optional)\");\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, false);\n\t\tgd.horizontalSpan = 4;\n\t\tgd.verticalSpan = 15;\n\t\tdescriptionInput.setLayoutData(gd);\n\t\tdescriptionInput.pack();\n\t\tLabel blank = new Label(shell, SWT.NONE);\n\t\tgd = new GridData(GridData.FILL, GridData.FILL, true, true);\n\t\tgd.horizontalSpan = 4;\n\t\tblank.setLayoutData(gd);\n\t\tblank.pack();\n\t\tButton save = new Button(shell, SWT.PUSH);\n\n\t\tsave.setText(\"Save\");\n\t\tsave.addListener(SWT.Selection, new Listener()\n\t\t{\n\t\t\tpublic void handleEvent(Event event)\n\t\t\t{\n\t\t\t\tBoolean checkfault = false;\n\t\t\t\tLinkedHashMap<String, String> a = new LinkedHashMap<String, String>();\n\t\t\t\tif(nameInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tnameInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(componentInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tcomponentInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(schoolInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tschoolInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(castimeInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tcastimeInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(levelInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tcheckfault = true;\n\t\t\t\t\tlevelInput.setBackground(display.getSystemColor(SWT.COLOR_RED));\n\t\t\t\t}\n\t\t\t\tif(checkfault)\n\t\t\t\t{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\ta.put(\"NAME\", nameInput.getText());\n\t\t\t\ta.put(\"COMPONENTS\", componentInput.getText());\n\t\t\t\ta.put(\"SCHOOL\", schoolInput.getText());\n\t\t\t\ta.put(\"CASTINGTIME\", castimeInput.getText());\n\t\t\t\ta.put(\"LEVEL\", levelInput.getText());\n\t\t\t\tif(resistanceInput.getSelection())\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SPELLRESISTANCE\", \"YES\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SPELLRESISTANCE\", \"NO\");\n\t\t\t\t}\n\t\t\t\tif(!materialInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"MATERIALCOMPONENT\", materialInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!savthrowInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"SAVINGTHROW\", savthrowInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!focusInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"FOCUS\", focusInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(!durationInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DURATION\", durationInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!damageInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DAMAGE\", damageInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!damagealterInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"DAMAGEALTERNATE\", damagealterInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!rangeInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"RANGE\", rangeInput.getText());\n\t\t\t\t}\n\t\t\t\tif(!effectInput.getText().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\ta.put(\"EFFECT\", effectInput.getText());\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\ta.put(\"DESCRIPTION\", descriptionInput.getText());\n\t\t\t\tnewspell = new SpellEntity(a);\n\t\t\t\tMain.gameState.abilities.put(newspell.getName(), newspell);\n\t\t\t\tMain.gameState.customContent.put(newspell.getName(), newspell);\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t}\n\t\t);\n\t\tgd = new GridData(GridData.FILL, GridData.CENTER, false, false);\n\t\tgd.horizontalSpan = 1;\n\t\tsave.setLayoutData(gd);\n\t\tsave.pack();\n\t\tshell.setLayout(gl);\n\t\tshell.layout();\n\t\tshell.pack();\n//\t\t//wizard\n//\t\t\t\tfinal Composite wizPanel = new Composite(shell, SWT.BORDER);\n//\t\t\t\twizPanel.setBounds(0,0,WIDTH, HEIGHT);\n//\t\t\t\tfinal StackLayout wizLayout = new StackLayout();\n//\t\t\t\twizPanel.setLayout(wizLayout);\n//\t\t\t\t\n//\t\t\t\t//Page1 -- Name\n//\t\t\t\tfinal Composite wizpage1 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\twizpage1.setBounds(0,0,WIDTH,HEIGHT);\n//\t\t\t\t\n//\t\t\t\tfinal Label wiz1Label = new Label(wizpage1, SWT.NONE);\n//\t\t\t\twiz1Label.setText(\"Enter Name (required)\");\n//\t\t\t\twiz1Label.pack();\n//\t\t\t\tfinal Text wizpage1text = new Text(wizpage1, SWT.BORDER);\n//\t\t\t\twizpage1text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage1text.setText(\"FireBall\");\n//\t\t\t\tButton next1 = createNextButton(wizpage1);//TODO cancel and previous button\n//\t\t\t\tcreateBackButton(wizpage1, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage1, wizPanel, wizLayout);\n//\t\t\t\tnext1.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage1text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellname = wizpage1text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tSystem.out.println(\"PANIC: ITEM WIZARD PAGE 1 OUT\");\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz1Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\t);\n//\t\t\t\t\n//\t\t\t\twizPages.add(wizpage1);\n//\t\t\t\t//Page2 -- component\n//\t\t\t\tfinal Composite wizpage2 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz2Label = new Label(wizpage2, SWT.NONE);\n//\t\t\t\twiz2Label.setText(\"Enter Component: (required)\");\n//\t\t\t\twiz2Label.pack();\n//\t\t\t\tfinal Text wizpage2text = new Text(wizpage2, SWT.BORDER);\n//\t\t\t\twizpage2text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage2text.setText(\"Fire\");\n//\t\t\t\tButton next2 = createNextButton(wizpage2);\n//\t\t\t\tcreateBackButton(wizpage2, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage2, wizPanel, wizLayout);\n//\t\t\t\tnext2.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage2text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellcomp = wizpage2text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz2Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage2);\n//\t\t\t\t//Page3 -- School\n//\t\t\t\tfinal Composite wizpage3 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz3Label = new Label(wizpage3, SWT.NONE);\n//\t\t\t\twiz3Label.setText(\"Enter School: (required)\");\n//\t\t\t\twiz3Label.pack();\n//\t\t\t\tfinal Text wizpage3text = new Text(wizpage3, SWT.BORDER);\n//\t\t\t\twizpage3text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage3text.setText(\"Descruction\");\n//\t\t\t\tButton next3 = createNextButton(wizpage3);\n//\t\t\t\tcreateBackButton(wizpage3, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage3, wizPanel, wizLayout);\n//\t\t\t\tnext3.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage3text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellschool = wizpage3text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz3Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage3);\n//\t\t\t\t//Page4 -- Range\n//\t\t\t\tfinal Composite wizpage4 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz4Label = new Label(wizpage4, SWT.NONE);\n//\t\t\t\twiz4Label.setText(\"Enter Range: (required)\");\n//\t\t\t\twiz4Label.pack();\n//\t\t\t\tfinal Text wizpage4text = new Text(wizpage4, SWT.BORDER);\n//\t\t\t\twizpage4text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage4text.setText(\"50 feet\");\n//\t\t\t\tButton next4 = createNextButton(wizpage4);\n//\t\t\t\tcreateBackButton(wizpage4, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage4, wizPanel, wizLayout);\n//\t\t\t\tnext4.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage4text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellrange = wizpage4text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz4Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage4);\n//\t\t\t\t//Page5 -- effect\n//\t\t\t\tfinal Composite wizpage5 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz5Label = new Label(wizpage5, SWT.NONE);\n//\t\t\t\twiz5Label.setText(\"Enter Effect: (required)\");\n//\t\t\t\twiz5Label.pack();\n//\t\t\t\tfinal Text wizpage5text = new Text(wizpage5, SWT.BORDER);\n//\t\t\t\twizpage5text.setBounds(50, 50, 250, 150);\n//\t\t\t\twizpage5text.setText(\"No effect\");\n//\t\t\t\tButton next5 = createNextButton(wizpage5);\n//\t\t\t\tcreateBackButton(wizpage5, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage5, wizPanel, wizLayout);\n//\t\t\t\tnext5.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage5text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspelleffect = wizpage5text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz5Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage5);\n//\t\t\t\t//Page6 -- casting time\n//\t\t\t\tfinal Composite wizpage6 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz6Label = new Label(wizpage6, SWT.NONE);\n//\t\t\t\twiz6Label.setText(\"Enter Casting Time: (required)\");\n//\t\t\t\twiz6Label.pack();\n//\t\t\t\tfinal Text wizpage6text = new Text(wizpage6, SWT.BORDER);\n//\t\t\t\twizpage6text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage6text.setText(\"1 turn\");\n//\t\t\t\tButton next6 = createNextButton(wizpage6);\n//\t\t\t\tcreateBackButton(wizpage6, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage6, wizPanel, wizLayout);\n//\t\t\t\tnext6.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage5text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellcastime = wizpage6text.getText();\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz6Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage6);\n//\t\t\t\t//Page7 -- Material Component\n//\t\t\t\tfinal Composite wizpage7 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz7Label = new Label(wizpage7, SWT.NONE);\n//\t\t\t\twiz7Label.setText(\"Enter Material Component: (required)\");\n//\t\t\t\twiz7Label.pack();\n//\t\t\t\tfinal Text wizpage7text = new Text(wizpage7, SWT.BORDER);\n//\t\t\t\twizpage7text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage7text.setText(\"None\");\n//\t\t\t\tButton next7 = createNextButton(wizpage7);\n//\t\t\t\tcreateBackButton(wizpage7, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage7, wizPanel, wizLayout);\n//\t\t\t\tnext7.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage7text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellmaterial = wizpage7text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz7Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage7);\n//\t\t\t\t//Page8 -- saving throw\n//\t\t\t\tfinal Composite wizpage8 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz8Label = new Label(wizpage8, SWT.NONE);\n//\t\t\t\twiz8Label.setText(\"Enter Saving Throw: (required)\");\n//\t\t\t\twiz8Label.pack();\n//\t\t\t\tfinal Text wizpage8text = new Text(wizpage8, SWT.BORDER);\n//\t\t\t\twizpage8text.setBounds(50, 50, 200, 100);\n//\t\t\t\twizpage8text.setText(\"Will negate XX\");\n//\t\t\t\tButton next8 = createNextButton(wizpage8);\n//\t\t\t\tcreateBackButton(wizpage8, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage8, wizPanel, wizLayout);\n//\t\t\t\tnext8.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage8text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellsaving = wizpage8text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz8Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage8);\n//\t\t\t\t//Page9 -- Focus\n//\t\t\t\tfinal Composite wizpage9 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz9Label = new Label(wizpage9, SWT.NONE);\n//\t\t\t\twiz9Label.setText(\"Enter Focus: (required)\");\n//\t\t\t\twiz9Label.pack();\n//\t\t\t\tfinal Text wizpage9text = new Text(wizpage9, SWT.BORDER);\n//\t\t\t\twizpage9text.setBounds(50, 50, 200, 100);\n//\t\t\t\twizpage9text.setText(\"A dart\");\n//\t\t\t\tButton next9 = createNextButton(wizpage9);\n//\t\t\t\tcreateBackButton(wizpage9, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage9, wizPanel, wizLayout);\n//\t\t\t\tnext9.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage9text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellfocus = wizpage9text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz9Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage9);\n//\t\t\t\t//Page10 -- Duration\n//\t\t\t\tfinal Composite wizpage10 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz10Label = new Label(wizpage10, SWT.NONE);\n//\t\t\t\twiz10Label.setText(\"Enter Duration: (required)\");\n//\t\t\t\twiz10Label.pack();\n//\t\t\t\tfinal Text wizpage10text = new Text(wizpage10, SWT.BORDER);\n//\t\t\t\twizpage10text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage10text.setText(\"5 Turns\");\n//\t\t\t\tButton next10 = createNextButton(wizpage10);\n//\t\t\t\tcreateBackButton(wizpage10, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage10, wizPanel, wizLayout);\n//\t\t\t\tnext10.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage10text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellduration = wizpage10text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz10Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage10);\n//\t\t\t\t//Page11 -- Level\n//\t\t\t\tfinal Composite wizpage11 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz11Label = new Label(wizpage11, SWT.NONE);\n//\t\t\t\twiz11Label.setText(\"Enter Level (required)\");\n//\t\t\t\twiz11Label.pack();\n//\t\t\t\tfinal Text wizpage11text = new Text(wizpage11, SWT.BORDER);\n//\t\t\t\twizpage11text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage11text.setText(\"1\");\n//\t\t\t\tButton next11 = createNextButton(wizpage11);\n//\t\t\t\tcreateBackButton(wizpage11, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage11, wizPanel, wizLayout);\n//\t\t\t\tnext11.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage11text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\ttry\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tif(Integer.parseInt(wizpage11text.getText()) >= 0)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspelllevel = String.valueOf(Integer.parseInt(wizpage11text.getText()));\n//\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\tcatch(NumberFormatException a)\n//\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz11Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage11);\n//\t\t\t\t//Page12 -- resistance\n//\t\t\t\tfinal Composite wizpage12 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tfinal Label wiz12Label = new Label(wizpage12, SWT.NONE);\n//\t\t\t\twiz12Label.setText(\"Enter Spell resistance: (Yes/No)\");\n//\t\t\t\twiz12Label.pack();\n//\t\t\t\tfinal Text wizpage12text = new Text(wizpage12, SWT.BORDER);\n//\t\t\t\twizpage12text.setBounds(50, 50, 150, 50);\n//\t\t\t\twizpage12text.setText(\"Yes\");\n//\t\t\t\tButton next12 = createNextButton(wizpage12);\n//\t\t\t\tcreateBackButton(wizpage12, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage12, wizPanel, wizLayout);\n//\t\t\t\tnext12.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage12text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\tspellresistance = wizpage12text.getText();\n//\t\t\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t\t\t{\n//\t\t\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twiz12Label.setBackground(display.getSystemColor(SWT.COLOR_RED));\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n//\n//\n//\t\t\t\t\t}\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage12);\n//\t\t\t\t//Page13 - Description\n//\t\t\t\tfinal Composite wizpage13 = new Composite(wizPanel, SWT.NONE);\n//\t\t\t\tLabel wiz13Label = new Label(wizpage13, SWT.NONE);\n//\t\t\t\twiz13Label.setText(\"Enter Description (Optional)\");\n//\t\t\t\twiz13Label.pack(); \n//\t\t\t\tfinal Text wizpage13text = new Text(wizpage13, SWT.BORDER);\n//\t\t\t\twizpage13text.setBounds(50, 50, 300, 200);\n//\t\t\t\twizpage13text.setText(\"Description here\");\n//\t\t\t\tButton next13 = createNextButton(wizpage13);\n//\t\t\t\tcreateBackButton(wizpage13, wizPanel, wizLayout);\n//\t\t\t\tcreateCancelButton(wizpage13, wizPanel, wizLayout);\n//\t\t\t\tnext13.addListener(SWT.Selection, new Listener()\n//\t\t\t\t{\n//\t\t\t\t\tpublic void handleEvent(Event event)\n//\t\t\t\t\t{\n//\t\t\t\t\t\tif(wizpage13text.getText() != \"\")\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellscript = wizpage13text.getText();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tspellscript = \"<empty>\";\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\tCreateVerificationPage(wizPanel, wizLayout);\n//\t\t\t\t\t\tif(wizpagenum < wizPages.size() - 1)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\twizpagenum++;\n//\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\twizLayout.topControl = wizPages.get(wizpagenum);\n//\t\t\t\t\t\t\twizPanel.layout();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse if(wizpagenum == wizPages.size() - 1)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tshell.close();\n//\t\t\t\t\t\t}\n//\t\t\t\t\t}\n//\n//\t\t\t\t\t\n//\t\t\t\t});\n//\t\t\t\twizPages.add(wizpage13);\n//\t\t\t\t\n//\t\t\t\twizLayout.topControl = wizpage1;\n//\t\t\t\twizPanel.layout();\n\t}",
"public GraphicUI() {\n initComponents();\n jPanelAddr.setVisible(false);\n jButtonDBToAddr.setVisible(false);\n jFrameMap.setVisible(false);\n\n selectedFormat = 0;\n quickSearch = false;\n \ttextFieldDefaults = setFieldDefaults();\n \ttextFieldCurrents = setFieldDefaults();;\n\n }",
"private void clearField(){\n passwordField.setText(\"\");\n mailField.setText(\"\");\n stateImg.setImage( crossImg);\n stateImg.setVisible(false);\n\n }",
"private static void clearFields() {\n resetFields();\n fieldsEnabled(false);\n lbl_message.setText(\"\");\n }",
"public static void generateNewField(int w,int h,String title){\n\t\tScaling.setPicCoords(w,h);\n\t\tviewPort = new ViewPort(title);\n\t}",
"private void displayPasswordFields() {\n FieldRelatedLabel passwordLabel = new FieldRelatedLabel(\"Password\", 350, 370);\n\n invalidPasswordLabel = new InvalidFormEntryLabel(\"Password must contain at least:\\n8 characters, a letter and\\na number\", 510, 380, false);\n\n passwordTF = new PasswordField();\n passwordTF.relocate(350, 400);\n passwordTF.textProperty().addListener(e->{\n FormValidatorPokeMongo.handlePassword(passwordTF, invalidPasswordLabel);\n FormValidatorPokeMongo.handleConfirmField(passwordTF, confirmPasswordTF, invalidConfirmPasswordLabel);\n });\n\n sceneNodes.getChildren().addAll(passwordLabel, invalidPasswordLabel, passwordTF);\n }",
"public void setFillEnabled(boolean fillEnabled){\n this.fillEnabled = fillEnabled;\n refreshTheView();\n }",
"public void setDefaultValues() {\n\t\ttfRow = new JTextField();\n\t\ttfRow.setText(\"0\");\n\t\ttfCol = new JTextField();\n\t\ttfCol.setText(\"0\");\n\t\tfor (int i = 0; i < 7; i++) {\n\t\t\ttfWest[i] = new JTextField();\n\t\t\ttfWest[i].setText(\"0\");\n\t\t\t;\n\t\t\ttfWest[i].setPreferredSize(new Dimension(50, 20));\n\t\t\ttfSouth[i] = new JTextField();\n\t\t\ttfSouth[i].setText(\"0\");\n\t\t\t;\n\t\t}\n\t\tfor (int row = 0; row < lblCenter.length; row++) {\n\t\t\tfor (int col = 0; col < lblCenter[row].length; col++) {\n\t\t\t\tlblCenter[row][col] = new JLabel(\"0\");\n\t\t\t\tlblCenter[row][col].setPreferredSize(new Dimension(30, 30));\n\t\t\t\tlblCenter[row][col].setHorizontalAlignment(JLabel.CENTER);\n\t\t\t\tlblCenter[row][col].setBackground(new java.awt.Color(150, 150, 150));\n\t\t\t\tlblCenter[row][col].setOpaque(true);\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public final void fill(Composite parent) {\n createControl(parent);\n }",
"private void fillAllFields() {\r\n combo.setSelectedItem(moviesModule.getConfig().getOpeningSystem());\r\n fileChooser.setFilePath(moviesModule.getConfig().getFFmpegLocation());\r\n }",
"public void clearfields()\r\n\t{\r\n\t\t/* assigns a new ID, if a new record is added this will increment the old one\r\n\t\t * if no change has occured it will just reassign the current one*/\r\n\t\tf1.assignID();\r\n\t\t//sets the text in the case link text field to null\r\n\t\tevidenceID.setText(null);\r\n\t\t//sets the value of the forensic id to the new value if changed or same value if not\r\n\t\tforensicID.setText(String.valueOf(f1.getForensicID()));\r\n\t\t\r\n\t\t/*\r\n\t\t * The following code uses unique models to set the comboboxes back to default values\r\n\t\t * this could not be achieved using a single model as all the boxes would change at the sme time\r\n\t\t * if a single model was used*/\r\n\t\tDefaultComboBoxModel model = new DefaultComboBoxModel(confirmation);\r\n\t\tbioBox.setModel(model);\r\n\t\tDefaultComboBoxModel model1 = new DefaultComboBoxModel(confirmation);\r\n\t\tprintsBox.setModel(model1);\r\n\t\tDefaultComboBoxModel model2 = new DefaultComboBoxModel(confirmation);\r\n\t\ttracksBox.setModel(model2);\r\n\t\tDefaultComboBoxModel model3 = new DefaultComboBoxModel(confirmation);\r\n\t\tdigitalBox.setModel(model3);\r\n\t\tDefaultComboBoxModel model4 = new DefaultComboBoxModel(confirmation);\r\n\t\ttoolMarkBox.setModel(model4);\r\n\t\tDefaultComboBoxModel model5 = new DefaultComboBoxModel(confirmation);\r\n\t\tnarcoticBox.setModel(model5);\r\n\t\tDefaultComboBoxModel model6 = new DefaultComboBoxModel(confirmation);\r\n\t\tfirearmBox.setModel(model6);\r\n\t\t\r\n\t}",
"private void limpiarCampos() {\n campoNombre.setText(\"\");\n campoNumLibro.setText(\"\");\n campoNumPagina.setText(\"\");\n }"
] | [
"0.6726592",
"0.64971477",
"0.6423237",
"0.6411507",
"0.6344272",
"0.633189",
"0.63022935",
"0.62748086",
"0.62638205",
"0.6261554",
"0.619842",
"0.6181737",
"0.61056924",
"0.6055036",
"0.60302395",
"0.6022407",
"0.5973922",
"0.5966759",
"0.5949615",
"0.59414065",
"0.5929742",
"0.591212",
"0.5904998",
"0.58957684",
"0.5891167",
"0.58903897",
"0.5888224",
"0.5870103",
"0.5860708",
"0.58520734",
"0.5850148",
"0.58310914",
"0.5829182",
"0.580984",
"0.58084214",
"0.57979643",
"0.57791096",
"0.57694197",
"0.57651436",
"0.5763583",
"0.57616854",
"0.5733289",
"0.5725831",
"0.5715095",
"0.5714778",
"0.5703653",
"0.57013613",
"0.5700481",
"0.56966907",
"0.56923026",
"0.5692209",
"0.56913465",
"0.56662035",
"0.56599283",
"0.56560534",
"0.5653078",
"0.5645768",
"0.56296104",
"0.5627349",
"0.5626716",
"0.5624555",
"0.56228614",
"0.56151325",
"0.5611222",
"0.56099665",
"0.56094784",
"0.56061447",
"0.56057215",
"0.5605274",
"0.5604436",
"0.5603947",
"0.55986315",
"0.5592407",
"0.55909723",
"0.55909336",
"0.5589389",
"0.55779415",
"0.55766326",
"0.55761796",
"0.5572106",
"0.5566839",
"0.5565593",
"0.55648214",
"0.5561957",
"0.5559427",
"0.5557399",
"0.5556763",
"0.5553766",
"0.5548962",
"0.5542255",
"0.554217",
"0.5529818",
"0.55260426",
"0.55236024",
"0.5523418",
"0.55204016",
"0.551805",
"0.5516714",
"0.5508916",
"0.5501953"
] | 0.61899763 | 11 |
Make the title of the screen | private Node createTitle() {
Text titleText = new Text(" Restaurant Inventory Management ");
titleText.setFont(Font.font("Arial", FontWeight.BOLD, 40));
titleText.setTextAlignment(TextAlignment.CENTER);
return titleText;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void Title ()\n {\n\tTitle = new Panel ();\n\tTitle.setBackground (Color.white);\n\tchessboard (Title);\n\tp_screen.add (\"1\", Title);\n }",
"public void display_title_screen() {\n parent.textAlign(CENTER);\n parent.textFont(myFont);\n parent.textSize(displayH/10);\n parent.fill(255, 255, 0);\n parent.text(\"PACMAN\", 0.5f*displayW, 0.3f*displayH);\n\n parent.image(maxusLogoImage, 0.5f*displayW, 0.4f*displayH);\n\n parent.textFont(myFont);\n parent.textSize(tileSize);\n parent.fill(180);\n parent.text(\"2013\", 0.5f*displayW, 0.45f*displayH);\n\n display_chase_animation();\n\n display_insert_coin_text();\n }",
"public void displayTitle() {\n\t\tthis.theScreen.setFont(Preferences.TITLE_FONT);\n\t\tthis.theScreen.setColor(Preferences.TITLE_COLOR);\n\t\tthis.theScreen.drawString(Preferences.TITLE,\n\t\t\t\tPreferences.TITLE_X, Preferences.TITLE_Y);\n\t}",
"private void showTitleScreen() {\n\t\tresetParameters();\n\t\t\n\t\t// if the play button is not clicked\n\t\twhile (!Mouse.isButtonDown(0)\n\t\t\t\t|| !(Mouse.getX() >= 249 && Mouse.getX() <= 539 && Mouse.getY() <= (displayHeight - 215) && Mouse.getY() >= (displayHeight - 284))) {\n\t\t\t// draw title screen\n\t\t\tdrawScreen(sprite.get(\"titleScreen\"));\n\t\t\t\n\t\t\tif (Mouse.isButtonDown(0) && Mouse.getX() >= 249 && Mouse.getX() <= 539\n\t\t\t\t\t&& Mouse.getY() <= (displayHeight - 304) && Mouse.getY() >= (displayHeight - 373)) {\n\t\t\t\tshowInstructScreen();\n\t\t\t}\n\t\t\t\n\t\t\tif (Mouse.isButtonDown(0) && Mouse.getX() >= 249 && Mouse.getX() <= 539\n\t\t\t\t\t&& Mouse.getY() <= (displayHeight - 393) && Mouse.getY() >= (displayHeight - 462)) {\n\t\t\t\tshowCreditsScreen();\n\t\t\t}\n\t\t\tif (Mouse.isButtonDown(0) && Mouse.getX() >= 249 && Mouse.getX() <= 539\n\t\t\t\t\t&& Mouse.getY() <= (displayHeight - 482) && Mouse.getY() >= (displayHeight - 551)) {\n\t\t\t\tDisplay.destroy();\n\t\t\t\tAL.destroy();\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\t\n\t\t\t// update display\n\t\t\tupdateDisplay();\n\t\t}\n\t\t\n\t\t// reset beginning time\n\t\tDelta.setBeginningTime(Delta.getTime());\n\t}",
"private void setupTitle(){\n\t\tJLabel title = new JLabel(quiz_type.toString()+\": \"+parent_frame.getDataHandler().getLevelNames().get(parent_frame.getDataHandler().getCurrentLevel())); \n\t\ttitle.setFont(new Font(\"Arial Rounded MT Bold\", Font.BOLD, 65));\n\t\ttitle.setForeground(new Color(254, 157, 79));\n\t\ttitle.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tadd(title);\n\t\ttitle.setBounds(32, 24, 1136, 119);\n\t\ttitle.setOpaque(false);\n\t}",
"TITLE createTITLE();",
"void setTitle(java.lang.String title);",
"void setTitle(String title);",
"void setTitle(String title);",
"void setTitle(String title);",
"void setTitle(String title);",
"void setTitle(String title);",
"void showTitle(String title);",
"public void showTitleScreen() {\n frame.showMenu();\n }",
"public void setTitle(String title);",
"public void setTitle(String title);",
"public void setTitle(String title);",
"public void displayTitleScreen() {\n System.out.println(\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 \" #%@% %* #%@%# @@@: @@@@ @@@# @@ @@@@ @%%% @%%% %@@% @%@% @@@@ -@@% \\n\" +\n \" #@%@@@@@%%@%% @%@@@%%: @%%@%@%@ %@%@%@@@@@%@ @@@@@%@@ %@@%@@%%@@@@% %@@@ %@@@ -@@@%@@@@@@%# \\n\" +\n \" %@%@@%@@% @@%@@@: @@@%%% #%@@%@@%@ @@%@@@@ @@%@@@@@@ @@@@ %%%@ %@%@@%@@@ \\n\" +\n \"―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― \\n\" +\n \" Nouvelle partie \"\n );\n }",
"public void setTitle(java.lang.String title);",
"@Override\n protected void updateTitle()\n {\n String frameName =\n SWTStringUtil.insertEllipsis(frame.getName(),\n StringUtil.NO_FRONT,\n SWTStringUtil.DEFAULT_FONT);\n\n view.setWindowTitle(modificationFlag\n + FRAME_PREFIX\n + \": \"\n + project.getName()\n + \" > \"\n + design.getName()\n + \" > \"\n + frameName\n + ((OSUtils.MACOSX) ? \"\" : UI.WINDOW_TITLE));\n }",
"private void addTitle() {\n\t\tJXPanel titlePanel = new JXPanel();\n\t\ttitlePanel.setLayout(null);\n\t\ttitlePanel.setSize(180, 60);\n\t\ttitlePanel.setLocation(60, 10);\n\t\ttitlePanel.setToolTipText(\"www.i.hsr.ch\");\n\t\ttitlePanel.setBorder(new DropShadowBorder(new Color(0, 0, 0), 7, 0.5f, 12, true, true, true, true));\n\t\t\n\t\tJLabel title = GUIComponents.createLabel(YAETMMainView.PROGRAM, new Point(45, 12));\n\t\ttitle.setFont(new Font(\"Tahoma\", Font.BOLD, 25));\n\t\t\n\t\tJLabel titleExtend = GUIComponents.createLabel(YAETMMainView.PROGRAMEXT, new Point(10, 33));\n\t\ttitleExtend.setSize(200, 20);\n\t\ttitleExtend.setFont(new Font(\"Arial\", Font.PLAIN, 11));\n\t\t\n\t\ttitlePanel.add(titleExtend);\n\t\ttitlePanel.add(title);\n\t\tpanel.add(titlePanel);\n\t}",
"private void setWindowTitle(String title) {\n this.title = title;\n }",
"@Override\n\tprotected void initTitle() {\n\t\tsetTitleContent(R.string.tocash);\n\t\tsetBtnBack();\n\t}",
"private void setTitle(String userTitle){\n title = userTitle;\n }",
"public void setTitle(String title) { this.title = title; }",
"private Text createTitle() {\n\t\tText title = new Text(\"S p a c e Y\");\n\t\ttitle.setFont(new Font(\"Minecraftia\", 80));\n\t\ttitle.setStroke(Color.YELLOW);\n\t\ttitle.setStrokeWidth(2);\n\t\ttitle.setStrokeType(StrokeType.OUTSIDE);\n\t\ttitle.getTransforms().add(new Rotate(-50, 300, 200, 20, Rotate.X_AXIS));\n\t\ttitle.setX(canvas.getWidth() / 2);\n\t\ttitle.setY(canvas.getHeight() / 2);\n\t\treturn title;\n\t}",
"@Override\r\n\t\tpublic void setTitle(String title)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}",
"void setConsoleTitle(String title);",
"public void printTitle()\n {\n System.out.println(title);\n }",
"public void setTitlePanel() {\n\t\ttitleview = new TitlePanelView();\n\t\ttitleview.createView();\n\t\tnorthpanel.add(titleview.getView());\n\t\n\t}",
"private void setTitle(java.lang.String title) {\n System.out.println(\"setting title \"+title);\n this.title = title;\n }",
"@Override\n\tpublic void setTitle(java.lang.String title) {\n\t\t_scienceApp.setTitle(title);\n\t}",
"public Title()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(PlatformWorld.sWidth, PlatformWorld.sHeight, 1); \n \n addObject(new TitleController(), 0, 0);\n }",
"protected abstract void setTitle();",
"public void setTitle(String title){\n this.title = title;\n }",
"public Text createTitle() {\n\t\tText title = new Text(\"Selecteer Gasten\");\n\t\ttitle.getStyleClass().add(\"h1\");\n\t\ttitle.setFont(Font.font(22));\n\t\treturn title;\t\t\n\t}",
"public void setTitle(String title){\n \tthis.title = title;\n }",
"public static void printTitle( String title )\r\n {\n }",
"@Override\n\tpublic void setTitle(String title) {\n\t\t\n\t}",
"@Override\n public void title()\n {\n }",
"private void updateTitle()\n {\n if (this.m_bClosing)\n return;\n\n final String agentName = (m_AgentFocus == null ? kNoAgent\n : m_AgentFocus.GetAgentName());\n boolean remote = m_Document.isRemote();\n final String remoteString = remote ? \"remote \" : \"\";\n\n // Need to make sure we make this change in the SWT thread as the event\n // may come to us\n // in a different thread\n Display.getDefault().asyncExec(() -> getShell().setText(\n \"Soar Debugger in Java - \" + remoteString + agentName));\n }",
"private Label setTitle() {\r\n Label title = new Label(TITLE);\r\n title.setFont(Font.font(null, FontWeight.BOLD, null, TITLESZE));\r\n return title;\r\n }",
"private void createYourListsTitle() {\n\t\tjlYourLists = new JLabel(\"PLAYLISTS\");\t\t\n\t\tjlYourLists.setFont(new java.awt.Font(\"Century Gothic\",0, 17));\n\t\tjlYourLists.setForeground(new Color(250,250,250));\n\t}",
"public void setTitle(String title) {\r\n\tthis.title = title;\r\n }",
"protected void drawTitle(){\n titleBox = new Rectangle(155,380, 490, 200);\n titleBorder = new Rectangle(150, 375, 500, 210);\n titleBorder.setFillColor(pink);\n titleBorder.setFilled(true);\n titleBox.setFillColor(Color.BLACK);\n titleBox.setFilled(true);\n title = new Image(206, 400, \"124-hw4/BreakoutText/breakoutText.png\");\n\n canvas.add(titleBorder);\n canvas.add(titleBox);\n canvas.add(title);\n }",
"public void setTitle(String title) {\r\n this.title = title;\r\n }",
"public void setTitle(String title) {\r\n this.title = title;\r\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title){\n lblTitle.setText(title);\n }",
"public void setTitle(Title title) {\r\n this.title = title;\r\n }",
"String title();",
"String title();",
"public void setTitle(String title){\n\t\tthis.title = title;\n\t}",
"public void setTitle(String title) {\r\n this.title = title;\r\n }",
"public void setTitle(String title) {\r\n this.title = title;\r\n }",
"protected void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title)\n {\n this.title = title;\n }",
"public void setTitle(String title)\n {\n this.title = title;\n }",
"public void setTitle(String title)\n {\n this.title = title;\n }",
"public void setTitle( String title )\n {\n _strTitle = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n mTitle = title;\n }",
"public void setTitle(String title) {\r\n _title = title;\r\n }",
"void setTitle(@NonNull String title);",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n this.title = title;\n }",
"public void setTitle(String title) {\n\tthis.title = title;\n}",
"public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}",
"public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}",
"public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}",
"public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}",
"public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}",
"@Override\n\tpublic void setTitle(java.lang.String title) {\n\t\t_esfTournament.setTitle(title);\n\t}",
"private void createYourMusicTitle() {\n\t\tjpYourMusic = new JPanel(new GridLayout(1,1));\n\t\tjpYourMusic.setOpaque(false);\n\t\tJLabel jlYourMusic = new JLabel(\"YOUR MUSIC\");\t\t\n\t\tjlYourMusic.setFont(new java.awt.Font(\"Century Gothic\",0, 17));\n\t\tjlYourMusic.setForeground(new Color(250,250,250));\n\t\tjpYourMusic.add(jlYourMusic);\n\t}",
"public void setTitle(String titleTemplate);",
"static String title()\n {\n return \"POKEMON DON'T GO\\n\";\n }",
"@Override\n\tpublic void setTitle(String type, String name) {\n\t\ttxtTitle.setText(String.format(\"%s:%s\", new String[]{type,name}));\n\t}",
"public void setTitle(String title) {\n\t\tthis.title = title; \n\t}",
"public static void printTitle(int width, String title)\n {\n title = ConsoleForm.getCentered(width, title);\n System.out.printf(\"\\n%s\\n\\n\", title);\n }",
"protected void setPopUpTitle(String title){\r\n\t\tthis.stage.setTitle(title);\r\n\t}",
"@Override\r\n\tpublic void getTitle() {\n\t\t\r\n\t}",
"public void setTitle(String title)\n\t{\n\t\tthis.title = title;\n\t}"
] | [
"0.83266175",
"0.80729204",
"0.80280715",
"0.745815",
"0.7436448",
"0.74241817",
"0.7418924",
"0.74181503",
"0.74181503",
"0.74181503",
"0.74181503",
"0.74181503",
"0.74093723",
"0.73996395",
"0.73314863",
"0.73314863",
"0.73314863",
"0.73286307",
"0.7325891",
"0.7325393",
"0.728198",
"0.723342",
"0.7188722",
"0.71631354",
"0.71483594",
"0.7132778",
"0.7127656",
"0.71151",
"0.7096003",
"0.7067403",
"0.70656157",
"0.70517445",
"0.70476556",
"0.7034594",
"0.703187",
"0.7026366",
"0.7023728",
"0.70193076",
"0.7008412",
"0.7001546",
"0.6969295",
"0.6968668",
"0.696547",
"0.6964848",
"0.6963161",
"0.6956379",
"0.6956379",
"0.695579",
"0.695579",
"0.695579",
"0.695579",
"0.69428587",
"0.6942373",
"0.6937675",
"0.6937675",
"0.692608",
"0.6921723",
"0.6921723",
"0.6916554",
"0.6915009",
"0.6915009",
"0.6915009",
"0.68868065",
"0.68863726",
"0.6885752",
"0.6884162",
"0.68774897",
"0.6872725",
"0.6872725",
"0.6872725",
"0.6872725",
"0.6872725",
"0.6872725",
"0.6872725",
"0.6872725",
"0.6872725",
"0.6872725",
"0.6872725",
"0.6872725",
"0.6872725",
"0.6872725",
"0.6872725",
"0.6872725",
"0.6872725",
"0.6872725",
"0.6862162",
"0.6860129",
"0.6860129",
"0.6860129",
"0.6860129",
"0.6860129",
"0.6848429",
"0.6846838",
"0.68429124",
"0.68307775",
"0.6830302",
"0.6825295",
"0.6825119",
"0.6825002",
"0.6813755",
"0.68049437"
] | 0.0 | -1 |
Place objects on the screen | private Node createFormContents() {
GridPane grid = new GridPane();
grid.setAlignment(Pos.CENTER);
grid.setHgap(10);
grid.setVgap(10);
grid.setPadding(new Insets(25, 25, 25, 25));
// Add the components to the grid.
// Add the labels.
grid.add(typeNameLBL, 0, 0);
grid.add(unitsLBL, 0, 1);
grid.add(unitMeasureLBL, 0, 2);
grid.add(validityDaysLBL, 0, 3);
grid.add(reorderPointLBL, 0, 4);
grid.add(notesLBL, 0, 5);
grid.add(statusLBL, 0, 6);
// Add the text fields.
grid.add(typeNameTF, 1, 0);
grid.add(unitsTF, 1, 1);
grid.add(unitMeasureTF, 1, 2);
grid.add(validityDaysTF, 1, 3);
grid.add(reorderPointTF, 1, 4);
grid.add(notesTF, 1, 5);
grid.add(statusCB, 1, 6);
// Add the button.
grid.add(submitBTN, 0, 7);
grid.add(cancelBTN, 1, 7);
// Add the message label.
grid.add(messageLBL, 0, 8, 2, 1);
// Event handlers.
submitBTN.setOnAction(new EventHandler<ActionEvent>() {
public void handle(ActionEvent e) {
processAction(e);
}
});
cancelBTN.setOnAction(new EventHandler<ActionEvent>() {
public void handle(ActionEvent e) {
new Manager();
}
});
return grid;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"PositionedObject(){\n float x = DrawingHelper.getGameViewWidth()/2;\n float y = DrawingHelper.getGameViewHeight()/2;\n _position.set(x,y);\n }",
"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 place() {\n\t\tprocessing.image(Image, x, y);\n\t}",
"void doPlaceObject() {\r\n\t\tif (renderer.surface == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (currentBaseTile != null) {\r\n\t\t\tUndoableMapEdit undo = new UndoableMapEdit(renderer.surface);\r\n\t\t\tdeleteEntitiesOf(renderer.surface.basemap, renderer.placementRectangle, false);\r\n\t\t\tSurfaceFeature sf = new SurfaceFeature();\r\n\t\t\tsf.id = currentBaseTile.id;\r\n\t\t\tsf.type = currentBaseTile.type;\r\n\t\t\tsf.tile = currentBaseTile.tile;\r\n\t\t\tsf.location = Location.of(renderer.placementRectangle.x, renderer.placementRectangle.y);\r\n\t\t\trenderer.surface.features.add(sf);\r\n\t\t\t\r\n\t\t\tplaceTile(currentBaseTile.tile, renderer.placementRectangle.x, renderer.placementRectangle.y, SurfaceEntityType.BASE, null);\r\n\t\t\t\r\n\t\t\tundo.setAfter();\r\n\t\t\taddUndo(undo);\r\n\t\t\trenderer.repaint();\r\n\t\t} else\r\n\t\tif (currentBuildingType != null && renderer.canPlaceBuilding(renderer.placementRectangle) && renderer.placementRectangle.width > 0) {\r\n\t\t\tUndoableMapEdit undo = new UndoableMapEdit(renderer.surface);\r\n\t\t\tBuilding bld = new Building(currentBuildingType, currentBuildingRace);\r\n\t\t\tbld.makeFullyBuilt();\r\n\t\t\tbld.location = Location.of(renderer.placementRectangle.x + 1, renderer.placementRectangle.y - 1); // leave room for the roads!\r\n\t\t\trenderer.surface.buildings.add(bld);\r\n\t\t\t\r\n\t\t\tplaceTile(bld.tileset.normal, bld.location.x, bld.location.y, SurfaceEntityType.BUILDING, bld);\r\n\t\t\tplaceRoads(currentBuildingRace);\r\n\t\t\t\r\n\t\t\tundo.setAfter();\r\n\t\t\taddUndo(undo);\r\n\t\t\trenderer.repaint();\r\n\t\t}\r\n\t}",
"protected void createContents() {\n\t\tMonitor primary = this.getDisplay().getPrimaryMonitor();\n\t\tRectangle bounds = primary.getBounds();\n\t\tRectangle rect = getBounds();\n\t\tint x = bounds.x + (bounds.width - rect.width) / 2;\n\t\tint y = bounds.y + (bounds.height - rect.height) / 2;\n\t\tsetLocation(x, y);\n\t}",
"public Screen(List<GameObject> objects) {\n\t\tthis();\n\t\taddObject(objects);\n\t}",
"protected void warp() {\n\t\tRandom r = new Random();\n\t\t\n\t\t// Get random index from coordinates list\n\t\tint nextPos = r.nextInt(this.coords.length);\n\t\t\n\t\t// Set new position for monster\n\t\tthis.setBounds(this.coords[nextPos].width, this.coords[nextPos].height, mWidth, mHeight);\n\t\t\n\t\tthis.setVisible(true);\n\t}",
"public void place(float x,float y){\n\t\tz=0.2f+Main.world.land.getHigh(Main.world.timeline.getTerra(),(int)x, (int)y);\r\n\t\tMain.world.contacts(this);\r\n\t\tz+=getTopObjects();\r\n\t\tplace(x,y,z);\r\n\t}",
"@Override\n\tpublic void show () {\n overWorld = new Sprite(new TextureRegion(new Texture(Gdx.files.internal(\"Screens/overworldscreen.png\"))));\n overWorld.setPosition(0, 0);\n batch = new SpriteBatch();\n batch.getProjectionMatrix().setToOrtho2D(0, 0, 320, 340);\n\n // Creates the indicator and sets it to the position of the first grid item.\n indicator = new MapIndicator(screen.miscAtlases.get(2));\n // Creates the icon of Daur that indicates his position.\n icon = new DaurIcon(screen.miscAtlases.get(2));\n // Sets the mask position to zero, as this screen does not lie on the coordinate plane of any tiled map.\n screen.mask.setPosition(0, 0);\n screen.mask.setSize(320, 340);\n Gdx.input.setInputProcessor(inputProcessor);\n\n // Creates all relevant text.\n createText();\n // Sets numX and numY to the position of Daur on the map.\n numX = storage.cellX;\n numY = storage.cellY;\n indicator.setPosition(numX * 20, numY * 20 + 19);\n // Sets the icon to the center of this cell.\n icon.setPosition(numX * 20 + 10 - icon.getWidth() / 2, numY * 20 + 29 - icon.getHeight() / 2);\n // Creates all the gray squares necessary.\n createGraySquares();\n }",
"private void prepare()\n {\n addObject(player,185,196);\n player.setLocation(71,271);\n Ground ground = new Ground();\n addObject(ground,300,360);\n invent invent = new invent();\n addObject(invent,300,375);\n }",
"public void spawn()\n\t{\n\t\tsynchronized(this)\n\t\t{\n\t\t\t// Set the x,y,z position of the L2Object spawn and update its _worldregion\n\t\t\tsetVisible(true);\n\t\t\tsetWorldRegion(WorldManager.getInstance().getRegion(getWorldPosition()));\n\n\t\t\t// Add the L2Object spawn in the _allobjects of L2World\n\t\t\tWorldManager.getInstance().storeObject(object);\n\n\t\t\t// Add the L2Object spawn to _visibleObjects and if necessary to _allplayers of its L2WorldRegion\n\t\t\tregion.addVisibleObject(object);\n\t\t}\n\n\t\t// this can synchronize on others instancies, so it's out of\n\t\t// synchronized, to avoid deadlocks\n\t\t// Add the L2Object spawn in the world as a visible object\n\t\tWorldManager.getInstance().addVisibleObject(object, region);\n\n\t\tobject.onSpawn();\n\t}",
"void addBoxObject() {\n\t\tint boxObjectX = random.nextInt(ScreenManager.getWindowWidth());\n\t\tint boxObjectY = random.nextInt(ScreenManager.getWindowHeight());\n\t\tint boxObjectWidth = ScreenManager.getSizeFromPercentageOfWindowY((float) 24);\n\t\tint boxObjectHeight = ScreenManager.getSizeFromPercentageOfWindowY(18);\n\t\tint boxObjectHitsToDestroy = random.nextInt(9)+1;\n\t\t\n\t\tboxObjects.add(new BoxObject(boxObjectX, boxObjectY, boxObjectWidth, boxObjectHeight, boxObjectHitsToDestroy, true));\n\t}",
"public void act() \n {\n // Add your action code here.\n if (Greenfoot.mouseClicked(this)){\n World myWorld = getWorld();\n List<Crab> crabs = myWorld.getObjects(Crab.class);\n for(Crab c : crabs){\n // int y = Greenfoot.getRandomNumber(560);\n // int x = Greenfoot.getRandomNumber(560);\n //c.setLocation(x,y);\n // myWorld.removeObjects(crabs);\n }\n \n /*\n Crab c = new Crab();\n int y = Greenfoot.getRandomNumber(560);\n int x = Greenfoot.getRandomNumber(560);\n myWorld.addObject(c, x, y);\n */\n \n }\n}",
"private void placeAsteroids() {\r\n\t\taddParticipant(new Asteroid(0, 2, EDGE_OFFSET, EDGE_OFFSET, speed, this));\r\n\t\taddParticipant(new Asteroid(1, 2, SIZE - EDGE_OFFSET, EDGE_OFFSET, 3, this));\r\n\t\taddParticipant(new Asteroid(2, 2, EDGE_OFFSET, SIZE - EDGE_OFFSET, 3, this));\r\n\t\taddParticipant(new Asteroid(3, 2, SIZE - EDGE_OFFSET, SIZE - EDGE_OFFSET, 3, this));\r\n\t}",
"@Override\n public void update(Frame frame) {\n if (JoyButton.contains(frame.getButtonPressed(), JoyButton.BUTTON_TOUCH_SINGLE)) {\n SceneObject object = SceneObject.fromDrawable(getApp().getContext(), R.mipmap.ic_launcher);\n object.position(new Vector3f(random.nextFloat() * 5.0f - 2.5f, random.nextFloat() * 5.0f - 2.5f, random.nextFloat() * 5.0f - 2.5f));\n objects.add(object);\n addChildObject(object);\n }\n // If long tap detected, remove all spawned objects\n else if (JoyButton.contains(frame.getButtonPressed(), JoyButton.BUTTON_TOUCH_LONGPRESS)) {\n\n for (SceneObject object : objects) {\n removeChildObject(object);\n }\n objects.clear();\n }\n\n // Move spawned objects\n for (SceneObject object : objects) {\n object.position(object.position().sub(0, 0, 0.1f));\n }\n\n super.update(frame);\n }",
"private void prepare()\n {\n Block block = new Block(10);\n addObject(block,372,150);\n Wall wall = new Wall();\n addObject(wall,52,167);\n Wall wall2 = new Wall();\n addObject(wall2,160,167);\n Wall wall3 = new Wall();\n addObject(wall3,550,167);\n Wall wall4 = new Wall();\n addObject(wall4,650,167);\n Wall wall5 = new Wall();\n addObject(wall5,750,167);\n block.setLocation(306,171);\n Robot robot = new Robot();\n addObject(robot,48,51);\n Pizza pizza = new Pizza();\n addObject(pizza,550,60);\n Pizza pizza2 = new Pizza();\n addObject(pizza2,727,53);\n Pizza pizza3 = new Pizza();\n addObject(pizza3,364,303);\n Pizza pizza4 = new Pizza();\n addObject(pizza4,224,400);\n Pizza pizza5 = new Pizza();\n addObject(pizza5,622,395);\n ScorePanel scorePanel = new ScorePanel();\n addObject(scorePanel,106,525);\n Home home = new Home();\n addObject(home,717,521);\n\n block.setLocation(344,173);\n pizza3.setLocation(394,297);\n Pizza pizza6 = new Pizza();\n addObject(pizza6,711,265);\n Pizza pizza7 = new Pizza();\n addObject(pizza7,68,276);\n\n }",
"public void place(Position position) { this.position = position; }",
"@Override\n\tprotected void init() {\n\t\tsuper.init();\n\t\tisAnchorPointForPosition = true;\n\t\tsetContentSize(Screen.GAME_W, Screen.GAME_H);\n\t\tsetAnchor(Graphics.HCENTER | Graphics.VCENTER);\n\t}",
"public void display ( GameObject obj ) {\n Screen tempScreen = Screen.getScreen();\n\n // I could script this! Quickly change the colors\n\n tempScreen.fill(color); //set color\n\n\n tempScreen.noStroke(); //no stroke\n tempScreen.rect(obj.x, obj.y, obj.width, obj.height); //make a rectangle\n }",
"public void act() \n {\n move(-16);\n \n \n if (isAtEdge())\n {\n setLocation(700,getY());\n }\n \n if (isTouching(Shots.class))\n {\n getWorld().addObject(new SpaceObject(), 500,Greenfoot.getRandomNumber(400));\n }\n \n }",
"public void makeVisible()\n {\n wall.makeVisible();\n roof.makeVisible();\n window.makeVisible();\n }",
"@Override\n\tpublic void update() {\n\t\tmove();\n\t\tplace();\n\t}",
"public void ScreenWrap(GameObject o){\n\t\tif (o.pos.x > (background.pos.x + background.GetWidth()/2)){\n\t\t\to.pos.x -= background.GetWidth();\n\t\t}\n\t\telse if (o.pos.x < (background.pos.x - background.GetWidth()/2)){\n\t\t\to.pos.x += background.GetWidth();\n\t\t}\n\t\tif (o.pos.y > (background.pos.y + background.GetHeight()/2)){\n\t\t\to.pos.y -= background.GetHeight();\n\t\t}\n\t\telse if (o.pos.y < (background.pos.y - background.GetHeight()/2)){\n\t\t\to.pos.y += background.GetHeight();\n\t\t}\n\t}",
"public void placeMandatoryObjects()\r\n {\r\n Random rng = new Random();\r\n //Adds an endgame chest somewhere (NOT in spawn)\r\n Room tempRoom = getRoom(rng.nextInt(dungeonWidth - 1) +1, rng.nextInt(dungeonHeight - 1) +1);\r\n tempRoom.addObject(new RoomObject(\"Endgame Chest\", \"overflowing with coolness!\"));\r\n if (tempRoom.getMonster() != null)\r\n {\r\n tempRoom.removeMonster();\r\n }\r\n tempRoom.addMonster(new Monster(\"Pelo Den Stygge\", \"FINAL BOSS\", 220, 220, 12));\r\n //Adds a merchant to the spawn room\r\n getRoom(0,0).addObject(new RoomObject(\"Merchant\", \"like a nice fella with a lot of goods (type \\\"wares\\\" to see his goods)\"));\r\n }",
"public void createObject(float posX, float posY)\n\t{\n\t\tdrawableItems.add(new ObjectItem(posX,posY));\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 }",
"public planillaInsert() {\n initComponents();\n int lebar = this.getWidth()/2;\n int tinggi = this.getHeight()/2;\n int x = (Toolkit.getDefaultToolkit().getScreenSize().width/2)-lebar;\n int y = (Toolkit.getDefaultToolkit().getScreenSize().height/2)-tinggi;\n this.setLocation(x, y);\n }",
"private void setSpritesPosition()\r\n\t{\r\n\t\tfloat w = Gdx.graphics.getWidth();\r\n\t\tfloat h = Gdx.graphics.getHeight();\r\n\t\t\r\n\t\tsetX(camera.position.x-camera.viewportWidth/2 + 0.1f * camera.viewportWidth/2);\r\n\t\tsetY(camera.position.y + camera.viewportHeight/2 - 0.15f*w/h* camera.viewportHeight/2);\r\n\t\theroHealth.setX(getX());\r\n\t\theroHealth.setY(getY());\r\n\t\t\r\n\t\tcover.setX(getX() + 10f/270f * heroHealth.getWidth());\r\n\t\tcover.setY(getY());\r\n\t\t\r\n\t}",
"private void setLocations(){\n\t\tbuttonArea.setSize(FRAME_WIDTH, 50);\n\t\tbuttonArea.setLocation(0, 0);\n\t\tboardOne.setSize(600,600);\n\t\tboardOne.setLocation(0,buttonArea.getHeight());\n\t\tboardTwo.setSize(600,600);\n\t\tboardTwo.setLocation(boardOne.getWidth() + 10,buttonArea.getHeight());\n\t\tboardOne.setIcon(background);\n\t\tboardTwo.setIcon(background);\n\t\tnewGame.setSize(100,20);\n\t\tnewGame.setLocation(5,5);\n\t\tcp1shipLabel.setSize(200,15);\n\t\tcp1shipLabel.setLocation((boardOne.getWidth() / 2) - (cp1shipLabel.getWidth() / 2),buttonArea.getHeight() - cp1shipLabel.getHeight() - 5);\n\t\tcp1shipLabel.setVisible(false);\n\t\tcp2shipLabel.setSize(200,15);\n\t\tcp2shipLabel.setLocation(boardTwo.getX() + (boardTwo.getWidth() / 2) - (cp2shipLabel.getWidth() / 2),buttonArea.getHeight() - cp2shipLabel.getHeight() - 5);\n\t\tcp2shipLabel.setVisible(false);\n\t}",
"public SeletionScreen() {\r\n\t\theight = 600;\r\n\t\twidth = 800;\r\n\r\n\t\tposicao = new Point[9];\r\n\t\tenderecoImage = new String[8];\r\n\t\t\r\n\t\tenderecoImageSelecaoP1 = new String[8];\r\n\t\tenderecoImageSelecaoP2 = new String[8];\r\n\r\n\t\tsizeHeightImage = 147;\t\t\t\r\n\t\tsizeWidhtImage =114;\r\n\r\n\t\tsizeHeightImageSelecionado = 183;\r\n\t\tsizeWidhtImageSelecionado = 146;\r\n\t\t\r\n\t\tplayer1 = 0;\r\n\t\tplayer2 = 3;\r\n\r\n\r\n\t\t//personagem superior da tela\r\n\t\tposicao[0]= new Point(99,41);\r\n\t\tposicao[1]= new Point(264, 41);\r\n\t\tposicao[2]= new Point(429, 41);\r\n\t\tposicao[3]= new Point(594, 41);\r\n\t\t//personagem inferior da tela \r\n\t\tposicao[4]= new Point(175, 206);\r\n\t\tposicao[5]= new Point(340, 206);\r\n\t\tposicao[6]= new Point(505, 206);\t//posicao do randon\r\n\t\t//posicao do personagem escolhido\r\n\t\tposicao[7]= new Point(77, 374);\r\n\t\tposicao[8]= new Point(578, 374);\t\t\r\n\r\n\t\t/*\r\n\t\t * endereco das imagens que vao ser caregadas para mostrar os lutadores\r\n\t\t */\r\n\t\tenderecoImage[0]= \"/image/fireHead/fireHead_menu_0.png\";\r\n\t\tenderecoImage[1]= \"/image/madimbu/madimbu_menu_0.png\";\r\n\t\tenderecoImage[2]= \"/image/bigboss/bigBoss_Menu_0.png\";\r\n\t\tenderecoImage[3]= \"/image/monitora/monitora_menu_0.png\";\r\n\t\tenderecoImage[4]= \"/image/tche/tche_menu_0.png\";\r\n\t\tenderecoImage[5]= \"/image/random.png\";\r\n\t\tenderecoImage[6]= \"/image/mallock/mallock_menu_0.png\";\r\n\t\tenderecoImage[7]= \"/image/Screens/screenSelect.png\";//fundo\r\n\r\n//========================Carrega o endereco de imagem da animacao de selacao do Player 1 =================================\r\n\t\tenderecoImageSelecaoP1[0] = \"/image/fogo/fogo_0.png\";\r\n\t\tenderecoImageSelecaoP1[1] = \"/image/fogo/fogo_1.png\";\r\n\t\tenderecoImageSelecaoP1[2] = \"/image/fogo/fogo_2.png\";\r\n\t\tenderecoImageSelecaoP1[3] = \"/image/fogo/fogo_3.png\";\r\n\t\tenderecoImageSelecaoP1[4] = \"/image/fogo/fogo_4.png\";\r\n\t\tenderecoImageSelecaoP1[5] = \"/image/fogo/fogo_5.png\";\r\n\t\tenderecoImageSelecaoP1[6] = \"/image/fogo/fogo_6.png\";\r\n\t\tenderecoImageSelecaoP1[7] = \"/image/grade.png\";\r\n//======================================================================================================================\r\n\r\n//=================Carrega o endereco de imagem da animacao de selacao do Player 2=========================================\r\n\t\tenderecoImageSelecaoP2[0] = \"/image/fogo/fogo_azul_0.png\";\r\n\t\tenderecoImageSelecaoP2[1] = \"/image/fogo/fogo_azul_1.png\";\r\n\t\tenderecoImageSelecaoP2[2] = \"/image/fogo/fogo_azul_2.png\";\r\n\t\tenderecoImageSelecaoP2[3] = \"/image/fogo/fogo_azul_3.png\";\r\n\t\tenderecoImageSelecaoP2[4] = \"/image/fogo/fogo_azul_4.png\";\r\n\t\tenderecoImageSelecaoP2[5] = \"/image/fogo/fogo_azul_5.png\";\r\n\t\tenderecoImageSelecaoP2[6] = \"/image/fogo/fogo_azul_6.png\";\r\n\t\tenderecoImageSelecaoP2[7] = \"/image/grade.png\";\r\n//====================================================================================================================\r\n\t\ttry {\r\n\t\t\tfor (int i = 0; i < 8; i++) {\r\n\t\t\t\tBufferedImage ani = ImageIO.read(Controller.getInstance().getClass().getResourceAsStream(enderecoImageSelecaoP1[i]));\r\n//\t\t\t\r\n\t\t\t\tanimacaoDeSelecaoP1.add(ani);\r\n\t\t\t}\r\n\t\t\tfor (int i = 0; i < 8; i++) {\r\n\t\t\t\tBufferedImage ani2 = ImageIO.read(Controller.getInstance().getClass().getResourceAsStream(enderecoImageSelecaoP2[i]));\r\n//\t\t\t\t\r\n\t\t\t\tanimacaoDeSelecaoP2.add(ani2);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t}\t\t\r\n\t\t\r\n\t\t\r\n\t\ttry {\r\n\t\t\t/*\r\n\t\t\t * Carregar todas as imagem dos jogadores\r\n\t\t\t */\r\n//================================Carrega a imagem de Fundo ====================================================\t\t\t\r\n\r\n\t\t\tfundo = ImageIO.read(Controller.getInstance().getClass().getResourceAsStream(enderecoImage[7]));\r\n\r\n//===============================================================================================================\r\n//=============================Carrega as imagens dos lutadores =================================================\r\n\t\t\tfor(int i=0;i<7; i++)\r\n\t\t\t{\r\n\t\t\t\tlutadores.add(new Button(Utilities.loadImage(enderecoImage[i]),posicao[i].x,posicao[i].y){\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\tpublic void onClick() {\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void draw(Graphics2D graphics) {\r\n\t\t\t\t\t\tgraphics.drawImage(getImage(), position.toPoint().x, position.toPoint().y, position.toPoint().x+sizeWidhtImage, position.toPoint().y+sizeHeightImage, 0,0,getImage().getWidth(), getImage().getHeight(), null);\r\n\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\r\n\r\n//===============================Adiciona os lutadores para ser mostrado na tela===========================================================================================================================\t\t\t\r\n\t\t\tfor (int i = 0; i < lutadores.size(); i++) {\r\n\t\t\t\taddComponent(lutadores.get(i));\r\n\t\t\t}\r\n//==============================================================================================================================================================================\t\t\t\r\n\r\n\r\n//================================== Imagem do lutador selecionado do player 1 ==========================================================================================================\t\t\t\r\n\t\t\tlutadoresSelcionado.add(new Button(Utilities.loadImage(enderecoImage[0]),posicao[7].x,posicao[7].y){\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onClick() {\r\n\t\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t\t}\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void draw(Graphics2D graphics) {\r\n//==================selecao feita atraves do mouse o primeiro click ============================================================================================================\r\n//\t\t\t\t\tif(player1!=-1)\r\n//\t\t\t\t\t{\r\n//\t\t\t\t\t\tthis.setImage(lutadores.get(player1).getImage());\r\n//\t\t\t\t\t\tgraphics.setColor(Color.RED);\r\n//\t\t\t\t\t\tgraphics.fillRect( position.toPoint().x-2, position.toPoint().y-2, sizeWidhtImageSelecionado+4, sizeHeightImageSelecionado+4);\r\n//\t\t\t\t\t\tgraphics.drawImage(getImage(), position.toPoint().x, position.toPoint().y, position.toPoint().x+sizeWidhtImageSelecionado, position.toPoint().y+sizeHeightImageSelecionado, 0,0,getImage().getWidth(), getImage().getHeight(), null);\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\telse\r\n//\t\t\t\t\t{\t\t\t\t\t\t\t\r\n//\t\t\t\t\t\tgraphics.setColor(Color.RED);\r\n//\t\t\t\t\t\tgraphics.fillRect( position.toPoint().x-2, position.toPoint().y-2, sizeWidhtImageSelecionado+4, sizeHeightImageSelecionado+4);\r\n//\t\t\t\t\t\tgraphics.drawImage(getImage(), position.toPoint().x, position.toPoint().y, position.toPoint().x+sizeWidhtImageSelecionado, position.toPoint().y+sizeHeightImageSelecionado, 0,0,getImage().getWidth(), getImage().getHeight(), null);\r\n//\t\t\t\t\t}\r\n//=============================================================================================================================================================================================================================================\t\t\t\t\t\r\n//============================Selecao do personagem atraves do teclado com as teclas A, D e E para confirmar selecao =================================================================================================================================================================================================================\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tthis.setImage(lutadores.get(player1).getImage());\r\n\t\t\t\t\t\tgraphics.drawImage(getImage(), position.toPoint().x, position.toPoint().y, position.toPoint().x+sizeWidhtImageSelecionado, position.toPoint().y+sizeHeightImageSelecionado, 0,0,getImage().getWidth(), getImage().getHeight(), null);\r\n\t\t\t\t\t\tif(E){\r\n\t\t\t\t\t\t\tgraphics.drawImage(animacaoDeSelecaoP1.get(7),posicao[player1].x , posicao[player1].y, posicao[player1].x+sizeWidhtImage ,posicao[player1].y+sizeHeightImage, 0, 0, animacaoDeSelecaoP1.get(7).getWidth(), animacaoDeSelecaoP1.get(7).getHeight(), null);\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t});\r\n\r\n//=============================================================================================================================================================================================================================================\t\t\t\t\t\r\n\r\n//================================== Imagem do lutador selecionado do player 2 ============================================================================\t\t\t\r\n\t\t\tlutadoresSelcionado.add(new Button(Utilities.loadImage(enderecoImage[3]),posicao[8].x,posicao[8].y){\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onClick() {\r\n\t\t\t\t\t// TODO Auto-generated method stub\r\n\r\n\t\t\t\t}\r\n\t\t\t\tpublic void draw(Graphics2D graphics) {\r\n\t\t\t\t\t\r\n//=============================Selecao do personagem Atraves do mouse, selecao feita por ordem ==================================\r\n//\t\t\t\t\tif(player2!=-1)\r\n//\t\t\t\t\t{\r\n//\t\t\t\t\t\tthis.setImage(lutadores.get(player2).getImage());\r\n//\t\t\t\t\t\tgraphics.setColor(Color.RED);\r\n//\t\t\t\t\t\tgraphics.fillRect( position.toPoint().x-2, position.toPoint().y-2, sizeWidhtImageSelecionado+4, sizeHeightImageSelecionado+4);\r\n//\t\t\t\t\t\tgraphics.drawImage(getImage(), position.toPoint().x, position.toPoint().y, position.toPoint().x+sizeWidhtImageSelecionado, position.toPoint().y+sizeHeightImageSelecionado, 0,0,getImage().getWidth(), getImage().getHeight(), null);\r\n//\t\t\t\t\t}\r\n//\t\t\t\t\telse\r\n//\t\t\t\t\t{\r\n//\t\t\t\t\t\tgraphics.setColor(Color.RED);\r\n//\t\t\t\t\t\tgraphics.fillRect( position.toPoint().x-2, position.toPoint().y-2, sizeWidhtImageSelecionado+4, sizeHeightImageSelecionado+4);\r\n//\t\t\t\t\t\tgraphics.drawImage(getImage(), position.toPoint().x, position.toPoint().y, position.toPoint().x+sizeWidhtImageSelecionado, position.toPoint().y+sizeHeightImageSelecionado, 0,0,getImage().getWidth(), getImage().getHeight(), null);\r\n//\t\t\t\t\t}\r\n//===========================================================================================================================================\r\n//================================Selecao do personagem feita atraves do teclado teclas LEFT , RIGHT e Confirmar selacao com ENTER \r\n\t\t\t\t\t\tthis.setImage(lutadores.get(player2).getImage());\r\n\t\t\t\t\t\tgraphics.drawImage(getImage(), position.toPoint().x, position.toPoint().y, position.toPoint().x+sizeWidhtImageSelecionado, position.toPoint().y+sizeHeightImageSelecionado, 0,0,getImage().getWidth(), getImage().getHeight(), null);\r\n\t\t\t\t\t\tif(ENTER){\r\n\t\t\t\t\t\t\tgraphics.drawImage(animacaoDeSelecaoP2.get(7),posicao[player2].x , posicao[player2].y, posicao[player2].x+sizeWidhtImage ,posicao[player2].y+sizeHeightImage, 0, 0, animacaoDeSelecaoP2.get(7).getWidth(), animacaoDeSelecaoP2.get(7).getHeight(), null);\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t});\r\n//==============================================================================================================================================================================================================================================\r\n\r\n//===============================Adiciona os lutadores Selecionado para ser mostrado na tela===========================================================================================================================\t\t\t\r\n\t\t\tfor (int i = 0; i < lutadoresSelcionado.size(); i++) {\r\n\t\t\t\taddComponent(lutadoresSelcionado.get(i));\r\n\t\t\t}\r\n//======================================================================================================================================================================================================================================\t\t\t\r\n\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\tSystem.out.println(\"erro\");\r\n\t\t}\r\n\r\n\t}",
"public void setupWorld()\r\n\t{\r\n\t\t//build walls\r\n\t\twall1.add(new PointD(-500, 500));\r\n\t\twall1.add(new PointD(-490, 500));\r\n\t\twall1.add(new PointD(-490, -500));\r\n\t\twall1.add(new PointD(-500, -500));\r\n\r\n\t\twall2.add(new PointD(-500, 500));\r\n\t\twall2.add(new PointD(2000, 500));\r\n\t\twall2.add(new PointD(2000, 490));\r\n\t\twall2.add(new PointD(-500, 490));\r\n\t\t\r\n\t\twall3.add(new PointD(2000, 500));\r\n\t\twall3.add(new PointD(1990, 500));\r\n\t\twall3.add(new PointD(1990, -500));\r\n\t\twall3.add(new PointD(2000, -500));\r\n\r\n\t\twall4.add(new PointD(-500, -500));\r\n\t\twall4.add(new PointD(2000, -500));\r\n\t\twall4.add(new PointD(2000, -490));\r\n\t\twall4.add(new PointD(-500, -490));\r\n\r\n\t\tobjects.add(wall1);\r\n\t\tobjects.add(wall2);\r\n\t\tobjects.add(wall3);\r\n\t\tobjects.add(wall4);\r\n\t\t\r\n\t\t\r\n\t\t//add people\r\n\t\tGameVars.people = people;\r\n\t\tGameVars.aSquare = aSquare;\r\n\t\t\r\n\t\tobjects.add(grandson.boundary);\r\n\t\tpeople.add(grandson);\r\n\t\t\r\n\t\tobjects.add(son.boundary);\r\n\t\tpeople.add(son);\r\n\t\t\r\n\t\tobjects.add(triangle.boundary);\r\n\t\tpeople.add(triangle);\r\n\r\n\t\tobjects.add(wife.boundary);\r\n\t\tpeople.add(wife);\r\n\r\n\t\tobjects.add(runaway.boundary);\r\n\t\tpeople.add(runaway);\r\n\t\t\r\n\t\t\r\n\t\t//set aSquare's position\r\n\t\taSquare.rotate(220);\r\n\t\t\r\n\t}",
"public void moveObjects() {\n // move ball and paddles\n ball.moveBall();\n playerOnePaddle.movePaddle();\n playerTwoPaddle.movePaddle();\n }",
"private void placeShip() {\r\n\t\t// Expire the ship ship\r\n\t\tParticipant.expire(ship);\r\n\r\n\t\tclipShip.stop();\r\n\r\n\t\t// Create a new ship\r\n\t\tship = new Ship(SIZE / 2, SIZE / 2, -Math.PI / 2, this);\r\n\t\taddParticipant(ship);\r\n\t\tdisplay.setLegend(\"\");\r\n\t}",
"@Override\n public void relocatedWithinBounds() {\n x = random.nextInt(maxX - width);\n y = random.nextInt(maxY - height);\n }",
"private void addHero()\n {\n // Initial horizontal position\n int initialX = TILE_SIZE;\n\n // Instantiate the hero object\n theHero = new Hero(initialX);\n\n // Add hero in bottom left corner of screen\n addObject(theHero, initialX, 8 * TILE_SIZE);\n }",
"private void positionObjectInScene(float x, float y, float z) {\n setIdentityM(modelMatrix, 0);\n translateM(modelMatrix, 0, x, y, z);\n multiplyMM(modelViewProjectionMatrix, 0, viewProjectionMatrix,\n 0, modelMatrix, 0);\n }",
"public OverworldScreen(Game game) {\n super(\"OverworldScreen\", game);\n\n mScreenViewport = new ScreenViewport(0, 0, mGame.getScreenWidth(),\n mGame.getScreenHeight());\n if (mScreenViewport.width > mScreenViewport.height)\n mLayerViewport = new LayerViewport(240.0f, 240.0f\n * mScreenViewport.height / mScreenViewport.width, 240,\n 240.0f * mScreenViewport.height / mScreenViewport.width);\n else\n mLayerViewport = new LayerViewport(240.0f * mScreenViewport.height\n / mScreenViewport.width, 240.0f, 240.0f\n * mScreenViewport.height / mScreenViewport.width, 240);\n\n // Load in the bitmaps used on the main menu screen\n AssetStore assetManager = mGame.getAssetManager();\n\n\n assetManager.loadAndAddBitmap(\"LocationArrow\", \"img/LocationArrow.png\");\n assetManager.loadAndAddBitmap(\"OverworldMap\", \"img/OverworldMap.png\");\n\n // Define the spacing that will be used to position the buttons\n int spacingX = game.getScreenWidth() / 5;\n int spacingY = game.getScreenHeight() / 3;\n\n mOverworldMap = new GameObject(LEVEL_WIDTH / 2.0f,\n LEVEL_HEIGHT / 2.0f, LEVEL_WIDTH, LEVEL_HEIGHT, getGame()\n .getAssetManager().getBitmap(\"OverworldMap\"), this);\n\n // Create the trigger buttons\n mLocationButton = new PushButton(\n spacingX * 1.0f, spacingY * 1.5f, spacingX*.16f, spacingY*0.1f, \"LocationArrow\", this);\n mLocationButton1 = new PushButton(\n spacingX * 2.0f, spacingY * 1.5f, spacingX*.16f, spacingY*0.1f, \"LocationArrow\", this);\n mLocationButton2 = new PushButton(\n spacingX * 3.0f, spacingY * 1.5f, spacingX*.16f, spacingY*0.1f, \"LocationArrow\", this);\n mLocationButton3 = new PushButton(\n spacingX * 4.0f, spacingY * 1.5f, spacingX*.16f, spacingY*0.1f, \"LocationArrow\", this);\n mLocationButton4 = new PushButton(\n spacingX * 5.0f, spacingY * 1.5f, spacingX*.16f, spacingY*0.1f, \"LocationArrow\", this);\n\n\n }",
"public void place(float x,float y,float z){\n\t\tthis.x=x;\r\n\t\tthis.y=y;\r\n\t\tthis.z=z;\r\n\t\tdx=x;\r\n\t\tdy=y;\r\n\t\tvz=0;\r\n\t\tvx=0;\r\n\t\tvy=0;\r\n\t}",
"@Override\r\n public void act() \r\n {\n int posx = this.getX();\r\n int posy = this.getY();\r\n //calculamos las nuevas coordenadas\r\n int nuevox = posx + incx;\r\n int nuevoy = posy + incy;\r\n \r\n //accedemos al mundo para conocer su tamaño\r\n World mundo = this.getWorld();\r\n if(nuevox > mundo.getWidth())//rebota lado derecho\r\n {\r\n incx = -incx;\r\n }\r\n if(nuevoy > mundo.getHeight())//rebota en la parte de abajo\r\n {\r\n incy = -incy;\r\n }\r\n \r\n if(nuevoy < 0)//rebota arriba\r\n {\r\n incy = -incy;\r\n }\r\n if(nuevox < 0)//rebota izquierda\r\n {\r\n incx = -incx;\r\n }\r\n //cambiamos de posicion a la pelota\r\n this.setLocation(nuevox,nuevoy);\r\n }",
"private void updatePosition(){\n updateXPosition(true);\n updateYPosition(true);\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 placeRandom() {\r\n\t\t((IOrthoContentItemImplementation) this.contentItemImplementation)\r\n\t\t\t\t.placeRandom();\r\n\t}",
"public void render(Screen screen) {\n\t\tscreen.renderInterface(x, y, width, height, button, clicked); //renders all 4 pieces of the 32x32 sprite. Modifying the x or y will change where the screen is centered.\n\t}",
"private void initialScreen() {\r\n\t\t// Clear the screen\r\n\t\tclear();\r\n\r\n\t\t// Place four asteroids\r\n\t\tplaceAsteroids();\r\n\r\n\t\t// Place the ship\r\n\t\tplaceShip();\r\n\r\n\t\t// Reset statistics\r\n\t\tlives = 3;\r\n\t\tdisplay.setLives(lives);\r\n\t\tnumLevel = 1;\r\n\t\tdisplay.setLevel(numLevel);\r\n\t\tdisplay.setScore(0);\r\n\t\tspeed = 3;\r\n\r\n\t\t// Start listening to events\r\n\t\tdisplay.removeKeyListener(this);\r\n\t\tdisplay.addKeyListener(this);\r\n\r\n\t\t// Give focus to the game screen\r\n\t\tdisplay.requestFocusInWindow();\r\n\t}",
"public void initialHeroCastle() {\n Pair<Integer, Integer> heroCastlePosition = world.getHeroCastlePosition();\n SimpleIntegerProperty x2 = new SimpleIntegerProperty();\n SimpleIntegerProperty y2 = new SimpleIntegerProperty();\n x2.set(heroCastlePosition.getValue0());\n y2.set(heroCastlePosition.getValue1());\n String type = \"HeroCastle\";\n Building heroBuilding = new HeroCastleBuilding(x2, y2, type, 0);\n ImageView view = new ImageView(heroBuilding.getImage());\n addEntity(heroBuilding, view);\n squares.getChildren().add(view);\n }",
"public void updateSprites() {\n this.model.getSprites().values().forEach(x -> x.setPosition(this.x, this.y));\n }",
"public MyWorld()\n { \n // Create a new world with 800x600 cells with a cell size of 1x1 pixels.\n super(800, 600, 1); \n\n //could have as many RideLines as capasity dictates\n rides = new RideLines[MAX_RIDES];\n\n currentRide=0; //initially, we have 0 prisoners\n \n //Create a Load button at the top of the screen\n load = new LoadButton();\n addObject(load, 250, 20);\n \n //Create a Merge button at the top of the screen\n MergeButton merge = new MergeButton();\n addObject(merge, 350, 20);\n \n //Create a Sort By Name button at the top of the screen\n SortByName sortName = new SortByName();\n addObject(sortName, 450, 20);\n \n //Create a Sort by queue length at the top of the screen\n SortByLength sortLength = new SortByLength();\n addObject(sortLength, 600, 20);\n \n\n }",
"private void render() {\n bs = display.getCanvas().getBufferStrategy();\n /* if it is null, we define one with 3 buffers to display images of\n the game, if not null, then we display every image of the game but\n after clearing the Rectanlge, getting the graphic object from the \n buffer strategy element. \n show the graphic and dispose it to the trash system\n */\n if (bs == null) {\n display.getCanvas().createBufferStrategy(3);\n } else {\n g = bs.getDrawGraphics();\n g.drawImage(Assets.background, 0, 0, width, height, null);\n g.setColor(Color.white);\n g.drawLine(0, 500, 595, 500);\n player.render(g);\n for (int i = 0; i < aliens.size(); i++) {\n Alien al = aliens.get(i);\n al.render(g);\n }\n if (shotVisible) {\n shot.render(g);\n }\n\n if(gameOver==false)\n {\n gameOver();\n }\n for(Alien alien: aliens){\n Bomb b = alien.getBomb();\n b.render(g);\n }\n g.setColor(Color.red);\n Font small = new Font(\"Helvetica\", Font.BOLD, 20);\n g.setFont(small);\n g.drawString(\"G - Guardar\", 10, 50);\n g.drawString(\"C - Cargar\", 10, 70);\n g.drawString(\"P - Pausa\", 10, 90);\n\n if(keyManager.pause)\n {\n g.drawString(\"PAUSA\", 250, 300);\n }\n \n bs.show();\n g.dispose();\n }\n\n }",
"private void makeControls() {\n Label label1 = new Label(\"Placement:\");\n textField = new TextField ();\n textField.setPrefWidth(300);\n\n // Task8 Start the game with the randomly selected piece placement\n textField.setText(\"AAO\");\n makePlacement(\"AAO\");\n\n Button button = new Button(\"Refresh\");\n button.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent e) {\n makePlacement(textField.getText());\n // Task8 Do not clear the textField in order to place pieces step by step.\n // textField.clear();\n }\n });\n HBox hb = new HBox();\n hb.getChildren().addAll(label1, textField, button);\n hb.setSpacing(10);\n hb.setLayoutX(130);\n hb.setLayoutY(VIEWER_HEIGHT - 50);\n controls.getChildren().add(hb);\n }",
"public void display_game_screen() {\n\n myScreen.screenMode = myScreen.DISPLAY_GAME_SCREEN;\n\n pushMatrix();\n\n calc_screen_translation();\n\n imageMode(CORNER);\n image(backgroundImage, 0, 0);\n\n // draw_grid();\n\n draw_game_assets();\n\n pacman.update(isPacmanUp, isPacmanDown, isPacmanLeft, isPacmanRight);\n ghost.update(isGhostUp, isGhostDown, isGhostLeft, isGhostRight);\n\n pacman.display();\n ghost.display();\n\n score.run(pacman.xTile, pacman.yTile, ghost.xTile, ghost.yTile);\n\n popMatrix();\n }",
"@Override\n public void show() {\n player = new Player(game.getAssetManager().get(\"player.png\", Texture.class), world, new Vector2(1, 2));\n floor = new Floor(game.getAssetManager().get(\"floor.png\", Texture.class), world, new Vector2(0, 0 + 0.5f), 20f, 1f);\n hud = new HUD();\n\n stage.addActor(floor);\n stage.addActor(player);\n\n //TODO: AUTOGENERATE when the player goes up.\n platforms.clear();\n int ax = (int) (Math.random() * 5 + 0);\n platforms.add(new Platform(game.getAssetManager().get(\"platform.png\", Texture.class), world, new Vector2(ax, 3), 1.2f, 0.3f));\n for (int i = 3; i <= 25; i++) {\n\n int x, y;\n x = (int) (Math.random() * 4.5 + 0.5);\n y = ((int) (Math.random() * 3 + 1)) + i;\n\n while ((x < ax && x > ax + 1f) && (x > ax && x < ax - 1f)) {\n x = (int) (Math.random() * 4.5 + 0.5);\n }\n Gdx.app.log(\"kk\",x+\"x\"+y);\n platforms.add(new Platform(game.getAssetManager().get(\"platform.png\", Texture.class), world, new Vector2(x, y), 1f, 0.3f));\n ax = x;\n }\n\n for (Platform platform : platforms) {\n stage.addActor(platform);\n }\n\n stage.getCamera().position.set(cameraInitialPosition);\n stage.getCamera().update();\n\n playing = false;\n jumps = 0;\n lastPlatformTouched = 0;\n\n song.play();\n\n }",
"public void placeWormOnAgar()\n {\n for (int x = 0; x < Agar.GRID_SIZE.width; x++)\n {\n for (int y = 0; y < Agar.GRID_SIZE.height; y++)\n {\n agar.wormCells[x][y] = SectorDisplay.EMPTY_CELL_VALUE;\n }\n }\n agar.wormCells[headSegment.x][headSegment.y] = Agar.WORM_SEGMENT_VALUE;\n for (int i = 0; i < NUM_BODY_SEGMENTS; i++)\n {\n BodySegment segment = bodySegments[i];\n agar.wormCells[segment.x][segment.y] = Agar.WORM_SEGMENT_VALUE;\n }\n }",
"@Override\n public void renderGameObject() {\n Gdx.gl.glClearColor(1, 1, 1, 1);\n Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);\n\n //this is where we can actually display stuff on the screen\n batch.begin();\n\n batch.draw(new TextureRegion(background),100,100,100,100,200,200,1,1,0);\n\n batch.end();\n\n }",
"public Screen() {\n\t\tobjects = new ArrayList<>();\n\t\tsetVisible(false);\n\t}",
"public void render(){\n //this block is pre-loading 2 frames in\n BufferStrategy bs = this.getBufferStrategy();\n if(bs == null){\n this.createBufferStrategy(2);\n return;\n }\n\n Graphics g = bs.getDrawGraphics();\n Graphics2D g2d = (Graphics2D) g;\n ///////////////////////////\n //Draw things below here!\n g.setColor(Color.white);\n g.fillRect(0, 0, 800, 800);\n\n g2d.translate(-camera.getX(), -camera.getY());\n\n g.setColor(Color.gray);\n g.fillRect(0, 0, 500, 500);\n //render all the objects\n handler.render(g);\n\n //g2d.translate(camera.getX(), camera.getY());\n //Draw things above here!\n ///////////////////////////\n g.dispose();\n bs.show();\n }",
"@Override\n public void doRender(float delta) {\n if(showWindow) {\n drawTexture(background.getTexture(), marginX, marginY, windowWidth, windowHeigth);\n batch.draw(cursor, origin.x + cursorOriginX + SIZE * cursorPosX, origin.y + cursorOriginY - SIZE * cursorPosY);\n\n\n int iX = 0;\n int iY = 0;\n for (Item item : OverworldScreen.manager.getPlayer().itemList) {\n item.render(cursorOriginX + iX * SIZE, cursorOriginY - iY*SIZE, origin, batch);\n iX++;\n if(iX > maxItemX){\n iX = 0;\n iY++;\n }\n }\n }\n\n\n }",
"private void startingScreen() {\n screenWithGivenValues(-1,-2,1,2,3,-1,0);\n }",
"public void setup(double screenWidth, double screenHeight) {\n setup = true;// the ball can finally be fully constructed\n setCenter(screenWidth / 2, screenHeight / 2);// the ball starts in the center of the screen\n this.screenWidth = screenWidth;\n this.screenHeight = screenHeight;\n crushed=false;\n }",
"public void setPosition(Point position){\r\n this.position.set(position.x, position.y);\r\n\r\n this.shadow.setPosition(position);\r\n this.surface.setPosition(position);\r\n this.shading.setPosition(position);\r\n\r\n\r\n this.setBounds(new Rect(\r\n this.position.x - this.radius,\r\n this.position.y - this.radius,\r\n this.position.x + this.radius,\r\n this.position.y + this.radius\r\n ));\r\n \r\n }",
"public void display() {\r\n \tsetLocation((int)parent.getLocationOnScreen().getX() + (parent.getWidth()/2) - (getWidth()/2), (int)parent.getLocationOnScreen().getY() + (parent.getHeight()/2) - (getHeight()/2));\r\n \tsetVisible(true);\r\n }",
"public void move(){\n\t\t\tbx += (int)movex;\n\t\t\tby += (int)movey;\n\t\t\tthis.setBounds((int)bx,(int)by,10,10);\n\n\t\t\t\n\t\t}",
"private void render()\n\t{\n\t\ttheta = (float) (velocity.heading() + Math.toRadians(90.0));\n\n\t\t// se baser sur le temps écoulé depuis le lancement\n\t\tf = parent.frameCount / 4;\n\t\tint fi = f + 1;\n\t\tfloat x = fi % DIM * W;\n\t\tfloat y = fi / DIM % DIM * H;\n\n\t\tparent.pushMatrix();\n\t\tparent.translate(location.x, location.y);\n\t\tparent.rotate(theta);\n\t\tparent.beginShape();\n\t\tparent.texture(spritesheet);\n\t\tparent.vertex(0, 0, x, y);\n\t\tparent.vertex(100, 0, x + W, y);\n\t\tparent.vertex(100, 100, x + W, y + H);\n\t\tparent.vertex(0, 100, x, y + H);\n\t\tparent.endShape();\n\t\tparent.popMatrix();\n\t}",
"void addBallObject() {\n\t\tint ballObjectHeight = ScreenManager.getSizeFromPercentageOfWindowY((float) 10.0);\n\t\tint ballObjectWidth = ballObjectHeight;\n\t\t\n\t\t// Spawning BallObject on the racket\n\t\tint ballObjectX = (int) (racketObject.getX() + (racketObject.width/4.0));\n\t\tint ballObjectY = (int) racketObject.getY() - ballObjectHeight;\n\t\t\n\t\t// BallObject's mass\n\t\tfloat ballObjectMass = (float) 1.075;\n\t\t\n\t\t// Ball velocity X\n\t\tint ballObjectDistanceFromRacketX = -35*(racketObject.getCenterOfWidth() - mouseX);\n\t\tint ballObjectVelocityX = (int) ballObjectDistanceFromRacketX/ScreenManager.getWindowWidth();\n\t\t\n\t\t// Ball velocity Y\n\t\tint ballObjectDistanceFromRacketY = (int) (-35*((racketObject.getY() + racketObject.getHeight()) - mouseY));\n\t\tint ballObjectVelocityY = (int) ballObjectDistanceFromRacketY/ScreenManager.getWindowHeight();\n\t\t\n\t\tballObjects.add(new BallObject(ballObjectX, ballObjectY, ballObjectWidth, ballObjectHeight, ballObjectGravity, ballObjectMass, ballObjectVelocityX, ballObjectVelocityY));\n\t\t\n\t\t// Reduces the amount of time left by 5 seconds\n\t\tMainPanel.gameDuration -= 5;\n\t}",
"private void hitGraphic(GObject element) {\r\n\t\tfor(int i = 0; i < 10; i++) {\r\n\t\t\telement.setVisible(true);\r\n\t\t\tmoveGame();\r\n\t\t\telement.setVisible(false);\r\n\t\t\tmoveGame();\r\n\t\t\telement.setVisible(true);\r\n\t\t}\r\n\t}",
"public GameWon()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(550, 600, 1); \n addObject(b1,275,250);\n addObject(b2,275,380);\n }",
"private void placeBomb() {\n\t\tint x = ran.nextInt(worldWidth);\n\t\tint y = ran.nextInt(worldHeight);\n\n\t\tif (!tileArr[x][y].hasBomb()) {\n\t\t\ttileArr[x][y].setBomb(true);\n\n\t\t\tindex.add(\"Index\" + x + \",\" + y); // ADDED COMPONENT\n\t\t\trevealed.put(index, true);\n\t\t\tindex.removeFirst();\n\n\t\t} else {\n\t\t\tindex.add(\"Index\" + x + \",\" + y); // ADDED COMPONENT\n\t\t\trevealed.put(index, false);\n\t\t\tindex.removeFirst();\n\t\t\tplaceBomb();\n\t\t}\n\n\t}",
"public gameWorld()\n { \n // Create a new world with 600x600 cells with a cell size of 1x1 pixels.\n super(600, 600, 1); \n \n addObject(new winSign(), 310, 300);\n addObject(new obscureDecorative(), 300, 400);\n addObject(new obscureDecorative(), 300, 240);\n \n for(int i = 1; i < 5; i++) {\n addObject(new catchArrow(i * 90), 125 * i, 100);\n }\n for (int i = 0; i < 12; i++) {\n addObject(new damageArrowCatch(), 50 * i + 25, 50); \n }\n \n \n //Spawning Interval\n\n if(timerInterval >= 10) {\n arrowNumber = Greenfoot.getRandomNumber(3);\n }\n if(arrowNumber == 0) {\n addObject(new upArrow(directionOfArrow[0], imageOfArrow[0]), 125, 590);\n arrowNumber = 5;\n }\n if(arrowNumber == 1) {\n addObject(new upArrow(directionOfArrow[1], imageOfArrow[1]), 125 * 2, 590);\n arrowNumber = 5;\n }\n if(arrowNumber == 2) {\n addObject(new upArrow(directionOfArrow[2], imageOfArrow[2]), 125 * 3, 590);\n arrowNumber = 5;\n }\n if( arrowNumber == 3) {\n addObject(new upArrow(directionOfArrow[3], imageOfArrow[3]), 125 * 4, 590);\n arrowNumber = 5;\n }\n \n \n\n \n }",
"public void insert (\n Node object\n ) {\n\n Bounds objectBounds = object.getBoundsInLocal();\n\n if (LOGGER.isLoggable (Level.FINER)) {\n LOGGER.finer (\"Inserting object with center (x,y,z) = \" +\n objectBounds.getCenterX() + \",\" +\n objectBounds.getCenterY() + \",\" +\n objectBounds.getCenterZ() +\n \" and (w,h,d) = \" +\n objectBounds.getWidth() + \",\" +\n objectBounds.getHeight() + \",\" +\n objectBounds.getDepth());\n } // if\n\n insert (object, objectBounds, objectBounds.getCenterX(),\n objectBounds.getCenterY(), objectBounds.getCenterZ());\n\n }",
"private void addWalls() {\n wallList.add(new RectF(0, 0, wallSize, screenHeight / 2 - doorSize));\n wallList.add(new RectF(0, screenHeight / 2 + doorSize, wallSize, screenHeight));\n wallList.add(new RectF(0, 0, screenWidth / 2 - doorSize, wallSize));\n wallList.add(new RectF(screenWidth / 2 + doorSize, 0, screenWidth, wallSize));\n wallList.add(new RectF(screenWidth - wallSize, 0, screenWidth, screenHeight / 2 - doorSize));\n wallList.add(new RectF(screenWidth - wallSize, screenHeight / 2 + doorSize, screenWidth, screenHeight));\n wallList.add(new RectF(0, screenHeight - wallSize, screenWidth / 2 - doorSize, screenHeight));\n wallList.add(new RectF(screenWidth / 2 + doorSize, screenHeight - wallSize, screenWidth, screenHeight));\n }",
"public void render(int x, int y, Screen screen) {\n }",
"private void placeFood(final Food food, final LevelObject object)\r\n {\r\n //place food right above container\r\n food.setY(object.getY() - food.getHeight());\r\n\r\n //no longer drop so stop velocity\r\n food.resetVelocity();\r\n\r\n //reset food parts\r\n food.resetDrop();\r\n }",
"public void startGame() {\n\t\ttank1.create(20, 530, 0, 0);\n\t\ttank1.setDefaults();\n\t\ttank2.create(960, 530, 0, 0);\n\t\ttank2.setDefaults();\n\t\tobjects.add(tank1);\n\t\tobjects.add(tank2);\n\t\tground = new Groundmod2((int) (Math.random() * 4));\n\t\tturn = Turn.PLAYER1;\n\t\tgrabFocus();\n\t}",
"public void startGame() throws SlickException\n {\n //Add the object pickers to the screen. \n GameManager gameManager = GameManager.getInstance();\n ResourceManager resourceManager = ResourceManager.getInstance();\n \n this.horizontalPicker = resourceManager.getImage(UsableActorContainer.HORIZONTAL_PICKER_IMAGE_FILE_PATH);\n this.verticalPicker = resourceManager.getImage(UsableActorContainer.VERTICAL_PICKER_IMAGE_FILE_PATH);\n \n // Add the objects for every player.\n int playerCount = 0; \n \n for( Player player : gameManager.getPlayers() )\n {\n if( player instanceof MousePlayer || player instanceof TouchPlayer )\n {\n UsableActor actor;\n Point2D.Double locationInsideContainer;\n \n // Initialize cookie. \n if( UsableActorContainer.PICKER_DRAWN_HORIZONTAL[ playerCount ] )\n {\n locationInsideContainer = new Point2D.Double((UsableActorContainer.PICKER_START_PIXELS_X[playerCount]+UsableActorContainer.IMAGE_OFFSET), UsableActorContainer.PICKER_START_PIXELS_Y[playerCount] + UsableActorContainer.IMAGE_OFFSET);\n }\n else\n {\n locationInsideContainer = new Point2D.Double((UsableActorContainer.PICKER_START_PIXELS_X[playerCount]+UsableActorContainer.IMAGE_OFFSET), UsableActorContainer.PICKER_START_PIXELS_Y[playerCount] + UsableActorContainer.IMAGE_OFFSET);\n }\n \n /*\n actor = player.getObject( PlayerObject.COOKIE );\n actor.setIsOnMap( Boolean.FALSE );\n actor.setLocationInsideActorContainer( locationInsideContainer );\n gameManager.getMap().addUsableActor( actor );\n */\n \n Cookie cookie = new Cookie( player, Boolean.FALSE );\n cookie.init();\n cookie.setLocationInsideActorContainer( locationInsideContainer );\n this.cookies.add( cookie );\n \n // Initialize whistle.\n if(UsableActorContainer.PICKER_DRAWN_HORIZONTAL[playerCount])\n {\n locationInsideContainer = new Point2D.Double((UsableActorContainer.PICKER_START_PIXELS_X[playerCount]+UsableActorContainer.IMAGE_OFFSET + UsableActorContainer.HORIZONTAL_PICKER_PIXEL_DIFFERENCE_NEXT_OBJECT_X), UsableActorContainer.PICKER_START_PIXELS_Y[playerCount] + UsableActorContainer.IMAGE_OFFSET + UsableActorContainer.HORIZONTAL_PICKER_PIXEL_DIFFERENCE_NEXT_OBJECT_Y);\n }\n else\n {\n locationInsideContainer = new Point2D.Double((UsableActorContainer.PICKER_START_PIXELS_X[playerCount]+UsableActorContainer.IMAGE_OFFSET + UsableActorContainer.VERTICAL_PICKER_PIXEL_DIFFERENCE_NEXT_OBJECT_X), UsableActorContainer.PICKER_START_PIXELS_Y[playerCount] + UsableActorContainer.IMAGE_OFFSET + UsableActorContainer.VERTICAL_PICKER_PIXEL_DIFFERENCE_NEXT_OBJECT_Y);\n }\n \n /*\n actor = player.getObject( PlayerObject.WHISTLE );\n actor.setIsOnMap( Boolean.FALSE );\n actor.setLocationInsideActorContainer( locationInsideContainer );\n gameManager.getMap().addUsableActor( actor );\n */\n \n Whistle whistle = new Whistle( player, Boolean.FALSE );\n whistle.init();\n whistle.setLocationInsideActorContainer( locationInsideContainer );\n this.whistles.add( whistle );\n }\n \n playerCount++;\n } \n }",
"public void populate() { \n \n // make some grounds\n ground1 = new Body(world, PolygonShape.makeBox(100, 5), Body.Type.STATIC);\n ground1.setPosition(new Vec2(-380, -200));\n \n Body ground2 = new Body(world, PolygonShape.makeBox(100, 5), Body.Type.STATIC);\n ground2.setPosition(new Vec2(-0, -200));\n\n Body ground3 = new Body(world, PolygonShape.makeBox(100, 5), Body.Type.STATIC);\n ground3.setPosition(new Vec2(300, -100));\n \n // make a moving platform \n Body movingPlatform = new SlidingPlatform(world, PolygonShape.makeBox(100, 5), new Vec2(130, 0), 2);\n movingPlatform.setPosition(new Vec2(-260, -150));\n \n // make some bottles\n Bottle bottle1 = new Bottle(game);\n bottle1.putOn(ground1);\n bottle1.setName(\"bottle1\");\n \n Bottle bottle2 = new Bottle(game);\n bottle2.putOn(ground2);\n bottle2.setName(\"bottle2\");\n \n Bottle bottle3 = new Bottle(game);\n bottle3.putOn(ground3);\n bottle3.setName(\"bottle3\");\n \n // show dialog with information about level\n JOptionPane.showMessageDialog(frame, \"Press N or M to throw bottles to kill Boxies.\", \"Level instructions:\", JOptionPane.PLAIN_MESSAGE);\n \n // make some boxies\n Boxy boxy1 = new Boxy(game);\n boxy1.setName(\"boxy1\");\n Vec2 vec1 = new Vec2(100, 0);\n boxy1.move(vec1);\n\n Boxy boxy2 = new Boxy(game);\n boxy2.setName(\"boxy2\");\n Vec2 vec2 = new Vec2(-100, 200);\n boxy2.move(vec2);\n\n Boxy boxy3 = new Boxy(game);\n boxy3.setName(\"boxy3\");\n Vec2 vec3 = new Vec2(-400, 200);\n boxy3.move(vec3);\n \n }",
"public void display() {\n push();\n noStroke();\n\n // creates the Box around the menus\n fill(backgroundColor); // light grey\n rect(0, 0, sidebarWidth, height);\n\n // for loops that draws each scenes icon\n for (int i = 0; i < sceneAmount; i++) {\n\n //checks the for loop has reach the icon for the current scene\n if (i == scene) {\n push();\n\n // Draws a rectancle in the place where the icon is gonna be\n fill(chosenColor); // light blue color\n rect(0, (i * height / sceneAmount ), sidebarWidth, height / sceneAmount);\n pop();\n }\n \n\n // Draws the icons one after the others with a determined distance between them\n image(sidebarLogos[i], 0, (i * height / sceneAmount ), sidebarWidth, height / sceneAmount);\n\n // if chosen scene draws glow effect ontop\n if (i == scene) {\n image(glow, 0, (i * height / sceneAmount ), sidebarWidth, height / sceneAmount);\n }\n }\n\n // draws shadow image ontop of all the icons\n image(shadow, 0, 0);\n pop();\n }",
"private void init() {\n display = new Display(title, getWidth(), getHeight()); \n Assets.init();\n player = new Player(getWidth() / 2 - 50, getHeight() - 50, 100, 30, this);\n rayo = new Rayo(getWidth() / 2 - 10, player.y - player.height , 10, 30, 0, 0, this);\n borrego = new Borrego(-80, 60 , 50, 20, 0, 0, this);\n generateEnemies();\n generateFortalezas();\n bombas= new ArrayList<Bomba>();\n \n \n display.getJframe().addKeyListener(keyManager);\n }",
"public void show() {\n\t\tsetLocation(\n\t\t\tgetOwner().getX() + (getOwner().getWidth() - getWidth()) / 2, \n\t\t\tgetOwner().getY() + (getOwner().getHeight() - getHeight()) / 2 );\n\n\t\tsuper.show();\n\t}",
"void updateScreen() {\n\t\tZone possibleNewZone = currentZone.getSpace(playerY, playerX).getNextZone();\n\t\tif (possibleNewZone != null) {\n\t\t\tString oldBGMusic = currentZone.getBackgroundMusic();\n\t\t\tcurrentZone = possibleNewZone;\n\t\t\tcurrentZone.enableZoneWarpSpaces();\n\t\t\tplayerX = currentZone.getPlayerStartX();\n\t\t\tplayerY = currentZone.getPlayerStartY();\n\t\t\t\n\n\t\t\tif (!oldBGMusic.equals(currentZone.getBackgroundMusic())) {\n\t\t\t\tmusicPlayer.stop();\n\t\t\t\tmusicPlayer.play(currentZone.getBackgroundMusic(), 100);\n\t\t\t}\n\t\t}\n\n\t\t// Update Panel Colors\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tfor (int a = 0; a < 10; a++) {\n\t\t\t\tpanels[i][a].setBackground(currentZone.getSpace(i, a).getColor());\n\t\t\t}\n\t\t}\n\n\t\t// Update Labels\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tfor (int a = 0; a < 10; a++) {\n\n\t\t\t\tlabels[i][a].setIcon(currentZone.getSpace(i, a).getPic());\n\t\t\t}\n\t\t}\n\t\t// Shows player in the new space\n\t\tlabels[playerY][playerX].setIcon(playerPic);\n\n\t\t// Shows enemy in the new space\n\t\t// labels[enemyY][enemyX].setIcon(enemyPic);\n\t}",
"public void Init(){\n\t\trequestFocus();\n\t\tBufferedImageLoader loader = new BufferedImageLoader();\t\t// Class to load images\n\t\ttry {\n\t\t\tBackGround = loader.loadImage(\"/Scroll Small.png\");\t\t// Load background\n\t\t} catch (IOException e) {e.printStackTrace();}\n\t\t\n\t\ttext = new Text(this);\n\t\tren = new Render(screenHeight, screenWidth);\n\t\titems = ItemManager.getInstance();\n\t\tmon = MonsterManager.getInstance(this, text);\n\t\trooms = RoomManager.getInstance(items, mon);\n\t\trep = new Reponses(this, text, rooms);\n\t\tthis.addKeyListener(new KeyInput(this, mon));\t\t\t\t// Keyboard input\n\t\tthis.addMouseListener(new MouseInput(this, text, screenHeight, screenWidth)); // Mouse input\n\t\t\n\t\troom = rooms.x2y3;\t\t\t\t// Set starting location\n\t\t\n\t\trender(); render(); render();\t// Render screen\n\t}",
"private void createWalls() {\n int environmentWidth = config.getEnvironmentWidth();\n int environmentHeight = config.getEnvironmentHeight();\n // Left\n Double2D pos = new Double2D(0, environmentHeight / 2.0);\n Double2D v1 = new Double2D(0, -pos.y);\n Double2D v2 = new Double2D(0, pos.y);\n WallObject wall = new WallObject(physicsWorld, pos, v1, v2);\n drawProxy.registerDrawable(wall.getPortrayal());\n\n // Right\n pos = new Double2D(environmentWidth, environmentHeight / 2.0);\n wall = new WallObject(physicsWorld, pos, v1, v2);\n drawProxy.registerDrawable(wall.getPortrayal());\n\n // Top\n pos = new Double2D(environmentWidth / 2.0, 0);\n v1 = new Double2D(-pos.x, 0);\n v2 = new Double2D(pos.x, 0);\n wall = new WallObject(physicsWorld, pos, v1, v2);\n drawProxy.registerDrawable(wall.getPortrayal());\n\n // Bottom\n pos = new Double2D(environmentWidth / 2.0, environmentHeight);\n wall = new WallObject(physicsWorld, pos, v1, v2);\n drawProxy.registerDrawable(wall.getPortrayal());\n }",
"@Override\n public void show() {\n stage = new Stage(new FitViewport(game.SCREEN_WIDTH, game.SCREEN_HEIGHT), batch);\n Gdx.input.setInputProcessor(stage);\n\n background = game.getAssetManager().get(\"startscreen.png\");\n bgViewPort = new StretchViewport(game.SCREEN_WIDTH, game.SCREEN_HEIGHT);\n\n fonts = new Fonts();\n fonts.createSmallestFont();\n fonts.createSmallFont();\n fonts.createMediumFont();\n fonts.createLargeFont();\n fonts.createTitleFont();\n\n createButtons();\n }",
"public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 400, 1); \n \n Player player = new Player();\n Point point0 = new Point();\n Point point1 = new Point();\n Point point2 = new Point();\n Point point3 = new Point();\n Point point4 = new Point();\n Danger danger0 = new Danger();\n Danger danger1 = new Danger();\n addObject(player, getWidth()/2, getHeight()/2);\n \n addObject(point0,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point1,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point2,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point3,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(point4,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n \n addObject(danger0,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n addObject(danger1,Greenfoot.getRandomNumber(getWidth()),Greenfoot.getRandomNumber(getHeight()));\n }",
"public void render() {\n int pixel = getPixelSize();\n for (int xx = x; xx<x+w; xx += pixel) {\n for (int yy = y; yy<y+h; yy += pixel) {\n Location next = getLocation(xx, yy);\n if (next != null) { // This way if a wall is spawned at the edge it's ok\n next.setColor(color(255,255,255));\n next.setType(LocationType.WALL);\n getGridCache().add(next);\n }\n }\n }\n }",
"private void placeRobot(List<String> args) {\n int x;\n int y;\n Position.Direction direction;\n\n try {\n x = Integer.parseInt(args.get(0));\n y = Integer.parseInt(args.get(1));\n direction = Position.Direction.valueOf(args.get(2));\n } catch (NumberFormatException e) {\n System.out.println(\"x and y accept only numbers\");\n return;\n } catch (IllegalArgumentException e) {\n System.out.println(args.get(2) + \" looks an unsupported direction\");\n return;\n }\n\n if(x >= lowerBound.getX() && y >= lowerBound.getY() &&\n x <= upperBound.getX() && y <= upperBound.getY() ) {\n currentPosition.setX(x);\n currentPosition.setY(y);\n currentPosition.setDirection(direction);\n } else {\n System.out.println(\"Cannot position the robot outside the table\");\n }\n }",
"public void go() {\n update();\n borders();\n render();\n }",
"public GalaxyScreen(ProjectSurvival game){\n super();\n this.game = game;\n backGroundTexture = new Texture(Gdx.files.internal(\"images/GalaxyScreenBackground.jpg\"));\n backgroundSprite = new Sprite(backGroundTexture);\n dragonCurve1 = DragonCurveGenerator.generateDragonCurve(Const.WORLD_WIDTH, Const.WORLD_HEIGHT, RECURSIONS, new Vector2(5, 0));\n dragonCurve2 = DragonCurveGenerator.generateDragonCurve(Const.WORLD_WIDTH, Const.WORLD_HEIGHT, RECURSIONS, new Vector2(-5, 0));\n dragonCurve3 = DragonCurveGenerator.generateDragonCurve(Const.WORLD_WIDTH, Const.WORLD_HEIGHT, RECURSIONS, new Vector2(0, 5));\n dragonCurve4 = DragonCurveGenerator.generateDragonCurve(Const.WORLD_WIDTH, Const.WORLD_HEIGHT, RECURSIONS, new Vector2(0, -5));\n myCamera = new MyCamera(game);\n ab = new ActionButton(game, batch, renderer, new Vector2(1400, 30), new Vector2(300, 15), \"Return to Observatory\");\n origins = new ArrayList<Vector2>();\n destinations = new ArrayList<Vector2>();\n layout = new GlyphLayout();\n generator = new FreeTypeFontGenerator(Gdx.files.internal(\"fonts/goodTimes.ttf\"));\n parameter = new FreeTypeFontGenerator.FreeTypeFontParameter();\n parameter.size = 15;\n font = generator.generateFont(parameter);\n font.setColor(Color.WHITE);\n\n int nb = Integer.parseInt(GameScreen.database.getOneData(\"SELECT Count(*) FROM Systems WHERE Description = 'May_welcome_life' \"));\n for(int i = 0; i<nb; i++){\n favouriteX.add(Float.parseFloat(GameScreen.database.getOneData(\"SELECT SystemX FROM Systems WHERE Description = 'May welcome life' ;\")));\n favouriteY.add(Float.parseFloat(GameScreen.database.getOneData(\"SELECT SystemY FROM Systems WHERE Description = 'May welcome life' ;\")));\n }\n }",
"public void display(GLAutoDrawable glDrawable) {\n\n cnt++;\n depth = (cnt/50)%6;\n\n if (cnt%60==0) {\n dalpha = -dalpha;\n dbeta = -dbeta;\n dgama = -dgama;\n }\n\n alpha += dalpha;\n beta += dbeta;\n gama += dgama;\n\n gl.glClear(GL.GL_COLOR_BUFFER_BIT|\n GL.GL_DEPTH_BUFFER_BIT);\n\n viewPort1();\n drawSolar(WIDTH, cnt, WIDTH/3, cnt);\n // the objects' centers are retrieved from above call\n\n viewPort2();\n drawSolar(WIDTH/4, cnt, WIDTH/12, cnt);\n\n viewPort3();\n drawSolar(WIDTH/4, cnt, WIDTH/12, cnt);\n\n viewPort4();\n drawRobot(O, A, B, C, alpha, beta, gama);\n\ttry {\n\t\tThread.sleep(10);\n\t} catch (Exception ignore) {\n\t}\n }",
"public void makeWindows()\r\n {\r\n int spacingX = random.nextInt( 3 ) + 3;\r\n int spacingY = random.nextInt( 5 ) + 3;\r\n int windowsX = random.nextInt( 3 ) + 4;\r\n int windowsY = random.nextInt( 3 ) + 5;\r\n int sizeX = ( building.getWidth() - spacingX * ( windowsX + 1 ) ) / windowsX;\r\n int sizeY = ( building.getHeight() - spacingY * ( windowsY + 1 ) ) / windowsY;\r\n \r\n \r\n for( int i = 1; i <= windowsX; i++ )\r\n {\r\n for( int k = 1; k <= windowsY; k++ )\r\n {\r\n \r\n Rectangle r = new Rectangle( building.getXLocation() + ( spacingX / 2 + spacingX * i ) + sizeX * ( i - 1 ), \r\n building.getYLocation() + ( spacingY / 2 + spacingY * k ) + sizeY * ( k - 1 ) );\r\n r.setSize( sizeX, sizeY );\r\n r.setColor( new Color( 254, 254, 34 ) );\r\n add( r );\r\n }\r\n }\r\n }",
"private void init() {\n setBackground(LIGHT_GRAY);\n Box layout = new Box(BoxLayout.Y_AXIS);\n\n jump = createButton(\"Jump\", null);\n exit = createButton(\"Exit!\", null);\n fly = createButton(\"Fly\", null);\n Jfloat = createButton(\"Float\", null);\n layout.add(Box.createRigidArea(new Dimension(0, 150)));\n layout.add(jump);\n layout.add(Box.createRigidArea(new Dimension(0, 25)));\n layout.add(Jfloat);\n layout.add(Box.createRigidArea(new Dimension(0, 25)));\n layout.add(fly);\n layout.add(Box.createRigidArea(new Dimension(0, 25)));\n layout.add(exit);\n add(layout);\n }",
"public void setStartPosition() {\n bounds.offsetTo((SanitizorGame.mSurfaceWidth - bounds.width()) / 2,\n SanitizorGame.mSurfaceHeight - (BOTTOM_PADDING + bounds.height()));\n }",
"@Override\n protected void initGame() {\n\n// entityBuilder()\n// .view(new Rectangle(64, 64, Color.BLUE))\n// .buildAndAttach();\n//\n// entityBuilder()\n// .at(getAppWidth() - 64, getAppHeight() - 64)\n// .view(new Rectangle(64, 64, Color.BLUE))\n// .buildAndAttach();\n//\n// entityBuilder()\n// .at(0, getAppHeight() / 2 - 32)\n// .view(new Rectangle(64, 64, Color.BLUE))\n// .with(new ProjectileComponent(new Point2D(1, 0), 150))\n// .buildAndAttach();\n }",
"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 }",
"public void init(){\n\t\tfor (int x=0;x<7;x++){\n\t\t\ttop[x]=0;\n\t\t\tfor(int y=0;y<6;y++){\n\t\t\t\tgrid[x][y]=0;\n\t\t\t}\n\t\t}\n\t\tbufferImage= createImage(350,500);\n\t\tbufferGraphic= bufferImage.getGraphics();\n\t\tGraphics g = bufferGraphic;\n\t\tpaint(g);\n\t\t\n\t\taddMouseListener(new MouseInputAdapter() { \n\t\t\tpublic void mouseClicked(MouseEvent e) {\t\t\t\n\t\t\t\tGraphics g = bufferGraphic;\n\t\t\t\tint x=e.getX();\n\t\t\t\tint y=e.getY();\n\t\t\t\t\n\t\t\t\t//check for placement, check for winner\n\t\t\t\tif( y<=400 && y>=100){\n\t\t\t\t\t\tmarkspot(x);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\n\t\t\t\n\t}",
"public void moveAndDraw(Graphics window)\r\n {\n Color temp = getColor();\r\n\t\tdraw(window, Color.WHITE);\r\n\t\tsetPos(getXSpeed()+xSpeed, getYSpeed()+ySpeed);\r\n\t\tdraw(window, temp);\r\n\t\t//setY\r\n\r\n\t\t//draw the ball at its new location\r\n }",
"public Stage1()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1200, 900, 1);\n \n GreenfootImage image = getBackground();\n image.setColor(Color.BLACK);\n image.fill();\n star();\n \n \n \n //TurretBase turretBase = new TurretBase();\n playerShip = new PlayerShip();\n scoreDisplay = new ScoreDisplay();\n addObject(scoreDisplay, 100, 50);\n addObject(playerShip, 100, 450);\n \n }",
"private void startGame() {\n\t\tfor (int j = 0; j< this.game_.getSaveBaby().size();j++){\n\t\t\tBabyBunnies b = this.game_.getSaveBaby().get(j);\n this.object_batch.begin();\n this.object_batch.draw(img_baby,b.getPosition().y,b.getPosition().x,150,150);\n this.object_batch.end();\n\t\t\tthis.pos=b.getPosition();\n\t\t}\n\n/**\n * Apparition du loup et mv\n * et reset de position quand il va trop loin\n */\n\t\tif ((this.game_.getNbBunnies()%10) == 0 && this.game_.getNbBunnies()!= 0 ){\n\t\t\tthis.game_.hunt(this.pos);\n this.object_batch.begin();\n this.object_batch.draw(wolf,this.game_.getWolf().getPosition().y,this.game_.getWolf().getPosition().x,150,150);\n this.object_batch.end();\n\t\t\tthis.game_.getWolf().move(this.game_.getNbBunnies()/10);\n Gdx.app.log(\"wolf\",\"pos lapon \"+this.game_.getSaveBaby().get(0).getPosition());\n Gdx.app.log(\"wolf\",\"pos du loup \"+this.game_.getWolf().getPosition());\n\t\t}\n\t\tif (this.game_.getWolf().getPosition().y>=width || this.game_.getWolf().getPosition().y<0){\n\t\t\tthis.game_.getWolf().restPost();\n\t\t}\n\n/**\n * Check + mv accelerometre\n */\n\t\tif (this.isOnAccelerometer) {\n\t\t\tif (this.mvX < 0 ){\n this.mvX=height;\n\t\t\t}\n\t\t\tif (this.mvY < 0) {\n this.mvY = width;\n\t\t\t}\n\t\t\tif (this.mvX >height){\n this.mvX=0;\n\t\t\t}\n\t\t\tif (this.mvY> width){\n this.mvY = 0;\n\t\t\t}\n\n this.mvX +=-Gdx.input.getAccelerometerX()*1.50;\n this.mvY += Gdx.input.getAccelerometerY()*2.50;\n\t\t\tthis.game_.getBunnyHood().setPosition((int)(mvX),(int)(mvY));\n\t\t\tcollision();\n this.player_batch.begin();\n this.player_batch.draw(this.img_bunnyHood,this.game_.getBunnyHood().getPosition().y,this.game_.getBunnyHood().getPosition().x,200,200);\n this.player_batch.end();\n\n\t\t\tGdx.app.log(\"Score\",Integer.toString(this.game_.getNbBunnies()));\n\n\t\t}\n\t}",
"public StartScreen()\n { \n // Create a new world with 1111x602 cells with a cell size of 1x1 pixels.\n super(1111, 602, 1); \n prepare();\n background.playLoop();\n }",
"public void setPosicao() {\n Dimension d = this.getDesktopPane().getSize();\n this.setLocation((d.width - this.getSize().width) / 2, (d.height - this.getSize().height) / 2);\n }",
"public void Display() \n {\n float theta = velocity.heading() + PI/2;\n fill(175);\n stroke(0);\n pushMatrix();\n translate(pos.x,pos.y);\n rotate(theta);\n beginShape();\n vertex(0, -birdSize*2);\n vertex(-birdSize, birdSize*2);\n vertex(birdSize, birdSize*2);\n endShape(CLOSE);\n popMatrix();\n }",
"public void place(Object animal, int row, int column) {\n place(animal, new Position(row, column));\n }",
"void loopy() {\n if (position.y < -50) {\n position.y = Constants.height + 50;\n } else\n if (position.y > Constants.height + 50) {\n position.y = -50;\n }\n if (position.x< -50) {\n position.x = Constants.width +50;\n } else if (position.x > Constants.width + 50) {\n position.x = -50;\n }\n }"
] | [
"0.70836294",
"0.6977105",
"0.690568",
"0.67607284",
"0.6539021",
"0.6526423",
"0.64949274",
"0.6481255",
"0.63064516",
"0.6304051",
"0.6290051",
"0.6289377",
"0.6275484",
"0.6264166",
"0.6263702",
"0.6231835",
"0.6223868",
"0.62135696",
"0.61958784",
"0.61855197",
"0.61422765",
"0.6123003",
"0.6109714",
"0.610046",
"0.60555637",
"0.6033348",
"0.60032415",
"0.59982556",
"0.59958863",
"0.59721756",
"0.5947895",
"0.59441006",
"0.59402233",
"0.5931725",
"0.59308136",
"0.59090716",
"0.5895668",
"0.5883123",
"0.5844772",
"0.5797217",
"0.57963675",
"0.57717836",
"0.5767579",
"0.57614726",
"0.57510495",
"0.5746083",
"0.5745876",
"0.5745314",
"0.57437974",
"0.5736397",
"0.57330334",
"0.5726172",
"0.5723211",
"0.5715189",
"0.5707904",
"0.5706716",
"0.57033867",
"0.5702064",
"0.5689336",
"0.56877303",
"0.568444",
"0.56822306",
"0.56761104",
"0.56738657",
"0.56671673",
"0.5664857",
"0.56542534",
"0.56538355",
"0.56436646",
"0.56364715",
"0.5635841",
"0.5634289",
"0.5632093",
"0.56320834",
"0.5632027",
"0.5630675",
"0.5628042",
"0.56260955",
"0.56250465",
"0.56213444",
"0.56187284",
"0.5617778",
"0.56172436",
"0.56170416",
"0.5616367",
"0.56054187",
"0.5602952",
"0.5597536",
"0.5593565",
"0.5593157",
"0.5589367",
"0.55883956",
"0.5587917",
"0.55857337",
"0.5583236",
"0.5583217",
"0.5579902",
"0.55699974",
"0.5562595",
"0.5560819",
"0.55579704"
] | 0.0 | -1 |
Process action from submit button | protected void processAction(Event e) {
// First check to see if the fields are empty.
if (typeNameTF.getText().isEmpty() || unitsTF.getText().isEmpty() || unitMeasureTF.getText().isEmpty()
|| validityDaysTF.getText().isEmpty() || reorderPointTF.getText().isEmpty()
|| notesTF.getText().isEmpty())
messageLBL.setText("All Item Type data must be filled");
else if(!isInt(unitsTF.getText())) {
messageLBL.setText("Units must be an integer.");
}
else if(!isInt(validityDaysTF.getText())) {
messageLBL.setText("Validity days must be an integer.");
}
else if(!isInt(reorderPointTF.getText())) {
messageLBL.setText("Reorder point must be an integer.");
}
// Then check to see if it is the submit button.
else if (e.getSource() == submitBTN)
addInventoryItemType();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tbtnSubmit_click(e);\n\t\t\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n if (e.getSource() == submit) {\n int score = answerCheck();\n try {\n Submit submitButton = new Submit(userid, user.getText(), totalScore.getText(), score);\n setVisible(false);\n } catch (SQLException ex) {\n Logger.getLogger(Play.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }",
"public void onClick(ClickEvent event) {\r\n System.out.println(\"Submit Button geklickt\");\r\n handleEvent();\r\n }",
"public static void pressSubmit(){\n DriverManager.driver.findElement(Constans.SUBMIT_BUTTON_LOCATOR).click();\n }",
"public void clickSubmitButton(){\n actionsWithOurElements.clickOnElement(buttonSubmit);\n }",
"public void submit() {\n driver.findElement(SUBMIT_SELECTOR).click();\n }",
"public void clickOnSubmit() {\r\n\r\n\t\treportStep(\"About to click on Submit button \", \"INFO\");\r\n\r\n\t\tif(clickAfterWait(submitButton)) {\r\n\r\n\t\t\treportStep(\"Successfully clicked on the Submit button \", \"PASS\");\r\n\r\n\t\t}else {\r\n\t\t\tclickAfterWait(submitButton);\r\n\t\t\treportStep(\"Failed to click on the Submit button \", \"INFO\");\r\n\r\n\t\t}\r\n\t}",
"public void performSubmit(Action action) {\n performSubmit(action, true);\n }",
"public static void click_SubmitButton() {\n\t\tboolean bstatus;\n\n\t\tbstatus = clickElement(btn_Submit);\n\t\tReporter.log(bstatus, \"Submit Button is clicked\", \"Submit Button not clicked\");\n\n\t\t\n\t}",
"public String submitText();",
"@Step\r\n\tpublic void clickSubmit() {\r\n\t\tLOGGER.info(\"Clicking submit\");\r\n\t\tspeedoSubmit.click();\r\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tSubmit();\n\t\t\t\tfinish(); \n\t\t\t}",
"public void submit_intsatpos(View button) {\n }",
"public void buttonClick(ClickEvent event) {\n fireEvent(new SubmitEvent(doneButton, SubmitEvent.SUBMITTED));\n \n // close popup window\n close();\n }",
"public void submit()\n\t{\n\t\tString trackCsv = trackCsvInput.getText();\n\t\tString trackName = trackNameInput.getText();\n\t\t\n\t\tRadioButton selectedButton = (RadioButton) toggleColors.getSelectedToggle();\n\t\tString color = selectedButton.getText().toUpperCase();\n\t\t\n\t\tif (addTrack(trackName, trackCsv, color)) \n\t\t{\n\t\t\tStage currStage = (Stage) trackCsvInput.getScene().getWindow();\n\t\t\tcurrStage.close();\n\t\t\tCTC.ctcController.displayTrack();\n\t\t\tCTC.ctcController.displayLegend();\n\t\t}\n\t\telse\n\t\t\terrorMessage.setVisible(true);\n\t}",
"private void setupSubmitButton() {\n\t\tImageIcon submit_button_image = new ImageIcon(parent_frame.getResourceFileLocation() + \"submit.png\");\n\t\tJButton submit_button = new JButton(\"\", submit_button_image);\n\t\tsubmit_button.setBorderPainted(false);\n\t\tsubmit_button.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t//only enable submitting if festival has finished to avoid delayed voice prompts\n\t\t\t\tif(parent_frame.getFestival().isLocked()){\n\t\t\t\t\tfeedback_display.append(\"\\tPlease submit after voice prompt has finished.\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tprocessAttempt(input_from_user.getText());\n\t\t\t\t}\n\t\t\t\tinput_from_user.requestFocusInWindow();//gets focus back to the spell here field\n\t\t\t}\n\t\t});\n\t\tsubmit_button.addMouseListener(new VoxMouseAdapter(submit_button,null));\n\t\tadd(submit_button);\n\t\tsubmit_button.setBounds(32, 598, 177, 100);\n\t}",
"public Submit_Button()\n\t\t\t{\n\t\t\t\tsuper(\"Submit\");\n\n\t\t\t\taddActionListener(new ActionListener()\n\t\t\t\t{\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t\t\t{\n\t\t\t\t\t\tloadText();\n\n\t\t\t\t\t\t// pass ssn input into patient instance to lookup tuple\n\t\t\t\t\t\tPatient p = new Patient(ssn);\n \n String result = p.search(selected_record_type);\n \n String[] values = result.split(\"\\n\");\n \n\t\t\t\t\t\t// create new instance of output panel to display result\n\t\t\t\t\t\tdisplayNewRecordOutput(new Patient_Record_Output(values));\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}",
"@Override\n public void Submit() {\n }",
"public void actionPerformed(ActionEvent e) \r\n\t{\r\n\t\t//Checks which button is pressed and calls the relevant method\r\n\t\tif (e.getSource() == nextQuestionButton)\r\n\t\t{\r\n\t\t\tfetchNewQuestion();\r\n\t\t}\r\n\t\telse if (e.getSource() == submitAnswerButton)\r\n\t\t{\r\n\t\t\tcheckAnswer();\r\n\t\t}\r\n\t}",
"public void selectSubmitButton() {\n\t\tel = Browser.getDriver().findElement(element_submit_button);\n\t\tuihelper.click(el);\n\t}",
"public void clickSubmitOnly() {\r\n\t\tutilities.clickOnElement(btnSubmit);\r\n\t}",
"public void submitText() {\r\n \t\tthis.dialog.clickOK();\r\n \t}",
"@When(\"^Click's on Submit Button$\")\n\tpublic void click_s_on_Submit_Button() throws Throwable {\n\t\treviewPageObjects.clickonsubmit();\n\t}",
"private void btnSubmit_click(ActionEvent e) {\n\t\tString stuAnswer = \"\";\r\n\t\tif (rdoItemA.isSelected()) {\r\n\t\t\tstuAnswer = \"A\";\r\n\t\t}\r\n\t\tif (rdoItemB.isSelected()) {\r\n\t\t\tstuAnswer = \"B\";\r\n\t\t}\r\n\t\tif (rdoItemC != null) {\r\n\t\t\tif (rdoItemC.isSelected()) {\r\n\t\t\t\tstuAnswer = \"C\";\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (rdoItemD != null) {\r\n\t\t\tif (rdoItemD.isSelected()) {\r\n\t\t\t\tstuAnswer = \"D\";\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (!stuAnswer.isEmpty()) {\r\n\t\t\tExamItem bean = eiList.get(questionNO - 1);\r\n\r\n\t\t\tif (bean.getStuAnswer() == null || !bean.getStuAnswer().equalsIgnoreCase(stuAnswer)) {\r\n\t\t\t\tbean.setStuAnswer(stuAnswer);\r\n\t\t\t\tif (bean.getStdAnswer().equalsIgnoreCase(stuAnswer)) {\r\n\t\t\t\t\tbean.setMarkResult(1l);\r\n\t\t\t\t\tbean.setGainScore(bean.getStdScore());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tbean.setMarkResult(0l);\r\n\t\t\t\t\tbean.setGainScore(0l);\r\n\t\t\t\t}\r\n\t\t\t\texamItemService.update(bean);\r\n\t\t\t}\r\n\t\t}\r\n\t\tLong result = examItemService.countNull(pk.longValue());\r\n\t\tString message = \"\";\r\n\t\tif ((questionNum - result) > 0) {\r\n\t\t\tmessage = \"还有\" + (questionNum - result) + \"道题未写,确认交卷?\";\r\n\t\t} else {\r\n\t\t\tmessage = \"确认交卷?\";\r\n\t\t}\r\n\t\tint option = JOptionPane.showConfirmDialog(null, message, \"系统提示\", JOptionPane.YES_NO_OPTION);\r\n\t\tif (option == JOptionPane.YES_OPTION) {\r\n\t\t\tLong trueItem = examItemService.countTrue(pk.longValue());\r\n\t\t\tLong totalScore = eiList.get(0).getStdScore() * trueItem;\r\n\t\t\tExam exam = examService.load(pk.longValue());\r\n\t\t\texam.setTotalScore(totalScore);\r\n\t\t\texamService.update(exam);\r\n\t\t\tJOptionPane.showMessageDialog(null, \"考试结束,\" + totalScore + \"分\");\r\n\t\t\tif (listFrm != null) {\r\n\t\t\t\tlistFrm.setVisible(true);\r\n\t\t\t\tthis.dispose();\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}",
"public void dispatchSubmit(Action action) {\n this.handler.sendMessage(this.handler.obtainMessage(1, action));\n }",
"public void actionPerformed(ActionEvent e) {\r\n String command = e.getActionCommand();\r\n if (command.equals(\"OK\")) {\r\n if (validateData()) {\r\n validData = true;\r\n setVisible(false);\r\n int index = aggList.getSelectedIndex();\r\n if (index != 0) {\r\n TASKAggInfo agg = (TASKAggInfo)aggregators.elementAt(aggList.getSelectedIndex()-1);\r\n }\r\n }\r\n }\r\n else if (command.equals(\"Cancel\")) {\r\n setVisible(false);\r\n }\r\n }",
"private void btnSubmit_click(ActionEvent e) {\n\t\tString subjectName=txtSubjectName.getText();\n\t\tString STATUS=txtSTATUS.getText();\n\n\t\t//为空判断\n\t\tif(SysFun.isNullOrEmpty(subjectName)) {\n\t\t\tlblMsg.setText(\"提示:用户名不得为空!\");\n\t\t\treturn;\n\t\t}\n\t\tif(STATUS==null || STATUS.isEmpty()) {\n\t\t\tlblMsg.setText(\"提示:教室号不得为空!\");\n\t\t\treturn;\n\t\t}\n\t\t\n//\t\tLong or=0L;\n//\t\tif(rdoNo.isSelected()) {\n//\t\t\tor=0L;\n//\t\t}else if(rdoYes.isSelected()) {\n//\t\t\tor=1L;\n//\t\t}\n\n\t\tSubject item=subjectService.loadByName(subjectName);\n\t\t\n\t\tif(item!=null) {\n\t\t\tlblMsg.setText(\"提示:该管理员账号已存在!\");\n\t\t\treturn;\n\t\t}\n\t\tSubject bean=new Subject();\n\t\tbean.setSubjectName(subjectName);\n\t\tbean.setSTATUS(STATUS);\n\t\t\n\t\tLong result=0L;\n\t\tString errMsg=null;\n\t\ttry {\n\t\tresult=subjectService.insert(bean);\n\t\t}catch(Exception ex) {\n\t\t\terrMsg=ex.getMessage();\n\t\t}\n\t\t\n\t\tif(result>0) {\n\t\t\tJOptionPane.showMessageDialog(null, \"添加成功!\");\n\t\t\tif(subjectListFrm!=null) {\n\t\t\t\tsubjectListFrm.btnReset_click(null);\n\t\t\t\tsubjectListFrm.setVisible(true);\n\t\t\t}\n\t\t\tthis.dispose();\n\t\t}else {\n\t\t\tJOptionPane.showMessageDialog(null, \"添加失败!\");\n\t\t}\n\n\t\t\n\t\tif(subjectListFrm!=null) {\n\t\t\tsubjectListFrm.btnReset_click(null); \n\t\t\tsubjectListFrm.setVisible(true);\n\t\t}\n\t\tthis.dispose();\n\t}",
"public SelenideElement submitButton() {\n return formPageRoot().$(By.xpath (\"//button[@type='submit']\")); \n }",
"public void buttonClick(ClickEvent event) {\n\t\t\t\tif (!isProcessing) {\n\t\t\t\t\tisProcessing = saveOperacion(oItem, operacionConfirmForm);\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void onClick(View view) {\n if ( checkValidation () )\n submitForm();\n \n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(parent_frame.getFestival().isLocked()){\n\t\t\t\t\tfeedback_display.append(\"\\tPlease submit after voice prompt has finished.\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tprocessAttempt(input_from_user.getText());\n\t\t\t\t\tinput_from_user.requestFocusInWindow(); //gets focus back on the field\n\t\t\t\t}\n\t\t\t}",
"public void clickOnSubmitButton() throws FileNotFoundException, IOException, ParseException, InterruptedException\n\t{\n\t\twaitForVisibility(sbmnit);\n\t\tsbmnit.click();\n\t}",
"public void actionPerformed( ActionEvent ae )\n {\n if( ae.getSource() == sendButton )\n \tprocessMail(message);\n }",
"protected void onSubmitAction(IModel<StringWrapper> model, AjaxRequestTarget target, Form<?> form) {\n }",
"@WebElementLocator(webDesktop = \"//input[@type='submit']\",webPhone = \"//input[@type='submit']\")\n private static WebElement buttonSubmit() {\n return getDriver().findElement(By.xpath(new WebElementLocatorFactory().getLocator(LoginPage.class, \"buttonSubmit\")));\n }",
"@FXML\n private void _submitAnswer(ActionEvent _event) {\n Game currentGame = GameFactory.getCurrentGameInstance();\n currentGame.processAnswer(_answerInput.getText());\n Map<String, Object> data = currentGame.createMap();\n updateView(data);\n this._answerInput.setText(\"\");\n if (!currentGame.gameOver) {\n this._submitBtn.setDisable(true);\n this._nxtQuestion.setDisable(false);\n } else {\n this._submitBtn.setDisable(true);\n this._nxtQuestion.setDisable(true);\n }\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tfetchButton.setLabel(\"Fetching...\");\n\t\t\t\tsubmitConfigSubmissionRequest();\n\t\t\t\tfetchButton.setLabel(\"Fetch\");\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tuploadButton.setLabel(\"Uploading...\");\n\t\t\t\tsubmitConfiguration();\n\t\t\t\tuploadButton.setLabel(\"Upload\");\n\t\t\t}",
"public void actionPerformed(ActionEvent e)\n { /* actionPerformed */\n String\n cmd= e.getActionCommand();\n \n /* [1] see which button was pushed and do the right thing,\n * hide window and return default/altered data */\n if (cmd.equals(\" Cancel\") || cmd.equals(\"Continue\"))\n { /* send default data back - data is already stored into this.data */\n this.setVisible(false); /* hide frame which can be shown later */\n } /* send default data back */\n else\n if(cmd.equals(\"Ok\"))\n { /* hide window and return data back entered by user */\n data= textField.getText(); /* altered data returned */\n this.setVisible(false); /* hide frame which can be shown later*/\n }\n alertDone= true;\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tif(arg0.getActionCommand() == \"Submit selection\"){\n\t\t\tuserChoices.add(fpList.getFlightPlansList(modeLocal).get((int) flightPlanSpinner.getValue() - 1));\n\t\t\t// enter confirmation page if no return flight, otherwise call self?\n\t\t\tif(!isReturn && hasReturn){\n\t\t\t\tuserParams.SetReturnParams(userParams); // convert to return params\n\t\t\t\tnew SearchResultsGui(fpListArr, userChoices, true, 0, userParams);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tnew ConfirmationGui(userChoices);\n\t\t\t}\n\t\t\tdispose();\n\t\t}\n\t\telse if(arg0.getActionCommand() == \"Sort by Price\"){\n\t\t\tdispose();\n\t\t\tif(modeLocal == SORT_BY_PRICE_DESCENDING){\n\t\t\t\tmodeLocal = SORT_BY_PRICE_ASCENDING;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tmodeLocal = SORT_BY_PRICE_DESCENDING;\n\t\t\t}\n\t\t\tnew SearchResultsGui(fpListArr, userChoices, isReturn, modeLocal, userParams);\n\t\t}\n\t\telse if(arg0.getActionCommand() == \"Sort by Time\"){\n\t\t\tif(modeLocal == SORT_BY_TIME_DESCENDING){\n\t\t\t\tmodeLocal = SORT_BY_TIME_ASCENDING;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tmodeLocal = SORT_BY_TIME_DESCENDING;\n\t\t\t}\n\t\t\tnew SearchResultsGui(fpListArr, userChoices, isReturn, modeLocal, userParams);\n\t\t\tdispose();\n\t\t}\n\t}",
"public void actionPerformed (ActionEvent ae)\n {\n if (ae.getActionCommand().equals (\"Submit\"))\n {\n String name = nameField.getText();\n if (name.length() > 0)\n {\n HighScoreManager.scores.add (location,new HighScore (name,GameEngine.getLayoutAsString(),score));\n HighScoreManager.scores.remove (10);\n ((ActionListener)parent).actionPerformed (new ActionEvent (this, ActionEvent.ACTION_PERFORMED,\"Submit\"));\n }\n else\n {\n JOptionPane.showMessageDialog (this, \"You must input a name\", \"Name Error\", JOptionPane.ERROR_MESSAGE);\n }\n }\n }",
"@Then(\"user clicks submit button\")\n\tpublic void user_clicks_submit_button(){\n\t\t driver.findElement(By.name(\"sub\")).click();\n\t\t driver.findElement(By.xpath(\"//a[@href='addcustomerpage.php']\")).click();\n\t}",
"@FXML\n\tprivate void submitForm()\n\t{\n \tSystem.out.println(\"submitted\");\n \tsubmit.setDisable(true);\n \tif ( file_path.getText().isEmpty() )\n \t{\n \t\tfinal DirectoryChooser fileChooser = new DirectoryChooser(); \n \t\tStage stage = new Stage();\n \t\tstage.setTitle(\"Choose Directory\");\n \t\t\n \t\tFile folder = fileChooser.showDialog(stage);\n \t\toutput.openFile(folder.toString() + \"\\\\OverwatchGames.csv\");\n \t\tfile_path.setText(folder.toString() + \"\\\\OverwatchGames.csv\");\n \t}\n \telse\n \t{\n \t\tSystem.out.println(\"File Path: \" + file_path.getText());\n \t}\n \toutput.outputResults( mainApp.getPlayers(),\n \t\t\tmainApp.getHeros(), \n \t\t\tmainApp.getMap(), \n \t\t\tmainApp.getTimerList());\n \tsubmit.setDisable(false);\n\t}",
"@Override public void actionPerformed(java.awt.event.ActionEvent arg0) {\n\t\tJButton jb=new JButton();\n\t\t\n\t\tjb=(JButton) arg0.getSource();\n\t\t\n\t\t//TypeOfJob=jtxp1a.getText();\n\t\t\n\t\tif(jb==Submit)\n\t\t{\n\t\tTypeOfJob=(String) Kindofjobs.getSelectedItem();\n\t\tDescription=jtxp1b.getText();\n\t\t\n\t\tDatess=(String) Dates.getSelectedItem();\n\t\tMonthh=(String) Months.getSelectedItem();\n\t\t\n\t\n\t\tKindofjobs.setEnabled(false);\n\t\tjtxp1b.setEnabled(false);\n\t\tDates.setEnabled(false);\n\t\tMonths.setEnabled(false);\n\t\t\n\t\tAdd_Client(this);\n\n\n\t\tif(count==0)\n\t\t{\n\t\t\tcount++;\n\t\t\tcm1.Make_managerp();\n\t\t}\t\n\t\n\n\t}\n\n\t}",
"@Override\n public void actionPerformed(ActionEvent actionEvent) {\n String playerName=nameTextField.getText();\n String playerNumber=numberTextField.getText();\n String message=\"\";\n\n if(playerName.equals(\"\"))\n {\n message=\"the name field is empty! \\n\";\n }\n if(playerNumber.equals(\"\")||(Integer.parseInt(playerNumber)!=2&&(Integer.parseInt(playerNumber))!=3))\n {\n message+=\"Remember a game is composed by 2 or 3 players\";\n }\n if (actionEvent.getActionCommand().equals(\"submit\"))\n {\n Choice c=new PlayerNumberChoice(playerName,Integer.parseInt(playerNumber));\n view.setPlayerName(playerName);\n view.notify(c);\n submitButton.setEnabled(false);\n }\n else\n {\n JOptionPane.showMessageDialog(lobbyWindowFrame,message);\n }\n }",
"private void onClickSaveButton() {\n // Validate and save form\n if (mDynamicForm.validate()) {\n triggerSubmitForm(mDynamicForm.getForm().getAction(), mDynamicForm.save());\n }\n }",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString rs=\"<button>Clik here this was POST request</button>\";\n\t\tresp.getWriter().write(rs);\n\t}",
"protected void submitAction() {\n\t\ttry {\n\t\t\tString username = userField.getText();\n\t\t\tAbstractAgent loggedClient = parent.getAgent().login(username, new String(passField.getPassword()));\n\t\t\tif (loggedClient instanceof AdminMS) {\n\t\t\t\tAdminUI adminUI = new AdminUI((AdminMS) loggedClient);\n\t\t\t\tparent.setVisible(false);\n\t\t\t\tadminUI.run();\n\t\t\t} else if (loggedClient instanceof IUser) {\n\t\t\t\tUserUI userUI = new UserUI((IUser) loggedClient);\n\t\t\t\tparent.setVisible(false);\n\t\t\t\tuserUI.run();\n\t\t\t}\n\t\t\tif (loggedClient != null)\n\t\t\t\tparent.dispose();\n\t\t} catch (LoginException e) {\n\t\t\tmessageLabel.setText(e.getMessage());\n\t\t} catch (RemoteException e) {\n\t\t\tJOptionPane.showMessageDialog(parent, e);\n\t\t}\n\t}",
"private void displaySubmitButton() {\n RegularButton submitButton = new RegularButton(\"SUBMIT\", 1000, 600);\n submitButton.setOnAction(e -> handleSubmit());\n\n sceneNodes.getChildren().add(submitButton);\n }",
"@Override\n\t\t\tpublic void handle(ActionEvent arg0) {\n\t\t\t\tcon.setResult(btnName);\n\t\t\t}",
"@Override\r\n\tpublic ActionForward submit(ActionMapping mapping, BaseForm form,\r\n\t\t\tString operation, HttpServletRequest request,\r\n\t\t\tHttpServletResponse response) {\r\n\t\tAuditUtil.getInstance().writeLog(\r\n\t\t\t\tAuditUtil.FILE_TYPE_G4G,\r\n\t\t\t\tnew StringBuffer(this.getClass().getName()).append(\r\n\t\t\t\t\t\tG4GConstants.COLON_WITH_SPACES)\r\n\t\t\t\t\t\t.append(DataUtil.getCurrentMethod()).append(\r\n\t\t\t\t\t\t\t\tG4GConstants.DASHES).append(\r\n\t\t\t\t\t\t\t\tG4GConstants.SUBMIT_STARTS).toString());\r\n\t\treturn mapping.findForward(G4GConstants.HOMEPAGE);\r\n\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t\tif(e.getActionCommand().equals(\"cancel\")) {\n\t\t\tnew FrontPageController();\n\t\t\tview.dispose();\n\t\t} else if (e.getActionCommand().equals(\"video\")) {\n\t\t\tview.setMembershipType(1);\n\t\t} else if (e.getActionCommand().equals(\"music\")) {\n\t\t\tview.setMembershipType(2);\n\t\t} else if (e.getActionCommand().equals(\"tv\")) {\n\t\t\tview.setMembershipType(3);\n\t\t} else if (e.getActionCommand().equals(\"premium\")) {\n\t\t\tview.setMembershipType(4);\n\n\t\t\t//register button, uses model to perform verification and insert customer in DB\n\t\t} else {\n\t\t\tString fName = view.getfName().trim();\n\t\t\tString lName = view.getlName().trim();\n\t\t\tString mobile = view.getMobileNum().trim();\n\t\t\tint membership = view.getMembershipType();\n\t\t\tString cardNum = view.getCardNum().trim();\n\t\t\tString email = view.getEmail().trim();\n\n\t\t\tif(model.verifyCustomer(fName, lName, mobile, membership, cardNum, email)) {\n\t\t\t\tJOptionPane.showMessageDialog(this.view,\"Customer Successfuly Created!\");\n\t\t\t\tnew FrontPageController();\n\t\t\t\tview.dispose();\n\t\t\t};\n\t\t}\n\t}",
"public void performSubmit() {\n\t\tgetWrappedElement().submit();\n\t}",
"public void actionPerformed(ActionEvent e) {\r\n\r\n\tif (e.getActionCommand().equals(\"okButton\")) {\r\n\t try {\r\n\t\tString number = txtNumber.getText().toString();\r\n\t\tlogTrace(this.getClass().getName(), \"actionPerformed()\", new StringBuilder().append(\"Transfering to : \").append(number).append(\" Call id : \").append(callId).toString());\r\n\t\tif (checkAtleastOneNumber(number)) {\r\n\t\t procedureBlindTransfer(callId, number);\r\n\t\t setVisible(false);\r\n\t\t}\r\n\t\t\r\n\t } catch (InvalidGUIObjectException e1) {\r\n\t }\r\n\t} else if (e.getActionCommand().equals(\"cancelButton\")) {\r\n\t try {\r\n\t\tsetVisible(false);\r\n\t } catch (InvalidGUIObjectException e1) {\r\n\t }\r\n\t}\r\n\r\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tString string= request.getParameter(\"action\");\n\t\tif(string.equals(\"fileUpload\")) {\n\t\t\tfileUpload(request, response);\n\t\t}\n\t\telse if(string.equals(\"updateImformation\")) {\n\t\t\tupdateImformation(request, response);\n\t\t}\n\t\telse {\n\t\t\trequest.getRequestDispatcher(\"index.jsp\").forward(request, response);\n\t\t}\n\t}",
"void btnGenReport_actionPerformed(ActionEvent e) {\n JButtonQueryButtonAction(e);\r\n }",
"@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\tlogger.info(\"click rootstage's submit button\");\n\n\t\t\t\tScreensContainer container = new ScreensContainer();\n\t\t\t\tcontainer.registerScreen(ID_SHOWPROBLEM, file_showproblem);\n\t\t\t\tcontainer.registerScreen(ID_SUBMITCODE, file_submitcode);\n\n\t\t\t\tStage dialogStage = new Stage();\n\t\t\t\tdialogStage.setTitle(\"在线提交\");\n\t\t\t\tdialogStage.initModality(Modality.WINDOW_MODAL);\n\t\t\t\tdialogStage.initOwner(rootLayout.getScene().getWindow());\n\n\t\t\t\tScene scene = new Scene(container);\n\t\t\t\tdialogStage.setScene(scene);\n\t\t\t\tcontainer.setScreen(ID_SHOWPROBLEM);\n\n\t\t\t\tdialogStage.showAndWait();\n\n\t\t\t}",
"private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed\n controller.processModel(m1, input.getText());\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n if (e.getSource() == submit) {\n createDog();\n } else if (e.getSource() == goBack) {\n doggyDayCareGui.returnFromMakeDog();\n }\n }",
"public void ClickChecoutSubmitbutton(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Checkout Registration submit button should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\tclick(locator_split(\"btncheckoutregistrationsubmit\"));\r\n\t\t\tSystem.out.println(\"Checkout Registration submit button is clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Checkout Registration submit button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Checkout Registration submit button is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btncheckoutregistrationsubmit\").toString().replace(\"By.\", \" \")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}",
"@Override\r\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\tSaveAction();\r\n\t\t\t\r\n\t\t}",
"public WorkFlowResult processActionGradeSubmitAndEditAnotherVersion() {\n\tif (!AssignmentAuthoringBean.checkCsrf(csrfToken))\n return WorkFlowResult.INSTRUCTOR_FEEDBACK_FAILURE;\n\n WorkFlowResult saveResult = processActionGradeSubmit();\n if (WorkFlowResult.INSTRUCTOR_FEEDBACK_FAILURE.equals(saveResult)) {\n return WorkFlowResult.INSTRUCTOR_FEEDBACK_FAILURE;\n }\n WorkFlowResult togo = WorkFlowResult.INSTRUCTOR_FEEDBACK_SAVE_AND_EDIT_PREFIX;\n togo.setNextSubVersion(getNextVersionIdToEdit());\n return togo;\n }",
"private void submit() {\r\n\t\tassignTracked();\r\n\t\tBkitPoma.startLoading(constants.BkitPoma_startLoading_wating());\r\n\t\tpostSubmit();\r\n\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n if (e.getActionCommand() == \"查询\") {\n //String order = e.getActionCommand();\n try {\n new Inquiry(username);\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n //new Login(e.getActionCommand());\n } else if (e.getActionCommand() == \"存款\") {\n new SaveMoney(username);\n //new Login(e.getActionCommand());\n } else if (e.getActionCommand() == \"取款\") {\n new DrawMoney(username);\n } else if (e.getActionCommand() == \"转账\") {\n new Transfer(username);\n } else if (e.getActionCommand() == \"改密\") {\n new Modify(username);\n }\n else if (e.getActionCommand() == \"查询记录\") {\n new Test1();\n }\n else if (e.getActionCommand() == \"退卡\") {\n new Menu();\n // System.exit(0);\n }\n\n }",
"public void toggleSubmitButton(){\n switch (mSubmitButton.getText().toString()){\n case \"Submit\":\n mSubmitButton.setText(\"Next\");\n mSubmitButton.setOnClickListener(view -> recreate());\n break;\n case \"Next\":\n mSubmitButton.setText(\"Submit\");\n mSubmitButton.setOnClickListener(view -> mGameController.checkGuess());\n break;\n }\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n JButton button = (JButton) e.getSource();\n if (button.getText().toString().equals(\"OK\")) {\n this.dispose();\n }\n\n else {\n ip = null;\n this.dispose();\n }\n }",
"public void actionPerformed(ActionEvent e) {\n action.actionPerformed(e);\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n Object source = e.getSource();\n if (source == confirmButton) {\n var newResult = new Result(result, name.getText());\n try {\n newResult.saveResult();\n } catch (IOException ioException) {\n ioException.printStackTrace();\n }\n }\n }",
"@Override\n public void onClick(View v) {\n\n switch (v.getId()) {\n //Event click button 保存\n case R.id.btn_submit_edit_input:\n saveDataInputJanReturnMagazine();\n break;\n }\n\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tif (e.getActionCommand().equals(\"确定\"))\r\n\t\t\t\t\tonOK();\r\n\t\t\t\tif (e.getActionCommand().equals(\"取消\"))\r\n\t\t\t\t\tonCancel();\r\n\t\t\t\tif (e.getActionCommand().equals(\"应用\"))\r\n\t\t\t\t\tonApply();\r\n\t\t\t}",
"private void submit_attendance() {\n }",
"private void handleSubmitOnPre() {\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n String comando = e.getActionCommand();\n\n if (comando == \"Novo labirinto\")\n this.btnNovoLabirinto();\n else if (comando == \"Abrir labirinto\")\n this.btnAbrirLabirinto();\n else if (comando == \"Salvar labirinto\")\n this.btnSalvarLabirinto();\n else // comando==\"Executar labirinto\"\n this.btnExecutarLabirinto();\n }",
"abstract void botonEnviar_actionPerformed(ActionEvent e);",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n adaptee.btnIDSearch_actionPerformed(e);\r\n\t}",
"private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed\n controller.processModel(m2, input.getText());\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"public void onClick(View v) {\n\t\tswitch (v.getId()) {\r\n\t\tcase R.id.regist_sure: // 确认\r\n\t\t\tsubmit();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tsecuencia = button.getSecuencia();\r\n\t\tporcentaje = Float.parseFloat(button.getPorcentaje().getText());\r\n\t\tcorrect = false;\r\n\t\tif (button.getTypeN().isSelected()) {\r\n\t\t\ttype = 'n';\r\n\t\t} else {\r\n\t\t\ttype = 'p';\r\n\t\t}\r\n\r\n\t\twhile (correct) {\r\n\t\t\tif (button.getSecuencia() == null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tbutton.getResult().setText(\"No se ha introducido una secuencia\");\r\n\t\t\t\t\tcorrect = false;\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tSystem.out.print(\"Error en la pantalla: \" + e.toString());\r\n\t\t\t\t}\r\n\t\t\t} else if (button.getPorcentaje().getText() == null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tbutton.getResult().setText(\"No se ha introducido el porcentaje\");\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tSystem.out.print(\"Error en la pantalla: \" + e.toString());\r\n\t\t\t\t\tcorrect = false;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tcorrect = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (!correct) {\r\n\t\t\tBlastController bCnt = new BlastController();\r\n\t\t\ttry {\r\n\t\t\t\tString result = bCnt.blastQuery(type, dataBaseFile, dataBaseIndexes, (float) porcentaje, secuencia);\r\n\t\t\t\tbutton.printResult(result);\r\n\t\t\t} catch (Exception exc) {\r\n\t\t\t\tSystem.out.println(\"Error en la llamada: \" + exc.toString());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"public void actionPerformed(ActionEvent e) {\r\n\r\n if (identifier.intValue() == KeyEvent.VK_F3 || identifier.intValue() == KeyEvent.VK_ENTER) {\r\n btnSearch.doClick();\r\n }\r\n else if (identifier.intValue() == KeyEvent.VK_F12 || identifier.intValue() == KeyEvent.VK_ESCAPE) {\r\n btnCancel.doClick();\r\n }\r\n }",
"public void ClickMyAccountSubmitbutton(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- My Account Registration submit button should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\tclick(locator_split(\"btnMyAccountSubmit\"));\r\n\t\t\tSystem.out.println(\"Checkout Registration submit button is clicked\");\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- My Account Registration submit button is clicked\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- My Account Registration submit button is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"btnMyAccountSubmit\")\r\n\t\t\t\t\t+ \" not found\");\r\n\t\t}\r\n\r\n\t}",
"private void submitBtnActionPerformed(java.awt.event.ActionEvent evt) {\n correctQuiz();\n JOptionPane.showMessageDialog(null, \"You scored \" + score + \"/5\");\n f.saveScores(name, score);\n new Menu().setVisible(true);\n this.setVisible(false);\n this.dispose();\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent ev) {\n\t\tString command = ev.getActionCommand();\n\t\tif (command.equals(\"Enter\")) {\n\t\t\tshowResult();\n\t\n\t\t} else if (command.equals(\"Reset\")) {\n\t\t\treset();\n\t\t\t\n\t\t}\n\t\t\n\t}",
"public void submit(ActionEvent actionEvent) {\n if(checkFields()) {\n try {\n newStudent = new Student(firstName.getText(), lastName.getText(),birthday.getValue(),selectImage.getImage());\n activities();\n System.out.println(\"new student: \" + newStudent);\n studentList.add(newStudent);\n viewStudent(actionEvent);\n } catch (IllegalArgumentException | IOException e){\n errorDisplay.setText(e.getMessage());\n }\n }\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n handleAction();\n }",
"public boolean submitPerformed(SubmitEvent e) throws Exception {\r\n\t\tif (e.getComponent() == _addButton)\r\n\t\t\ttryAdd();\r\n\t\telse if (e.getComponent() == _saveButton)\r\n\t\t\tdoSave();\r\n\t\telse if (e.getComponent() == _cancelButton) {\r\n\t\t\ttryCancel();\r\n\t\t} else if (e.getComponent() == _deleteButton) {\r\n\t\t\ttryDelete();\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public abstract void onSubmit(String text);",
"public void submitButtonPushed() throws IOException {\n\n if (vehicleRegistration.getText().isEmpty() || driverLicense.getText().isEmpty()\n || insuranceProvider.getText().isEmpty() || insuranceNumber.getText().isEmpty()) {\n\n Validator.errorBox(\"Incorrect Info\",\n \"Please Enter Valid Information\");\n\n } else {\n\n Stage stage = main.MainLogin.getPrimaryStage();\n\n Parent signInParent = FXMLLoader.load(getClass()\n .getResource(\"/backgroundcheck/BackGroundCheck.fxml\"));\n\n stage.setScene(new Scene(signInParent));\n\n stage.show();\n }\n }",
"@FXML\n\t private void loadsubmit(ActionEvent event) {\n\t \t if (!isReadyForSubmission) {\n\t Alert alert = new Alert(Alert.AlertType.ERROR);\n\t alert.setTitle(\"Failed\");\n\t alert.setHeaderText(null);\n\t alert.setContentText(\"Please select a book to submit\");\n\t alert.showAndWait();\n\t return;\n\t }\n\n\t Alert alert = new Alert(Alert.AlertType.CONFIRMATION);\n\t alert.setTitle(\"Confirm Submission Operation\");\n\t alert.setHeaderText(null);\n\t alert.setContentText(\"Are you sure want to return the book ?\");\n\n\t Optional<ButtonType> response = alert.showAndWait();\n\t if (response.get() == ButtonType.OK) {\n\t String id = Bookid.getText();\n\t String ac1 = \"DELETE FROM ISSUE_LMS WHERE BOOKID = '\" + id + \"'\";\n\t String ac2 = \"UPDATE BOOK_LMS SET ISAVAIL = TRUE WHERE ID = '\" + id + \"'\";\n\n\t if (dbhandler.execAction(ac1) && dbhandler.execAction(ac2)) {\n\t Alert alert1 = new Alert(Alert.AlertType.INFORMATION);\n\t alert1.setTitle(\"Success\");\n\t alert1.setHeaderText(null);\n\t alert1.setContentText(\"Book Has Been Submitted\");\n\t alert1.showAndWait();\n\t } else {\n\t Alert alert1 = new Alert(Alert.AlertType.ERROR);\n\t alert1.setTitle(\"Failed\");\n\t alert1.setHeaderText(null);\n\t alert1.setContentText(\"Submission Has Been Failed\");\n\t alert1.showAndWait();\n\t }\n\t } else {\n\t Alert alert1 = new Alert(Alert.AlertType.INFORMATION);\n\t alert1.setTitle(\"Cancelled\");\n\t alert1.setHeaderText(null);\n\t alert1.setContentText(\"Submission Operation cancelled\");\n\t alert1.showAndWait();\n\t }\n\t }",
"public void proceedOnPopUp() {\n Controllers.button.click(proceedToCheckOutPopUp);\n }",
"public WebElement SubmitBtn() {\n\t\treturn driver.findElement(Subbtn);\n\t}",
"@Override\n public void onClick(View view) {\n if (view.getId() == R.id.btnSubmit) {\n tableNum = String.valueOf(textInput.getText());\n Intent intent = new Intent(this, PizzeriaMainActivity.class);\n intent.putExtra(CLE_DONNEES, tableNum);\n startActivity(intent);\n }\n }",
"private void btnAceptarActionPerformed(java.awt.event.ActionEvent evt) {\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(parent_frame.getFestival().isLocked()){\n\t\t\t\t\tfeedback_display.append(\"\\tPlease submit after voice prompt has finished.\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tprocessAttempt(input_from_user.getText());\n\t\t\t\t}\n\t\t\t\tinput_from_user.requestFocusInWindow();//gets focus back to the spell here field\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent event) {\n\t\t\t\tsendData(event.getActionCommand());//调用sendData方法,响应操作。\t将信息发送给客户\r\n\t\t\t\tenterField.setText(\"\"); //将输入区域置空\r\n\t\t\t}",
"protected void actionPerformedBtnProcesarVenta(ActionEvent e) {\n\t}",
"public void actionPerformed(Object src, Object data) {\r\n if (isButton(src)) {\r\n processButton(src, data);\r\n }\r\n }",
"public void actionPerformed (ActionEvent e)\n\t\t\t\t{\n\t\t\t\talertOK();\n\t\t\t\t}"
] | [
"0.76019657",
"0.70645756",
"0.7053748",
"0.6761082",
"0.67418",
"0.6700934",
"0.6678082",
"0.6654178",
"0.660324",
"0.651438",
"0.6473153",
"0.64404374",
"0.6400368",
"0.63881546",
"0.6379186",
"0.6374291",
"0.6287419",
"0.62729824",
"0.62579995",
"0.6248797",
"0.6239853",
"0.6233837",
"0.6203851",
"0.61894333",
"0.61797065",
"0.61782324",
"0.61432177",
"0.6138661",
"0.6136527",
"0.6122581",
"0.6077591",
"0.60195756",
"0.60138667",
"0.60057104",
"0.60039085",
"0.5986727",
"0.5973287",
"0.59548163",
"0.5951253",
"0.5951069",
"0.5950718",
"0.59266376",
"0.59203047",
"0.5906135",
"0.5901341",
"0.58979416",
"0.58939713",
"0.5891945",
"0.58867496",
"0.58678156",
"0.5866841",
"0.58592975",
"0.58555907",
"0.58414173",
"0.58396226",
"0.58254963",
"0.58203894",
"0.58193815",
"0.58167386",
"0.5814047",
"0.579963",
"0.57952017",
"0.5788161",
"0.5782898",
"0.5781865",
"0.57813394",
"0.5776653",
"0.57744074",
"0.57563746",
"0.575005",
"0.575005",
"0.57454133",
"0.5731137",
"0.5729745",
"0.57286054",
"0.57266885",
"0.5715681",
"0.5715173",
"0.57136995",
"0.57118565",
"0.5705584",
"0.5703783",
"0.5693327",
"0.5688136",
"0.56861615",
"0.56757325",
"0.56674725",
"0.56630856",
"0.5656784",
"0.56544673",
"0.56536365",
"0.5651062",
"0.5639315",
"0.56393033",
"0.5639262",
"0.56389153",
"0.5635997",
"0.56311256",
"0.562541",
"0.56107175"
] | 0.6170568 | 26 |
Process adding the inventory item type. New properties object. | protected void addInventoryItemType() {
Properties props = new Properties();
/* DEBUG
System.out.println(typeNameTF.getText());
System.out.println(unitsTF.getText());
System.out.println(unitMeasureTF.getText());
System.out.println(validityDaysTF.getText());
System.out.println(reorderPointTF.getText());
System.out.println(notesTF.getText());
System.out.println(statusCB.getValue());
*/
// Set the values.
props.setProperty("ItemTypeName", typeNameTF.getText());
props.setProperty("Units", unitsTF.getText());
props.setProperty("UnitMeasure", unitMeasureTF.getText());
props.setProperty("ValidityDays", validityDaysTF.getText());
props.setProperty("ReorderPoint", reorderPointTF.getText());
props.setProperty("Notes", notesTF.getText());
props.setProperty("Status", (String) statusCB.getValue());
// Create the inventory item type.
InventoryItemType iit = new InventoryItemType(props);
// Save it into the database.
iit.update();
populateFields();
// Display message on GUI.
//submitBTN.setVisible(false);
cancelBTN.setText("Back");
messageLBL.setText("Inventory Item Type added.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean add(Type item);",
"public void addItem(Product p, int qty){\n //store info as an InventoryItem and add to items array\n this.items.add(new InventoryItem(p, qty));\n }",
"public void addProduct(Product item){\n inventory.add(item);\n }",
"private void addProduct() {\n String type = console.readString(\"type (\\\"Shirt\\\", \\\"Pant\\\" or \\\"Shoes\\\"): \");\n String size = console.readString(\"\\nsize: \");\n int qty = console.readInt(\"\\nQty: \");\n int sku = console.readInt(\"\\nSKU: \");\n Double price = console.readDouble(\"\\nPrice: \");\n int reorderLevel = console.readInt(\"\\nReorder Level: \");\n daoLayer.addProduct(type, size, qty, sku, price, reorderLevel);\n\n }",
"public void addItem(Item newItem) {\n for (Item i : inventory) {\n if (newItem.getClass().equals(i.getClass())) {\n i.setQuantity(i.getQuantity() + newItem.getQuantity());\n return;\n }\n }\n inventory.add(newItem);\n }",
"public void createItemInInventory(Item newItem) {\n\t\tinventory.createItem(newItem);\n\t}",
"public void add(TradeItem newItem) {\n if (newItem.isUnique()) {\n removeType(newItem);\n }\n items.add(newItem);\n }",
"private void addToInventory(Item item) {\n inventory.put(item.getName(), item);\n }",
"public static void addToMOTD(String item, String type, Player target) {\n boolean worked;\n switch (type) {\n case \"priority\": {\n if (!motd.has(\"priority\")) {\n motd.put(\"priority\", new JSONArray());\n }\n motd.getJSONArray(\"priority\").put(item);\n worked = saveMOTD();\n if (worked) target.sendMessage(ChatColor.GREEN + \" > Message added to the MOTD Priority list.\");\n else target.sendMessage(ChatColor.RED + \" > Error: Unable to save the modified motd! Check with your server administrator!\");\n break;\n }\n case \"normal\": {\n if (!motd.has(\"normal\")) {\n motd.put(\"normal\", new JSONArray());\n }\n motd.getJSONArray(\"normal\").put(item);\n worked = saveMOTD();\n if (worked) target.sendMessage(ChatColor.GREEN + \" > Message added to the MOTD Normal list.\");\n else target.sendMessage(ChatColor.RED + \" > Error: Unable to save the modified motd! Check with your server administrator!\");\n break;\n }\n case \"title\": {\n motd.put(\"title\", item);\n worked = saveMOTD();\n if (worked) target.sendMessage(ChatColor.GREEN + \" > Message added the title to the MOTD.\");\n else target.sendMessage(ChatColor.RED + \" > Error: Unable to save the modified motd! Check with your server administrator!\");\n break;\n }\n }\n }",
"gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type addNewType();",
"@Override\n public void addItem(P_CK t) {\n \n }",
"public abstract void addItem(AbstractItemAPI item);",
"public void addItemInventory(Item item){\r\n playerItem.add(item);\r\n System.out.println(item.getDescription() + \" was taken \");\r\n }",
"public void addPromoItem(){\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\ttry {\r\n\t\t\tint i = 0;\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.println(\"----------------------------------------------\");\r\n\t\t\twhile (RestaurantApp.globalMenuManager.getSizeOfMenu()!=i && RestaurantApp.globalMenuManager.getMenuItem(i).Type != type.PROMO){\r\n\t\t\t\tSystem.out.println((i+1)+\". \");\r\n\t\t\t\tRestaurantApp.globalMenuManager.getMenuItem(i).print();\r\n\t\t\t\tSystem.out.println(\"----------------------------------------------\");\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\t//RestaurantApp.globalMenuManager.printMenu(); //create a globalmenuManager so that other classes can access the menu\r\n\t\t\tSystem.out.println(\"Which item would you like to add?\");\r\n\t\t\tint menuIndex = sc.nextInt();\r\n\t\t\tsc.nextLine();\r\n\t\t\tif(menuIndex <= 0 || menuIndex >i){\r\n\t\t\t\tthrow new ArrayIndexOutOfBoundsException(\"Please input a valid index from 1 to \"+i);\r\n\t\t\t}\r\n\t\t\tthis.promo.add(RestaurantApp.globalMenuManager.getMenuItem(menuIndex-1)); //add the index - 1 menuItem to promoPackage\r\n\t\t} catch (ArrayIndexOutOfBoundsException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\tSystem.out.println(\"program exiting...\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t}",
"private void addItemToAllRegisteredTypes(List<String> legTypes, StatType statType, double item) {\n\t\tfor ( String legType : legTypes ) {\n\n\t\t\t// ... finally add the \"item\" to the correct bin in the container:\n\t\t\tint idx = this.statsContainer.get(statType).getIndex(item) ;\n\t\t\tthis.statsContainer.get(statType).inc( legType, idx ) ;\n\n\t\t\t// also add it to the sums container:\n\t\t\tthis.sumsContainer.get(statType).addValue( legType, item ) ;\n\n\t\t}\n\t}",
"void addItem (Item toAdd){\n\t\t\tthis.items.add(toAdd);}",
"public void addType(TypeData type) { types.add(type); }",
"public void addItem(Item e) {\n\t\tItem o = new Item(e);\n\t\titems.add(o);\n\t}",
"public void addItemToInventory(Item ... items){\n this.inventory.addItems(items);\n }",
"@Override\n public void addItem(ItemType item) {\n if (curArrayIndex > items.length - 1) {\n System.out.println(item.getDetails() + \" - This bin is full. Item cannot be added!\");\n }\n else if (item.getWeight() + curWeight <= maxWeight) {\n curWeight += item.getWeight();\n items[curArrayIndex++] = item;\n }\n else {\n System.out.println(item.getDetails() + \" - Overweighted. This item cannot be added!\");\n }\n if (item.isFragile()) {\n setLabel(\"Fragile - Handle with Care\");\n }\n\n }",
"public void addItemInventory(Item item){\n playerItem.add(item);\n System.out.println(item.getDescription() + \" was taken \");\n System.out.println(item.getDescription() + \" was removed from the room\"); // add extra information to inform user that the item has been taken\n }",
"public void addItem(String i) {\n\t\tItem item = Item.getItem(ItemList, i);\n\t Inventory.add(item);\n\t inventoryList.getItems().add(i);\n\n\t}",
"@Override\n public Optional<FridgeItemEntity> addItem(String fridgeId, String itemId, String itemType) {\n return Optional.empty();\n }",
"public void addItem(Item itemToAdd){\n\t\tif(!isFull()){\n\t\t\tint index = findFreeSlot();\n\t\t\tinventoryItems[index] = itemToAdd;\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"Inventory full.\");\n\t\t}\n\t\t\n\t}",
"public boolean addItem(Scanner scanner){\n String input;\n\n for(int i = 0; i < numItems; i++) {\n if(inventory[i] == null){\n do {\n System.out.print(\"Do you wish to add a fruit(f), vegetable(v) or a preserve(p)? \");\n input = scanner.next();\n if (input.equals(\"f\")) {\n Fruit fruit = new Fruit();\n fruit.inputCode(scanner);\n int var = alreadyExists(fruit);\n if(var != -1) {\n System.out.println(\"Item code already exists\");\n return false;\n }\n fruit.addItem(scanner);\n inventory[i]=fruit;\n } else if (input.equals(\"v\")) {\n Vegetable vegetable = new Vegetable();\n vegetable.inputCode(scanner);\n int var = alreadyExists(vegetable);\n if(var != -1) {\n System.out.println(\"Item code already exists\");\n return false;\n }\n vegetable.addItem(scanner);\n inventory[i]=vegetable;\n } else if (input.equals(\"p\")) {\n Preserve preserve = new Preserve();\n preserve.inputCode(scanner);\n int var = alreadyExists(preserve);\n if(var != -1) {\n System.out.println(\"Item code already exists\");\n return false;\n }\n preserve.addItem(scanner);\n inventory[i]=preserve;\n } else {\n System.out.println(\"Invalid entry\");\n }\n }while(!input.equals(\"f\") && !input.equals(\"v\") && !input.equals(\"p\"));\n break;\n }\n\n }\n return true;\n }",
"public void addItem() {\r\n\t\tFacesContext fc = FacesContext.getCurrentInstance();\r\n\t\tif (itemInvoice.getQuantidade() <= itemPO.getQuantidadeSaldo()) {\r\n\t\t\tBigDecimal total = itemInvoice.getPrecoUnit().multiply(\r\n\t\t\t\t\tnew BigDecimal(itemInvoice.getQuantidade()));\r\n\t\t\titemInvoice.setTotal(total);\r\n\t\t\tif (!editarItem) {\r\n\r\n\t\t\t\tif (itemInvoice.getPrecoUnit() == null) {\r\n\t\t\t\t\titemInvoice.setPrecoUnit(new BigDecimal(0.0));\r\n\t\t\t\t}\r\n\t\t\t\tif (itemInvoice.getQuantidade() == null) {\r\n\t\t\t\t\titemInvoice.setQuantidade(0);\r\n\t\t\t\t}\r\n\t\t\t\titemInvoice.setInvoice(invoice);\r\n\r\n\t\t\t\tinvoice.getItensInvoice().add(itemInvoice);\r\n\r\n\t\t\t} else {\r\n\t\t\t\tinvoice.getItensInvoice().set(\r\n\t\t\t\t\t\tinvoice.getItensInvoice().indexOf(itemInvoice),\r\n\t\t\t\t\t\titemInvoice);\r\n\t\t\t}\r\n\t\t\tcarregarTotais();\r\n\t\t\tinicializarItemInvoice();\r\n\t\t\trequired = false;\r\n\t\t} else {\r\n\r\n\t\t\tMessages.adicionaMensagemDeInfo(TemplateMessageHelper.getMessage(\r\n\t\t\t\t\tMensagensSistema.INVOICE, \"lblQtdMaioSaldo\", fc\r\n\t\t\t\t\t\t\t.getViewRoot().getLocale()));\r\n\t\t}\r\n\t}",
"public void addToInventory() {\r\n\t\tdo {\r\n\t\t\tint quantity = 0;\r\n\t\t\tString brand = getToken(\"Enter washer brand: \");\r\n\t\t\tString model = getToken(\"Enter washer model: \");\r\n\t\t\tWasher washer = store.searchWashers(brand + model);\r\n\t\t\tif (washer == null) {\r\n\t\t\t\tSystem.out.println(\"No such washer exists.\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tquantity = getInteger(\"Enter quantity to add: \");\r\n\t\t\tboolean result = store.addWasherToInventory(brand, model, quantity);\r\n\t\t\tif(result) {\r\n\t\t\t\tSystem.out.println(\"Added \" + quantity + \" of \" + washer);\r\n\t\t\t}else {\r\n\t\t\t\tSystem.out.println(\"Washer could not be added to inventory.\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} while (yesOrNo(\"Add more washers to the inventory?\"));\r\n\t}",
"public void add() {\n\t\tcart.add(item.createCopy());\n\t}",
"@FXML\n private void addNewPartType(ActionEvent event) {\n String name = nameText.getText();\n name = name.trim();\n if(name.equals(\"\")){\n showAlert(\"No Name\", \"This part type has no name, please input a name\");\n return;\n }\n \n String costText = this.costText.getText();\n costText = costText.trim();\n if(costText.equals(\"\")){\n showAlert(\"No Cost\", \"This part type has no cost, please input a cost.\");\n return;\n }\n \n String quantityText = this.quantityText.getText();\n quantityText = quantityText.trim();\n if(quantityText.equals(\"\")){\n showAlert(\"No Quantity\", \"This part type has no quantity, please input a quantity.\");\n return;\n }\n \n String description = descriptionText.getText();\n description = description.trim();\n if(description.equals(\"\")){\n showAlert(\"No Description\", \"This part type has no decription, please input a description.\");\n return;\n }\n \n double cost = Double.parseDouble(costText);\n int quantity = Integer.parseInt(quantityText);\n boolean success = partInventory.addNewPartTypeToInventory(name, \n description, cost, quantity);\n if(success){\n showAlert(\"Part Type Sucessfully Added\", \"The new part type was sucessfully added\");\n }else{\n showAlert(\"Part Type Already Exists\", \"This part already exists. If you would like to add stock, please select \\\"Add Stock\\\" on the righthand side of the screen.\\n\" \n + \"If you would like to edit this part, please double click it in the table.\");\n }\n // gets the popup window and closes it once part added\n Stage stage = (Stage) ((Node) event.getSource()).getScene().getWindow();\n stage.close();\n }",
"public void createItem(View view) {\n \t\n String[] temp = getCurrentItemTypes();\n \n Intent intent = new Intent(this, CreateItem.class);\n intent.putExtra(EDIT, \"no\");\n intent.putExtra(TYPES, temp);\n startActivityForResult(intent, 1);\n }",
"public void setItemType(String itemType) {\n\t\tthis.itemType = itemType;\n\t}",
"@Override\r\n\tpublic void addItem(AbstractItemAPI item) {\n\t\titems.add(item);\r\n\t\t\r\n\t}",
"public void addItem(Item theItem) {\n\t\tif (inventory != null) {\n\t\t\tif (!isAuctionAtMaxCapacity()) {\n\t\t\t\t// Check item doesn't already exist as key in map\n\t\t\t\tif (inventory.containsKey(theItem)) {\n\t\t\t\t\t//ERROR CODE: ITEM ALREADY EXISTS\n\t\t\t\t\tSystem.out.println(\"That item already exists in the inventory.\");\n\t\t\t\t} else\n\t\t\t\t\tinventory.put(theItem, new ArrayList<Bid>());\n\t\t\t} else if (isAuctionAtMaxCapacity()) {\n\t\t\t\t//ERROR CODE: AUCTION AT MAX CAPACITY\n\t\t\t\tSystem.out.println(\"\\nYour auction is at maximum capacity\");\n\t\t\t} \n\t\t} else {\n\t\t\tinventory = new HashMap<Item, ArrayList<Bid>>();\n\t\t\tinventory.put(theItem, new ArrayList<Bid>());\t\t\t\t\n\t\t} \t\t\t\t\t\t\n\t}",
"void addCpItem(ICpItem item);",
"private void insertItem() {\n System.out.println(\"What is the priority level of the task: \\n\\tH -> high \\n\\tM -> medium \\n\\tL -> low\");\n char priorityLevel = scanner.next().toUpperCase().charAt(0);\n\n priorityLevel = checkPriorityLevel(priorityLevel);\n Categories category;\n if (priorityLevel == 'H') {\n category = Categories.HIGHPRIORITY;\n } else if (priorityLevel == 'M') {\n category = Categories.MIDPRIORITY;\n } else {\n category = Categories.LOWPRIORITY;\n }\n\n System.out.println(\"Enter the name of the task:\");\n scanner.nextLine();\n String name = scanner.nextLine();\n\n String daysBeforeDue = acceptDaysBeforeDue();\n\n Item item = new Item(name, daysBeforeDue, category);\n toDoList.insert(item);\n System.out.println(\"Added successfully!\");\n\n System.out.println(\"Updated to-do list:\");\n viewList();\n }",
"public void rbListAddElement() {\n rbProductType.clear();\n rbProductType.add(rbScs);\n rbProductType.add(rbSko);\n rbProductType.add(rbMko);\n rbProductType.add(rbZko);\n }",
"public void add(String shoeType, int amount){\r\n\t\t\tShoeStorageInfo shoe=new ShoeStorageInfo(shoeType,amount,0);\r\n\t\t\tstoreMap.putIfAbsent(shoeType, shoe);\r\n\t\t\tShoeStorageInfo shoe1 = storeMap.get(shoeType);\r\n\t\t\tshoe1.addShoe(amount);\r\n\t\t}",
"public void addItem(Object obj) {\n items.add(obj);\n }",
"public void addItemtoInventoryList(String item) {\r\n InventoryList.add(item);\r\n }",
"ItemType(String itemCode) {\n code = itemCode;\n }",
"@Override\n public void onReceiveItem(InventoryItem itemReceived) {\n inventory.add(itemReceived);\n }",
"public void addItem(LineItem item)\r\n {\r\n\t ChangeEvent event = new ChangeEvent(this);\r\n\t if(items.contains(item))\r\n\t {\r\n\t\t \r\n\t\t counter = 0;\r\n\t\t items.add(item);\r\n\t\t //tem.addQuantity();\r\n\t\t //tem.getQuantity();\r\n\t\t for(int i = 0; i < items.size(); i++)\r\n\t\t {\r\n\t\t\t if(items.get(i).equals(item))\r\n\t\t\t {\r\n\t\t\t counter++;\r\n\t\t\t }\r\n\t\t }\r\n\t\t for (ChangeListener listener : listeners)\r\n\t\t listener.stateChanged(event);\r\n\t\t System.out.print(\"\\r Quantity of \" + item.toString() + \": \"+ counter);\r\n\t\t \r\n\t }\r\n\t else\r\n\t {\r\n\t\t counter = 1;\r\n\t// item.addQuantity();\r\n\t// item.getQuantity();\r\n\t\t items.add(item);\r\n\t// System.out.println(item.getQuantity());\r\n\t\t for (ChangeListener listener : listeners)\r\n\t\t listener.stateChanged(event);\r\n\t \t\r\n\t \tSystem.out.print(\"\\n Quantity of \" + item.toString() + \": \"+ counter);\r\n\t \r\n\t\t \r\n\t }\r\n\t\t\r\n \r\n }",
"public void addPart() {\n\n if(isValidPart()) {\n double price = Double.parseDouble(partPrice.getText());\n String name = partName.getText();\n int stock = Integer.parseInt(inventoryCount.getText());\n int id = Integer.parseInt(partId.getText());\n int minimum = Integer.parseInt(minimumInventory.getText());\n int maximum = Integer.parseInt(maximumInventory.getText());\n String variableText = variableTextField.getText();\n\n if (inHouse.isSelected()) {\n InHouse newPart = new InHouse(id,name,price,stock,minimum,maximum,Integer.parseInt(variableText));\n if (PassableData.isModifyPart()) {\n Controller.getInventory().updatePart(PassableData.getPartIdIndex(), newPart);\n } else {\n Controller.getInventory().addPart(newPart);\n }\n\n } else if (outsourced.isSelected()) {\n Outsourced newPart = new Outsourced(id,name,price,stock,minimum,maximum,variableText);\n if (PassableData.isModifyPart()) {\n Controller.getInventory().updatePart(PassableData.getPartIdIndex(), newPart);\n } else {\n Controller.getInventory().addPart(newPart);\n }\n }\n try {\n InventoryData.getInstance().storePartInventory();\n InventoryData.getInstance().storePartIdIndex();\n } catch (IOException e) {\n e.printStackTrace();\n }\n exit();\n\n }\n }",
"public Integer addPaymentType(PaymentTypeObject paymentTypeObject) throws AppException;",
"private void makeObject() {\n\t\t\n\t\tItem I1= new Item(1,\"Cap\",10.0f,\"to protect from sun\");\n\t\tItemMap.put(1, I1);\n\t\t\n\t\tItem I2= new Item(2,\"phone\",100.0f,\"Conversation\");\n\t\tItemMap.put(2, I2);\n\t\t\n\t\tSystem.out.println(\"Objects Inserted\");\n\t}",
"void add(Item item);",
"private void addItems() {\n while (true) {\n ClothingItem item = readItem();\n if (item == null || item.getId() < 0) {\n break;\n }\n try {\n ctrl.addItem(item);\n } catch (ValidatorException e) {\n e.printStackTrace();\n }\n }\n }",
"public void addItem() {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tSystem.out.print(\"Enter Item Name: \");\n\t\tString itemName = scanner.nextLine();\n\t\tSystem.out.print(\"Enter Item Description: \");\n\t\tString itemDescription = scanner.nextLine();\n\t\tSystem.out.print(\"Enter minimum bid price for item: $\");\n\t\tdouble basePrice = scanner.nextDouble();\n\t\tLocalDate createDate = LocalDate.now();\n\t\tItem item = new Item(itemName, itemDescription, basePrice, createDate);\n\t\taddItem(item);\n\t}",
"@Override\n public Item createItem(int itemNum, Item item) throws VendingMachinePersistenceException {\n loadItemFile();\n Item newItem = itemMap.put(itemNum, item);\n writeItemFile();\n return newItem;\n }",
"public void doCreateItem() {\r\n\t\tlogger.info(\"Se procede a crear el book \" + newItem.getDescription());\r\n\t\tBook entity = newItem.getEntity();\r\n\t\tentity.setUser(Global.activeUser());\r\n\t\tentity.setBookBalance(BigDecimal.ZERO);\r\n\t\tentity.setTotalBudget(BigDecimal.ZERO);\r\n\t\tentity.setTotalIncome(BigDecimal.ZERO);\r\n\t\tentity.setTotalExpenses(BigDecimal.ZERO);\r\n\t\tentity = bookService.create(entity);\r\n\r\n\t\t// Actualizar el mapa de books\r\n\t\tGlobalBook.instance().put(new BookData(entity));\r\n\r\n\t\tlogger.info(\"Se ha creado el book \" + newItem.getDescription());\r\n\t\tnewItem = new BookData(new Book());\r\n\t\tFacesContext.getCurrentInstance().addMessage(null,\r\n\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_INFO, \"Libro creado\", \"Libro creado correctamente\"));\r\n\t}",
"public void addItems() {\r\n\t\tproductSet.add(new FoodItems(1000, \"maggi\", 12.0, 100, new Date(), new Date(), \"yes\"));\r\n\t\tproductSet.add(new FoodItems(1001, \"Pulses\", 55.0, 50, new Date(), new Date(), \"yes\"));\r\n\t\tproductSet.add(new FoodItems(1004, \"Meat\", 101.53, 5, new Date(), new Date(), \"no\"));\r\n\t\tproductSet.add(new FoodItems(1006, \"Jelly\", 30.0, 73, new Date(), new Date(), \"no\"));\r\n\t\t\r\n\t\tproductSet.add(new Apparels(1005, \"t-shirt\", 1000.0, 10, \"small\", \"cotton\"));\r\n\t\tproductSet.add(new Apparels(1002, \"sweater\", 2000.0, 5,\"medium\", \"woolen\"));\r\n\t\tproductSet.add(new Apparels(1003, \"cardigan\", 1001.53,22, \"large\", \"cotton\"));\r\n\t\tproductSet.add(new Apparels(1007, \"shirt\", 500.99, 45,\"large\",\"woolen\"));\r\n\t\t\r\n\t\tproductSet.add(new Electronics(1010, \"tv\", 100000.0, 13, 10));\r\n\t\tproductSet.add(new Electronics(1012, \"mobile\", 20000.0, 20,12));\r\n\t\tproductSet.add(new Electronics(1013, \"watch\", 1101.53,50, 5));\r\n\t\tproductSet.add(new Electronics(1009, \"headphones\", 300.0, 60,2));\r\n\t\t\r\n\t}",
"protected void putItems() {\n\t\tlevelSetup[0][5].putItem(new Dynamite());\n\t\tlevelSetup[6][6].putItem(new Flint());\n\t\tlevelSetup[6][3].putItem(new ManaPotion());\n\t\tlevelSetup[5][0].putItem(new ManaPotion());\n\t\tlevelSetup[2][1].putItem(new HealthPotion());\n\t\tlevelSetup[3][6].putItem(new HealthPotion());\n\t\tlevelSetup[4][2].putItem(new Spinach());\n\t}",
"@Override\r\n\t\t\t\t\tpublic void addItemEventOccurred(AddItemEvent event) {\n\r\n\t\t\t\t\t}",
"public void addItem(Item item) {\n items.add(item);\n }",
"public void addItem(Item item) {\n items.add(item);\n }",
"public void createMainInventor() {\n String name = _plugin.getConfigManager().getGeneralSettingsMap().get(\"Name\");\r\n String colorizedName = _plugin.getUtilsManager().colorizeString(name);\r\n //Size of the Inventory;\r\n int inventorySize = Integer.valueOf(_plugin.getConfigManager().getGeneralSettingsMap().get(\"InventorySize\"));\r\n //Initialize Inventory;\r\n mainInventory = _plugin.getServer().createInventory(null, inventorySize, colorizedName);\r\n //Retrieve the HashMaps for the plugin;\r\n HashMap<Integer, CategoryItem> categoryInformationMap = _plugin.getConfigManager().getCategoryInformationMap();\r\n HashMap<String, String> languageInformation = _plugin.getConfigManager().getLanguageInformationMap();\r\n //Add items to Inventory;\r\n for (Integer i : categoryInformationMap.keySet()) {\r\n CategoryItem categoryItem = categoryInformationMap.get(i);\r\n ItemStack item = categoryItem.getItem();\r\n ItemMeta itemMeta = item.getItemMeta();\r\n itemMeta.setDisplayName(_plugin.getUtilsManager().colorizeString(languageInformation.get(\"CategoryName\").replace(\"%cat%\", categoryItem.getName())));\r\n List<String> lore = new ArrayList<>();\r\n lore.add(_plugin.getUtilsManager().colorizeString(categoryItem.getDescription()));\r\n item.setItemMeta(itemMeta);\r\n mainInventory.addItem(item);\r\n }\r\n }",
"@Test\n\tpublic void testAddItem() {\n\t\tassertEquals(\"testAddItem(LongTermTest): valid enter failure\", 0, ltsTest.addItem(item4, 10)); //can enter\n\t\tassertEquals(\"testAddItem(LongTermTest): invalid available capacity after adding\", 900, ltsTest.getAvailableCapacity());\n\t\tassertEquals(\"testAddItem(LongTermTest): invalid item count after adding\", 10, ltsTest.getItemCount(item4.getType()));\n\n\t\tassertEquals(\"testAddItem(LongTermTest): invalid enter failure\", -1, ltsTest.addItem(item4, 100)); // can't enter\n\t\tassertEquals(\"testAddItem(LongTermTest): invalid available capacity after adding\", 900, ltsTest.getAvailableCapacity());\n\t\tassertEquals(\"testAddItem(LongTermTest): invalid item count after adding\", 10, ltsTest.getItemCount(item4.getType()));\n\t}",
"public void addItem(Item toAdd) {\n\t\tthis.items.add(toAdd);\n\t}",
"public void addIngredient(String type) {\n\t\tBurger fullBurger1 = new Burger(true);\n\t\tBurger fullBurger2 = new Burger(true);\n\n\t\tfullBurger1.removeIngredient(\"Beef\");\n\t\tfullBurger2.removeIngredient(\"Beef\");\n\n\t\tint howManyBeef = this.howMany(\"Beef\");\n\t\tint howManyChicken = this.howMany(\"Chicken\");\n\t\tint howManyVeggie = this.howMany(\"Veggie\");\n\n\t\tif (this.has(\"Beef\")) {\n\t\t\tfor (int i = 0; i < howManyBeef; i++) {\n\t\t\t\tfullBurger1.addPatty();\n\t\t\t\tfullBurger2.addPatty();\n\t\t\t}\n\t\t}\n\t\tif (this.has(\"Chicken\")) {\n\t\t\tfor (int i = 0; i < howManyChicken; i++) {\n\t\t\t\tfullBurger1.addGeneralPatty(\"Chicken\");\n\t\t\t\tfullBurger2.addGeneralPatty(\"Chicken\");\n\t\t\t}\n\t\t}\n\t\tif (this.has(\"Veggie\")) {\n\t\t\tfor (int i = 0; i < howManyVeggie; i++) {\n\t\t\t\tfullBurger1.addGeneralPatty(\"Veggie\");\n\t\t\t\tfullBurger2.addGeneralPatty(\"Veggie\");\n\t\t\t}\n\t\t}\n\t\tmyBurger.push(type);\t\n\t\twhile (myBurger.size() != 0) {\n\t\t\tString top = (String) myBurger.peek();\n\t\t\tfullBurger1.removeIngredient(top);\n\t\t\tthis.removeIngredient(top);\n\t\t}\n\n\t\twhile (fullBurger1.myBurger.size() != 0) {\n\t\t\tString top = (String) fullBurger1.myBurger.peek();\n\t\t\tfullBurger2.removeIngredient(top);\n\t\t\tfullBurger1.removeIngredient(top);\n\t\t}\n\t\tint totalPatties = howManyBeef + howManyChicken + howManyVeggie;\n\t\tmyBurger = fullBurger2.myBurger;\n\t\tpattyCount = pattyCount + totalPatties;\n\t\tif (type.equals(\"Beef\") || type.equals(\"Chicken\") || type.equals(\"Veggie\")) {\n\t\t\tpattyCount++;\n\t\t}\n\t}",
"@Override\n public int getItemType() {\n return ITEM_TYPE;\n }",
"public ItemStack createItem(ItemType type, int damage,List<Text> lore);",
"public void makeTransaction(Item item, String type) {\n\t\tthis.item = item;\n\t\ttransactionType = type;\n\t}",
"public void createOrderItem() {\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tRestaurantApp.globalMenuManager.printMenu(); //create a globalmenuManager so that other classes can access the menu\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"Which item would you like to order?\");\r\n\t\t\tint menuIndex = sc.nextInt();\r\n\t\t\tsc.nextLine();\r\n\t\t\tif (menuIndex <= 0 || menuIndex > RestaurantApp.globalMenuManager.getSizeOfMenu()){\r\n\t\t\t\tthrow new ArrayIndexOutOfBoundsException(\"Please input a valid index from 1 to \"+RestaurantApp.globalMenuManager.getSizeOfMenu());\r\n\t\t\t}\r\n\t\t\tthis.menuItem = RestaurantApp.globalMenuManager.getMenuItem(menuIndex-1);\r\n\t\t\tSystem.out.println(\"How many of this are you ordering?\");\r\n\t\t\tthis.quantity = sc.nextInt();\r\n\t\t\tsc.nextLine();\r\n\t\t\tSystem.out.println(\"Order item added. printing details...\");\r\n\t\t\tthis.printOrderItem();\r\n\t\t} catch (ArrayIndexOutOfBoundsException e) {\r\n\t\t\tSystem.out.println(e.getMessage()); \r\n\t\t\tSystem.out.println(\"program exiting ...\");\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t}",
"@attribute(value = \"\", required = false)\r\n\tpublic void addItem(Item i) {\r\n\t}",
"public void addItem(Item item)\n\t{\n\t\tif(inventory.size()<=9)\n\t\t\tinventory.add(item);\n\t\telse\n\t\t\tSystem.out.println(\"Inventory is full.\");\n\t}",
"private void addInventoryInformation() {\r\n \tString[] toolTypeFieldItems = {\"Electrical\", \"Non-Electrical\"};\r\n \t\r\n \taddButton = new JButton (\"Add\");\r\n deleteButton = new JButton (\"Delete\");\r\n clearButton = new JButton (\"Clear\");\r\n decreaseButton = new JButton (\"Buy\");\r\n toolIdText = new JTextField (5);\r\n toolNameText = new JTextField (5);\r\n stockText = new JTextField (5);\r\n priceText = new JTextField (5);\r\n supplierText = new JTextField (5);\r\n toolTypeField = new JComboBox<String> (toolTypeFieldItems); \r\n powerText = new JTextField (5);\r\n\r\n add (addButton);\r\n add (deleteButton);\r\n add (clearButton);\r\n add (decreaseButton);\r\n add (toolIdText);\r\n add (toolNameText);\r\n add (stockText);\r\n add (priceText);\r\n add (supplierText);\r\n add (toolTypeField);\r\n add (powerText);\r\n \r\n addButton.setBounds (585, 590, 100, 25);\r\n deleteButton.setBounds (715, 590, 100, 25);\r\n clearButton.setBounds (650, 630, 100, 25);\r\n decreaseButton.setBounds (650, 670, 100, 25);\r\n toolIdText.setBounds (690, 290, 100, 25);\r\n toolNameText.setBounds (690, 330, 100, 25);\r\n stockText.setBounds (690, 410, 100, 25);\r\n priceText.setBounds (690, 450, 100, 25);\r\n supplierText.setBounds (690, 490, 100, 25);\r\n toolTypeField.setBounds (690, 370, 100, 25);\r\n powerText.setBounds (690, 530, 100, 25);\r\n }",
"public void addItem(String key, Item item) throws IOException {\n\n itemMap.get(key).add(item);\n\n if(item.getImportance().equals(\"yes\")) importantItemList.add(item);\n\n notifyObservers(item);\n\n fileWrite.saveItemMap(this, file);\n\n }",
"void addItem(DataRecord record);",
"public void enterItem(DessertItem item)\n {\n dessertList.add(item);\n }",
"protected void processAction(Event e) {\n\n\t\t// First check to see if the fields are empty.\n\t\tif (typeNameTF.getText().isEmpty() || unitsTF.getText().isEmpty() || unitMeasureTF.getText().isEmpty()\n\t\t\t\t|| validityDaysTF.getText().isEmpty() || reorderPointTF.getText().isEmpty()\n\t\t\t\t|| notesTF.getText().isEmpty())\n\t\t\tmessageLBL.setText(\"All Item Type data must be filled\");\n\t\telse if(!isInt(unitsTF.getText())) {\n\t\t\tmessageLBL.setText(\"Units must be an integer.\");\n\t\t}\n\t\telse if(!isInt(validityDaysTF.getText())) {\n\t\t\tmessageLBL.setText(\"Validity days must be an integer.\");\n\t\t}\n\t\telse if(!isInt(reorderPointTF.getText())) {\n\t\t\tmessageLBL.setText(\"Reorder point must be an integer.\");\n\t\t}\n\t\t// Then check to see if it is the submit button.\n\t\telse if (e.getSource() == submitBTN)\n\t\t\taddInventoryItemType();\n\t}",
"public abstract void addValue(String str, Type type);",
"public void addItem( Item anItem) {\n currentItems.add(anItem);\n }",
"private static void customItems(ItemDefinition itemDef) {\n\n\t\tswitch (itemDef.id) {\n\n\t\tcase 11864:\n\t\tcase 11865:\n\t\tcase 19639:\n\t\tcase 19641:\n\t\tcase 19643:\n\t\tcase 19645:\n\t\tcase 19647:\n\t\tcase 19649:\n\t\tcase 23073:\n\t\tcase 23075:\n\t\t\titemDef.equipActions[2] = \"Log\";\n\t\t\titemDef.equipActions[1] = \"Check\";\n\t\t\tbreak;\n\n\t\tcase 13136:\n\t\t\titemDef.equipActions[2] = \"Elidinis\";\n\t\t\titemDef.equipActions[1] = \"Kalphite Hive\";\n\t\t\tbreak;\n\t\tcase 2550:\n\t\t\titemDef.equipActions[2] = \"Check\";\n\t\t\tbreak;\n\n\t\tcase 1712:\n\t\tcase 1710:\n\t\tcase 1708:\n\t\tcase 1706:\n\t\t\titemDef.equipActions[1] = \"Edgeville\";\n\t\t\titemDef.equipActions[2] = \"Karamja\";\n\t\t\titemDef.equipActions[3] = \"Draynor\";\n\t\t\titemDef.equipActions[4] = \"Al-Kharid\";\n\t\t\tbreak;\n\n\t\tcase 22000:\n\t\t\titemDef.name = \"Lava partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 22001:\n\t\t\titemDef.name = \"Infernal partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 2552:\n\t\tcase 2554:\n\t\tcase 2556:\n\t\tcase 2558:\n\t\tcase 2560:\n\t\tcase 2562:\n\t\tcase 2564:\n\t\tcase 2566: // Ring of duelling\n\t\t\titemDef.equipActions[2] = \"Shantay Pass\";\n\t\t\titemDef.equipActions[1] = \"Clan wars\";\n\t\t\tbreak;\n\n\t\tcase 21307:\n\t\t\titemDef.name = \"Pursuit crate\";\n\t\t\tbreak;\n\n\t\tcase 12792:\n\t\t\titemDef.name = \"Graceful recolor kit\";\n\t\t\tbreak;\n\n\t\tcase 12022:\n\t\t\titemDef.name = \"Bandos Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Bandos gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12024:\n\t\t\titemDef.name = \"Armadyl Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Armadyl gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12026:\n\t\t\titemDef.name = \"Saradomin Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Saradomin gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12028:\n\t\t\titemDef.name = \"Zamorak Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Zamorak gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 964:\n\t\t\titemDef.name = \"Pet Petie\";\n\t\t\tbreak;\n\n\t\tcase 20853:\n\t\t\titemDef.name = \"Deep Sea Bait\";\n\t\t\titemDef.stackable = true;\n\t\t\tbreak;\n\n\t\t/*\n\t\t * case 17014: itemDef.name = \"Dragon flail\"; itemDef.modelId = 50083;\n\t\t * itemDef.modelZoom = 1440; itemDef.modelRotation2 = 272;\n\t\t * itemDef.modelRotation1 = 352; itemDef.modelOffset1 = 32;\n\t\t * //itemDef.modelOffset2 = 0; itemDef.maleModel = 50083; itemDef.femaleModel =\n\t\t * 50083; itemDef.anInt164 = -1; itemDef.anInt188 = -1; itemDef.aByte205 = -8;\n\t\t * itemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t * itemDef.inventoryOptions = new String[] { \"Wear\", null, null, null, \"Drop\" };\n\t\t * itemDef.description = \"An Ancient Dragon Flail.\"; break;\n\t\t */\n\n\t\tcase 33272:\n\t\t\titemDef.name = \"Justiciar's Longsword\";\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modelId = 65472;\n\t\t\titemDef.modelZoom = 1726;\n\t\t\titemDef.modelRotation1 = 1576;\n\t\t\titemDef.modelRotation2 = 242;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\t// itemDef.anInt204 = 0;\n\t\t\t// itemDef.aByte205 = -12;\n\t\t\t// itemDef.aByte154 = 0;\n\t\t\titemDef.maleModel = 65465;\n\t\t\titemDef.femaleModel = 65465;\n\t\t\titemDef.description = \"An ancient longsword received from the Trial of Flames.\";\n\t\t\tbreak;\n\n\t\tcase 33168:\n\t\t\titemDef.name = \"Justiciar kiteshield\";\n\t\t\titemDef.modelId = 65471;\n\t\t\titemDef.modelZoom = 1600;\n\t\t\titemDef.modelRotation2 = 250;\n\t\t\titemDef.modelRotation1 = 300;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.maleModel = 65473;\n\t\t\titemDef.femaleModel = 65474;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An ancient kiteshield. Part of the Justiciar set.\";\n\t\t\tbreak;\n\n\t\tcase 2996:\n\t\t\titemDef.name = \"PKP Ticket\";\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.description = \"Exchange this for a PK Point.\";\n\t\t\tbreak;\n\t\tcase 13226:\n\t\t\titemDef.name = \"Herb Sack\";\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.description = \"A sack for storing grimy herbs.\";\n\t\t\tbreak;\n\t\tcase 13346:\n\t\t\titemDef.name = \"Raid Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Open for chances to receive Raid items & other awesome rewards.\";\n\t\t\tbreak;\n\t\tcase 8800:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 31624;\n\t\t\t// itemDef.stackAmounts = new int[] { 2, 3, 50, 100, 500000, 1000000, 2500000,\n\t\t\t// 10000000, 100000000, 0 };//amount the model will change at\n\t\t\t// itemDef.stackIDs = new int[] { 8801, 8802, 8803, 8804, 8805, 8806, 8807,\n\t\t\t// 8808, 8809, 0 };//new item id to grab the model from\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 853;\n\t\t\titemDef.modelRotation2 = 1885;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8801:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 15344;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8802:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 15345;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8803:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15346;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8804:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15347;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8805:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15348;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8806:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15349;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8807:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15350;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8808:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15351;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8809:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15352;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 15098:\n\t\t\titemDef.name = \"Dice (up to 100)\";\n\t\t\titemDef.description = \"A 100-sided dice.\";\n\t\t\titemDef.modelId = 31223;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation2 = 215;\n\t\t\titemDef.modelRotation1 = 94;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.modelOffset1 = -18;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Public-roll\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.name = \"Dice (up to 100)\";\n\t\t\titemDef.anInt196 = 15;\n\t\t\titemDef.anInt184 = 25;\n\t\t\tbreak;\n\n\t\tcase 32991:\n\t\t\titemDef.name = \"Divine spirit shield\";\n\t\t\titemDef.description = \"An ethereal shield with an divine sigil attached to it.\";\n\t\t\titemDef.modelId = 50001;\n\t\t\titemDef.maleModel = 50002;\n\t\t\titemDef.femaleModel = 50002;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\tbreak;\n\t\tcase 32992:\n\t\t\titemDef.name = \"Rainbow spirit shield\";\n\t\t\titemDef.description = \"An ethereal shield with all 4 sigils attached to it.\";\n\t\t\titemDef.modelId = 50004;\n\t\t\titemDef.maleModel = 50005;\n\t\t\titemDef.femaleModel = 50005;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32993:\n\t\t\titemDef.name = \"Divine sigil\";\n\t\t\titemDef.description = \"A sigil in the shape of a divine symbol.\";\n\t\t\titemDef.modelId = 50003;\n\t\t\titemDef.modelZoom = 848;\n\t\t\titemDef.modelRotation1 = 267;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33060:\n\t\t\titemDef.name = \"Barrows Sword\";\n\t\t\titemDef.description = \"A sword glowing with otherworldy energy.\";\n\t\t\titemDef.modelId = 22325;\n\t\t\titemDef.maleModel = 50010;\n\t\t\titemDef.femaleModel = 50010;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\tbreak;\n\t\tcase 32994:\n\t\t\titemDef.name = \"Statius's platebody\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42602;\n\t\t\titemDef.maleModel = 35951;\n\t\t\titemDef.femaleModel = 35964;\n\t\t\titemDef.modelZoom = 1312;\n\t\t\titemDef.modelRotation1 = 272;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -2;\n\t\t\titemDef.modelOffset2 = 39;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32995:\n\t\t\titemDef.name = \"Statius's platelegs\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42590;\n\t\t\titemDef.maleModel = 35947;\n\t\t\titemDef.femaleModel = 35961;\n\t\t\titemDef.modelZoom = 1625;\n\t\t\titemDef.modelRotation1 = 355;\n\t\t\titemDef.modelRotation2 = 2046;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32996:\n\t\t\titemDef.name = \"Statius's full helm\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42596;\n\t\t\titemDef.maleModel = 35943;\n\t\t\titemDef.femaleModel = 35958;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 2039;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32997:\n\t\t\titemDef.name = \"Statius's warhammer\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42577;\n\t\t\titemDef.maleModel = 35968;\n\t\t\titemDef.femaleModel = 35968;\n\t\t\titemDef.modelZoom = 1360;\n\t\t\titemDef.modelRotation1 = 507;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 7;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32998:\n\t\t\titemDef.name = \"Vesta's chainbody\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42593;\n\t\t\titemDef.maleModel = 35953;\n\t\t\titemDef.femaleModel = 35965;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 545;\n\t\t\titemDef.modelRotation2 = 2;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32999:\n\t\t\titemDef.name = \"Vesta's plateskirt\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42581;\n\t\t\titemDef.maleModel = 35950;\n\t\t\titemDef.femaleModel = 35960;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33000:\n\t\t\titemDef.name = \"Vesta's longsword\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42597;\n\t\t\titemDef.maleModel = 35969;\n\t\t\titemDef.femaleModel = 35969;\n\t\t\titemDef.modelZoom = 1744;\n\t\t\titemDef.modelRotation1 = 738;\n\t\t\titemDef.modelRotation2 = 1985;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33001:\n\t\t\titemDef.name = \"Vesta's spear\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42599;\n\t\t\titemDef.maleModel = 35973;\n\t\t\titemDef.femaleModel = 35973;\n\t\t\titemDef.modelZoom = 2022;\n\t\t\titemDef.modelRotation1 = 480;\n\t\t\titemDef.modelRotation2 = 15;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33002:\n\t\t\titemDef.name = \"Morrigan's leather body\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42578;\n\t\t\titemDef.maleModel = 35954;\n\t\t\titemDef.femaleModel = 35963;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 545;\n\t\t\titemDef.modelRotation2 = 2;\n\t\t\titemDef.modelOffset1 = -2;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33003:\n\t\t\titemDef.name = \"Morrigan's leather chaps\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42603;\n\t\t\titemDef.maleModel = 35948;\n\t\t\titemDef.femaleModel = 35959;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 482;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33004:\n\t\t\titemDef.name = \"Morrigan's coif\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42583;\n\t\t\titemDef.maleModel = 35945;\n\t\t\titemDef.femaleModel = 35956;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 537;\n\t\t\titemDef.modelRotation2 = 5;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33005:\n\t\t\titemDef.name = \"Morrigan's javelin\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42592;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.maleModel = 42613;\n\t\t\titemDef.femaleModel = 42613;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 282;\n\t\t\titemDef.modelRotation2 = 2009;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33006:\n\t\t\titemDef.name = \"Morrigan's throwing axe\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42582;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.maleModel = 42611;\n\t\t\titemDef.femaleModel = 42611;\n\t\t\titemDef.modelZoom = 976;\n\t\t\titemDef.modelRotation1 = 672;\n\t\t\titemDef.modelRotation2 = 2024;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33007:\n\t\t\titemDef.name = \"Zuriels robe top\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42591;\n\t\t\titemDef.maleModel = 35952;\n\t\t\titemDef.femaleModel = 35966;\n\t\t\titemDef.modelZoom = 1373;\n\t\t\titemDef.modelRotation1 = 373;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33008:\n\t\t\titemDef.name = \"Zuriels robe bottom\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42588;\n\t\t\titemDef.maleModel = 35949;\n\t\t\titemDef.femaleModel = 35962;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33009:\n\t\t\titemDef.name = \"Zuriels hood\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42604;\n\t\t\titemDef.maleModel = 35944;\n\t\t\titemDef.femaleModel = 35957;\n\t\t\titemDef.modelZoom = 720;\n\t\t\titemDef.modelRotation1 = 28;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33010:\n\t\t\titemDef.name = \"Zuriels staff\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42595;\n\t\t\titemDef.maleModel = 35971;\n\t\t\titemDef.femaleModel = 35971;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 366;\n\t\t\titemDef.modelRotation2 = 3;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33011:\n\t\t\titemDef.name = \"Craw's bow (u)\";\n\t\t\titemDef.description = \"This bow once belonged to a formidable follower of Armadyl.\";\n\t\t\titemDef.modelId = 35777;\n\t\t\titemDef.maleModel = 35768;\n\t\t\titemDef.femaleModel = 35768;\n\t\t\titemDef.modelZoom = 1979;\n\t\t\titemDef.modelRotation1 = 1463;\n\t\t\titemDef.modelRotation2 = 510;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33012:\n\t\t\titemDef.name = \"Craw's bow\";\n\t\t\titemDef.description = \"This bow once belonged to a formidable follower of Armadyl.\";\n\t\t\titemDef.modelId = 35777;\n\t\t\titemDef.maleModel = 35769;\n\t\t\titemDef.femaleModel = 35769;\n\t\t\titemDef.modelZoom = 1979;\n\t\t\titemDef.modelRotation1 = 1463;\n\t\t\titemDef.modelRotation2 = 510;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33013:\n\t\t\titemDef.name = \"Thammaron's sceptre (u)\";\n\t\t\titemDef.description = \"A mighty sceptre used in long forgotten battles.\";\n\t\t\titemDef.modelId = 35776;\n\t\t\titemDef.maleModel = 35772;\n\t\t\titemDef.femaleModel = 35772;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33014:\n\t\t\titemDef.name = \"Thammaron's sceptre\";\n\t\t\titemDef.description = \"A mighty sceptre used in long forgotten battles.\";\n\t\t\titemDef.modelId = 35776;\n\t\t\titemDef.maleModel = 35773;\n\t\t\titemDef.femaleModel = 35773;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33015:\n\t\t\titemDef.name = \"Viggora's chainmace (u)\";\n\t\t\titemDef.description = \"An ancient chainmace with a peculiar mechanism that allows for varying attack styles.\";\n\t\t\titemDef.modelId = 35778;\n\t\t\titemDef.maleModel = 35770;\n\t\t\titemDef.femaleModel = 35770;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 944;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33016:\n\t\t\titemDef.name = \"Viggora's chainmace\";\n\t\t\titemDef.description = \"An ancient chainmace with a peculiar mechanism that allows for varying attack styles.\";\n\t\t\titemDef.modelId = 35778;\n\t\t\titemDef.maleModel = 35771;\n\t\t\titemDef.femaleModel = 35771;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 944;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33018:\n\t\t\titemDef.name = \"Amulet of avarice\";\n\t\t\titemDef.description = \"A hauntingly beautiful amulet bearing the shape of a skull.\";\n\t\t\titemDef.modelId = 35779;\n\t\t\titemDef.maleModel = 35766;\n\t\t\titemDef.femaleModel = 35766;\n\t\t\titemDef.modelZoom = 420;\n\t\t\titemDef.modelRotation1 = 191;\n\t\t\titemDef.modelRotation2 = 86;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33019:\n\t\t\titemDef.name = \"Completionist cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modelId = 65270;\n\t\t\titemDef.maleModel = 65297;\n\t\t\titemDef.femaleModel = 65316;\n\t\t\titemDef.modelZoom = 1316;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 24;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33020:\n\t\t\titemDef.name = \"Completionist cape (t)\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modelId = 65258;\n\t\t\titemDef.maleModel = 65295;\n\t\t\titemDef.femaleModel = 65328;\n\t\t\titemDef.modelZoom = 1316;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 24;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33021:\n\t\t\titemDef.name = \"Torva full helm\";\n\t\t\titemDef.description = \"An ancient warrior's full helm.\";\n\t\t\titemDef.modelId = 62714;\n\t\t\titemDef.maleModel = 62738;\n\t\t\titemDef.femaleModel = 62738;\n\t\t\titemDef.modelZoom = 672;\n\t\t\titemDef.modelRotation1 = 85;\n\t\t\titemDef.modelRotation2 = 1867;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33022:\n\t\t\titemDef.name = \"Torva platebody\";\n\t\t\titemDef.description = \"An ancient warrior's platebody.\";\n\t\t\titemDef.modelId = 62699;\n\t\t\titemDef.maleModel = 62746;\n\t\t\titemDef.femaleModel = 62746;\n\t\t\titemDef.modelZoom = 1506;\n\t\t\titemDef.modelRotation1 = 473;\n\t\t\titemDef.modelRotation2 = 2042;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33023:\n\t\t\titemDef.name = \"Torva platelegs\";\n\t\t\titemDef.description = \"An ancient warrior's platelegs.\";\n\t\t\titemDef.modelId = 62701;\n\t\t\titemDef.maleModel = 62740;\n\t\t\titemDef.femaleModel = 62740;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 474;\n\t\t\titemDef.modelRotation2 = 2045;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33024:\n\t\t\titemDef.name = \"Pernix cowl\";\n\t\t\titemDef.description = \"An ancient warrior's cowl.\";\n\t\t\titemDef.modelId = 62693;\n\t\t\titemDef.maleModel = 62739;\n\t\t\titemDef.femaleModel = 62739;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 532;\n\t\t\titemDef.modelRotation2 = 14;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33025:\n\t\t\titemDef.name = \"Pernix body\";\n\t\t\titemDef.description = \"An ancient warrior's leather body.\";\n\t\t\titemDef.modelId = 62709;\n\t\t\titemDef.maleModel = 62744;\n\t\t\titemDef.femaleModel = 62744;\n\t\t\titemDef.modelZoom = 1378;\n\t\t\titemDef.modelRotation1 = 485;\n\t\t\titemDef.modelRotation2 = 2042;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33026:\n\t\t\titemDef.name = \"Pernix chaps\";\n\t\t\titemDef.description = \"An ancient warrior's chaps.\";\n\t\t\titemDef.modelId = 62695;\n\t\t\titemDef.maleModel = 62741;\n\t\t\titemDef.femaleModel = 62741;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 504;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33027:\n\t\t\titemDef.name = \"Virtus mask\";\n\t\t\titemDef.description = \"An ancient warrior's mask.\";\n\t\t\titemDef.modelId = 62710;\n\t\t\titemDef.maleModel = 62736;\n\t\t\titemDef.femaleModel = 62736;\n\t\t\titemDef.modelZoom = 928;\n\t\t\titemDef.modelRotation1 = 406;\n\t\t\titemDef.modelRotation2 = 2041;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33028:\n\t\t\titemDef.name = \"Virtus robe top\";\n\t\t\titemDef.description = \"An ancient warrior's robe top.\";\n\t\t\titemDef.modelId = 62704;\n\t\t\titemDef.maleModel = 62748;\n\t\t\titemDef.femaleModel = 62748;\n\t\t\titemDef.modelZoom = 1122;\n\t\t\titemDef.modelRotation1 = 488;\n\t\t\titemDef.modelRotation2 = 3;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33029:\n\t\t\titemDef.name = \"Virtus robe legs\";\n\t\t\titemDef.description = \"An ancient warrior's robe legs.\";\n\t\t\titemDef.modelId = 62700;\n\t\t\titemDef.maleModel = 62742;\n\t\t\titemDef.femaleModel = 62742;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 2045;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33030:\n\t\t\titemDef.name = \"Zaryte bow\";\n\t\t\titemDef.description = \"An ancient warrior's bow.\";\n\t\t\titemDef.modelId = 62692;\n\t\t\titemDef.maleModel = 62750;\n\t\t\titemDef.femaleModel = 62750;\n\t\t\titemDef.modelZoom = 1703;\n\t\t\titemDef.modelRotation1 = 221;\n\t\t\titemDef.modelRotation2 = 404;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -13;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33083:\n\t\t\titemDef.name = \"Tokhaar-kal\";\n\t\t\titemDef.description = \"\tA cape made of ancient, enchanted obsidian.\";\n\t\t\titemDef.modelId = 52073;\n\t\t\titemDef.maleModel = 52072;\n\t\t\titemDef.femaleModel = 52071;\n\t\t\titemDef.modelZoom = 1615;\n\t\t\titemDef.modelRotation1 = 339;\n\t\t\titemDef.modelRotation2 = 192;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33089:\n\t\t\titemDef.name = \"Chaotic maul\";\n\t\t\titemDef.description = \"A maul used to claim life from those who don't deserve it.\";\n\t\t\titemDef.modelId = 54286;\n\t\t\titemDef.maleModel = 56294;\n\t\t\titemDef.femaleModel = 56294;\n\t\t\titemDef.modelZoom = 1447;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 350;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33094:\n\t\t\titemDef.name = \"Chaotic crossbow\";\n\t\t\titemDef.description = \"A small crossbow, only effective at short distance.\";\n\t\t\titemDef.modelId = 54331;\n\t\t\titemDef.maleModel = 56307;\n\t\t\titemDef.femaleModel = 56307;\n\t\t\titemDef.modelZoom = 1028;\n\t\t\titemDef.modelRotation1 = 249;\n\t\t\titemDef.modelRotation2 = 2021;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -54;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33095:\n\t\t\titemDef.name = \"Chaotic staff\";\n\t\t\titemDef.description = \"This staff makes destructive spells more powerful.\";\n\t\t\titemDef.modelId = 54367;\n\t\t\titemDef.maleModel = 56286;\n\t\t\titemDef.femaleModel = 56286;\n\t\t\titemDef.modelZoom = 1711;\n\t\t\titemDef.modelRotation1 = 471;\n\t\t\titemDef.modelRotation2 = 391;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33096:\n\t\t\titemDef.name = \"Chaotic kiteshield\";\n\t\t\titemDef.description = \"A large metal shield.\";\n\t\t\titemDef.modelId = 54358;\n\t\t\titemDef.maleModel = 56038;\n\t\t\titemDef.femaleModel = 56038;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 276;\n\t\t\titemDef.modelRotation2 = 1101;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33031:\n\t\t\titemDef.name = \"Chaotic rapier\";\n\t\t\titemDef.description = \"A razor-sharp rapier.\";\n\t\t\titemDef.modelId = 54197;\n\t\t\titemDef.maleModel = 56252;\n\t\t\titemDef.femaleModel = 56252;\n\t\t\titemDef.modelZoom = 1425;\n\t\t\titemDef.modelRotation1 = 540;\n\t\t\titemDef.modelRotation2 = 1370;\n\t\t\titemDef.modelOffset1 = 9;\n\t\t\titemDef.modelOffset2 = 13;\n\t\t\titemDef.maleOffset = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33032:\n\t\t\titemDef.name = \"Chaotic longsword\";\n\t\t\titemDef.description = \"A razor-sharp longsword.\";\n\t\t\titemDef.modelId = 54204;\n\t\t\titemDef.maleModel = 56237;\n\t\t\titemDef.femaleModel = 56237;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33097:\n\t\t\titemDef.name = \"Sword of Onyxia\";\n\t\t\titemDef.description = \"A razor-sharp longsword.\";\n\t\t\titemDef.modelId = 53091;\n\t\t\titemDef.maleModel = 53092;\n\t\t\titemDef.femaleModel = 53092;\n\t\t\titemDef.modelZoom = 2007;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33098:\n\t\t\titemDef.name = \"Onyxia longsword\";\n\t\t\titemDef.description = \"A razor-sharp 2h sword.\";\n\t\t\titemDef.modelId = 53093;\n\t\t\titemDef.maleModel = 53094;\n\t\t\titemDef.femaleModel = 53094;\n\t\t\titemDef.modelZoom = 4007;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33099:\n\t\t\titemDef.name = \"White scimitar\";\n\t\t\titemDef.description = \"A razor-sharp scimitar.\";\n\t\t\titemDef.modelId = 53097;\n\t\t\titemDef.maleModel = 53098;\n\t\t\titemDef.femaleModel = 53098;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 312;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33100:\n\t\t\titemDef.name = \"White kiteshield\";\n\t\t\titemDef.description = \"a heavy kiteshield.\";\n\t\t\titemDef.modelId = 53095;\n\t\t\titemDef.maleModel = 53096;\n\t\t\titemDef.femaleModel = 53096;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 303;\n\t\t\titemDef.modelRotation2 = 180;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33033:\n\t\t\titemDef.name = \"Agility master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 677, 801, 43540, 43543, 43546, 43549, 43550, 43552, 43554, 43558,\n\t\t\t\t\t43560, 43575 };\n\t\t\titemDef.modelId = 50030;\n\t\t\titemDef.maleModel = 50031;\n\t\t\titemDef.femaleModel = 50031;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33034:\n\t\t\titemDef.name = \"Attack master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 7104, 9151, 911, 914, 917, 920, 921, 923, 925, 929, 931, 946 };\n\t\t\titemDef.modelId = 50032;\n\t\t\titemDef.maleModel = 50033;\n\t\t\titemDef.femaleModel = 50033;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33035:\n\t\t\titemDef.name = \"Construction master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 6061, 5945, 6327, 6330, 6333, 6336, 6337, 6339, 6341, 6345, 6347,\n\t\t\t\t\t6362 };\n\t\t\titemDef.modelId = 50034;\n\t\t\titemDef.maleModel = 50035;\n\t\t\titemDef.femaleModel = 50035;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33036:\n\t\t\titemDef.name = \"Cooking master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 920, 920, 51856, 51859, 51862, 51865, 51866, 51868, 51870, 51874,\n\t\t\t\t\t51876, 51891 };\n\t\t\titemDef.modelId = 50036;\n\t\t\titemDef.maleModel = 50037;\n\t\t\titemDef.femaleModel = 50037;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33037:\n\t\t\titemDef.name = \"Crafting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9142, 9152, 4511, 4514, 4517, 4520, 4521, 4523, 4525, 4529, 4531,\n\t\t\t\t\t4546 };\n\t\t\titemDef.modelId = 50038;\n\t\t\titemDef.maleModel = 50039;\n\t\t\titemDef.femaleModel = 50039;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33038:\n\t\t\titemDef.name = \"Defence master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 10460, 10473, 41410, 41413, 41416, 41419, 41420, 41422, 41424,\n\t\t\t\t\t41428, 41430, 41445 };\n\t\t\titemDef.modelId = 50040;\n\t\t\titemDef.maleModel = 50041;\n\t\t\titemDef.femaleModel = 50041;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33039:\n\t\t\titemDef.name = \"Farming master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 14775, 14792, 22026, 22029, 22032, 22035, 22036, 22038, 22040,\n\t\t\t\t\t22044, 22046, 22061 };\n\t\t\titemDef.modelId = 50042;\n\t\t\titemDef.maleModel = 50043;\n\t\t\titemDef.femaleModel = 50043;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33040:\n\t\t\titemDef.name = \"Firemaking master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 8125, 9152, 4015, 4018, 4021, 4024, 4025, 4027, 4029, 4033, 4035,\n\t\t\t\t\t4050 };\n\t\t\titemDef.modelId = 50044;\n\t\t\titemDef.maleModel = 50045;\n\t\t\titemDef.femaleModel = 50045;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33041:\n\t\t\titemDef.name = \"Fishing master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9144, 9152, 38202, 38205, 38208, 38211, 38212, 38214, 38216,\n\t\t\t\t\t38220, 38222, 38237 };\n\t\t\titemDef.modelId = 50046;\n\t\t\titemDef.maleModel = 50047;\n\t\t\titemDef.femaleModel = 50047;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33042:\n\t\t\titemDef.name = \"Fletching master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 6067, 9152, 33670, 33673, 33676, 33679, 33680, 33682, 33684,\n\t\t\t\t\t33688, 33690, 33705 };\n\t\t\titemDef.modelId = 50048;\n\t\t\titemDef.maleModel = 50049;\n\t\t\titemDef.femaleModel = 50049;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33043:\n\t\t\titemDef.name = \"Herblore master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9145, 9156, 22414, 22417, 22420, 22423, 22424, 22426, 22428,\n\t\t\t\t\t22432, 22434, 22449 };\n\t\t\titemDef.modelId = 50050;\n\t\t\titemDef.maleModel = 50051;\n\t\t\titemDef.femaleModel = 50051;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33044:\n\t\t\titemDef.name = \"Hitpoints master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 818, 951, 8291, 8294, 8297, 8300, 8301, 8303, 8305, 8309, 8311,\n\t\t\t\t\t8319 };\n\t\t\titemDef.modelId = 50052;\n\t\t\titemDef.maleModel = 50053;\n\t\t\titemDef.femaleModel = 50053;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\titemDef.femaleOffset = 4;\n\t\t\tbreak;\n\t\tcase 33045:\n\t\t\titemDef.name = \"Hunter master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 5262, 6020, 8472, 8475, 8478, 8481, 8482, 8484, 8486, 8490, 8492,\n\t\t\t\t\t8507 };\n\t\t\titemDef.modelId = 50054;\n\t\t\titemDef.maleModel = 50055;\n\t\t\titemDef.femaleModel = 50055;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33046:\n\t\t\titemDef.name = \"Magic master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 43569, 43685, 6336, 6339, 6342, 6345, 6346, 6348, 6350, 6354,\n\t\t\t\t\t6356, 6371 };\n\t\t\titemDef.modelId = 50056;\n\t\t\titemDef.maleModel = 50057;\n\t\t\titemDef.femaleModel = 50057;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33047:\n\t\t\titemDef.name = \"Mining master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 36296, 36279, 10386, 10389, 10392, 10395, 10396, 10398, 10400,\n\t\t\t\t\t10404, 10406, 10421 };\n\t\t\titemDef.modelId = 50058;\n\t\t\titemDef.maleModel = 50059;\n\t\t\titemDef.femaleModel = 50059;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33048:\n\t\t\titemDef.name = \"Prayer master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9163, 9168, 117, 120, 123, 126, 127, 127, 127, 127, 127, 127 };\n\t\t\titemDef.modelId = 50060;\n\t\t\titemDef.maleModel = 50061;\n\t\t\titemDef.femaleModel = 50061;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33049:\n\t\t\titemDef.name = \"Range master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 3755, 3998, 15122, 15125, 15128, 15131, 15132, 15134, 15136,\n\t\t\t\t\t15140, 15142, 15157 };\n\t\t\titemDef.modelId = 50062;\n\t\t\titemDef.maleModel = 50063;\n\t\t\titemDef.femaleModel = 50063;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33050:\n\t\t\titemDef.name = \"Runecrafting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9152, 8128, 10318, 10321, 10324, 10327, 10328, 10330, 10332,\n\t\t\t\t\t10336, 10338, 10353 };\n\t\t\titemDef.modelId = 50064;\n\t\t\titemDef.maleModel = 50065;\n\t\t\titemDef.femaleModel = 50065;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33051:\n\t\t\titemDef.name = \"Slayer master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811 };\n\t\t\titemDef.originalModelColors = new int[] { 912, 920 };\n\t\t\titemDef.modelId = 50066;\n\t\t\titemDef.maleModel = 50067;\n\t\t\titemDef.femaleModel = 50067;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33052:\n\t\t\titemDef.name = \"Smithing master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 8115, 9148, 10386, 10389, 10392, 10395, 10396, 10398, 10400,\n\t\t\t\t\t10404, 10406, 10421 };\n\t\t\titemDef.modelId = 50068;\n\t\t\titemDef.maleModel = 50069;\n\t\t\titemDef.femaleModel = 50069;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33053:\n\t\t\titemDef.name = \"Strength master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 935, 931, 27538, 27541, 27544, 27547, 27548, 27550, 27552, 27556,\n\t\t\t\t\t27558, 27573 };\n\t\t\titemDef.modelId = 50070;\n\t\t\titemDef.maleModel = 50071;\n\t\t\titemDef.femaleModel = 50071;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33054:\n\t\t\titemDef.name = \"Thieving master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 11, 0, 58779, 58782, 58785, 58788, 58789, 57891, 58793, 58797,\n\t\t\t\t\t58799, 58814 };\n\t\t\titemDef.modelId = 50072;\n\t\t\titemDef.maleModel = 50073;\n\t\t\titemDef.femaleModel = 50073;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33055:\n\t\t\titemDef.name = \"Woodcutting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 25109, 24088, 6693, 6696, 6699, 6702, 6703, 6705, 6707, 6711,\n\t\t\t\t\t6713, 6728 };\n\t\t\titemDef.modelId = 50074;\n\t\t\titemDef.maleModel = 50075;\n\t\t\titemDef.femaleModel = 50075;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33057:\n\t\t\titemDef.name = \"Abyssal Scythe\";\n\t\t\titemDef.description = \"\tA Scythe recieved from the Trials of Xeric CUSTOM RAID.\";\n\t\t\titemDef.modelId = 50081;\n\t\t\titemDef.maleModel = 50080;\n\t\t\titemDef.femaleModel = 50080;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.maleOffset = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33090:\n\t\t\titemDef.name = \"Goliath gloves (Black)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50100;\n\t\t\titemDef.femaleModel = 50101;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33091:\n\t\t\titemDef.name = \"Goliath gloves (Red)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50102;\n\t\t\titemDef.femaleModel = 50103;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33092:\n\t\t\titemDef.name = \"Goliath gloves (White)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50104;\n\t\t\titemDef.femaleModel = 50105;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33093:\n\t\t\titemDef.name = \"Goliath gloves (Yellow)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50106;\n\t\t\titemDef.femaleModel = 50107;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 12639:\n\t\tcase 12637:\n\t\tcase 12638:\n\t\t\titemDef.description = \"Provides players with infinite run energy!\";\n\t\t\tbreak;\n\t\tcase 33056:\n\t\t\titemDef.name = \"Events cape (slayer)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 933, 0, 0, 0, 0 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33081:\n\t\t\titemDef.name = \"Events cape (agility)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 669, 43430, 43430, 43430, 43430 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33080:\n\t\t\titemDef.name = \"Events cape (attack)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 9926, 1815, 1815, 1815, 1815 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33059:\n\t\t\titemDef.name = \"Events cape (construction)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 6967, 6343, 6343, 6343, 6343 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33061:\n\t\t\titemDef.name = \"Events cape (cooking)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1819, 49685, 49685, 49685, 49685 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33062:\n\t\t\titemDef.name = \"Events cape (crafting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 7994, 4516, 4516, 4516, 4516 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33063:\n\t\t\titemDef.name = \"Events cape (defence)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 39367, 10472, 10472, 10472, 10472 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33064:\n\t\t\titemDef.name = \"Events cape (farming)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10698, 19734, 19734, 19734, 19734 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33065:\n\t\t\titemDef.name = \"Events cape (firemaking)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10059, 4922, 4922, 4922, 4922 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33066:\n\t\t\titemDef.name = \"Events cape (fishing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 36165, 36165, 36165, 36165 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33067:\n\t\t\titemDef.name = \"Events cape (fletching)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 31500, 31500, 31500, 31500 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33068:\n\t\t\titemDef.name = \"Events cape (herblore)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10051, 20889, 20889, 20889, 20889 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33069:\n\t\t\titemDef.name = \"Events cape (hitpoints)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1836, 8296, 8296, 8296, 8296 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33070:\n\t\t\titemDef.name = \"Events cape (hunter)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 6916, 8477, 8477, 8477, 8477 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33071:\n\t\t\titemDef.name = \"Events cape (magic)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 43556, 6339, 6339, 6339, 6339 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33072:\n\t\t\titemDef.name = \"Events cape (mining)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 34111, 10391, 10391, 10391, 10391 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33073:\n\t\t\titemDef.name = \"Events cape (prayer)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 9927, 2169, 2169, 2169, 2169 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33074:\n\t\t\titemDef.name = \"Events cape (range)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 3626, 20913, 20913, 20913, 20913 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33075:\n\t\t\titemDef.name = \"Events cape (runecrafting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 10323, 10323, 10323, 10323 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33076:\n\t\t\titemDef.name = \"Events cape (smithing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10044, 5412, 5412, 5412, 5412 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33077:\n\t\t\titemDef.name = \"Events cape (strength)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1819, 30487, 30487, 30487, 30487 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33078:\n\t\t\titemDef.name = \"Events cape (thieveing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 8, 57636, 57636, 57636, 57636 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33079:\n\t\t\titemDef.name = \"Events cape (woodcutting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 26007, 6570, 6570, 6570, 6570 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33101:\n\t\t\titemDef.name = \"Vorkath platebody\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53100;\n\t\t\titemDef.maleModel = 53099;\n\t\t\titemDef.femaleModel = 53099;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33102:\n\t\t\titemDef.name = \"Vorkath platelegs\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53102;\n\t\t\titemDef.maleModel = 53101;\n\t\t\titemDef.femaleModel = 53101;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33103:\n\t\t\titemDef.name = \"Vorkath boots\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53104;\n\t\t\titemDef.maleModel = 53103;\n\t\t\titemDef.femaleModel = 53103;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33104:\n\t\t\titemDef.name = \"Vorkath gloves\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53106;\n\t\t\titemDef.maleModel = 53105;\n\t\t\titemDef.femaleModel = 53105;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33105:\n\t\t\titemDef.name = \"Vorkath helmet\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53108;\n\t\t\titemDef.maleModel = 53107;\n\t\t\titemDef.femaleModel = 53107;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33106:\n\t\t\titemDef.name = \"Tekton helmet\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53118;\n\t\t\titemDef.maleModel = 53117;\n\t\t\titemDef.femaleModel = 53117;\n\t\t\titemDef.modelZoom = 724;\n\t\t\titemDef.modelRotation1 = 81;\n\t\t\titemDef.modelRotation2 = 1670;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33107:\n\t\t\titemDef.name = \"Tekton platebody\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53110;\n\t\t\titemDef.maleModel = 53109;\n\t\t\titemDef.femaleModel = 53109;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33108:\n\t\t\titemDef.name = \"Tekton platelegs\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53112;\n\t\t\titemDef.maleModel = 53111;\n\t\t\titemDef.femaleModel = 53111;\n\t\t\titemDef.modelZoom = 1550;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 186;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33109:\n\t\t\titemDef.name = \"Tekton gloves\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53116;\n\t\t\titemDef.maleModel = 53115;\n\t\t\titemDef.femaleModel = 53115;\n\t\t\titemDef.modelZoom = 830;\n\t\t\titemDef.modelRotation1 = 536;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33110:\n\t\t\titemDef.name = \"Tekton boots\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53114;\n\t\t\titemDef.maleModel = 53113;\n\t\t\titemDef.femaleModel = 53113;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33111:\n\t\t\titemDef.name = \"Anti-santa scythe\";\n\t\t\titemDef.description = \"Legend says this is the biggest arse scratcher around.\";\n\t\t\titemDef.modelId = 57002;\n\t\t\titemDef.maleModel = 57001;\n\t\t\titemDef.femaleModel = 57001;\n\t\t\titemDef.modelZoom = 3224;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 714;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33112:\n\t\t\titemDef.name = \"Dominion staff\";\n\t\t\titemDef.description = \"Dominion staff.\";\n\t\t\titemDef.modelId = 59029;\n\t\t\titemDef.maleModel = 59305;\n\t\t\titemDef.femaleModel = 59305;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 288;\n\t\t\titemDef.modelRotation2 = 1685;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33113:\n\t\t\titemDef.name = \"Dominion sword\";\n\t\t\titemDef.description = \"Dominion sword.\";\n\t\t\titemDef.modelId = 59832;\n\t\t\titemDef.maleModel = 59306;\n\t\t\titemDef.femaleModel = 59306;\n\t\t\titemDef.modelZoom = 1829;\n\t\t\titemDef.modelRotation1 = 513;\n\t\t\titemDef.modelRotation2 = 546;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33114:\n\t\t\titemDef.name = \"Dominion crossbow\";\n\t\t\titemDef.description = \"Dominion crossbow.\";\n\t\t\titemDef.modelId = 59839;\n\t\t\titemDef.maleModel = 59304;\n\t\t\titemDef.femaleModel = 59304;\n\t\t\titemDef.modelZoom = 1490;\n\t\t\titemDef.modelRotation1 = 362;\n\t\t\titemDef.modelRotation2 = 791;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33115:\n\t\t\titemDef.name = \"Dragonfire Shield (e)\";\n\t\t\titemDef.description = \"unamed shield.\";\n\t\t\titemDef.modelId = 53120;\n\t\t\titemDef.maleModel = 53119;\n\t\t\titemDef.femaleModel = 53119;\n\t\t\titemDef.modelZoom = 2022;\n\t\t\titemDef.modelRotation1 = 540;\n\t\t\titemDef.modelRotation2 = 123;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[] { null, \"Wear\", \"Inspect\", \"Empty\", \"Drop\" };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33116:\n\t\t\titemDef.name = \"Zilyana's longbow\";\n\t\t\titemDef.description = \"A bow belonged to Zilyana.\";\n\t\t\titemDef.modelId = 53122;\n\t\t\titemDef.maleModel = 53121;\n\t\t\titemDef.femaleModel = 53121;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 1010;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33117:\n\t\t\titemDef.name = \"Black dragon hunter crossbow\";\n\t\t\titemDef.description = \"Black dragon hunter crossbow.\";\n\t\t\titemDef.modelId = 53124;\n\t\t\titemDef.maleModel = 53123;\n\t\t\titemDef.femaleModel = 53123;\n\t\t\titemDef.modelZoom = 1554;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 1010;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33118:\n\t\t\titemDef.name = \"Vorkath blowpipe\";\n\t\t\titemDef.description = \"Vorkath blowpipe.\";\n\t\t\titemDef.modelId = 53126;\n\t\t\titemDef.maleModel = 53125;\n\t\t\titemDef.femaleModel = 53125;\n\t\t\titemDef.modelZoom = 1158;\n\t\t\titemDef.modelRotation1 = 768;\n\t\t\titemDef.modelRotation2 = 189;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33119:\n\t\t\titemDef.name = \"Superior twisted bow\";\n\t\t\titemDef.description = \"An upgraded twisted bow.\";\n\t\t\titemDef.modelId = 53128;\n\t\t\titemDef.maleModel = 53127;\n\t\t\titemDef.femaleModel = 53127;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.maleOffset = -4;\n\t\t\titemDef.femaleOffset = -4;\n\t\t\tbreak;\n\t\tcase 33123:\n\t\t\titemDef.name = \"Staff of sliske\";\n\t\t\titemDef.description = \"Staff of sliske.\";\n\t\t\titemDef.modelId = 59234;\n\t\t\titemDef.maleModel = 59233;\n\t\t\titemDef.femaleModel = 59233;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 288;\n\t\t\titemDef.modelRotation2 = 1685;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33124:\n\t\t\titemDef.name = \"Twisted crossbow\";\n\t\t\titemDef.description = \"Twisted crossbow.\";\n\t\t\titemDef.modelId = 62777;\n\t\t\titemDef.maleModel = 62776;\n\t\t\titemDef.femaleModel = 62776;\n\t\t\titemDef.modelZoom = 926;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 258;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33125:\n\t\t\titemDef.name = \"Present\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 933, 24410 };\n\t\t\titemDef.description = \"Santa's stolen present\";\n\t\t\tbreak;\n\t\tcase 33126:\n\t\t\titemDef.name = \"Christmas tree branch\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 2412;\n\t\t\titemDef.modelZoom = 940;\n\t\t\titemDef.modelRotation1 = 268;\n\t\t\titemDef.modelRotation2 = 152;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = -21;\n\t\t\titemDef.modifiedModelColors = new int[] { 11144 };\n\t\t\titemDef.originalModelColors = new int[] { 6047 };\n\t\t\titemDef.description = \"Enter examine here.\";\n\t\t\tbreak;\n\t\tcase 33127:\n\t\t\titemDef.name = \"Kbd gloves\";\n\t\t\titemDef.description = \"Kbd gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 33085 };\n\t\t\titemDef.originalModelColors = new int[] { 1060 };\n\t\t\titemDef.modelId = 53106;\n\t\t\titemDef.maleModel = 53105;\n\t\t\titemDef.femaleModel = 53105;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33128:\n\t\t\titemDef.name = \"Kbd boots\";\n\t\t\titemDef.description = \"Kbd boots.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 33198, 33202, 33206, 33215, 33210 };\n\t\t\titemDef.originalModelColors = new int[] { 1060, 1061, 1063, 1064, 1065 };\n\t\t\titemDef.modelId = 53104;\n\t\t\titemDef.maleModel = 53103;\n\t\t\titemDef.femaleModel = 53103;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33129:\n\t\t\titemDef.name = \"Kbd platelegs\";\n\t\t\titemDef.description = \"Kbd platelegs.\";\n\t\t\titemDef.modelId = 59994;\n\t\t\titemDef.maleModel = 59995;\n\t\t\titemDef.femaleModel = 59995;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33130:\n\t\t\titemDef.name = \"Kbd platebody\";\n\t\t\titemDef.description = \"Kbd platebody.\";\n\t\t\titemDef.modelId = 59998;\n\t\t\titemDef.maleModel = 59999;\n\t\t\titemDef.femaleModel = 59999;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33131:\n\t\t\titemDef.name = \"Kbd helmet\";\n\t\t\titemDef.description = \"Kbd helmet.\";\n\t\t\titemDef.modelId = 59996;\n\t\t\titemDef.maleModel = 59997;\n\t\t\titemDef.femaleModel = 59997;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33132:\n\t\t\titemDef.name = \"Kbd cape\";\n\t\t\titemDef.description = \"Kbd cape.\";\n\t\t\titemDef.modelId = 59992;\n\t\t\titemDef.maleModel = 59993;\n\t\t\titemDef.femaleModel = 59993;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33133:\n\t\t\titemDef.name = \"Anti-imp pet\";\n\t\t\titemDef.description = \"Anti-imp pet.\";\n\t\t\titemDef.modelId = 45294;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33134:\n\t\t\titemDef.name = \"Anti-santa pet\";\n\t\t\titemDef.description = \"Anti-santa pet.\";\n\t\t\titemDef.modelId = 29030;\n\t\t\titemDef.modelZoom = 653;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 1966;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33135:\n\t\t\titemDef.name = \"Bandos mask\";\n\t\t\titemDef.description = \"Bandos helmet.\";\n\t\t\titemDef.modelId = 59987;\n\t\t\titemDef.maleModel = 59991;\n\t\t\titemDef.femaleModel = 59991;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33136:\n\t\t\titemDef.name = \"Armadyl mask\";\n\t\t\titemDef.description = \"Armadyl mask.\";\n\t\t\titemDef.modelId = 59986;\n\t\t\titemDef.maleModel = 59990;\n\t\t\titemDef.femaleModel = 59990;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33137:\n\t\t\titemDef.name = \"Zamorak mask\";\n\t\t\titemDef.description = \"Zamorak mask.\";\n\t\t\titemDef.modelId = 59985;\n\t\t\titemDef.maleModel = 59989;\n\t\t\titemDef.femaleModel = 59989;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33138:\n\t\t\titemDef.name = \"Saradomin mask\";\n\t\t\titemDef.description = \"Saradomin mask.\";\n\t\t\titemDef.modelId = 59984;\n\t\t\titemDef.maleModel = 59988;\n\t\t\titemDef.femaleModel = 59988;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33139:\n\t\t\titemDef.name = \"Zamarok godbow\";\n\t\t\titemDef.description = \"Zamarok godbow.\";\n\t\t\titemDef.modelId = 60560;//60553\n\t\t\titemDef.maleModel = 60560;\n\t\t\titemDef.femaleModel = 60560;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33140:\n\t\t\titemDef.name = \"Saradomin godbow\";\n\t\t\titemDef.description = \"Saradomin godbow.\";\n\t\t\titemDef.modelId = 60555;\n\t\t\titemDef.maleModel = 60554;\n\t\t\titemDef.femaleModel = 60554;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33141:\n\t\t\titemDef.name = \"Bandos godbow\";\n\t\t\titemDef.description = \"Bandos godbow.\";\n\t\t\titemDef.modelId = 60559;\n\t\t\titemDef.maleModel = 60558;\n\t\t\titemDef.femaleModel = 60558;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33142:\n\t\t\titemDef.name = \"Fire cape (purple)\";\n\t\t\titemDef.description = \"Fire cape (purple).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33148:\n\t\t\titemDef.name = \"Fire cape (cyan)\";\n\t\t\titemDef.description = \"Fire cape (cyan).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33144:\n\t\t\titemDef.name = \"Fire cape (green)\";\n\t\t\titemDef.description = \"Fire cape (green).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33145:\n\t\t\titemDef.name = \"Fire cape (red)\";\n\t\t\titemDef.description = \"Fire cape (red).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33143:\n\t\t\titemDef.name = \"Infernal cape (blue)\";\n\t\t\titemDef.description = \"Infernal cape (blue).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 39851, 39851, 39851, 39851 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33146:\n\t\t\titemDef.name = \"Infernal cape (green)\";\n\t\t\titemDef.description = \"Infernal cape (green).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 21167, 21167, 21167, 21167 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33147:\n\t\t\titemDef.name = \"Infernal cape (purple)\";\n\t\t\titemDef.description = \"Infernal cape (purple).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 53160, 53160, 53160, 53160 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33150:\n\t\t\titemDef.name = \"Infernal key piece 1\";\n\t\t\titemDef.description = \"Infernal key piece 1.\";\n\t\t\titemDef.modelId = 61001;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33151:\n\t\t\titemDef.name = \"Infernal key piece 2\";\n\t\t\titemDef.description = \"Infernal key piece 2.\";\n\t\t\titemDef.modelId = 61002;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33152:\n\t\t\titemDef.name = \"Infernal key piece 3\";\n\t\t\titemDef.description = \"Infernal key piece 3.\";\n\t\t\titemDef.modelId = 61003;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33153:\n\t\t\titemDef.name = \"Infernal key\";\n\t\t\titemDef.description = \"Infernal key.\";\n\t\t\titemDef.modelId = 61111;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\t\t//DOPES ITEMS NIGGAHAHAHAHAHAHAH\n\t\tcase 2749:\n\t\t\titemDef.name = \"Bloody Axe\";\n\t\t\titemDef.description = \"Look at all that blood!\";\n\t\t\titemDef.modelId = 65495;\n\t\t\titemDef.femaleModel = 65495;\n\t\t\titemDef.maleModel = 65495;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 2750:\n\t\t\titemDef.name = \"Bloody Axe Offhand\";\n\t\t\titemDef.description = \"Look at all that blood!\";\n\t\t\titemDef.modelId = 65496;\n\t\t\titemDef.femaleModel = 65496;\n\t\t\titemDef.maleModel = 65496;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33154:\n\t\t\titemDef.name = \"Infernal mystery box\";\n\t\t\titemDef.description = \"Infernal mystery box.\";\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Open\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33155:\n\t\t\titemDef.name = \"Ethereal sword (red)\";\n\t\t\titemDef.description = \"Ethereal sword (red).\";\n\t\t\titemDef.modelId = 61005;\n\t\t\titemDef.maleModel = 61004;\n\t\t\titemDef.femaleModel = 61004;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33156:\n\t\t\titemDef.name = \"Ethereal sword (blue)\";\n\t\t\titemDef.description = \"Ethereal sword (blue).\";\n\t\t\titemDef.modelId = 61006;\n\t\t\titemDef.maleModel = 61007;\n\t\t\titemDef.femaleModel = 61007;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33157:\n\t\t\titemDef.name = \"Ethereal sword (green)\";\n\t\t\titemDef.description = \"Ethereal sword (green).\";\n\t\t\titemDef.modelId = 61008;\n\t\t\titemDef.maleModel = 61009;\n\t\t\titemDef.femaleModel = 61009;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33158:\n\t\t\titemDef.name = \"Dagon' hai top\";\n\t\t\titemDef.description = \"An elite dark mages robes.\";\n\t\t\titemDef.modelId = 60317;\n\t\t\titemDef.maleModel = 43614;\n\t\t\titemDef.femaleModel = 43689;\n\t\t\titemDef.anInt188 = 44594;\n\t\t\titemDef.anInt164 = 43681;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 536;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33159:\n\t\t\titemDef.name = \"Dagon' hai hat\";\n\t\t\titemDef.description = \"An elite dark mages hat.\";\n\t\t\titemDef.modelId = 60319;\n\t\t\titemDef.maleModel = 60318;\n\t\t\titemDef.femaleModel = 60318;\n\t\t\titemDef.anInt188 = -1;\n\t\t\titemDef.anInt164 = -1;\n\t\t\titemDef.modelZoom = 1373;\n\t\t\titemDef.modelRotation1 = 98;\n\t\t\titemDef.modelRotation2 = 1988;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33160:\n\t\t\titemDef.name = \"Dagon' hai robe\";\n\t\t\titemDef.description = \"An elite dark mages robe.\";\n\t\t\titemDef.modelId = 60321;\n\t\t\titemDef.maleModel = 60320;\n\t\t\titemDef.femaleModel = 60320;\n\t\t\titemDef.anInt188 = -1;\n\t\t\titemDef.anInt164 = -1;\n\t\t\titemDef.modelZoom = 2216;\n\t\t\titemDef.modelRotation1 = 572;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 14;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33161:\n\t\t\titemDef.name = \"Blue infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Blue.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33162:\n\t\t\titemDef.name = \"Green infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Green.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33163:\n\t\t\titemDef.name = \"Purple infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Purple.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33164:\n\t\t\titemDef.name = \"Purple firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to purple.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33165:\n\t\t\titemDef.name = \"Cyan firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to cyan.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33166:\n\t\t\titemDef.name = \"Green firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to green.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33167:\n\t\t\titemDef.name = \"Red firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to red.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33169:\n\t\t\titemDef.name = \"K'ril robe top\";\n\t\t\titemDef.description = \"A top worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62558;\n\t\t\titemDef.maleModel = 62559;\n\t\t\titemDef.femaleModel = 62559;\n\t\t\titemDef.modelZoom = 1358;\n\t\t\titemDef.modelRotation1 = 514;\n\t\t\titemDef.modelRotation2 = 2041;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33170:\n\t\t\titemDef.name = \"K'ril robe bottom\";\n\t\t\titemDef.description = \"A robe worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62553;\n\t\t\titemDef.maleModel = 62554;\n\t\t\titemDef.femaleModel = 62554;\n\t\t\titemDef.modelZoom = 1690;\n\t\t\titemDef.modelRotation1 = 435;\n\t\t\titemDef.modelRotation2 = 9;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33171:\n\t\t\titemDef.name = \"K'ril hat\";\n\t\t\titemDef.description = \"A hat worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62551;\n\t\t\titemDef.maleModel = 62552;\n\t\t\titemDef.femaleModel = 62552;\n\t\t\titemDef.modelZoom = 1236;\n\t\t\titemDef.modelRotation1 = 118;\n\t\t\titemDef.modelRotation2 = 10;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33172:\n\t\t\titemDef.name = \"K'ril swords\";\n\t\t\titemDef.description = \"Sheath & Unsheath this sword in the Equipment tab. Hits an enemy twice.\";\n\t\t\titemDef.equipActions[2] = \"Sheath\";\n\t\t\titemDef.modelId = 62556;\n\t\t\titemDef.maleModel = 62557;\n\t\t\titemDef.femaleModel = 62557;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33173:\n\t\t\titemDef.name = \"K'ril swords (sheathed)\";\n\t\t\titemDef.description = \"Sheath & Unsheath this sword in the Equipment tab. Hits an enemy twice.\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 62556;\n\t\t\titemDef.maleModel = 62556;\n\t\t\titemDef.femaleModel = 62556;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33174:\n\t\t\titemDef.name = \"Pet demonic gorilla\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31241;\n\t\t\titemDef.modelZoom = 16000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33175:\n\t\t\titemDef.name = \"Pet crawling hand\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5071;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33176:\n\t\t\titemDef.name = \"Pet cave bug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 23854;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33177:\n\t\t\titemDef.name = \"Pet cave crawler\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5066;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33178:\n\t\t\titemDef.name = \"Pet banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5063;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33179:\n\t\t\titemDef.name = \"Pet cave slime\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5786;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33180:\n\t\t\titemDef.name = \"Pet rockslug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5084;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33181:\n\t\t\titemDef.name = \"Pet cockatrice\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5070;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33182:\n\t\t\titemDef.name = \"Pet pyrefiend\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5083;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33183:\n\t\t\titemDef.name = \"Pet basilisk\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5064;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33184:\n\t\t\titemDef.name = \"Pet infernal mage\";\n\t\t\titemDef.modifiedModelColors = new int[] { -26527, -24618, -25152, -25491, 119 };\n\t\t\titemDef.originalModelColors = new int[] { 924, 148, 0, 924, 924 };\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5047;\n\t\t\titemDef.modelZoom = 3940;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 84;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33185:\n\t\t\titemDef.name = \"Pet bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5065;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33186:\n\t\t\titemDef.name = \"Pet jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5081;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33187:\n\t\t\titemDef.name = \"Pet turoth\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5086;\n\t\t\titemDef.modelZoom = 2600;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33188:\n\t\t\titemDef.name = \"Pet aberrant spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5085;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 450;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33189:\n\t\t\titemDef.name = \"Pet dust devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5076;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33190:\n\t\t\titemDef.name = \"Pet kurask\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5082;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33191:\n\t\t\titemDef.name = \"Pet skeletal wyvern\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 10350;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation1 = 27;\n\t\t\titemDef.modelRotation2 = 1634;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33192:\n\t\t\titemDef.name = \"Pet garygoyle\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5078;\n\t\t\titemDef.modelZoom = 4000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33193:\n\t\t\titemDef.name = \"Pet nechryael\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5074;\n\t\t\titemDef.modelZoom = 4000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33194:\n\t\t\titemDef.name = \"Pet abyssal demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5062;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33195:\n\t\t\titemDef.name = \"Pet dark beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26395;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33196:\n\t\t\titemDef.name = \"Pet night beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32933;\n\t\t\titemDef.modelZoom = 7000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33197:\n\t\t\titemDef.name = \"Pet greater abyssal demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32921;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33198:\n\t\t\titemDef.name = \"Pet crushing hand\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32922;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33199:\n\t\t\titemDef.name = \"Pet chasm crawler\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32918;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33200:\n\t\t\titemDef.name = \"Pet screaming banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32823;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33201:\n\t\t\titemDef.name = \"Pet twisted banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32847;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33202:\n\t\t\titemDef.name = \"Pet giant rockslug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32919;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33203:\n\t\t\titemDef.name = \"Pet cockathrice\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32920;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33204:\n\t\t\titemDef.name = \"Pet flaming pyrelord\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32923;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33205:\n\t\t\titemDef.name = \"Pet monstrous basilisk\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32924;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33206:\n\t\t\titemDef.name = \"Pet malevolent mage\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32929;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33207:\n\t\t\titemDef.name = \"Pet insatiable bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32926;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33208:\n\t\t\titemDef.name = \"Pet insatiable mutated bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32925;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33209:\n\t\t\titemDef.name = \"Pet vitreous jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32852;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33210:\n\t\t\titemDef.name = \"Pet vitreous warped jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32917;\n\t\t\titemDef.modelZoom = 6000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33211:\n\t\t\titemDef.name = \"Pet cave abomination\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32935;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33212:\n\t\t\titemDef.name = \"Pet abhorrent spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32930;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33213:\n\t\t\titemDef.name = \"pet repugnant spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32926;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33214:\n\t\t\titemDef.name = \"Pet choke devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32927;\n\t\t\titemDef.modelZoom = 6000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33215:\n\t\t\titemDef.name = \"Pet king kurask\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32934;\n\t\t\titemDef.modelZoom = 8000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33217:\n\t\t\titemDef.name = \"Pet nuclear smoke devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32928;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33218:\n\t\t\titemDef.name = \"Pet marble gargoyle\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34251;\n\t\t\titemDef.modelZoom = 8000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33219:\n\t\t\titemDef.name = \"Pet nechryarch\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32932;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33220:\n\t\t\titemDef.name = \"Pet Patrity\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32035;\n\t\t\titemDef.modelZoom = 653;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1535;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33221:\n\t\t\titemDef.name = \"Pet xarpus\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35383;\n\t\t\titemDef.modelZoom = 14000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33222:\n\t\t\titemDef.name = \"Pet nyclocas vasilias\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35182;\n\t\t\titemDef.modelZoom = 12000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33223:\n\t\t\titemDef.name = \"Pet pestilent bloat\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35404;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33224:\n\t\t\titemDef.name = \"Pet maiden of sugadinti\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35385;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33225:\n\t\t\titemDef.name = \"Pet lizardman shaman\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 4039;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33226:\n\t\t\titemDef.name = \"Pet abyssal sire\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 29477;\n\t\t\titemDef.modelZoom = 9000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33227:\n\t\t\titemDef.name = \"Pet black demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31984;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation1 = 144;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = 7;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 11802:\n\t\tcase 11804:\n\t\tcase 11806:\n\t\tcase 11808:\n\t\t\titemDef.equipActions[2] = \"Sheath\";\n\t\t\tbreak;// godsword sheathing operating\n\n\t\tcase 33228:\n\t\t\titemDef.name = \"Pet greater demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32015;\n\t\t\titemDef.modelZoom = 902;\n\t\t\titemDef.modelRotation1 = 216;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = -16;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33229:\n\t\t\titemDef.name = \"Armadyl godsword (sheathed)\";\n\t\t\titemDef.description = \"Armadyl godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28075;\n\t\t\titemDef.maleModel = 62683;\n\t\t\titemDef.femaleModel = 62683;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33230:\n\t\t\titemDef.name = \"Bandos godsword (sheathed)\";\n\t\t\titemDef.description = \"Bandos godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28059;\n\t\t\titemDef.maleModel = 62684;\n\t\t\titemDef.femaleModel = 62684;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33231:\n\t\t\titemDef.name = \"Saradomin godsword (sheathed)\";\n\t\t\titemDef.description = \"Saradomin godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28070;\n\t\t\titemDef.maleModel = 62685;\n\t\t\titemDef.femaleModel = 62685;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33232:\n\t\t\titemDef.name = \"Zamorak godsword (sheathed)\";\n\t\t\titemDef.description = \"Zamorak godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28060;\n\t\t\titemDef.maleModel = 62686;\n\t\t\titemDef.femaleModel = 62686;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33233:\n\t\t\titemDef.name = \"Pet revenant imp\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34156;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33234:\n\t\t\titemDef.name = \"Pet revenant goblin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34262;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33235:\n\t\t\titemDef.name = \"Pet revenant pyrefiend\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34142;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33236:\n\t\t\titemDef.name = \"Pet revenant hobgoblin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34157;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33237:\n\t\t\titemDef.name = \"Pet revenant cyclops\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34155;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33238:\n\t\t\titemDef.name = \"Pet revenant hellhound\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34143;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33239:\n\t\t\titemDef.name = \"Pet revenant demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32015;\n\t\t\titemDef.modifiedModelColors = new int[] { 1690, 910, 912, 1814, 1938 };\n\t\t\titemDef.originalModelColors = new int[] { 43078, 43078, 43078, 43078, 43078, 43078 };\n\t\t\titemDef.modelZoom = 902;\n\t\t\titemDef.modelRotation1 = 216;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = -16;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33240:\n\t\t\titemDef.name = \"Pet revenant ork\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34154;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33242:\n\t\t\titemDef.name = \"Pet revenant dark beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34158;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33243:\n\t\t\titemDef.name = \"Pet revenant knight\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34145;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33244:\n\t\t\titemDef.name = \"Pet revenant dragon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34163;\n\t\t\titemDef.modelZoom = 7500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33245:\n\t\t\titemDef.name = \"Pet glob\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26074;\n\t\t\titemDef.modelZoom = 10000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33246:\n\t\t\titemDef.name = \"Pet ice queen\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 104;\n\t\t\titemDef.modifiedModelColors = new int[] { 41, 61, 4550, 12224, 25238, 6798 };\n\t\t\titemDef.originalModelColors = new int[] { -22052, -26150, -24343, -22052, -22052, -23327 };\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33247:\n\t\t\titemDef.name = \"Pet enraged tarn\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60322;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33248:\n\t\t\titemDef.name = \"Pet jaltok-jad\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 33012;\n\t\t\titemDef.modelZoom = 12000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33249:\n\t\t\titemDef.name = \"Pet rune dragon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34668;\n\t\t\titemDef.modelZoom = 2541;\n\t\t\titemDef.modelRotation1 = 83;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = -97;\n\t\t\titemDef.modelOffset2 = 9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33271:\n\t\t\titemDef.name = \"Moo\";\n\t\t\titemDef.description = \"cow goes moo.\";\n\t\t\titemDef.modelId = 23889;\n\t\t\titemDef.modelZoom = 2541;\n\t\t\titemDef.modelRotation1 = 83;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = -97;\n\t\t\titemDef.modelOffset2 = 9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33250:\n\t\t\titemDef.name = \"Swift gloves (Black)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62657;\n\t\t\titemDef.femaleModel = 62658;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33251:\n\t\t\titemDef.name = \"Swift gloves (Red)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62659;\n\t\t\titemDef.femaleModel = 62660;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33252:\n\t\t\titemDef.name = \"Swift gloves (White)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62661;\n\t\t\titemDef.femaleModel = 62662;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33253:\n\t\t\titemDef.name = \"Swift gloves (Yellow)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62663;\n\t\t\titemDef.femaleModel = 62664;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33254:\n\t\t\titemDef.name = \"Spellcaster gloves (Black)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62665;\n\t\t\titemDef.femaleModel = 62666;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33255:\n\t\t\titemDef.name = \"Spellcaster gloves (Red)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62667;\n\t\t\titemDef.femaleModel = 62668;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33256:\n\t\t\titemDef.name = \"Spellcaster gloves (White)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62669;\n\t\t\titemDef.femaleModel = 62670;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33257:\n\t\t\titemDef.name = \"Spellcaster gloves (Yellow)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62671;\n\t\t\titemDef.femaleModel = 62672;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33258:\n\t\t\titemDef.name = \"Tekton longsword\";\n\t\t\titemDef.description = \"Tekton longsword.\";\n\t\t\titemDef.modelId = 62682;\n\t\t\titemDef.maleModel = 62681;\n\t\t\titemDef.femaleModel = 62681;\n\t\t\titemDef.modelZoom = 1445;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33259:\n\t\t\titemDef.name = \"Pet wyrm\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36922;\n\t\t\titemDef.modelZoom = 2547;\n\t\t\titemDef.modelRotation1 = 97;\n\t\t\titemDef.modelRotation2 = 1820;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33260:\n\t\t\titemDef.name = \"Pet drake\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36160;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33261:\n\t\t\titemDef.name = \"Pet wyrm\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36922;\n\t\t\titemDef.modelZoom = 2547;\n\t\t\titemDef.modelRotation1 = 97;\n\t\t\titemDef.modelRotation2 = 1820;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33262:\n\t\t\titemDef.name = \"Valentines Balloon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62766;\n\t\t\titemDef.maleModel = 62767;\n\t\t\titemDef.femaleModel = 62767;\n\t\t\titemDef.modelZoom = 2200;\n\t\t\titemDef.modelRotation1 = 270;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33263:\n\t\t\titemDef.name = \"Cupid bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62768;\n\t\t\titemDef.maleModel = 62769;\n\t\t\titemDef.femaleModel = 62769;\n\t\t\titemDef.modelZoom = 1072;\n\t\t\titemDef.modelRotation1 = 127;\n\t\t\titemDef.modelRotation2 = 103;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33264:\n\t\t\titemDef.name = \"Halo and horns\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62771;\n\t\t\titemDef.maleModel = 62770;\n\t\t\titemDef.femaleModel = 62770;\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation1 = 228;\n\t\t\titemDef.modelRotation2 = 141;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33265:\n\t\t\titemDef.name = \"Heart\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62782;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33266:\n\t\t\titemDef.name = \"Valentines mystery box\";\n\t\t\titemDef.description = \"You make me hard.\";\n\t\t\titemDef.modelId = 62773;\n\t\t\titemDef.modelZoom = 464;\n\t\t\titemDef.modelRotation1 = 423;\n\t\t\titemDef.modelRotation2 = 1928;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Open\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33267:\n\t\t\titemDef.name = \"Staff of adoration\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62774;\n\t\t\titemDef.maleModel = 62775;\n\t\t\titemDef.femaleModel = 62775;\n\t\t\titemDef.modelZoom = 1579;\n\t\t\titemDef.modelRotation1 = 660;\n\t\t\titemDef.modelRotation2 = 48;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33268:\n\t\t\titemDef.name = \"Valentines crossbow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62778;\n\t\t\titemDef.maleModel = 62779;\n\t\t\titemDef.femaleModel = 62779;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 258;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33269:\n\t\t\titemDef.name = \"Onyxia Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 2130, 38693 };\n\t\t\titemDef.description = \"Chances at several unqiue items found only in this box! (ex: Tekton Armor)\";\n\t\t\tbreak;\n\t\tcase 33270:\n\t\t\titemDef.name = \"Dragon Hunter Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 1050 };\n\t\t\titemDef.description = \"Chances for items that give bonuses toward dragons. (ex: Dragonhunter Lance)\";\n\t\t\tbreak;\n\t\tcase 33273:\n\t\t\titemDef.name = \"Ancient sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60201;\n\t\t\titemDef.maleModel = 60200;\n\t\t\titemDef.femaleModel = 60200;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33274:\n\t\t\titemDef.name = \"Armadyl staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60203;\n\t\t\titemDef.maleModel = 60202;\n\t\t\titemDef.femaleModel = 60202;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33275:\n\t\t\titemDef.name = \"Bork axe\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60205;\n\t\t\titemDef.maleModel = 60204;\n\t\t\titemDef.femaleModel = 60204;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33276:\n\t\t\titemDef.name = \"Bree bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60207;\n\t\t\titemDef.maleModel = 60206;\n\t\t\titemDef.femaleModel = 60206;\n\t\t\titemDef.modelZoom = 1700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33277:\n\t\t\titemDef.name = \"Infernal staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60209;\n\t\t\titemDef.maleModel = 60208;\n\t\t\titemDef.femaleModel = 60208;\n\t\t\titemDef.modelZoom = 2200;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33278:\n\t\t\titemDef.name = \"Infernal longsword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60211;\n\t\t\titemDef.maleModel = 60210;\n\t\t\titemDef.femaleModel = 60210;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33279:\n\t\t\titemDef.name = \"Necrolord staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60213;\n\t\t\titemDef.maleModel = 60212;\n\t\t\titemDef.femaleModel = 60212;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33280:\n\t\t\titemDef.name = \"Insert name here\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60215;\n\t\t\titemDef.maleModel = 60214;\n\t\t\titemDef.femaleModel = 60214;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33281:\n\t\t\titemDef.name = \"Infernal bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60219;\n\t\t\titemDef.maleModel = 60218;\n\t\t\titemDef.femaleModel = 60218;\n\t\t\titemDef.modelZoom = 3334;\n\t\t\titemDef.modelRotation1 = 533;\n\t\t\titemDef.modelRotation2 = 1294;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33282:\n\t\t\titemDef.name = \"Infernal warhammer\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60221;\n\t\t\titemDef.maleModel = 60220;\n\t\t\titemDef.femaleModel = 60220;\n\t\t\titemDef.modelZoom = 2512;\n\t\t\titemDef.modelRotation1 = 317;\n\t\t\titemDef.modelRotation2 = 1988;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = 45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33283:\n\t\t\titemDef.name = \"Imbued Porazdir's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 13263, 13014, 13243, 13000, 13275 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your strength for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33284:\n\t\t\titemDef.name = \"Imbued Justiciar's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 31661, 31418, 31661, 31167, 31445 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your Defence for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32285:\n\t\t\titemDef.name = \"Imbued Derwen's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 930, 936, 940, 950 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your Attack for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32286:\n\t\t\titemDef.name = \"Bronze fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 5652, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32287:\n\t\t\titemDef.name = \"Iron fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 33, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32288:\n\t\t\titemDef.name = \"Steel fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 61, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32289:\n\t\t\titemDef.name = \"Black fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32290:\n\t\t\titemDef.name = \"Mithril fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 43297, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32291:\n\t\t\titemDef.name = \"Adamant fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 21662, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32292:\n\t\t\titemDef.name = \"Rune fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 36133, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32293:\n\t\t\titemDef.name = \"Dragon fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing. Can also be used for Deep sea fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 924, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32294:\n\t\t\titemDef.name = \"Raw eel\";\n\t\t\titemDef.description = \"Slimy\";\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32295:\n\t\t\titemDef.name = \"Burnt eel\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.modifiedModelColors = new int[] { 8485, 14622, 12589 };\n\t\t\titemDef.originalModelColors = new int[] { 8724, 3226, 9754 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32296:\n\t\t\titemDef.name = \"Eel\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.modifiedModelColors = new int[] { 8485, 14622, 8386, 12589 };\n\t\t\titemDef.originalModelColors = new int[] { 8088, 6032, 57, 2960 };\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32297:\n\t\t\titemDef.name = \"Raw baron shark\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 103, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 7756, 5349 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32298:\n\t\t\titemDef.name = \"Burnt baron shark\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 61, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 28, 41 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32299:\n\t\t\titemDef.name = \"Baron shark\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 61, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 8109, 4795 };\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32300:\n\t\t\titemDef.name = \"Raw cavefish\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60223;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32301:\n\t\t\titemDef.name = \"Burnt cavefish\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60227;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32302:\n\t\t\titemDef.name = \"Cavefish\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 60228;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32303:\n\t\t\titemDef.name = \"Dragonfire visage (e)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26456;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 152;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.modifiedModelColors = new int[] { 45, 41, 33, 24, 20, 57, 22, 37 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 1, 2, 3, 4, 5, 6, 7 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33285:\n\t\t\titemDef.name = \"Easter Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"Chances for all sorts of Easter Items!\";\n\t\t\tbreak;\n\n\t\tcase 33286:\n\t\t\titemDef.name = \"Easter Cape\";\n\t\t\titemDef.inventoryOptions = new String[] { null, \"wear\", null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"An Easter Cape.\";\n\t\t\tbreak;\n\n\t\tcase 33287:\n\t\t\titemDef.name = \"Pet Easter Bunny\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"You've captured the Easter bunny!\";\n\t\t\tbreak;\n\n\t\tcase 33288:\n\t\t\titemDef.name = \"Pet Choco\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"mmm... a chocolate bunny\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 7079 };\n\t\t\tbreak;\n\n\t\tcase 33289:\n\t\t\titemDef.name = \"Pet Milkie\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"mmm... a chocolate bunny\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 6040 };\n\t\t\tbreak;\n\n\t\tcase 33290:\n\t\t\titemDef.name = \"Pet Goldie\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"oh wow... a rare golden bunny!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 9152 };\n\t\t\tbreak;\n\n\t\tcase 33291:\n\t\t\titemDef.name = \"Pet Blue\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"A blue bunny... kinda looks like the easter bunny!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 35321 };\n\t\t\tbreak;\n\n\t\tcase 33292:\n\t\t\titemDef.name = \"Crazed bunny\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 23901;\n\t\t\titemDef.modelZoom = 500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"What a bloody mess...\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5413, 5417, 5421 };\n\t\t\titemDef.originalModelColors = new int[] { 935, 111, 127 };\n\t\t\tbreak;\n\n\t\tcase 33293:\n\t\t\titemDef.name = \"Peter Rabbit\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 28602;\n\t\t\titemDef.modelZoom = 500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"Hi Peter!\";\n\t\t\tbreak;\n\n\t\tcase 33294:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947 };\n\t\t\titemDef.originalModelColors = new int[] { 8128 };\n\t\t\tbreak;\n\n\t\tcase 33295:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 25511 };\n\t\t\tbreak;\n\n\t\tcase 33296:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 38835 };\n\t\t\tbreak;\n\n\t\tcase 33297:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 947 };\n\t\t\tbreak;\n\n\t\tcase 33305:\n\t\t\titemDef.name = \"$10 bond\";\n\t\t\titemDef.description = \"$10 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 84, 84, 84, 84, 84, 84, 84 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33306:\n\t\t\titemDef.name = \"$25 bond\";\n\t\t\titemDef.description = \"$25 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 87, 87, 87, 87, 87, 87, 87 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33307:\n\t\t\titemDef.name = \"$50 bond\";\n\t\t\titemDef.description = \"$50 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 65, 65, 65, 65, 65, 65, 65 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33308:\n\t\t\titemDef.name = \"$100 bond\";\n\t\t\titemDef.description = \"$25 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 75, 75, 75, 75, 75, 75, 75 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33309:\n\t\t\titemDef.name = \"$200 bond\";\n\t\t\titemDef.description = \"$200 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 88, 88, 88, 88, 88, 88, 88 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33310:\n\t\t\titemDef.name = \"$500 bond\";\n\t\t\titemDef.description = \"$500 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 85, 85, 85, 85, 85, 85, 85 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33311:\n\t\t\titemDef.name = \"$1000 bond\";\n\t\t\titemDef.description = \"$1000 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 86, 86, 86, 86, 86, 86, 86 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33312:\n\t\t\titemDef.name = \"Armadyl battlestaff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60332;\n\t\t\titemDef.maleModel = 60333;\n\t\t\titemDef.femaleModel = 60333;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 225;\n\t\t\titemDef.modelRotation2 = 1994;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33313:\n\t\t\titemDef.name = \"Colossal platebody\";\n\t\t\titemDef.description = \"Colossal platebody.\";\n\t\t\titemDef.modelId = 60323;\n\t\t\titemDef.maleModel = 60324;\n\t\t\titemDef.femaleModel = 60324;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33314:\n\t\t\titemDef.name = \"Colossal platelegs\";\n\t\t\titemDef.description = \"Colossal platelegs.\";\n\t\t\titemDef.modelId = 60325;\n\t\t\titemDef.maleModel = 60326;\n\t\t\titemDef.femaleModel = 60326;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33315:\n\t\t\titemDef.name = \"Colossal boots\";\n\t\t\titemDef.description = \"Colossal boots.\";\n\t\t\titemDef.modelId = 60329;\n\t\t\titemDef.maleModel = 60329;\n\t\t\titemDef.femaleModel = 60329;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33316:\n\t\t\titemDef.name = \"Colossal gloves\";\n\t\t\titemDef.description = \"Colossal gloves.\";\n\t\t\titemDef.modelId = 60330;\n\t\t\titemDef.maleModel = 60331;\n\t\t\titemDef.femaleModel = 60331;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33317:\n\t\t\titemDef.name = \"Colossal helmet\";\n\t\t\titemDef.description = \"Colossal helmet.\";\n\t\t\titemDef.modelId = 60327;\n\t\t\titemDef.maleModel = 60328;\n\t\t\titemDef.femaleModel = 60328;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33318:\n\t\t\titemDef.name = \"Polypore staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60334;\n\t\t\titemDef.maleModel = 60335;\n\t\t\titemDef.femaleModel = 60335;\n\t\t\titemDef.modelZoom = 3750;\n\t\t\titemDef.modelRotation1 = 1454;\n\t\t\titemDef.modelRotation2 = 997;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33319:\n\t\t\titemDef.name = \"Ganodermic platebody\";\n\t\t\titemDef.description = \"Ganodermic platebody.\";\n\t\t\titemDef.modelId = 60338;\n\t\t\titemDef.maleModel = 60339;\n\t\t\titemDef.femaleModel = 60339;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33320:\n\t\t\titemDef.name = \"Ganodermic platelegs\";\n\t\t\titemDef.description = \"Ganodermic platelegs.\";\n\t\t\titemDef.modelId = 60340;\n\t\t\titemDef.maleModel = 60341;\n\t\t\titemDef.femaleModel = 60341;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33321:\n\t\t\titemDef.name = \"Ganodermic helmet\";\n\t\t\titemDef.description = \"Ganodermic helmet.\";\n\t\t\titemDef.modelId = 60336;\n\t\t\titemDef.maleModel = 60337;\n\t\t\titemDef.femaleModel = 60337;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33322:\n\t\t\titemDef.name = \"Grotesque platebody\";\n\t\t\titemDef.description = \"Grosteq platebody.\";\n\t\t\titemDef.modelId = 60347;\n\t\t\titemDef.maleModel = 60348;\n\t\t\titemDef.femaleModel = 60348;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33323:\n\t\t\titemDef.name = \"Grotesque platelegs\";\n\t\t\titemDef.description = \"Grosteq platelegs.\";\n\t\t\titemDef.modelId = 60349;\n\t\t\titemDef.maleModel = 60350;\n\t\t\titemDef.femaleModel = 60350;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33324:\n\t\t\titemDef.name = \"Grotesque helmet\";\n\t\t\titemDef.description = \"Grosteqc helmet.\";\n\t\t\titemDef.modelId = 60345;\n\t\t\titemDef.maleModel = 60346;\n\t\t\titemDef.femaleModel = 60346;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33325:\n\t\t\titemDef.name = \"Grotesque cape\";\n\t\t\titemDef.description = \"Grosteq cape.\";\n\t\t\titemDef.modelId = 60351;\n\t\t\titemDef.maleModel = 60352;\n\t\t\titemDef.femaleModel = 60352;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33326:\n\t\t\titemDef.name = \"Stunning Hammer\";\n\t\t\titemDef.description = \"Has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60353;\n\t\t\titemDef.maleModel = 60354;\n\t\t\titemDef.femaleModel = 60354;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1985;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33327:\n\t\t\titemDef.name = \"Stunning Katagon platebody\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60356;\n\t\t\titemDef.maleModel = 60357;\n\t\t\titemDef.femaleModel = 60357;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33328:\n\t\t\titemDef.name = \"Stunning Katagon platelegs\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60358;\n\t\t\titemDef.maleModel = 60359;\n\t\t\titemDef.femaleModel = 60359;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33329:\n\t\t\titemDef.name = \"Stunning Katagon helmet\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60360;\n\t\t\titemDef.maleModel = 60361;\n\t\t\titemDef.femaleModel = 60361;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33331:\n\t\t\titemDef.name = \"Ancient platebody\";\n\t\t\titemDef.description = \"Ancient platebody.\";\n\t\t\titemDef.modelId = 60366;\n\t\t\titemDef.maleModel = 60367;\n\t\t\titemDef.femaleModel = 60367;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33332:\n\t\t\titemDef.name = \"Ancient platelegs\";\n\t\t\titemDef.description = \"Ancient platelegs.\";\n\t\t\titemDef.modelId = 60368;\n\t\t\titemDef.maleModel = 60369;\n\t\t\titemDef.femaleModel = 60369;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33334:\n\t\t\titemDef.name = \"Ancient boots\";\n\t\t\titemDef.description = \"Ancient boots.\";\n\t\t\titemDef.modelId = 60372;\n\t\t\titemDef.maleModel = 60372;\n\t\t\titemDef.femaleModel = 60372;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33335:\n\t\t\titemDef.name = \"Ancient gloves\";\n\t\t\titemDef.description = \"Ancient gloves.\";\n\t\t\titemDef.modelId = 60370;\n\t\t\titemDef.maleModel = 60371;\n\t\t\titemDef.femaleModel = 60371;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33336:\n\t\t\titemDef.name = \"Ancient helmet\";\n\t\t\titemDef.description = \"Ancient helmet.\";\n\t\t\titemDef.modelId = 60364;\n\t\t\titemDef.maleModel = 60365;\n\t\t\titemDef.femaleModel = 60365;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33341:\n\t\t\titemDef.name = \"Vanguard helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60391;\n\t\t\titemDef.maleModel = 60392;\n\t\t\titemDef.femaleModel = 60392;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33342:\n\t\t\titemDef.name = \"Vanguard platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60393;\n\t\t\titemDef.maleModel = 60394;\n\t\t\titemDef.femaleModel = 60394;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33343:\n\t\t\titemDef.name = \"Vanguard platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60395;\n\t\t\titemDef.maleModel = 60396;\n\t\t\titemDef.femaleModel = 60396;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33344:\n\t\t\titemDef.name = \"Vanguard boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60398;\n\t\t\titemDef.maleModel = 60398;\n\t\t\titemDef.femaleModel = 60398;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33345:\n\t\t\titemDef.name = \"Vanguard gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60373;\n\t\t\titemDef.maleModel = 60397;\n\t\t\titemDef.femaleModel = 60397;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33346:\n\t\t\titemDef.name = \"Celestial staff of light\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60401;\n\t\t\titemDef.maleModel = 60402;\n\t\t\titemDef.femaleModel = 60402;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 101 };\n\t\t\titemDef.originalModelColors = new int[] { 12 };\n\t\t\titemDef.maleOffset = -6;\n\t\t\titemDef.femaleOffset = -6;\n\t\t\tbreak;\n\n\t\tcase 33347:\n\t\t\titemDef.name = \"Hood of sorrow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60438;\n\t\t\titemDef.maleModel = 60403;\n\t\t\titemDef.femaleModel = 60403;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33348:\n\t\t\titemDef.name = \"Celestial robe top\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60404;\n\t\t\titemDef.maleModel = 60405;\n\t\t\titemDef.femaleModel = 60405;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33349:\n\t\t\titemDef.name = \"Celestial robe legs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60406;\n\t\t\titemDef.maleModel = 60407;\n\t\t\titemDef.femaleModel = 60407;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33350:\n\t\t\titemDef.name = \"Primal 2h sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60408;\n\t\t\titemDef.maleModel = 60409;\n\t\t\titemDef.femaleModel = 60409;\n\t\t\titemDef.modelZoom = 1701;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.modelRotation2 = 1529;\n\t\t\titemDef.modelRotation1 = 1713;\n\t\t\titemDef.modelRotationY = 898;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33353:\n\t\t\titemDef.name = \"Primal longsword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60417;\n\t\t\titemDef.maleModel = 60418;\n\t\t\titemDef.femaleModel = 60418;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.modelRotation2 = 1793;\n\t\t\titemDef.modelRotation1 = 1473;\n\t\t\titemDef.modelRotationY = 1121;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33354:\n\t\t\titemDef.name = \"Primal maul\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60419;\n\t\t\titemDef.maleModel = 60420;\n\t\t\titemDef.femaleModel = 60420;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 350;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33359:\n\t\t\titemDef.name = \"Primal rapier\";\n\t\t\titemDef.description = \"Good for fighting the ...\";\n\t\t\titemDef.modelId = 60433;\n\t\t\titemDef.maleModel = 60433;\n\t\t\titemDef.femaleModel = 60433;\n\t\t\titemDef.modelZoom = 1300;\n\t\t\titemDef.modelRotation1 = 1401;\n\t\t\titemDef.modelRotation2 = 1724;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 15;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33360:\n\t\t\titemDef.name = \"Primal spear\";\n\t\t\titemDef.description = \"Good for fighting the Corperal Beast.\";\n\t\t\titemDef.modelId = 60434;\n\t\t\titemDef.maleModel = 60435;\n\t\t\titemDef.femaleModel = 60435;\n\t\t\titemDef.modelZoom = 1711;\n\t\t\titemDef.modelRotation1 = 485;\n\t\t\titemDef.modelRotation2 = 391;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -10;\n\t\t\titemDef.maleOffset = -10;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33361:\n\t\t\titemDef.name = \"Primal warhammer\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60436;\n\t\t\titemDef.maleModel = 60437;\n\t\t\titemDef.femaleModel = 60437;\n\t\t\titemDef.modelZoom = 1330;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 148;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33362:\n\t\t\titemDef.name = \"Chitin helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60445;\n\t\t\titemDef.maleModel = 60446;\n\t\t\titemDef.femaleModel = 60446;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33364:\n\t\t\titemDef.name = \"Chitin platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60447;\n\t\t\titemDef.maleModel = 60448;\n\t\t\titemDef.femaleModel = 60448;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33365:\n\t\t\titemDef.name = \"Chitin platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60449;\n\t\t\titemDef.maleModel = 60450;\n\t\t\titemDef.femaleModel = 60450;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33366:\n\t\t\titemDef.name = \"Chitin cape\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60443;\n\t\t\titemDef.maleModel = 60444;\n\t\t\titemDef.femaleModel = 60444;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33367:\n\t\t\titemDef.name = \"Supreme void helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60467;\n\t\t\titemDef.maleModel = 60464;\n\t\t\titemDef.femaleModel = 60464;\n\t\t\titemDef.modelZoom = 900;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33368:\n\t\t\titemDef.name = \"Supreme void robe top\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60468;\n\t\t\titemDef.maleModel = 60465;\n\t\t\titemDef.femaleModel = 60465;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33369:\n\t\t\titemDef.name = \"Supreme void robe\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60469;\n\t\t\titemDef.maleModel = 60466;\n\t\t\titemDef.femaleModel = 60466;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33370:\n\t\t\titemDef.name = \"Korasi's sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60471;\n\t\t\titemDef.maleModel = 60470;\n\t\t\titemDef.femaleModel = 60470;\n\t\t\titemDef.modelZoom = 1744;\n\t\t\titemDef.modelRotation1 = 330;\n\t\t\titemDef.modelRotation2 = 1505;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -4;\n\t\t\titemDef.femaleOffset = -4;\n\t\t\tbreak;\n\n\t\tcase 33371:\n\t\t\titemDef.name = \"Spiked slayer helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60475;\n\t\t\titemDef.maleModel = 60476;\n\t\t\titemDef.femaleModel = 60476;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33372:\n\t\t\titemDef.name = \"Slayer platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60478;\n\t\t\titemDef.maleModel = 60479;\n\t\t\titemDef.femaleModel = 60479;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33373:\n\t\t\titemDef.name = \"Slayer platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60474;\n\t\t\titemDef.maleModel = 60477;\n\t\t\titemDef.femaleModel = 60477;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33374:\n\t\t\titemDef.name = \"Slayer boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60472;\n\t\t\titemDef.maleModel = 60473;\n\t\t\titemDef.femaleModel = 60473;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33375:\n\t\t\titemDef.name = \"Blood Justiciar helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60482;\n\t\t\titemDef.maleModel = 60483;\n\t\t\titemDef.femaleModel = 60483;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33376:\n\t\t\titemDef.name = \"Blood Justiciar platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60484;\n\t\t\titemDef.maleModel = 60485;\n\t\t\titemDef.femaleModel = 60485;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33377:\n\t\t\titemDef.name = \"Blood justiciar platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60486;\n\t\t\titemDef.maleModel = 60487;\n\t\t\titemDef.femaleModel = 60487;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33378:\n\t\t\titemDef.name = \"Blood justiciar boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60488;\n\t\t\titemDef.maleModel = 60488;\n\t\t\titemDef.femaleModel = 60488;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33379:\n\t\t\titemDef.name = \"Blood justiciar gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60489;\n\t\t\titemDef.maleModel = 60490;\n\t\t\titemDef.femaleModel = 60490;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33380:\n\t\t\titemDef.name = \"Blood scythe of vitur\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60480;\n\t\t\titemDef.maleModel = 60481;\n\t\t\titemDef.femaleModel = 60481;\n\t\t\titemDef.modelZoom = 3850;\n\t\t\titemDef.modelRotation1 = 727;\n\t\t\titemDef.modelRotation2 = 997;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33381:\n\t\t\titemDef.name = \"Skiller cape\";\n\t\t\titemDef.description = \"Skiller cape.\";\n\t\t\titemDef.modelId = 60494;\n\t\t\titemDef.maleModel = 60493;\n\t\t\titemDef.femaleModel = 60492;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33382:\n\t\t\titemDef.name = \"Justiciar faceguard (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33383:\n\t\t\titemDef.name = \"Justiciar faceguard (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33384:\n\t\t\titemDef.name = \"Justiciar faceguard (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33385:\n\t\t\titemDef.name = \"Justiciar faceguard (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33387:\n\t\t\titemDef.name = \"Justiciar faceguard (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33389:\n\t\t\titemDef.name = \"Justiciar faceguard (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33390:\n\t\t\titemDef.name = \"Justiciar chestguard (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33391:\n\t\t\titemDef.name = \"Justiciar chestguard (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33392:\n\t\t\titemDef.name = \"Justiciar chestguard (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33393:\n\t\t\titemDef.name = \"Justiciar chestguard (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33394:\n\t\t\titemDef.name = \"Justiciar chestguard (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33395:\n\t\t\titemDef.name = \"Justiciar chestguard (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33396:\n\t\t\titemDef.name = \"Justiciar legguards (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33397:\n\t\t\titemDef.name = \"Justiciar legguards (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33398:\n\t\t\titemDef.name = \"Justiciar legguards (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33399:\n\t\t\titemDef.name = \"Justiciar legguards (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33400:\n\t\t\titemDef.name = \"Justiciar legguards (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33401:\n\t\t\titemDef.name = \"Justiciar legguards (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33402:\n\t\t\titemDef.name = \"Pet andy\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 50169;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33403:\n\t\t\titemDef.name = \"Pet mod divine\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 14283;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33404:\n\t\t\titemDef.name = \"Celestial fairy\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60491;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 947 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 937, 11200 };\n\t\t\titemDef.originalModelColors = new int[] { 42663, 41883 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33405:\n\t\t\titemDef.name = \"Lava partyhat (red)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33406:\n\t\t\titemDef.name = \"Lava partyhat (green)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33407:\n\t\t\titemDef.name = \"Lava partyhat (cyan)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33408:\n\t\t\titemDef.name = \"Lava partyhat (purple)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33409:\n\t\t\titemDef.name = \"Infernal partyhat (blue)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33410:\n\t\t\titemDef.name = \"Infernal partyhat (green)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33411:\n\t\t\titemDef.name = \"Infernal partyhat (purple)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33412:\n\t\t\titemDef.name = \"Infernal partyhat (rainbow)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33413:\n\t\t\titemDef.name = \"Celestial partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33414:\n\t\t\titemDef.name = \"Blood partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33415:\n\t\t\titemDef.name = \"Shadow partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33416:\n\t\t\titemDef.name = \"Light blue partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33417:\n\t\t\titemDef.name = \"Easter partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33418:\n\t\t\titemDef.name = \"Dark sparkle partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33419:\n\t\t\titemDef.name = \"Rainbow partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33420:\n\t\t\titemDef.name = \"Fire partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33421:\n\t\t\titemDef.name = \"Pet star sprite\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60506;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33422:\n\t\t\titemDef.name = \"Stargaze Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"none\";\n\t\t\tbreak;\n\n\t\tcase 33423:\n\t\t\titemDef.name = \"Star Dust\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Exchange\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 60496;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 279;\n\t\t\titemDef.modelRotation2 = 1994;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 47;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"none\";\n\t\t\tbreak;\n\n\t\tcase 33424:\n\t\t\titemDef.name = \"Blood twisted bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32799;\n\t\t\titemDef.maleModel = 32674;\n\t\t\titemDef.femaleModel = 32674;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10318, 10334 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 66, 66 };\n\t\t\titemDef.modifiedModelColors = new int[] { 14236, 13223 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33425:\n\t\t\titemDef.name = \"Celestial crow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60507;\n\t\t\titemDef.modelZoom = 1000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10382 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 10378, 10502 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33426:\n\t\t\titemDef.name = \"Celestial penguin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60508;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10343 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 16, 12, 20, 24, 8, 10332, 10337 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0, 0, 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33427:\n\t\t\titemDef.name = \"Celestial snake\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60509;\n\t\t\titemDef.modelZoom = 1800;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10644, 10512 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78, 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 10413, 10405, 10524 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33428:\n\t\t\titemDef.name = \"Celestial scorpion\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60510;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 142 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 4884, 4636, 3974, 4525, 4645 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33429:\n\t\t\titemDef.name = \"Armadyl dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\tbreak;\n\n\t\tcase 33430:\n\t\t\titemDef.name = \"Guthix dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\tbreak;\n\n\t\tcase 33431:\n\t\t\titemDef.name = \"Zamorak dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\tbreak;\n\n\t\tcase 33432:\n\t\t\titemDef.name = \"Ancient dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\tbreak;\n\n\t\tcase 33433:\n\t\t\titemDef.name = \"Bandos dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\tbreak;\n\n\t\tcase 33434:\n\t\t\titemDef.name = \"Saradomin dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\tbreak;\n\n\t\tcase 33435:\n\t\t\titemDef.name = \"Celestial egg\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 7171;\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelRotation2 = 16;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 476 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Hatch\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\tbreak;\n\n\t\tcase 33436:\n\t\t\titemDef.name = \"Elite void top (placeholder)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 10586;\n\t\t\titemDef.maleModel = 10687;\n\t\t\titemDef.anInt188 = 10681;\n\t\t\titemDef.femaleModel = 10694;\n\t\t\titemDef.anInt164 = 10688;\n\t\t\titemDef.modelZoom = 1221;\n\t\t\titemDef.modelRotation1 = 459;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\t// itemDef.originalTextureColors = new int [] { 695};\n\t\t\t// itemDef.modifiedTextureColors = new int [] { 66};\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33437:\n\t\t\titemDef.name = \"Elite void robe (placeholder)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60528;\n\t\t\titemDef.maleModel = 60526;\n\t\t\titemDef.femaleModel = 60527;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\t// itemDef.originalTextureColors = new int [] { 695};\n\t\t\t// itemDef.modifiedTextureColors = new int [] { 66};\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33438:\n\t\t\titemDef.name = \"Blood chest\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60516;\n\t\t\titemDef.modelZoom = 2640;\n\t\t\titemDef.modelRotation1 = 114;\n\t\t\titemDef.modelRotation2 = 1883;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33439:\n\t\t\titemDef.name = \"Blood bird\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60517;\n\t\t\titemDef.modelZoom = 2768;\n\t\t\titemDef.modelRotation1 = 141;\n\t\t\titemDef.modelRotation2 = 1790;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = -13;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.originalTextureColors = new int[] { 1946, 2983, 6084, 2735, 5053, 6082, 4013, 2733, 4011, 2880,\n\t\t\t\t\t8150 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66 };\n\t\t\tbreak;\n\n\t\tcase 33440:\n\t\t\titemDef.name = \"Blood Death\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60441;\n\t\t\titemDef.modelZoom = 16000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33442:\n\t\t\titemDef.name = \"10 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33446:\n\t\t\titemDef.name = \"10 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33450:\n\t\t\titemDef.name = \"10 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33454:\n\t\t\titemDef.name = \"10 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33458:\n\t\t\titemDef.name = \"10 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33462:\n\t\t\titemDef.name = \"10 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33443:\n\t\t\titemDef.name = \"30 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33447:\n\t\t\titemDef.name = \"30 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33451:\n\t\t\titemDef.name = \"30 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33455:\n\t\t\titemDef.name = \"30 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33459:\n\t\t\titemDef.name = \"30 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33463:\n\t\t\titemDef.name = \"30 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33444:\n\t\t\titemDef.name = \"60 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33448:\n\t\t\titemDef.name = \"60 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33452:\n\t\t\titemDef.name = \"60 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33456:\n\t\t\titemDef.name = \"60 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33460:\n\t\t\titemDef.name = \"60 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33464:\n\t\t\titemDef.name = \"60 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33445:\n\t\t\titemDef.name = \"120 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33449:\n\t\t\titemDef.name = \"120 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33453:\n\t\t\titemDef.name = \"120 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33457:\n\t\t\titemDef.name = \"120 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33461:\n\t\t\titemDef.name = \"120 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33465:\n\t\t\titemDef.name = \"120 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33466:\n\t\t\titemDef.name = \"Deathtouched dart\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60534;\n\t\t\titemDef.maleModel = 60533;\n\t\t\titemDef.femaleModel = 60533;\n\t\t\titemDef.modelZoom = 1053;\n\t\t\titemDef.modelRotation1 = 471;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33467:\n\t\t\titemDef.name = \"Justiciar boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60535;\n\t\t\titemDef.maleModel = 60535;\n\t\t\titemDef.femaleModel = 60535;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33468:\n\t\t\titemDef.name = \"Justiciar gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31022;\n\t\t\titemDef.maleModel = 31006;\n\t\t\titemDef.femaleModel = 31013;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 2015;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 123, 70 };\n\t\t\titemDef.originalModelColors = new int[] { 6736, 59441 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33469:\n\t\t\titemDef.name = \"Magic mushroom\";\n\t\t\titemDef.description = \"offers a 10% droprate increase while this pet follows you.\";\n\t\t\titemDef.modelId = 60532;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33470:\n\t\t\titemDef.name = \"Twisted staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60538;\n\t\t\titemDef.maleModel = 60539;\n\t\t\titemDef.femaleModel = 60539;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33471:\n\t\t\titemDef.name = \"Cowboy hat\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60540;\n\t\t\titemDef.maleModel = 60541;\n\t\t\titemDef.femaleModel = 60541;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 108;\n\t\t\titemDef.modelRotation2 = 1535;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33472:\n\t\t\titemDef.name = \"Stick\";\n\t\t\titemDef.description = \"Careful of that chub.\";\n\t\t\titemDef.modelId = 60545;\n\t\t\titemDef.maleModel = 60545;\n\t\t\titemDef.femaleModel = 60545;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33473:\n\t\t\titemDef.name = \"#1 Tob cape\";\n\t\t\titemDef.description = \"Reward to the first to complete tob solo and in a team.\";\n\t\t\titemDef.modelId = 60551;\n\t\t\titemDef.maleModel = 60550;\n\t\t\titemDef.femaleModel = 60550;\n\t\t\titemDef.modelZoom = 2295;\n\t\t\titemDef.modelRotation1 = 367;\n\t\t\titemDef.modelRotation2 = 1212;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33474:\n\t\t\titemDef.name = \"Supreme void upgrade kit\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 4847;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 163;\n\t\t\titemDef.modelRotation2 = 73;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { -32709, 10295, 10304, 10287, 10275, 10283 };\n\t\t\titemDef.originalModelColors = new int[] { 10, 10, 10, 10, 10, 10 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33475:\n\t\t\titemDef.name = \"Hunter's penguin\";\n\t\t\titemDef.description = \"the one and only's pet.\";\n\t\t\titemDef.modelId = 60548;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33476:\n\t\t\titemDef.name = \"Chef Harambe\";\n\t\t\titemDef.description = \"I like to dip my balls in a deep fryer.\";\n\t\t\titemDef.modelId = 60921;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33477:\n\t\t\titemDef.name = \"Void knight champion jr\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60463;\n\t\t\titemDef.modelZoom = 14000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33478:\n\t\t\titemDef.name = \"Custom pet token\";\n\t\t\titemDef.description = \"Trade this to corey after filling out a form on the forums post custom pets\";\n\t\t\titemDef.modelId = 13838;\n\t\t\titemDef.modelZoom = 530;\n\t\t\titemDef.modelRotation1 = 415;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33479:\n\t\t\titemDef.name = \"Mr jaycorr\";\n\t\t\titemDef.description = \"The autistic one.\";\n\t\t\titemDef.modelId = 60592;\n\t\t\titemDef.modelZoom = 7500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33480:\n\t\t\titemDef.name = \"Broom broom\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60593;\n\t\t\titemDef.maleModel = 60593;\n\t\t\titemDef.femaleModel = 60593;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33481:\n\t\t\titemDef.name = \"Test\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 11773:\n\t\tcase 11771:\n\t\tcase 11770:\n\t\tcase 11772:\n\t\t\titemDef.anInt196 += 45;\n\t\t\tbreak;\n\t\tcase 22610:\n\t\t\titemDef.name = \"Vesta's spear (deg)\";\n\t\t\tbreak;\n\t\tcase 22614:\n\t\t\titemDef.name = \"Vesta's longsword (deg)\";\n\t\t\tbreak;\n\t\tcase 22616:\n\t\t\titemDef.name = \"Vesta's chainbody (deg)\";\n\t\t\tbreak;\n\t\tcase 22619:\n\t\t\titemDef.name = \"Vesta's plateskirt (deg)\";\n\t\t\tbreak;\n\t\tcase 22622:\n\t\t\titemDef.name = \"Statius's warhammer (deg)\";\n\t\t\tbreak;\n\t\tcase 22625:\n\t\t\titemDef.name = \"Statius's full helm (deg)\";\n\t\t\tbreak;\n\t\tcase 22628:\n\t\t\titemDef.name = \"Statius's platebody (deg)\";\n\t\t\tbreak;\n\t\tcase 22631:\n\t\t\titemDef.name = \"Statius's platelegs (deg)\";\n\t\t\tbreak;\n\t\tcase 22638:\n\t\t\titemDef.name = \"Morrigan's coif (deg)\";\n\t\t\tbreak;\n\t\tcase 22641:\n\t\t\titemDef.name = \"Morrigan's leather body (deg)\";\n\t\t\tbreak;\n\t\tcase 22644:\n\t\t\titemDef.name = \"Morrigan's leather chaps (deg)\";\n\t\t\tbreak;\n\t\tcase 22647:\n\t\t\titemDef.name = \"Zuriel's staff (deg)\";\n\t\t\tbreak;\n\t\tcase 22650:\n\t\t\titemDef.name = \"Zuriel's hood (deg)\";\n\t\t\tbreak;\n\t\tcase 22653:\n\t\t\titemDef.name = \"Zuriel's robe top (deg)\";\n\t\t\tbreak;\n\t\tcase 22656:\n\t\t\titemDef.name = \"Zuriel's robe bottom (deg)\";\n\t\t\tbreak;\n\n\t\tcase 13303:\n\t\t\titemDef.name = \"Event Key (Tarn)\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 13302:\n\t\t\titemDef.name = \"Event Key (Graardor)\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 13305:\n\t\t\titemDef.name = \"Tastey-Looking Key\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 2697:\n\t\t\titemDef.name = \"$10 Scroll\";\n\t\t\titemDef.description = \"Get donor status at a cheaper cost!\";\n\t\t\tbreak;\n\t\tcase 2698:\n\t\t\titemDef.name = \"$50 Scroll\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Super Donator status.\";\n\t\t\tbreak;\n\t\tcase 2699:\n\t\t\titemDef.name = \"$100 Donator\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Extreme Donator status.\";\n\t\t\tbreak;\n\t\tcase 2700:\n\t\t\titemDef.name = \"$5 Scroll\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Legendary Donator status.\";\n\t\t\tbreak;\n\t\tcase 1464:\n\t\t\titemDef.name = \"Vote ticket\";\n\t\t\titemDef.description = \"This ticket can be exchanged for a voting point.\";\n\t\t\tbreak;\n\n\t\tcase 11739:\n\t\t\titemDef.name = \"Daily reward box\";\n\t\t\titemDef.description = \"Open this box for a daily reward.\";\n\t\t\tbreak;\n\n\t\tcase 13066:// super set\n\t\tcase 12873:// barrows\n\t\tcase 12875:\n\t\tcase 12877:\n\t\tcase 12879:\n\t\tcase 12881:\n\t\tcase 12883:\n\t\tcase 12789:// clue box\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}",
"public void addToInventory(IWeapon weapon){\n if (weaponsInventory.size() < 12) {\n this.weaponsInventory.add(weapon);\n lenInventory += 1;\n }\n }",
"private void updateItems()\n\t{\t\n\t\tupdatePizzaTypes(items);\n\t\tupdateSidesTypes(items);\n\t\tupdateDrinksTypes(items);\n\t}",
"public void addToSale(ItemDTO item, int quantity){\n this.saleInfo.addItem(item, quantity);\n }",
"x0401.oecdStandardAuditFileTaxPT1.ProductDocument.Product addNewProduct();",
"public static void addOrderedItem() {\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out.println(\"************Adding ordered item************\");\n\t\tOrderManager orderManager = new OrderManager();\n\t\tList listOfOrders = orderManager.viewOrder();\n\n\t\tOrderedItemManager orderedItemManager = new OrderedItemManager();\n\t\tList listOfOrderedItems = null;\n\n\t\tItemManager itemManager = new ItemManager();\n\t\tList listOfItems = itemManager.onStartUp();\n\n\t\tint i = 0;\n\t\tint choice = 0;\n\t\tOrder order = null;\n\t\tItem item = null;\n\t\tOrderedItem orderedItem = null;\n\t\tboolean check = false;\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tif (listOfOrders.size() == 0) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"There is no orders!\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (listOfItems.size() == 0) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"There is no items!\");\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tSystem.out.println();\n\t\t\t// print the list of orders for the user to select from.\n\t\t\tfor (i = 0; i < listOfOrders.size(); i++) {\n\t\t\t\torder = (Order) listOfOrders.get(i);\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.println((i + 1) + \") Order: \" + order.getId()\n\t\t\t\t\t\t+ \" | Table: \" + order.getTable().getId());\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\tSystem.out.print(\"Select an order to add the item ordered: \");\n\t\t\tchoice = Integer.parseInt(sc.nextLine());\n\n\t\t\torder = (Order) listOfOrders.get(choice - 1);\n\n\t\t\tdo {\n\t\t\t\tfor (i = 0; i < listOfItems.size(); i++) {\n\t\t\t\t\titem = (Item) listOfItems.get(i);\n\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\t\tSystem.out.println((i + 1) + \") ID: \" + item.getId()\n\t\t\t\t\t\t\t+ \" | Name: \" + item.getName() + \" | Price: $\"\n\t\t\t\t\t\t\t+ item.getPrice());\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\tSystem.out.println((i + 1) + \") Done\");\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.print(\"Select an item to add into order: \");\n\t\t\t\tchoice = Integer.parseInt(sc.nextLine());\n\n\t\t\t\tif (choice != (i + 1)) {\n\t\t\t\t\titem = (Item) listOfItems.get(choice - 1);\n\n\t\t\t\t\torderedItem = new OrderedItem();\n\t\t\t\t\torderedItem.setItem(item);\n\t\t\t\t\torderedItem.setOrder(order);\n\t\t\t\t\torderedItem.setPrice(item.getPrice());\n\n\t\t\t\t\torder.addOrderedItem(orderedItem);\n\n\t\t\t\t\tcheck = orderedItemManager.createOrderedItem(orderedItem);\n\n\t\t\t\t\tif (check) {\n\t\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK UPDATE\");\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"Item added into order successfully!\");\n\t\t\t\t\t}\n\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\t\t\t\tSystem.out.println(\"Failed to add item into order!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} while (choice != (i + 1));\n\n\t\t}\n\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"Invalid Input!\");\n\t\t}\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out.println(\"************End of adding items************\");\n\t}",
"public void addItem(Item i) {\n this.items.add(i);\n }",
"public static void addItem(Item item)\n {\n inventory.add(item);\n if(!(item.getRoomNumber() == -1 || item.getEventNumber() == -1))\n {\n Map.getRoom(item.getRoomNumber()).getEvent(item.getEventNumber()).enable();\n }\n }",
"void addType(ModelContainer model,\n\t\t\tOWLIndividual i, \n\t\t\tOWLObjectPropertyExpression p,\n\t\t\tOWLClassExpression filler,\n\t\t\tMETADATA metadata) {\n\t\tif (LOG.isDebugEnabled()) {\n\t\t\tLOG.debug(\"Adding \"+i+ \" type \"+p+\" some \"+filler);\t\n\t\t}\n\t\tOWLDataFactory f = model.getOWLDataFactory();\n\t\tOWLObjectSomeValuesFrom c = f.getOWLObjectSomeValuesFrom(p, filler);\n\t\tOWLClassAssertionAxiom axiom = f.getOWLClassAssertionAxiom(c, i);\n\t\taddAxiom(model, axiom, metadata);\n\t}",
"private static void addTV() {\n\n TV newTV = new TV(); // create new TV object\n\n String TVMake = Validate.readString(ASK_MAKE_TV); // Ask for the make and store input\n\n newTV.setMake(TVMake); // set make of TV based on user input\n\n int screenSize = Validate.readInt(ASK_SCREENSIZE_TV); // Ask for the screen size\n\n newTV.setScreenSize(screenSize); // set screensize of TV based on user input\n\n int type = Validate.readInt(ASK_TYPE_TV,3); // Ask for type of TV\n\n newTV.setType(type); // set type of TV based on user input\n\n boolean capableOf3D = Validate.readBoolean(ASK_3D_TV); // Ask if 3d compatible\n\n newTV.set3DCapability(capableOf3D); // set 3d capability of TV based on user input\n\n double price = Validate.readDouble(ASK_PRICE_TV); // Ask for price of TV\n\n newTV.setPrice(price); // set price of TV based on user input\n\n ProductDB.addProduct(newTV); // add new TV to the product DB\n\n newTV.saveTV(); // saves new tv to productDB text file\n\n }",
"public void addItem(Item item){\r\n items.add(item);\r\n total = items.getTotal();\r\n }",
"public void adicionar(ItemProduto item) {\n\t\titens.add(item);\n\t}",
"public static void createItems(){\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"breadly\"), BREADLY);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"hard_boiled_egg\"), HARD_BOILED_EGG);\n\n\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"ender_dragon_spawn_egg\"), ENDER_DRAGON_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"wither_spawn_egg\"), WITHER_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"illusioner_spawn_egg\"), ILLUSIONER_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"giant_spawn_egg\"), GIANT_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"spawn_spawn_egg\"), SPAWN_SPAWN_EGG);\n }",
"private void onLoad(Item item) {\n ImageView view = new ImageView(item.getIcon());\n addDragEventHandlers(view, DRAGGABLE_TYPE.ITEM, unequippedInventory, equippedItems);\n addEntity(item, view);\n unequippedInventory.getChildren().add(view);\n System.out.println(\"Get new Item \" + item.getName() + \" in Inventory\");\n }",
"public int addType(BikeType type){\n final int ADDED = 0;\n final int NOT_ADDED = 1;\n final int ALREADY_REGISTERED = 2;\n \n if(findType(type)){\n return ALREADY_REGISTERED; //Type already registered\n }else{\n \n try(Connection con = DatabaseConnector.getConnection();\n PreparedStatement ps = con.prepareStatement(INSERT)){\n \n ps.setString(1, type.getTypeName());\n ps.setDouble(2, type.getRentalPrice());\n ps.executeUpdate();\n return ADDED;\n }catch(Exception e){\n System.out.println(\"Exception: \" + e);\n }\n }\n return NOT_ADDED;\n }",
"public void addItem(SoldItem item) {\n\n items.add(item);\n log.debug(\"Added \" + item.getName() + \" quantity of \" + item.getQuantity());\n\n }",
"CatalogItem addCatalogItem(CatalogItem catalogItem);",
"public abstract void Enqueue (Type item);",
"public addproduct() {\n\t\tsuper();\n\t}",
"@Override\n\t@RequestMapping(value=ZuelControllerValue.Manage+\"addItem\")\n\tpublic ZuelResult addItem(TbItem item) {\n\t\treturn service.addItem(item);\n\t}",
"public void addItem(Item item) {\n _items.add(item);\n }",
"void addElementToInventory(String elementName);",
"ItemType(String code) {\n this.code = code;\n }",
"ItemType(String code) {\n this.code = code;\n }",
"public static void createItem() {\n //Initializing an item and putting it in a room airport\n itemLocation.addItem(airport, new PickableItem(\"Bottle\", \"This is a bottle that have been left behind by someone\", 2, false));\n itemLocation.addItem(airport, new PickableItem(\"Boardingpass\", \"This is a boardingpass to get on the plane to Hawaii: 126AB\", 1, false));\n\n //Initializing an item and putting it in a room beach\n itemLocation.addItem(beach, new PickableItem(\"Stone\", \"This is a stone, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(beach, new PickableItem(\"Fish\", \"Why are you inspecting this item, its GOD damn fish\", 1, true));\n itemLocation.addItem(beach, new PickableItem(\"Fish\", \"Why are you inspecting this item, its GOD damn fish\", 1, true));\n itemLocation.addItem(beach, new PickableItem(\"Flint\", \"This a flint, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(beach, new PickableItem(\"Rope\", \"This is some rope that has been washed up on the beach shore from the plane crash \", 2, false));\n itemLocation.addItem(beach, new PickableItem(\"Stick\", \"This is a small stick, maybe it can be used to create something more usefull\", 1, false));\n itemLocation.addItem(beach, new PickableItem(\"Stick\", \"This is a small stick, maybe it can be used to create something more usefull\", 1, false));\n //non pickable item\n itemLocation.addItem(beach, new Item(\"GiantRock\", \"The giant rock dont look like it can be moved\", 100));\n itemLocation.addItem(beach, new Item(\"GiantLog\", \"The giant log dont look like it can be moved\", 100));\n\n //Initializing an item and putting it in a room jungle\n itemLocation.addItem(jungle, new PickableItem(\"Berry\", \"this is berries, maybe its poisonous try ur luck!! \", 1, true));\n itemLocation.addItem(jungle, new PickableItem(\"Berry\", \"this is berries, maybe its poisonous try ur luck!! \", 1, true));\n itemLocation.addItem(jungle, new PickableItem(\"Lumber\", \"This is a log of tree, maybe it can be used to craft something to get away from this island \", 3, false));\n itemLocation.addItem(jungle, new PickableItem(\"Lian\", \"This is a lian from the jungle, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(jungle, new PickableItem(\"Lian\", \"This is a lian from the jungle, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(jungle, new PickableItem(\"Stone\", \"This is a stone, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(jungle, new PickableItem(\"Stick\", \"This is a small stick, maybe it can be used to create something more usefull\", 1, false));\n //non pickable item\n itemLocation.addItem(jungle, new Item(\"GiantLog\", \"The giant log dont look like it can be moved\", 100));\n\n //Initializing an item and putting it in a room mountain\n itemLocation.addItem(mountain, new PickableItem(\"Stone\", \"This is a stone, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(mountain, new PickableItem(\"Egg\", \"This is some wild eggs, maybe it can be used for food\", 1, true));\n itemLocation.addItem(mountain, new PickableItem(\"Lumber\", \"This is a log of tree, maybe it can be used to craft something to get away from this island \", 3, false));\n\n //Initializing an item and putting it in a room cave\n itemLocation.addItem(cave, new PickableItem(\"Shroom\", \"these shrooms look suspecius, but maybe the can be\", 1, true));\n itemLocation.addItem(cave, new PickableItem(\"Stone\", \"This is a stone, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(cave, new PickableItem(\"Stone\", \"This is a stone, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(cave, new PickableItem(\"Waterbottle\", \"This is freshwater found in the jungle, maybe you can drink it\", 2, true));\n itemLocation.addItem(cave, new PickableItem(\"Flint\", \"This a flint, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(cave, new Item(\"GiantRock\", \"The giant rock dont look like it can be moved\", 100));\n\n //Initializing an item and putting it in a room camp\n itemLocation.addItem(camp, new PickableItem(\"Stone\", \"This is a stone, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(camp, new PickableItem(\"Stick\", \"This is a small stick, maybe it can be used to create something more usefull\", 1, false));\n itemLocation.addItem(camp, new PickableItem(\"Egg\", \"This is some wild eggs, maybe it can be used for food\", 1, true));\n\n //Initializing an item and putting it in a room seaBottom\n itemLocation.addItem(seaBottom, new PickableItem(\"Backpack\", \"This is a backpack from the plane crash maybe you can use it to carry more items \", 0, false));\n itemLocation.addItem(seaBottom, new PickableItem(\"WaterBottle\", \"This is a water bottle from the plan crash \", 1, true));\n itemLocation.addItem(seaBottom, new PickableItem(\"Rope\", \"This is some rope that has been washed up on the beach shore from the plane crash\", 2, false));\n }",
"public int addItem(Item i);",
"@Override\r\n public boolean add(Item item){\r\n if(item.stackable&&contains(item)){\r\n stream().filter(i -> i.name.endsWith(item.name)).forEach(i -> {\r\n i.quantity += item.quantity;\r\n });\r\n }else if(capacity<=size()) return false;\r\n else super.add(item);\r\n return true;\r\n }",
"@Override\n\tpublic void addInstrumentType(String type) {\n\t\t\n\t}"
] | [
"0.61678517",
"0.6032809",
"0.6016886",
"0.5924665",
"0.59244746",
"0.58348036",
"0.578648",
"0.5754526",
"0.5732678",
"0.5711889",
"0.5700508",
"0.5696598",
"0.5653043",
"0.5633339",
"0.5608436",
"0.5600269",
"0.55636656",
"0.55272746",
"0.55162406",
"0.55124295",
"0.55029833",
"0.54999954",
"0.54926926",
"0.5448295",
"0.5443874",
"0.543592",
"0.54279757",
"0.5420962",
"0.5416476",
"0.5392744",
"0.5384756",
"0.53582716",
"0.5355383",
"0.5352084",
"0.5352026",
"0.5346978",
"0.53427064",
"0.5341186",
"0.53144854",
"0.53065085",
"0.53000104",
"0.52844065",
"0.52784884",
"0.5272313",
"0.5266455",
"0.52663064",
"0.5263003",
"0.52588385",
"0.52425927",
"0.52339184",
"0.523086",
"0.522306",
"0.5219418",
"0.5218965",
"0.5218965",
"0.5217661",
"0.52070314",
"0.51896566",
"0.51870555",
"0.5184815",
"0.5172336",
"0.5161137",
"0.5155894",
"0.5141519",
"0.51370335",
"0.51347506",
"0.5131856",
"0.51271796",
"0.51138353",
"0.511078",
"0.51097405",
"0.51076514",
"0.51055485",
"0.510488",
"0.51026404",
"0.51011986",
"0.509837",
"0.5097044",
"0.5094926",
"0.5090955",
"0.5088215",
"0.50880706",
"0.5069197",
"0.50680715",
"0.5067161",
"0.50573814",
"0.5055895",
"0.5048001",
"0.50466967",
"0.504322",
"0.5041232",
"0.50387806",
"0.50362283",
"0.50354457",
"0.503244",
"0.503244",
"0.5028252",
"0.50275904",
"0.50237805",
"0.5021392"
] | 0.7928259 | 0 |
TODO Autogenerated method stub | public void updateState(String key, Object value) {
} | {
"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 |
Method to test is a string is a int. | private boolean isInt (String s) {
try {
if(Integer.parseInt(s) < 0) {
return false;
}
}
catch(NumberFormatException e) {
return false;
}
catch(NullPointerException e) {
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean isStringAnInt(String s) {\n // false if string is null\n if (s == null) {\n return false;\n }\n // if scanner get parse string for int then return true\n try {\n Scanner sc = new Scanner(s);\n int num = sc.nextInt();\n }\n // return false if it throws an exception\n catch (Exception e) {\n return false;\n }\n return true;\n }",
"public boolean isAnInt(String str) {\r\n \ttry {\r\n \t\tInteger.parseInt(str);\r\n \t} catch (NumberFormatException e) {\r\n \t\treturn false;\r\n \t}\r\n \treturn true;\r\n }",
"public boolean isInt(String text)\r\n {\r\n try\r\n {\r\n int ans = Integer.parseInt(text);\r\n return true;\r\n }\r\n catch(NumberFormatException e)\r\n {\r\n return false;\r\n }\r\n }",
"public static boolean is_int(String s) {\n try {\n Integer.parseInt(s);\n return true;\n } catch (NumberFormatException e) {\n return false;\n }\n }",
"private boolean isInt(String str) { \n\t try { \n\t int d = Integer.parseInt(str); \n\t } catch(NumberFormatException nfe) { \n\t return false; \n\t } \n\t return true; \n\t}",
"public static boolean isInteger(String s) {\n\t try { Integer.parseInt(s); }\n\t catch(NumberFormatException e) { return false; }\n\t catch(NullPointerException e) { return false; }\n\t // only gets here if the entered String is Integer:\n\t return true;\n\t}",
"public boolean isInt(String value) {\n try {\n Integer.parseInt(value);\n return true;\n } catch (Exception e) {\n return false;\n }\n }",
"private int isInteger(String s) {\r\n\t\t\tint retInt;\r\n\t\t try { \r\n\t\t \tretInt = Integer.parseInt(s); \r\n\t\t } catch(NumberFormatException e) { \r\n\t\t return -1; \r\n\t\t } catch(NullPointerException e) {\r\n\t\t return -1;\r\n\t\t }\r\n\t\t // only got here if we didn't return false\r\n\t\t return retInt;\r\n\t\t}",
"public static boolean isInteger(String s) {\n\t try { \n\t Integer.parseInt(s); \n\t } catch(NumberFormatException e) { \n\t return false; \n\t }\n\t return true;\n\t}",
"private static boolean isInteger(String s) {\r\n try {\r\n Integer.parseInt(s);\r\n return true;\r\n } catch (Exception ex) {\r\n return false;\r\n }\r\n }",
"private boolean isInt(String num) {\n boolean isInt;\n try {\n Integer.parseInt(num);\n isInt = true;\n } catch (Exception e) {\n isInt = false;\n }\n return isInt;\n }",
"private boolean isInteger(String s)\n{\n\t boolean isNumber = true;\n\ttry{\n\t\t\tint n = Integer.parseInt(s);\n\t }catch(NumberFormatException n)\n\t {\n\t\t isNumber = false;\n\t }\n\n\treturn isNumber;\n}",
"public static boolean isInteger(String s) {\n\t\ttry { \n\t\t\tInteger.parseInt(s); \n\t\t} catch(NumberFormatException e) { \n\t\t\treturn false; \n\t\t} catch(NullPointerException e) {\n\t\t\treturn false;\n\t\t}\n\t\t// only got here if we didn't return false\n\t\treturn true;\n\t}",
"public static boolean isInteger(String s) {\r\n\t\ttry {\r\n\t\t\tInteger.parseInt(s);\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\treturn false;\r\n\t\t} catch (NullPointerException e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public static boolean isInt(String str) {\n\t\ttry {\n\t\t\tint f = Integer.parseInt(str);\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}",
"public static boolean IS_INTEGER(String t) {\n\n return (t.equals(Feature.INTEGER));\n }",
"public static boolean isInt(String str)\r\n\t{\r\n\t\tif (str == null) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tint length = str.length();\r\n\t\tif (length == 0) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tint i = 0;\r\n\t\tif (str.charAt(0) == '-') {\r\n\t\t\tif (length == 1) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\ti = 1;\r\n\t\t}\r\n\t\tfor (; i < length; i++) {\r\n\t\t\tchar c = str.charAt(i);\r\n\t\t\tif (c < '0' || c > '9') {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public static boolean isInteger(String s) {\n\t\ttry {\n\t\t\tInteger.parseInt(s);\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public static boolean isInt(String val){\n\t try\n\t {\n\t Integer.parseInt(val);\n\t return true;\n\t } catch (NumberFormatException ex)\n\t {\n\t \tSystem.out.println(\"Please enter integer\");\n\t return false;\n\t }\n\t \n\t}",
"public static boolean isInt(String strNum) {\n try {\n int d = Integer.parseInt(strNum);\n } catch (NumberFormatException | NullPointerException nfe) {\n System.out.println(\"Invalid data format\");\n log.error(nfe);\n return false;\n }\n return true;\n }",
"public static boolean isInteger(String s) {\n\t return isInteger(s,10);\n\t}",
"public boolean isInteger(String sIntString) {\n int i = 0;\n try {\n i = Integer.parseInt(sIntString);\n return true;\n } catch (Exception e) {\n return false;\n }\n }",
"public static boolean isInteger(String string) {\r\n\t try {\r\n\t Integer.valueOf(string);\r\n\t return true;\r\n\t } catch (NumberFormatException e) {\r\n\t return false;\r\n\t }\r\n\t}",
"boolean isInt(TextField input);",
"public static boolean isInteger(String s) {\n try {\n Integer.parseInt(s);\n } catch(NumberFormatException e) {\n return false;\n } catch(NullPointerException e) {\n return false;\n }\n return true;\n }",
"private boolean isInteger(String a) {\n try \n {\n Integer.parseInt(a);\n return true;\n }\n catch(Exception e) {\n return false;\n }\n }",
"public static boolean isInteger(String s)\r\n {\r\n if (s == null || s.length() == 0)\r\n return false;\r\n \r\n //integer regular expression\r\n String regex = \"[-|+]?\\\\d+\";\r\n if (!s.matches(regex))\r\n return false;\r\n \r\n if (s.startsWith(\"+\"))\r\n s = s.substring(1);\r\n \r\n //try convert the string to an int\r\n //if it can not be converted, then return false\r\n try\r\n {\r\n Integer.parseInt(s);\r\n }catch(Exception e)\r\n {\r\n return false;\r\n }\r\n \r\n return true;\r\n }",
"public boolean isInteger(String x){\n try{\n Integer.parseInt(x);\n \n }\n catch(NumberFormatException e){\n return false;\n }\n return true;\n }",
"public static boolean isInteger(String str){\n try {\n int d = Integer.parseInt(str);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }",
"public boolean isInteger(String input){\r\n try{\r\n Integer.parseInt(input);\r\n } catch (NumberFormatException e){\r\n return false;\r\n } catch (NullPointerException e){\r\n return false;\r\n }\r\n return true;\r\n }",
"public static boolean isInt(String s){\n boolean flag = true;\n flag = ((s.charAt(0) >= '0' && s.charAt(0) <= '9') || s.charAt(0) == '-' || s.charAt(0) == '+' );\n int i = 1;\n while(flag && i < s.length()){\n flag = (s.charAt(i) >= '0' && s.charAt(i) <= '9' );\n i++;\n }\n return flag;\n }",
"public boolean isInteger();",
"public static boolean isInt(String val) {\n\t\ttry {\n\t\t\tInteger.parseInt(val);\n\t\t\treturn true;\n\t\t} catch (Exception e) { return false; }\n\t}",
"public static boolean isInteger(String s) {\n return isInteger(s,10);\n }",
"public static boolean isInteger(String value) {\n\t\ttry {\n\t\t\tInteger.parseInt(value);\n\t\t}\n\t\t \n\t\tcatch(NumberFormatException e) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"public boolean checkInt( String s ) {\n \tchar[] c = s.toCharArray();\n \tboolean d = true;\n\n \tfor ( int i = 0; i < c.length; i++ )\n \t // verifica se o char não é um dígito\n \t if ( !Character.isDigit( c[ i ] ) ) {\n \t d = false;\n \t break;\n \t }\n \treturn d;\n \t}",
"public static boolean isInteger(String input) {\n try {\n Integer.parseInt(input);\n return true;\n } catch (Exception e) {\n return false;\n }\n\n }",
"public static boolean isInteger(String str) {\n\t\ttry {\n\t\t\tInteger.parseInt(str);\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public static boolean isInt(String pram)\r\n {\r\n try{\r\n Integer.parseInt(pram);\r\n return true;\r\n }catch(NumberFormatException e){\r\n return false;\r\n }\r\n }",
"private boolean isInteger(String userInput){\n if (userInput.matches(\"[0-9]+\")) {\n return true;\n }\n return false;\n }",
"private boolean isInteger(String str)\r\n {\r\n try\r\n {\r\n int i = Integer.parseInt(str);\r\n } catch (NumberFormatException nfe)\r\n {\r\n MyLogger.log(Level.INFO, LOG_CLASS_NAME + \"Non numeric value. Value was: {0}\", str);\r\n return false;\r\n }\r\n return true;\r\n }",
"private static boolean stringTest(String s){\n try{ //depending on whether this is successful or not will return the relevant value\n Integer.parseInt(s);\n return true;\n } catch (NumberFormatException ex){\n return false;\n }\n }",
"private boolean isInteger(String element) {\r\n try {\r\n Integer.valueOf(element);\r\n } catch (NumberFormatException e) {\r\n return false;\r\n }\r\n return true;\r\n }",
"public static boolean isIntValid (String str) {\r\n try {Integer.parseInt(str);} catch (NumberFormatException e) {return false;}\r\n return true;\r\n }",
"private static boolean validateInteger(String intString) {\n try {\n Integer.parseInt(intString);\n } catch (NumberFormatException e) {\n // Not a valid integer\n return false;\n }\n return true;\n }",
"public static boolean isINT(final String token) {\n\t\t// Check for empty or 1-size strings.\n\t\tif (token.length() < 2)\n\t\t\treturn false;\n\n\t\t// verify all chars are 0-9.\n\t\tfor (int i = 0; i < token.length(); i++) {\n\t\t\tif (!digits.contains(Character.toString(token.charAt(i)))) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t// Passes all tests!\n\t\treturn true;\n\t}",
"public boolean isInteger() {\n try {\n Integer.parseInt(txt.getText());\n return true;\n } catch (Exception e) {\n return error(\"El valor debe ser un numero entero!\");\n }\n }",
"public static boolean isInteger(String value) {\n boolean valid = false;\n try {\n Integer.parseInt(value);\n valid = true;\n } catch (RuntimeException exc) {\n // could not parse into int, false will be returned\n }\n return valid;\n }",
"private static boolean isPositiveInteger(String s){\n\t\ttry{\n\t\t\t//If the token is an integer less than 0 return false\n\t\t\tif(Integer.parseInt(s) < 0){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t//If an exception occurs return false\n\t\tcatch(NumberFormatException e){\n\t\t\treturn false;\n\t\t}\n\t\t//otherwise return true\n\t\treturn true;\n\t}",
"public static boolean isInteger(String str) {\n if (str == null || str.isEmpty()) {\n return false;\n }\n int length = str.length();\n if (length == 0) {\n return false;\n }\n int i = 0;\n if (str.charAt(0) == '-') {\n if (length == 1) {\n return false;\n }\n i = 1;\n }\n for (; i < length; i++) {\n char c = str.charAt(i);\n if (c <= '/' || c >= ':') {\n return false;\n }\n }\n return true;\n }",
"public static boolean isInteger(String str) {\n if (str == null || str.isEmpty() || str.equals(\"-\"))\n return false;\n\n int startIndex = str.startsWith(\"-\") ? 1 : 0;\n for (int i = startIndex; i < str.length(); i++)\n if (Character.digit(str.charAt(i), 10) < 0)\n return false;\n return true;\n }",
"public static boolean isInt(String check) {\n\t\treturn check.matches(\"\\\\d+\");\n\t}",
"boolean hasInt();",
"public boolean checkInput(String str)\n {\n try\n {\n Integer.parseInt(str);\n } \n catch(NumberFormatException ex)\n {\n return false;\n } \n return true;\n }",
"public boolean isInt() {\n return this.data instanceof Integer;\n }",
"public static boolean isInt(char c) {\n\t\tif(c >= '0' && c <= '9') return true;\n\t\treturn false;\n\t}",
"private boolean checkInteger(String str) {\n try {\n return Integer.parseInt(str) <= 30; // Check if the entered value is an Integer and <= 30;\n } catch (NumberFormatException e) {\n return false;\n }\n }",
"private boolean tryParseInt(String str) {\n try {\n Integer.parseInt(str);\n } catch (Exception ex) {\n return false;\n }\n return true;\n }",
"public static boolean isValidInt(String s)\n {\n for (int i = 0; i < s.length(); i++)\n {\n if (!Character.isDigit(s.charAt(i)))\n {\n return false;\n }\n }\n return true;\n }",
"static boolean isInteger(char c) {\n\t\t\tswitch (c) {\n\t\t\t\tcase DECIMAL_INTEGER:\n\t\t\t\tcase OCTAL_INTEGER:\n\t\t\t\tcase HEXADECIMAL_INTEGER:\n\t\t\t\tcase HEXADECIMAL_INTEGER_UPPER:\n\t\t\t\t\treturn true;\n\t\t\t\tdefault:\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"public boolean isAnInt(char charac) {\r\n \treturn isAnInt(Character.toString(charac));\r\n }",
"public boolean isNumber(String in) \n\t{\n\t\ttry \n\t\t{\n\t\t\tInteger.parseInt(in);\n\t\t\treturn true;\n\t\t}\n\t\tcatch (Exception e) \n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean isNumber(String sIn)\r\n {\r\n int parseNumber = -1;\r\n \r\n try{\r\n parseNumber = Integer.parseInt(sIn);\r\n }catch(Exception e){\r\n return false;\r\n }\r\n \r\n return true;\r\n }",
"public boolean isIntType(Class<?> type) {\n\t\tif (this.isSimpleField(type)) {\n\t\t\tString typename = type.getName().toLowerCase();\n\t\t\tif (typename.startsWith(\"java.lang\")) {\n\t\t\t\ttypename = typename.substring(10);\n\t\t\t}\n\t\t\treturn (INT_FIELDS.indexOf(typename) >= 0);\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public static boolean isNumber(String text)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tInteger.parseInt(text);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tcatch(NumberFormatException e)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public static boolean isNumeric(String string) { \r\n\t\ttry { \r\n\t\t\tint testNumber = Integer.parseInt(string); \r\n\t\t} catch(NumberFormatException e) { \r\n\t\t\treturn false; \r\n\t\t} \r\n\t\t\r\n\t\treturn true; \r\n\t}",
"private boolean checkInt(String str) {\n\t\ttry {\n\t\t\tint integer = Integer.parseInt(str);\n\t\t\tif(integer>=0&&integer<100000){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} catch(Exception e) {\n\t\t\treturn false;\n\t\t}\n\t}",
"public static Boolean Int(String arg){\n\t\tif(arg == arg.replaceAll(\"\\\\D\",\"\")){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean isNumeric(String str){\n try {\n int i = Integer.parseInt(str);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }",
"private static boolean isPrimitive(String value) {\n boolean status = true;\n value = value.trim();\n if (value.length() < 1) {\n return false;\n }\n for (int i = 0; i < value.length(); i++) {\n char c = value.charAt(i);\n if (!Character.isDigit(c)) {\n status = false;\n break;\n }\n }\n\n return status;\n }",
"public static boolean isNumber(String text) {\r\n\t\ttry {\r\n\t\t\tInteger.parseInt(text);\r\n\t\t} catch(NumberFormatException e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"private static boolean isParsable(String input) {\n try {\n Integer.parseInt(input);\n return true;\n } catch (NumberFormatException e) {\n return false;\n }\n }",
"public boolean isParsable(String input){\n boolean parsable = true;\n try{\n Integer.parseInt(input);\n }catch(NumberFormatException e){\n parsable = false;\n }\n return parsable;\n}",
"public static boolean isNumber(String str){\n try {\n Integer.parseInt(str);\n } catch(NumberFormatException e) {\n return false;\n } catch(NullPointerException e) {\n return false;\n }\n return true;\n }",
"public boolean isPrimitiveOrString(String fieldType) {\n return fieldType.equals(\"int\") || fieldType.equals(\"short\") || fieldType.equals(\"long\") ||\n fieldType.equals(\"byte\") || fieldType.equals(\"char\") || fieldType.equals(\"float\") ||\n fieldType.equals(\"double\") || fieldType.equals(\"boolean\") || fieldType.equals(\"String\");\n }",
"private boolean isInteger(String value){\n try{\n Integer.parseInt(value);\n }catch(NumberFormatException exc)\n {\n // Show the error message.\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Не верно указано затраченное время!\");\n alert.setHeaderText(null);\n alert.setContentText(\"Введите целое число затраченного времени!\\nЗатраченное время не может превышать 2147483647 (245000 лет)!\");\n alert.showAndWait();\n return false;\n }\n return true;\n }",
"private static boolean isKata(String s) {\n\t\tchar c = s.charAt(0);\n\t\tif (c < '0' || c > '9') return true;\n\t\t\n\t\ttry {\n\t\t\tInteger.parseInt(s);\n\t\t\treturn false;\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn true;\n\t\t}\n\t}",
"private boolean isNumber( String test ) {\n\treturn test.matches(\"\\\\d+\");\n }",
"private boolean isNumber(String str) {\r\n int ASCII_0 = 48;\r\n int ASCII_9 = 57;\r\n if (str.equals(\"\")) {\r\n return false;\r\n }\r\n for (int i = 0; i < str.length(); i++) {\r\n int chr = str.charAt(i);\r\n if (chr < ASCII_0 || chr > ASCII_9) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }",
"public static int checkValidity (String stringChoice) {\n int choice;\n Scanner parser = new Scanner(stringChoice);\n String modStringChoice = stringChoice.replaceAll(\"[\\\\d]\", \"\");\n if (modStringChoice.length() == 0 && parser.hasNextInt()) {\n choice = parser.nextInt();\n }\n else {\n choice = -1;\n }\n parser.close();\n return choice;\n }",
"@Override\r\n\tpublic int getInt(String string) {\n\t\treturn 0;\r\n\t}",
"@Test\n void checkIsTrueForStringWithNumbers() {\n // Act, Assert\n assertTrue(IsNumeric.check(\"3\"));\n assertTrue(IsNumeric.check(\"0\"));\n assertTrue(IsNumeric.check(\"-0f\"));\n assertTrue(IsNumeric.check(\"3.8f\"));\n assertTrue(IsNumeric.check(\"-3.87F\"));\n assertTrue(IsNumeric.check(\"-3\"));\n assertTrue(IsNumeric.check(\"32f\"));\n assertTrue(IsNumeric.check(\"15D\"));\n assertTrue(IsNumeric.check(\"3.2\"));\n assertTrue(IsNumeric.check(\"0.2\"));\n assertTrue(IsNumeric.check(\"-0.28\"));\n assertTrue(IsNumeric.check(\"0.24D\"));\n assertTrue(IsNumeric.check(\"0.379d\"));\n }",
"public static boolean checkInt(Scanner scan) {\n\n if (scan.hasNextInt()) {//if the input is an integer\n return (true);\n }\n else {\n System.out.print(\"You did not enter an int; try again: \");\n return (false);\n \n }\n\n }",
"public static boolean isNumeric(String str) {\n try {\n Integer d = Integer.parseInt(str);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }",
"public static boolean tryParse(String str) { \n try { \n Integer.parseInt(str); \n return true;\n } catch (NumberFormatException ex) {\n return false; \n } catch (Exception ex) {\n\t logError(ex);\n\t return false;\n }\n }",
"boolean hasIntValue();",
"static int type_of_in(String passed){\n\t\treturn 1;\n\t}",
"@Test\n\tpublic void testInt4() {\n\t\tTextField intText = new TextField(\"23abc\");\n\t\tboolean checkIntText = initTest.checkIntValues(intText);\n\t\tassertFalse(checkIntText);\n\t}",
"public boolean ehInteiro(String s) {\n\t\tchar[] c = s.toCharArray();\n\t\tboolean d = true;\n\t\tfor (int i = 0; i < c.length; i++)\n\t\t\t// verifica se o char não é um dígito\n\t\t\tif (!Character.isDigit(c[i])) {\n\t\t\t\td = false;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\treturn d;\n\t}",
"private boolean isNumeric(String s) {\n return java.util.regex.Pattern.matches(\"\\\\d+\", s);\n }",
"boolean isNumericPubmed(String id){\n\t\t \n\t\t try{\n\t\t\t Integer.parseInt(id);\n\t\t }catch (Exception e){\n\t\t\t return false;\n\t\t }\n\t\t return true;\n\t }",
"@Test\n\tpublic void test_TCC___String_String_int() {\n {\n\n \t\t@SuppressWarnings(\"deprecation\")\n\t\t\tfinal Attribute attribute = new Attribute(\"test\", \"value\", AttributeType.ID.ordinal());\n \t\tassertTrue(\"incorrect attribute name\", attribute.getName().equals(\"test\"));\n \t\tassertTrue(\"incoorect attribute value\", attribute.getValue().equals(\"value\"));\n \t\tassertTrue(\"incorrect Namespace\", attribute.getNamespace().equals(Namespace.NO_NAMESPACE));\n\n assertEquals(\"incoorect attribute type\", attribute.getAttributeType(), Attribute.ID_TYPE);\n }\n\n\t}",
"private static int i(String s) {\n return Integer.parseInt(s);\n }",
"private static boolean isValidDigit(String strInput) {\n boolean isValid = true;\n if (isPrimitive(strInput)) {\n int input = Integer.parseInt(strInput);\n if (input < 1 || input > 255) {\n log.debug(\"Wrong config input value: {}\", strInput);\n isValid = false;\n } else {\n isValid = true;\n }\n\n } else {\n isValid = false;\n }\n\n return isValid;\n }",
"@Test\n\tpublic void testInt2() {\n\t\tTextField intText = new TextField(\"-23\");\n\t\tboolean checkIntText = initTest.checkIntValues(intText);\n\t\tassertFalse(checkIntText);\n\t}",
"private static boolean isNumeric(String str){\n return NumberUtils.isNumber(str);\n }",
"private static boolean isNumeric(String cadena)\n\t {\n\t\t try \n\t\t {\n\t\t\t Integer.parseInt(cadena);\n\t\t\t return true;\n\t\t } catch (NumberFormatException nfe)\n\t\t {\n\t\t\t return false;\n\t\t }\n\t }",
"private boolean isInt(TextField input){\r\n input.setStyle(\"-fx-border-color: green; -fx-border-radius: 15;-fx-background-radius: 20;\");\r\n try {\r\n int number = Integer.parseInt(input.getText());\r\n System.out.println(\"Input is\" + number );\r\n return true;\r\n } catch (Exception e) {\r\n input.setStyle(\"-fx-border-color: red;\");\r\n input.setText(null);\r\n input.setPromptText(\"Only digits/numbers must be filled\");\r\n return false;\r\n }\r\n }",
"public static boolean ehInteiro(String s) {\n char[] c = s.toCharArray();\n boolean d = true;\n\n for (int i = 0; i < c.length; i++) {\n // verifica se o char não é um dígito\n if (!Character.isDigit(c[i])) {\n d = false;\n break;\n }\n }\n\n return d;\n }",
"public Boolean isIdentifier(String string) {\n\t\tif (string == null) {\n\t\t\treturn false;\n\t\t}\n\t\treturn string.matches(\"[0-9].*\");\n\t}"
] | [
"0.8101721",
"0.792198",
"0.786022",
"0.78104573",
"0.7756254",
"0.7703792",
"0.7683385",
"0.7623612",
"0.75983065",
"0.75763184",
"0.75471467",
"0.7540163",
"0.75334644",
"0.7435134",
"0.7428311",
"0.7427375",
"0.74209356",
"0.7420797",
"0.7419715",
"0.7370995",
"0.73343056",
"0.7319174",
"0.7314253",
"0.73129517",
"0.7309641",
"0.7302511",
"0.7290362",
"0.72898704",
"0.72704107",
"0.7268939",
"0.7265947",
"0.72375053",
"0.7209574",
"0.72028756",
"0.7194792",
"0.71737474",
"0.7091415",
"0.7090992",
"0.7075778",
"0.7059106",
"0.7058778",
"0.7019486",
"0.7005801",
"0.69501936",
"0.6935112",
"0.69059265",
"0.68719375",
"0.686063",
"0.68237936",
"0.6789221",
"0.6786294",
"0.6781808",
"0.67727876",
"0.67552084",
"0.6712603",
"0.66784257",
"0.66431534",
"0.6607736",
"0.6595455",
"0.6555592",
"0.64854497",
"0.64520514",
"0.64502925",
"0.6418284",
"0.6396161",
"0.6377343",
"0.63656145",
"0.6360472",
"0.6354841",
"0.63533956",
"0.63281906",
"0.6274018",
"0.62616223",
"0.6238537",
"0.6195352",
"0.6127336",
"0.6061743",
"0.60602605",
"0.6025455",
"0.59989214",
"0.5989706",
"0.59891665",
"0.5968522",
"0.5960793",
"0.5933957",
"0.5928703",
"0.5922677",
"0.5907343",
"0.59070987",
"0.59045357",
"0.5901598",
"0.5894995",
"0.5889249",
"0.5885039",
"0.58645463",
"0.5862583",
"0.5862135",
"0.5856711",
"0.58543104",
"0.5850285"
] | 0.7611494 | 8 |
collect and validate DatePicker values. | @FXML
private void btnBookAddAction() throws Exception {
LocalDate pubDate = txtBookPubDateAdd.getValue();
//If no date send error message.
if (pubDate == null) {
lblBookAddIssues.setText("Published Date cannot be Null");
}
String bookId = txtBookIdAdd.getText();
String bookTitle = txtBookTitleAdd.getText();
String bookDescription = txtBookDescriptionAdd.getText();
String bookPubDate = pubDate.toString();
String bookEdition = txtBookEditionAdd.getText();
String bookPrice = txtBookPriceAdd.getText();
String bookPublisherId = cmbBookPublisherIdAdd.getSelectionModel().getSelectedItem();
String bookAuthorId = cmbBookAuthorIdAdd.getSelectionModel().getSelectedItem();
String bookGenreId = cmdBookGenreIdAdd.getSelectionModel().getSelectedItem();
String bookQty = txtBookQtyAdd.getText();
if ((bookId.length() == 0) || (bookId.length() >= 12)) {
lblBookAddIssues.setText("Book ID must be between 1 and 11 characters");
}
else if (!bookId.matches("[0-9]{1,11}")) {
lblBookAddIssues.setText("Book ID must be numeric..");
}
else if ((bookTitle.length() == 0) || (bookTitle.length() >= 51)) {
lblBookAddIssues.setText("Book Title must be between 1 and 50 characters");
}
else if ((bookDescription.length() == 0) || (bookDescription.length() >= 256)) {
lblBookAddIssues.setText("Book Description must be between 1 and 255 characters");
}
else if (bookPubDate == null) {
lblBookAddIssues.setText("Published Date must not be empty");
}
else if ((bookEdition.length() == 0) || (bookEdition.length() >= 5)) {
lblBookAddIssues.setText("Book Edition must be between 1 and 4 characters");
}
else if (!bookEdition.matches("[0-9]{1,4}")) {
lblBookAddIssues.setText("Book Edition must be numeric..");
}
else if (bookPrice.length() == 0) {
lblBookAddIssues.setText("Book Price must be completed..");
}
else if (!bookPrice.matches("[0-9]{1,4}+(\\.[0-9]{1,2})")) {
lblBookAddIssues.setText("Book Price must be in currency format..");
}
else if (bookPublisherId.length() == 0) {
lblBookAddIssues.setText("Publisher ID must not be blank.");
}
else if (bookAuthorId.length() == 0) {
lblBookAddIssues.setText("Author ID must not be blank.");
}
else if (bookGenreId.length() == 0) {
lblBookAddIssues.setText("Genre ID must not be blank.");
}
else if ((bookQty.length() == 0) || (bookQty.length() >= 12)){
lblBookAddIssues.setText("Book Qty must be between 1 and 11 characters.");
}
else if (!bookQty.matches("[0-9]{1,11}")) {
lblBookAddIssues.setText("Book Qty must be a number..");
}
else {
String result = AddBook.Query(bookId, bookTitle, bookDescription, bookPubDate,
bookEdition, bookPrice, bookPublisherId,
bookAuthorId, bookGenreId, bookQty);
lblBookAddIssues.setText(result);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void validateDate() {\n if (dtpSightingDate.isEmpty()) {\n dtpSightingDate.setErrorMessage(\"This field cannot be left empty.\");\n dtpSightingDate.setInvalid(true);\n removeValidity();\n }\n // Check that the selected date is after research began (range check)\n else if (!validator.checkDateAfterMin(dtpSightingDate.getValue())) {\n dtpSightingDate.setErrorMessage(\"Please enter from \" + researchDetails.MIN_DATE + \" and afterwards. This is when the research period began.\");\n dtpSightingDate.setInvalid(true);\n removeValidity();\n }\n // Check that the selected date is not in the future (range check / logic check)\n else if (!validator.checkDateNotInFuture(dtpSightingDate.getValue())) {\n dtpSightingDate.setErrorMessage(\"Please enter a date from today or before. Sighting date cannot be in the future.\");\n dtpSightingDate.setInvalid(true);\n removeValidity();\n }\n }",
"public void parseDateTextFieldHelper() {\n\t\tyear = Integer.parseInt(textFieldDate.getText().substring(0, 4));\n\t\tmonth = Integer.parseInt(textFieldDate.getText().substring(5, 7));\n\t\tdayOfMonth = Integer.parseInt(textFieldDate.getText().substring(8, 10));\n\t}",
"void validateDates(ComponentSystemEvent event);",
"@Test\n public void wam_005_testDatePicker() {\n wam.verifyDateInDatePicker();\n // test behaviour of selecting a date\n String date = \"June 1, 2019\";\n wam.typeDateInDatePicker(date);\n wam.verifyDateInDatePicker(date);\n wam.verifyWamIndexIsNotEmpty();\n }",
"private boolean CheckDateSelection() {\n\t\tif (Date_DatePicker.getValue() == null) {\n\t\t\tif (!Date_DatePicker.getStyleClass().contains(\"error\"))\n\t\t\t\tDate_DatePicker.getStyleClass().add(\"error\");\n\t\t\tDateNote.setText(\"* Select date\");\n\t\t\treturn false;\n\t\t}\n\t\tDate_DatePicker.getStyleClass().remove(\"error\");\n\t\tDateNote.setText(\"*\");\n\t\treturn true;\n\t}",
"public interface DatepickerListener {\n void dialogValueReturn(String year, String week, String month, String day);\n}",
"public boolean verifyDataOfDatePicker(boolean isNewToDoPage) {\n try {\n Calendar cal = Calendar.getInstance();\n int currentDay = cal.get(Calendar.DAY_OF_MONTH);\n int currentMonth = cal.get(Calendar.MONTH);\n int currentYear = cal.get(Calendar.YEAR);\n int focusDay = 0;\n int focusMonth = 0;\n int focusYear = 0;\n // If isNewToDoPage = true, verify in add new to-do page\n if (isNewToDoPage) {\n waitForClickableOfElement(eleIdDueDate, \"Due date text box\");\n clickElement(eleIdDueDate, \"click to eleIdDueDate\");\n waitForClickableOfElement(eleXpathChooseDate, \"Date picker\");\n waitForVisibleElement(eleDataPickerToDate, \"Date picker to date\");\n waitForVisibleElement(eleDataPickerToDay, \"Date picker to day\");\n\n focusDay = Integer.parseInt(eleDataPickerToDay.getAttribute(\"text\").trim());\n focusMonth = Integer.parseInt(eleDataPickerToDate.getAttribute(\"data-month\").trim());\n focusYear = Integer.parseInt(eleDataPickerToDate.getAttribute(\"data-year\").trim());\n getLogger().info(\"Day : \" + eleDataPickerToDay.getAttribute(\"text\") + \"Month :\" + eleDataPickerToDate\n .getAttribute(\"data-month\") + \" Year :\" + eleDataPickerToDate.getAttribute(\"data-year\"));\n\n }\n // Compare focus day, month, year with current day, month, year\n if (focusDay != currentDay || focusMonth != currentMonth || focusYear != currentYear) {\n NXGReports.addStep(\"TestScript Failed: Verify data in date pickerd\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n return false;\n }\n NXGReports.addStep(\"Verify data in date picker\", LogAs.PASSED, null);\n } catch (AssertionError e) {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"TestScript Failed: Verify data in date pickerd\", LogAs.FAILED,\n new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n return true;\n }",
"private void initDatePicker() {\n pickDateBox.setDayCellFactory(picker -> new DateCell() {\n public void updateItem(LocalDate date, boolean empty) {\n super.updateItem(date, empty);\n LocalDate today = LocalDate.now();\n\n setDisable(empty || date.compareTo(today) < 0 );\n }\n });\n }",
"public static void valDate() {\n Scanner input = new Scanner(System.in);\n try {\n LocalDate dateObj = LocalDate.parse(date);\n } catch (DateTimeParseException ex) {\n System.err.println(\"Invalid date, please insert a valid date with pattern yyyy-MM-dd\");\n date = input.next();\n valDate();\n }\n }",
"public void getoptions() {\n if (mydatepicker.getValue() != null) {\n ObservableList<String> options1 = FXCollections.observableArrayList(\n \"09:00\",\n \"09:30\",\n \"10:00\",\n \"10:30\",\n \"11:00\",\n \"11:30\",\n \"12:00\",\n \"12:30\",\n \"13:00\",\n \"13:30\",\n \"14:00\",\n \"14:30\"\n );\n ObservableList<String> options2 = FXCollections.observableArrayList(\n \"09:00\",\n \"09:30\",\n \"10:00\",\n \"10:30\",\n \"11:00\"\n );\n ObservableList<String> options3 = FXCollections.observableArrayList(\"NOT open on Sunday\");\n\n int a = mydatepicker.getValue().getDayOfWeek().getValue();\n if (a == 7) {\n time_input.setItems(options3);\n } else if (a == 6) {\n time_input.setItems(options2);\n } else {\n time_input.setItems(options1);\n }\n }\n }",
"public static void restrictDatePickerToOlder(DatePicker datePicker) {\r\n // Sets up a restricton for choosable dates:\r\n Callback<DatePicker, DateCell> dayCellFactory = dp -> new DateCell()\r\n {\r\n @Override\r\n public void updateItem(LocalDate item, boolean empty)\r\n {\r\n super.updateItem(item, empty);\r\n // Only allow dates that are older than current dates:\r\n if(item.isAfter(LocalDate.now()))\r\n { // Sets the background color of the invalid dates to a pink/red color:\r\n setStyle(\"-fx-background-color: #ffc0cb;\");\r\n // Disables them, so they can not be picked:\r\n setDisable(true);\r\n }\r\n }\r\n };\r\n // Apply these restrictions to our DatePicker\r\n datePicker.setDayCellFactory(dayCellFactory);\r\n // Set prompt text:\r\n datePicker.setPromptText(\"dd/MM/yyyy\");\r\n }",
"public void setDate() {\n DatePickerDialog dateDialog = new DatePickerDialog(this, myDateListener,\n calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), calendar.get(Calendar.DATE));\n //set the date limits so user cannot pick a date outside of game scope\n dateDialog.getDatePicker().setMinDate(System.currentTimeMillis() + MILLIS_IN_DAY);\n dateDialog.getDatePicker().setMaxDate(System.currentTimeMillis() + (MILLIS_IN_DAY * MAX_END_DAY_COUNT));\n dateDialog.show();\n }",
"public void fill_PreAdmission_StudentCountReportForm_BetweenDate_RegisteredList() throws Exception {\r\n\t\tisDisplayed(rdBtn_RegisteredList);\r\n\t\tif (!rdBtn_RegisteredList.isSelected()) {\r\n\t\t\trdBtn_RegisteredList.click();\r\n\t\t\tlog(\"Registered List radio button is selected and object is:-\" + rdBtn_RegisteredList.toString());\r\n\t\t\tThread.sleep(1000);\r\n\t\t} else {\r\n\t\t\tlog(\"Registered List radio button is already selected and object is:-\" + rdBtn_RegisteredList.toString());\r\n\t\t\tThread.sleep(500);\r\n\t\t}\r\n\t\tisDisplayed(rdBtn_BetweenDates);\r\n\t\tif (!rdBtn_BetweenDates.isSelected()) {\r\n\t\t\trdBtn_BetweenDates.click();\r\n\t\t\tlog(\"Between Date radio button is selected and object is:-\" + rdBtn_BetweenDates.toString());\r\n\t\t\tThread.sleep(1000);\r\n\t\t} else {\r\n\t\t\tlog(\"Between Date radio button is already selected and object is:-\" + rdBtn_BetweenDates.toString());\r\n\t\t\tThread.sleep(500);\r\n\t\t}\r\n\t\t// Enter From Date\r\n\t\tclickOnButton(btn_FromCalender);\r\n\t\t((JavascriptExecutor) driver).executeScript(\"arguments[0].scrollIntoView(true);\", btn_MonthYear_From2);\r\n\t\tThread.sleep(500);\r\n\t\t((JavascriptExecutor) driver).executeScript(\"arguments[0].scrollIntoView(true);\", btn_MonthYear_From);\r\n\t\tThread.sleep(500);\r\n\t\tbtn_Date_From.click();\r\n\t\tlog(\"From date is selected from calender.\");\r\n\t\tThread.sleep(1000);\r\n\r\n\t\t// Enter To Date\r\n\t\tclickOnButton(btn_ToCalender);\r\n\t\t((JavascriptExecutor) driver).executeScript(\"arguments[0].scrollIntoView(true);\", btn_MonthYear_To);\r\n\t\tThread.sleep(500);\r\n\t\tbtn_Date_To.click();\r\n\t\tlog(\"To date is selected from calender.\");\r\n\t\tThread.sleep(1000);\r\n\r\n\t}",
"public void calendarDates()\n {\n textViewStartDate.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Calendar cal = Calendar.getInstance();\n int year = cal.get( Calendar.YEAR);\n int month = cal.get( Calendar.MONTH);\n int day = cal.get( Calendar.DAY_OF_MONTH);\n\n DatePickerDialog dialog = new DatePickerDialog (\n PlanProfile.this,\n mDateSetListener,\n year,month,day);\n dialog.show();\n }\n });\n mDateSetListener = new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker datePicker, int year, int month, int day) {\n month = month + 1;\n Log.d(TAG, \"onDateSet: mm/dd/yyy: \" + month + \"/\" + day + \"/\" + year);\n\n String date = month + \"/\" + day + \"/\" + year;\n textViewStartDate.setText(date);\n }\n };\n\n\n textViewEndDate.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Calendar cal = Calendar.getInstance();\n int year = cal.get( Calendar.YEAR);\n int month = cal.get( Calendar.MONTH);\n int day = cal.get( Calendar.DAY_OF_MONTH);\n\n DatePickerDialog dialog = new DatePickerDialog (\n PlanProfile.this,\n mDateSetListener2,\n year,month,day);\n dialog.show();\n }\n });\n mDateSetListener2 = new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker datePicker, int year, int month, int day) {\n month = month + 1;\n Log.d(TAG, \"onDateSet: mm/dd/yyy: \" + month + \"/\" + day + \"/\" + year);\n\n String date = month + \"/\" + day + \"/\" + year;\n textViewEndDate.setText(date);\n }\n };\n }",
"private void showDateDialog(){\n final Calendar newCalendar = Calendar.getInstance();\n\n /**\n * Initiate DatePicker dialog\n */\n datePickerDialog = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n\n @Override\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n\n /**\n * Method ini dipanggil saat kita selesai memilih tanggal di DatePicker\n */\n\n /**\n * Set Calendar untuk menampung tanggal yang dipilih\n */\n Calendar newDate = Calendar.getInstance();\n newDate.set(year, monthOfYear, dayOfMonth);\n\n\n if(!newDate.before(newCalendar)){\n /**\n * Update TextView with choosen date\n */\n newDate.set(Calendar.HOUR_OF_DAY, 0);\n newDate.set(Calendar.MINUTE, 0);\n newDate.set(Calendar.SECOND, 0);\n newDate.set(Calendar.MILLISECOND,0);\n mDateTextView.setTextColor(Color.BLACK);\n String day = mDateFormatter.getDayName(newDate.getTime());\n String date = mDateFormatter.getOnlyDate(newDate.getTime());\n String month = mDateFormatter.getMonth(newDate.getTime());\n mDateTextView.setText(day + \" \" + date + \",\" + month);\n mChoosenSaveDate = newDate;\n }else{\n mDateTextView.setText(\"Deadline has to be at leats same as current date\");\n mDateTextView.setTextColor(Color.RED);\n Toast.makeText(view.getContext(),\"invalid choosen date\",\n Toast.LENGTH_LONG).show();\n }\n\n\n }\n\n },newCalendar.get(Calendar.YEAR), newCalendar.get(Calendar.MONTH), newCalendar.get(Calendar.DAY_OF_MONTH));\n\n /**\n * Tampilkan DatePicker dialog\n */\n datePickerDialog.show();\n\n }",
"private void validationValuesFromWeather(WeatherCalender weatherCalender, List<WeatherType> weatherTypesList) {\n\t\tLocalDate weatherDate = weatherCalender.getCalenderdate();\n\t\tString weatherTypeCd = weatherCalender.getWeather().getWeatherTypeCd();\n\t\t\n\t\tif(weatherDate.compareTo(LocalDate.now()) > 0) {\n\t\t\tthrow new LocalDateFromFutureException(weatherDate);\n\t\t}\n\t\t\n\t\tif( ! weatherTypesList.stream().anyMatch(list -> list.getWeatherTypeCd().equals(weatherTypeCd)) ) {\n\t\t\tthrow new IncorrectWeatherTypeCdException(weatherTypeCd, weatherTypesList);\n\t\t}\n\t}",
"@Override\n public void onDateSet(DatePicker datePicker, int i, int i1, int i2) {\n final Calendar c = Calendar.getInstance();\n c.set(Calendar.YEAR, i);\n c.set(Calendar.MONTH, i1);\n c.set(Calendar.DAY_OF_MONTH, i2);\n\n\n FilterFragment parentFrag = (FilterFragment) getTargetFragment();\n parentFrag.onDatePass(c);\n\n }",
"@Override\n\t\t\t\t\t\tpublic void onDateSet(DatePicker view,\n\t\t\t\t\t\t\t\tint selectedyear, int monthOfYear,\n\t\t\t\t\t\t\t\tint dayOfMonth) {\n\n\t\t\t\t\t\t\tyear = selectedyear;\n\t\t\t\t\t\t\tmonth = monthOfYear;\n\t\t\t\t\t\t\tday = dayOfMonth;\n\t\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\t\tDate date = new SimpleDateFormat(\"yyyy-MM-dd\")\n\t\t\t\t\t\t\t\t\t\t.parse(year + \"-\" + (month + 1) + \"-\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ day);\n\n\t\t\t\t\t\t\t\tDateFormat outputFormatter = new SimpleDateFormat(\n\t\t\t\t\t\t\t\t\t\t\"yyyy-MM-dd\");\n\t\t\t\t\t\t\t\tString selectedDate = outputFormatter\n\t\t\t\t\t\t\t\t\t\t.format(date); // Output : 01/20/2012\n\n\t\t\t\t\t\t\t\tSystem.out.println(\"!!!!!!selectedDate...\"\n\t\t\t\t\t\t\t\t\t\t+ selectedDate);\n\n\t\t\t\t\t\t\t\t// Date currDate=new Date();\n\n\t\t\t\t\t\t\t\tSystem.out.println(\"!!!!!!!!!currDate.\"\n\t\t\t\t\t\t\t\t\t\t+ currDate);\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"output.compareTo(currDate)..\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ selectedDate\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.compareTo(currDate\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.toString()));\n\n\t\t\t\t\t\t\t\tif (selectedDate.compareTo(currDate.toString()) >= 0\n\t\t\t\t\t\t\t\t\t\t&& selectedDate.compareTo(output\n\t\t\t\t\t\t\t\t\t\t\t\t.toString()) <= 0) {\n\t\t\t\t\t\t\t\t\t// then do your work\n\t\t\t\t\t\t\t\t\t// Display Selected date in textbox\n\n\t\t\t\t\t\t\t\t\tDateFormat outputFormatter1 = new SimpleDateFormat(\n\t\t\t\t\t\t\t\t\t\t\t\"yyyy-MM-dd\");\n\t\t\t\t\t\t\t\t\tString date_formating = outputFormatter1\n\t\t\t\t\t\t\t\t\t\t\t.format(date);\n\n\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!after_formating..\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ outputFormatter1\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \"!!!!!\" + date_formating);\n\n\t\t\t\t\t\t\t\t\trf_booking_date_box.setText(selectedDate);\n\t\t\t\t\t\t\t\t\tBooking_Screen_TabLayout.rf_booking_date_header.setText(selectedDate);\n\n\t\t\t\t\t\t\t\t\t// rf_booking_date_box.setText(year + \"-\" +\n\t\t\t\t\t\t\t\t\t// (month + 1)\n\t\t\t\t\t\t\t\t\t// + \"-\" + day);\n\n\t\t\t\t\t\t\t\t\tGlobal_variable.str_Date = date_formating;\n\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t// show message\n\n\t\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\t\tgetApplicationContext(),\n\t\t\t\t\t\t\t\t\t\t\tgetString(R.string.str_invalid_date),\n\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t} catch (java.text.ParseException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}",
"public void verifyDuedateTable() {\n try {\n DropdownDuedateBtn.click();\n waitForCssValueChanged(datePicker, \"Date Picker Table\", \"display\", \"block\");\n getLogger().info(\"Current Month is: \" + Month.getText());\n Thread.sleep(largeTimeOut);\n // tableDatePicker.pickADate(\"12\",\"5\",\"2017\");\n\n\n // verifyPrevFunction();\n // verifyNextFunction();\n\n } catch (Exception e) {\n\n\n }\n }",
"public void initializeDate() {\n //Get current date elements from Calendar object\n day = cal.get(Calendar.DAY_OF_MONTH);\n month = cal.get(Calendar.MONTH); //Note months are indexed starting at zero (Jan -> 0)\n year = cal.get(Calendar.YEAR);\n\n //Pair EditText to local variable and set input type\n date = (EditText) findViewById(R.id.textSetDate);\n date.setInputType(InputType.TYPE_NULL);\n\n //Set EditText text to be current time\n date.setText((month + 1) + \"/\" + day + \"/\" + year);\n\n //Create onClick listener on date variable\n date.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n datePicker = new DatePickerDialog(ControlCenterActivity.this, new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker datePicker, int year, int month, int dayOfMonth) {\n date.setText((month + 1) + \"/\" + dayOfMonth + \"/\" + year);\n }\n }, year, month, day);\n\n datePicker.show();\n }\n });\n }",
"private void chooseDateDialog() {\n Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DATE);\n\n DatePickerDialog datePickerDialog =\n new DatePickerDialog(Objects.requireNonNull(getContext()), this, year, month, day);\n datePickerDialog.show();\n }",
"private void dateOfBirthPicker() {\n _nextActionDate.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n final Calendar c = Calendar.getInstance();\n int mYear = c.get(Calendar.YEAR);\n int mMonth = c.get(Calendar.MONTH);\n int mDay = c.get(Calendar.DAY_OF_MONTH);\n DatePickerDialog dateDialog = new DatePickerDialog(v.getContext(), new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n Time chosenDate = new Time();\n chosenDate.set(dayOfMonth, month, year);\n long dtDob = chosenDate.toMillis(true);\n\n String format = new SimpleDateFormat(\"yyyy-MM-dd\").format(dtDob);\n _nextActionDate.setText(format);\n\n }\n }, mYear, mMonth, mDay);\n //dateDialog.getDatePicker().setMaxDate(new Date().getTime());\n dateDialog.show();\n }\n });\n }",
"@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n Calendar newDate = Calendar.getInstance();\n newDate.set(year, monthOfYear, dayOfMonth);\n\n\n if(!newDate.before(newCalendar)){\n /**\n * Update TextView with choosen date\n */\n newDate.set(Calendar.HOUR_OF_DAY, 0);\n newDate.set(Calendar.MINUTE, 0);\n newDate.set(Calendar.SECOND, 0);\n newDate.set(Calendar.MILLISECOND,0);\n mDateTextView.setTextColor(Color.BLACK);\n String day = mDateFormatter.getDayName(newDate.getTime());\n String date = mDateFormatter.getOnlyDate(newDate.getTime());\n String month = mDateFormatter.getMonth(newDate.getTime());\n mDateTextView.setText(day + \" \" + date + \",\" + month);\n mChoosenSaveDate = newDate;\n }else{\n mDateTextView.setText(\"Deadline has to be at leats same as current date\");\n mDateTextView.setTextColor(Color.RED);\n Toast.makeText(view.getContext(),\"invalid choosen date\",\n Toast.LENGTH_LONG).show();\n }\n\n\n }",
"private void setSaleDateField1() {\n // Create a DatePickerDialog and manage it\n mSaleDatePickerDialog1 = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n Calendar newDateEntryOfTheMarket = Calendar.getInstance();\n newDateEntryOfTheMarket.set(year, monthOfYear, dayOfMonth);\n\n // Update entryDate in ViewModel\n mSearchEstateViewModel.getDateSale1().setValue(newDateEntryOfTheMarket);\n }\n\n },newCalendar.get(Calendar.YEAR), newCalendar.get(Calendar.MONTH),\n newCalendar.get(Calendar.DAY_OF_MONTH));\n }",
"public void departure_date(String departureDatePicker) throws ParseException\r\n\t{\r\n\t\t\r\n\t\tSimpleDateFormat df1;\r\n\t\t\r\n\r\n\t\tif(departuredate.getAttribute(\"placeholder\").equals(\"mm/dd/yyyy\")){\r\n\t\t\t df1 = new SimpleDateFormat(\"MM/dd/yyyy\");\r\n\r\n\t\t}else{\r\n\t\t\t df1 = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\t}\r\n\t\t\r\n\t\t//Formats date based on BE customer date format\r\n\t\tdf1 = new SimpleDateFormat(departuredate.getAttribute(\"placeholder\"));\r\n\t\t\t\t\r\n\t\t//Converts the String text from Data file into a Date object\r\n\t\tDate dateForDeparture = df1.parse(departureDatePicker);\r\n\t\t\t\t\r\n\t\t//Suppose to create the current date\r\n\t\tDate currentDate = new Date();\r\n\t\t\t\t\r\n\t\tSystem.out.println(\"This is current date from departure_date() \" + currentDate);\r\n\t\t\t\r\n\r\n\t\t//will use this attriute to find out the date format\r\n\t\tSystem.out.println(departuredate.getAttribute(\"placeholder\"));\r\n\t\t\r\n\t\t\r\n\t\tif ( dateForDeparture.before(currentDate)){\r\n\t\t\t \r\n\t\t\tdateForDeparture.setDate(currentDate.getDate() + 6);\r\n\t\t }\r\n\t\t\r\n\t\tformattedDate1 = df1.format(dateForDeparture);\r\n\t\t\r\n\t\tSystem.out.println(\"This is the departure date reformat from departure_date() \" + formattedDate1);\r\n\t\t\r\n\t\t\r\n\t\tif (departuredate.isDisplayed()) \r\n\t\t{\r\n\t\t\tdeparturedate.click();\r\n\t\t\tdeparturedate.clear();\r\n\t\t\tTypeInField(departuredate, formattedDate1);\r\n\t\t\t//departuredate.sendKeys(formattedDate1);\r\n\t\t\tSystem.out.println(\"departuredate is entered successfully\");\r\n\t\t\tlogger.info(\"departuredate is entered successfully\");\r\n\t\t\ttest.log(Status.INFO, \"departuredate is entered successfully\");\r\n\r\n\t\t} else {\r\n\t\t\t//System.out.println(\"departuredate TextBox not found\");\r\n\t\t\tlogger.error(\"departuredate TextBox not found\");\r\n\t\t\ttest.log(Status.FAIL, \"departuredate TextBox not found\");\r\n\r\n\t\t}\r\n\t}",
"public void onDateSet(DatePicker view, int selectedYear,\n int selectedMonth, int selectedDay) {\n Calendar calendarNow = Calendar.getInstance();\n calendarNow.set(selectedYear, selectedMonth, selectedDay);\n if (calendarNow.getTimeInMillis() < view.getMinDate()) {\n begdaShowDatePickerDialog();\n Toast.makeText(getActivity(), getResources().getString(R.string.createOrder_datePicker_selectFutureDate), Toast.LENGTH_SHORT).show();\n view.updateDate(begCalendar.get(Calendar.YEAR), begCalendar.get(Calendar.MONTH), begCalendar.get(Calendar.DAY_OF_MONTH));\n }\n\n begYear = selectedYear;\n begMonth = selectedMonth;\n begDay = selectedDay;\n begCalendar.set(selectedYear, selectedMonth, selectedDay);\n tvBegda.setText(new StringBuilder().append(char2(begDay))\n .append(\".\").append(char2(begMonth + 1)).append(\".\").append(begYear));\n if (tvEndda.getText().toString().equals(getResources().getString(R.string.leave_dmy))) {\n endYear = selectedYear;\n endMonth = selectedMonth;\n endDay = selectedDay;\n endCalendar.set(selectedYear, selectedMonth, selectedDay);\n tvEndda.setText(new StringBuilder().append(char2(endDay))\n .append(\".\").append(char2(endMonth + 1)).append(\".\").append(endYear));\n }\n }",
"private void setUpListeners()\n {\n fromDatePicker.valueProperty().addListener((observable, oldValue, newValue) -> {\n if (newValue.isAfter(toDate))\n {\n showAlert(\"OOOPS!\", \"\\\"Från och med\\\" kan inte vara efter \\\"till och med\\\"\", Alert.AlertType.ERROR);\n fromDatePicker.setValue(oldValue);\n fromDate = oldValue;\n return;\n }\n fromDate = newValue;\n });\n\n // Set up listener to toDateSelectedValueProperty\n toDatePicker.valueProperty().addListener((observable, oldValue, newValue) -> {\n\n if (newValue.isBefore(fromDate))\n {\n showAlert(\"OOOPS!\", \"\\\"Tilloch med\\\" kan inte vara tidigare än \\\"från och med\\\"\", Alert.AlertType.ERROR);\n toDatePicker.setValue(oldValue);\n fromDate = oldValue;\n return;\n }\n toDate = newValue;\n });\n }",
"private void DateDialogPicker(DatePickerDialog.OnDateSetListener listener) {\n final Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DAY_OF_MONTH);\n\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(),\n listener, year, month, day);\n\n datePickerDialog.show();\n }",
"private static String dateAddAndValidation() {\n Scanner scan = new Scanner(System.in);\r\n String date;\r\n while (true) {\r\n System.out.println(\"Please add task due date(YYYY-MM-DD)\");\r\n date = scan.nextLine().trim();\r\n String[] dateArray = date.split(\"-\");\r\n if (dateArray.length != 3 || date.length() != 10) {\r\n System.out.println(RED + \"Date format is incorrect. \" + RESET);\r\n continue;\r\n }\r\n if (dateArray[0].length() != 4 || !StringUtils.isNumeric(dateArray[0])) {\r\n System.out.println(RED + \"You have typed incorrect Year format (not all of the data are numbers or there are too many/ too few signs). \" + RESET);\r\n continue;\r\n }\r\n if (dateArray[1].length() != 2 || !NumberUtils.isDigits(dateArray[1])) {\r\n System.out.println(RED + \"You have given incorrect Month format (not all of the signs are numbers or there are too many/ too few signs). \" + RESET);\r\n continue;\r\n }\r\n if (Integer.parseInt(dateArray[1]) < 1 || Integer.parseInt(dateArray[1]) > 12) {\r\n System.out.println(RED + \"You have given incorrect Month date (Month date shouldn't be greater than 12 or less than 1). \" + RESET);\r\n continue;\r\n }\r\n if (dateArray[2].length() != 2 || !NumberUtils.isDigits(dateArray[2])) {\r\n System.out.println(RED + \"You have given incorrect Day format (not all of the signs are numbers or there are too many/ too few signs). \" + RESET);\r\n continue;\r\n }\r\n if (Integer.parseInt(dateArray[2]) < 1 || Integer.parseInt(dateArray[2]) > 31) {\r\n System.out.println(RED + \"You have typed incorrect Day date (Day date shouldn't be greater than 31 or less than 1). \" + RESET);\r\n continue;\r\n }\r\n break;\r\n }\r\n return date;\r\n }",
"public void setDays(){\n\n CalendarDay Day=DropDownCalendar.getSelectedDate();\n Date selectedDate=Day.getDate();\n String LongDate=\"\"+selectedDate;\n String DayOfWeek=LongDate.substring(0,3);\n Calendar calendar=Calendar.getInstance();\n calendar.setTime(selectedDate);\n int compare=Integer.parseInt(CurrenDate.substring(6,8).trim());\n int comparemonth=Integer.parseInt(CurrenDate.substring(4,6));\n int startNumber=Integer.parseInt(CheckedDate.substring(6,8).trim())-Offset(DayOfWeek);\n int max=calendar.getActualMaximum(Calendar.DAY_OF_MONTH);\n\n GregorianCalendar date= (GregorianCalendar) GregorianCalendar.getInstance();\n date.set(selectedDate.getYear(),1,1);\n\n boolean Feb=false;\n int priormax=30;\n\n if(max==30){\n priormax=31;\n }\n else if( max==31){\n priormax=30;\n }\n\n if(selectedDate.getMonth()==2){\n if(date.isLeapYear(selectedDate.getYear())){\n priormax=29;\n }\n\n else{\n priormax=28;\n }\n Feb=true;\n }\n for(int i=0;i<WeekDays.length;++i){\n String line=WeekDays[i].getText().toString().substring(0,3);\n\n if(startNumber<=max){\n if(startNumber==compare && comparemonth==Day.getMonth()+1){\n WeekDays[i].setTextColor(Color.BLUE);\n }\n else{\n WeekDays[i].setTextColor(Color.BLACK);\n }\n if(startNumber<=0){\n int val=startNumber+priormax;\n if(Feb){\n if(val==priormax){\n startNumber=max;\n }\n }\n\n WeekDays[i].setText(line+\"\\n\"+val);}\n\n else{\n WeekDays[i].setText(line+\"\\n\"+startNumber);\n }\n\n }\n else{\n startNumber=1;\n WeekDays[i].setText(line+\"\\n\"+startNumber);\n }\n\n MaskWeekdays[i].setText(line+\"\\n\"+startNumber);\n ++startNumber;\n }\n DropDownCalendar.setDateSelected(Calendar.getInstance().getTime(), true);\n }",
"public void onDateSet(DatePicker view, int selectedYear,\n int selectedMonth, int selectedDay) {\n Calendar calendarNow = (Calendar) endCalendar.clone();\n calendarNow.set(selectedYear, selectedMonth, selectedDay);\n if (calendarNow.getTimeInMillis() < view.getMinDate()) {\n enddaShowDatePickerDialog();\n Toast.makeText(getActivity(), getResources().getString(R.string.createOrder_datePicker_selectPastDate), Toast.LENGTH_SHORT).show();\n view.updateDate(endCalendar.get(Calendar.YEAR), endCalendar.get(Calendar.MONTH), endCalendar.get(Calendar.DAY_OF_MONTH));\n }\n\n endYear = selectedYear;\n endMonth = selectedMonth;\n endDay = selectedDay;\n endCalendar.set(selectedYear, selectedMonth, selectedDay);\n tvEndda.setText(new StringBuilder().append(char2(endDay))\n .append(\".\").append(char2(endMonth + 1)).append(\".\").append(endYear));\n\n if (tvBegda.getText().toString().equals(getResources().getString(R.string.leave_dmy))) {\n begYear = selectedYear;\n begMonth = selectedMonth;\n begDay = selectedDay;\n begCalendar.set(selectedYear, selectedMonth, selectedDay);\n tvBegda.setText(new StringBuilder().append(char2(begDay))\n .append(\".\").append(char2(begMonth + 1)).append(\".\").append(begYear));\n }\n }",
"private void initPopupDate() {\n editDate = findViewById(R.id.date_depense);\n date = new DatePickerDialog.OnDateSetListener() {\n\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n // TODO Auto-generated method stub\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateDate();\n }\n\n };\n\n // onclick - popup datepicker\n editDate.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n // TODO Auto-generated method stub\n new DatePickerDialog(context, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }\n });\n }",
"@Test\n\tpublic void testValidateStartDate() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateStartDate(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSurveyResponseValidators.validateStartDate(\"Invalid value.\");\n\t\t\t\tfail(\"The start date was invalid.\");\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\t// Passed.\n\t\t\t}\n\n\t\t\tMap<DateTime, String> dateToString = ParameterSets.getDateToString();\n\t\t\tfor(DateTime date : dateToString.keySet()) {\n\t\t\t\tAssert.assertEquals(date, SurveyResponseValidators.validateStartDate(dateToString.get(date)));\n\t\t\t}\n\t\t\t\n\t\t\tMap<DateTime, String> dateTimeToString = ParameterSets.getDateTimeToString();\n\t\t\tfor(DateTime date : dateTimeToString.keySet()) {\n\t\t\t\tAssert.assertEquals(date, SurveyResponseValidators.validateStartDate(dateTimeToString.get(date)));\n\t\t\t}\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}",
"private void tanggalAkhirPembalikanDatepicker(){\n tanggalAkhirPembalikanEditText.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n c= Calendar.getInstance();\n int day = c.get(Calendar.DAY_OF_MONTH);\n int month = c.get(Calendar.MONTH);\n int year = c.get(Calendar.YEAR);\n\n dpd = new DatePickerDialog(IncubationForm.this, new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n int m =month+1;\n tanggalAkhirPembalikanEditText.setText(dayOfMonth + \"/\"+m+\"/\"+year);\n tanggalPembalikan[1][0]= dayOfMonth;\n tanggalPembalikan[1][1]= month+1;\n tanggalPembalikan[1][2]= year;\n }\n }, year, month, day);\n dpd.show();\n }\n });\n }",
"@Override\n public void onDateSet(DatePicker view, int year, int month, int day) {\n date.setText(year+\"/\"+(month+1)+ \"/\"+ day);\n hDate = year+\"/\"+(month+1)+ \"/\"+ day;\n check(hDate, status);\n }",
"private void setEntryDateField1() {\n // Create a DatePickerDialog and manage it\n mEntryDatePickerDialog1 = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n Calendar newDateEntryOfTheMarket = Calendar.getInstance();\n newDateEntryOfTheMarket.set(year, monthOfYear, dayOfMonth);\n\n // Update entryDate in ViewModel\n mSearchEstateViewModel.getDateEntryOfTheMarket1().setValue(newDateEntryOfTheMarket);\n }\n\n },newCalendar.get(Calendar.YEAR), newCalendar.get(Calendar.MONTH),\n newCalendar.get(Calendar.DAY_OF_MONTH));\n }",
"private void setEntryDateField2() {\n // Create a DatePickerDialog and manage it\n mEntryDatePickerDialog2 = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n Calendar newDateEntryOfTheMarket = Calendar.getInstance();\n newDateEntryOfTheMarket.set(year, monthOfYear, dayOfMonth);\n\n // Update entryDate in ViewModel\n mSearchEstateViewModel.getDateEntryOfTheMarket2().setValue(newDateEntryOfTheMarket);\n }\n\n },newCalendar.get(Calendar.YEAR), newCalendar.get(Calendar.MONTH),\n newCalendar.get(Calendar.DAY_OF_MONTH));\n }",
"public void restrictDatePicker(DatePicker datePicker, LocalDate minDate, LocalDate maxDate) {\n final Callback<DatePicker, DateCell> dayCellFactory = new Callback<DatePicker, DateCell>() {\n @Override\n public DateCell call(final DatePicker datePicker) {\n return new DateCell() {\n @Override\n public void updateItem(LocalDate item, boolean empty) {\n super.updateItem(item, empty);\n if (item.isBefore(minDate)) {\n setDisable(true);\n setStyle(\"-fx-background-color: #ffc0cb;\");\n }else if (item.isAfter(maxDate)) {\n setDisable(true);\n setStyle(\"-fx-background-color: #ffc0cb;\");\n }\n }\n };\n }\n };\n datePicker.setDayCellFactory(dayCellFactory);\n }",
"@Override\n public void onClick(View v) {\n new DatePickerDialog(getActivity(), startdatepicker, trigger.getStarttime().get(Calendar.YEAR), trigger.getStarttime().get(Calendar.MONTH), trigger.getStarttime().get(Calendar.DAY_OF_MONTH)).show();\n }",
"@Override\n public void onClick(final View v) {\n\n final Calendar now = Calendar.getInstance();\n final DatePickerDialog dpd = DatePickerDialog.newInstance(\n new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePickerDialog datePickerDialog, int i, int i1, int i2) {\n now.set(i, i1, i2);\n TextView tv = (TextView) view.findViewById(R.id.product_bookingdate_tv);\n if(SimpleDateFormat.getDateInstance().format(now.getTime()).equals(SimpleDateFormat.getDateInstance().format(Calendar.getInstance().getTime()))) {\n MsgUtils.showToast(getActivity(), MsgUtils.TOAST_TYPE_NO_CURRENT_BOOKING_DATE, null, MsgUtils.ToastLength.LONG);\n return;\n }\n else\n tv.setText(SimpleDateFormat.getDateInstance().format(now.getTime()));\n }\n },\n now.get(Calendar.YEAR),\n now.get(Calendar.MONTH),\n now.get(Calendar.DAY_OF_MONTH)\n );\n dpd.setThemeDark(true);\n dpd.vibrate(true);\n dpd.dismissOnPause(true);\n //dpd.setAccentColor(Color.parseColor(\"#9C27B0\"));\n dpd.setTitle(\"Booking Date\");\n\n //***********************\n //Limit Dates\n //***********************\n\n dpd.setMinDate(now);\n\n /*ArrayList<Calendar> lDates = new ArrayList();\n for (int i = 0; i <= 2; i++) {\n Calendar date = Calendar.getInstance();\n date.add(Calendar.MONTH, i);\n lDates.add(date);\n }\n\n Calendar[] lCalendarArray = lDates.toArray(new Calendar[lDates.size()]);\n dpd.setSelectableDays(lCalendarArray);*/\n\n //***********************\n //Disable Advanced Booking Dates\n //***********************\n\n int advancedBookingDays = 0;\n\n for(ProductAttributeGroups pag : selectedProduct.getAttributeGroups()) {\n for(ProductAttributes pa : pag.getProductAttributes()) {\n if (pa.getName().toLowerCase().equals(CONST.OPTION_ATTRIBUTE_BOOKING)) {\n if (pa.getText() != null || pa.getText() != \"\")\n advancedBookingDays = Integer.valueOf(pa.getText());\n else\n advancedBookingDays = 1;\n }\n }\n }\n\n ArrayList<Calendar> bDates = new ArrayList();\n for (int i = 0; i < advancedBookingDays; i++) {\n Calendar date = Calendar.getInstance();\n date.add(Calendar.DAY_OF_MONTH, i+1);\n bDates.add(date);\n }\n\n /*Calendar currentDate = Calendar.getInstance();\n currentDate.add(Calendar.DAY_OF_MONTH, 0);\n bDates.add(0, currentDate);*/\n\n Calendar[] calendarArray = bDates.toArray(new Calendar[bDates.size()]);\n dpd.setDisabledDays(calendarArray);\n\n dpd.show(getActivity().getFragmentManager(), \"Date Picker\");\n\n if(bookingDateTv.getText() != null || bookingDateTv.getText() != \"\")\n upateTimeSpinner(selectedProduct);\n }",
"private void pickDate(final Calendar initDate){\n //callback for when a date is picked\n DatePickerDialog.OnDateSetListener setDate = new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n initDate.set(year, month, dayOfMonth,\n initDate.get(Calendar.HOUR_OF_DAY),\n initDate.get(Calendar.MINUTE),\n initDate.get(Calendar.SECOND));\n setDateTimeViews();\n }\n };\n\n DatePickerDialog datePickerDialog = new DatePickerDialog(this,\n setDate, //callback\n initDate.get(Calendar.YEAR), //initial values\n initDate.get(Calendar.MONTH),\n initDate.get(Calendar.DAY_OF_MONTH));\n datePickerDialog.show(); //shows the dialogue\n }",
"public void fill_PreAdmission_StudentCountReportForm_BetweenDate_RegistrationpaymentNotDoneList() throws Exception {\r\n\t\tisDisplayed(rdBtn_RegistrationpaymentNotDoneList);\r\n\t\tif (!rdBtn_RegistrationpaymentNotDoneList.isSelected()) {\r\n\t\t\trdBtn_RegistrationpaymentNotDoneList.click();\r\n\t\t\tlog(\"Registration payment Not Done List radio button is selected and object is:-\"\r\n\t\t\t\t\t+ rdBtn_RegistrationpaymentNotDoneList.toString());\r\n\t\t\tThread.sleep(1000);\r\n\t\t} else {\r\n\t\t\tlog(\"Registration payment Not Done List radio button is already selected and object is:-\"\r\n\t\t\t\t\t+ rdBtn_RegisteredandfilledApplicationform.toString());\r\n\t\t\tThread.sleep(500);\r\n\t\t}\r\n\t\tisDisplayed(rdBtn_BetweenDates);\r\n\t\tif (!rdBtn_BetweenDates.isSelected()) {\r\n\t\t\trdBtn_BetweenDates.click();\r\n\t\t\tlog(\"Between Date radio button is selected and object is:-\" + rdBtn_BetweenDates.toString());\r\n\t\t\tThread.sleep(1000);\r\n\t\t} else {\r\n\t\t\tlog(\"Between Date radio button is already selected and object is:-\" + rdBtn_BetweenDates.toString());\r\n\t\t\tThread.sleep(500);\r\n\t\t}\r\n//Enter From date\r\n\t\t\tclickOnButton(btn_FromCalender);\r\n\t\t\t((JavascriptExecutor) driver).executeScript(\"arguments[0].scrollIntoView(true);\", btn_MonthYear_From);\r\n\t\t\tThread.sleep(500);\r\n\t\t\tbtn_Date_From.click();\r\n\t\t\tlog(\"From date is selected from calender.\");\r\n\t\t\tThread.sleep(1000);\r\n//Enter To Date\r\n\t\t\tclickOnButton(btn_ToCalender);\r\n\t\t\t((JavascriptExecutor) driver).executeScript(\"arguments[0].scrollIntoView(true);\", btn_MonthYear_To);\r\n\t\t\tThread.sleep(500);\r\n\t\t\tbtn_Date_To.click();\r\n\t\t\tlog(\"To date is selected from calender.\");\r\n\t\t\tThread.sleep(1000);\r\n\t\r\n\t}",
"@Override\n\tpublic void onDateSet(DatePicker view, int year, int monthOfYear,\n\t\t\tint dayOfMonth) {\n\t\tgetday = dayOfMonth;\n\t\tgetmonth = monthOfYear;\n\t\tgetyear = year;\n\t\tCalendar datecheck = Calendar.getInstance();\n\n\t\tdatecheck.set(getyear, getmonth, getday);\n\n\t\tLong timeinms = datecheck.getTimeInMillis(); \n/*\nswitch(view.getTag().toString())\n{\ncase \"startdialog\":\n\n\ndatevalues getdateinter = (datevalues) getActivity();\ngetdateinter.getdatefromdialog(timeinms);\n\n\t\nbreak;\n\n\n} */\n\t\n\ndatevalues getdateinter = (datevalues) getActivity();\ngetdateinter.getdatefromdialog(timeinms);\nToast checktag = Toast.makeText(getActivity(), view.getId(), Toast.LENGTH_LONG)\t;\t\nchecktag.show();\n\t\t\n}",
"private void handleInputs() {\n final EditText startTimeEdit = (EditText) findViewById(R.id.start_time_text_edit);\n final EditText endTimeEdit = (EditText) findViewById(R.id.end_time_text_edit);\n\n startTimeEdit.addTextChangedListener(new TimeTextWatcher(startTimeEdit));\n endTimeEdit.addTextChangedListener(new TimeTextWatcher(endTimeEdit));\n\n final EditText dateEditText = (EditText) findViewById(R.id.date_text_edit);\n\n // Change entry date\n dateEditText.addTextChangedListener(new TextWatcher() {\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 DateTimeFormatterBuilder dateTimeFormatterBuilder = new DateTimeFormatterBuilder();\n // specify some fallback formats, too.\n\n DateTimeParser[] parsers = {\n DateTimeFormat.forPattern(\"dd.MM.yyyy\").getParser(),\n DateTimeFormat.forPattern(\"yyyy-MM-dd\").getParser()};\n\n try {\n LocalDate parsedDate = LocalDate.parse(s.toString(), dateTimeFormatterBuilder.append(null, parsers).toFormatter());\n\n mEntry.setStart(mEntry.getStart().withDate(parsedDate.getYear(), parsedDate.getMonthOfYear(), parsedDate.getDayOfMonth()));\n mEntry.setEnd(mEntry.getEnd().withDate(parsedDate.getYear(), parsedDate.getMonthOfYear(), parsedDate.getDayOfMonth()));\n dateEditText.setError(null);\n } catch (IllegalArgumentException e) {\n dateEditText.setError(\"Bitte ein Datum im Format Tag.Monat.Jahr eingeben. Alternativ linken Button klicken.\");\n } finally {\n enableSendButtonIfPossible();\n }\n }\n });\n\n // change entry time (start and end)\n final EditText descriptionEditor = (EditText) findViewById(R.id.description);\n descriptionEditor.addTextChangedListener(new TextWatcher() {\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 if (s.length() < 3) {\n descriptionEditor.setError(\"Bitte Mindestens 3 Buchstaben eingeben\");\n } else {\n descriptionEditor.setError(null);\n }\n mEntry.setDescription(s.toString());\n enableSendButtonIfPossible();\n }\n });\n\n // change to duration (sets end to start + input duration\n\n final EditText durationEdit = (EditText) findViewById(R.id.entry_duration_text_edit);\n durationEdit.addTextChangedListener(new TextWatcher() {\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 // Parse duration as a time for now.\n\n try {\n LocalTime parsedTime = LocalTime.parse(s.toString(), DateTimeFormat.forPattern(\"HH:mm\"));\n // Need to check if it already is that value to prevent an infinite loop.\n String endTimeText = DateUtils.formatDateTime(TimeTableEntryCreationActivity.this, mEntry.getStart().plus(Duration.millis(parsedTime.getMillisOfDay())), DateUtils.FORMAT_SHOW_TIME);\n if (endDurationFlag && !endTimeEdit.getText().toString().equals(endTimeText)) {\n endDurationFlag = false;\n endTimeEdit.setText(endTimeText);\n }\n durationEdit.setError(null);\n } catch (IllegalArgumentException e) {\n durationEdit.setError(\"Bitte eine Dauer im Format Stunden:Minuten eingeben\");\n }\n }\n });\n\n // Oh boy, I sure wonder what the \"add 15 minutes button\" does...\n findViewById(R.id.entry_add_15_minutes_button).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n mEntry.setEnd(mEntry.getEnd().plusMinutes(15));\n updateTextViews();\n }\n });\n }",
"private void initDatePicker() {\n DatePickerDialog.OnDateSetListener dateSetListener = new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker datePicker, int year, int month, int day) {\n month = month + 1;\n String date = makeDateString(day, month, year);\n btnDiaCitaver.setText(date);\n }\n };\n// Calendar cal = Calendar.getInstance();\n// int year = cal.get(Calendar.YEAR);\n// int month = cal.get(Calendar.MONTH);\n// int day = cal.get(Calendar.DAY_OF_MONTH);\n // Traer la fecha de la cita por partes\n String[] vec_fecha = infoCita.getString(1).split(\" \");\n String[] vec_fecha_dia = vec_fecha[0].split(\"-\");\n int year = Integer.parseInt(vec_fecha_dia[0]);\n int month = Integer.parseInt(vec_fecha_dia[1]) - 1;\n int day = Integer.parseInt(vec_fecha_dia[2]);\n\n int style = AlertDialog.THEME_DEVICE_DEFAULT_DARK;\n datePickerDialogFecha = new DatePickerDialog(this, style, dateSetListener, year, month, day);\n// datePickerDialogFechaNacimiento.getDatePicker().setMaxDate(cal.getTimeInMillis());\n\n }",
"protected void addDateRange() {\n addFieldset(startDatePicker, \"Start Date\", \"startDate\");\n addFieldset(endDatePicker, \"End Date\", \"endDate\");\n }",
"@Override\n public void onClick(View v) {\n new DatePickerDialog(MainActivity.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }",
"@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n calendario.set(Calendar.YEAR, year);\n calendario.set(Calendar.MONTH, monthOfYear);\n calendario.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n actualizarInput();\n }",
"private void chooseDateFromCalendar(Button dateButton){\n DateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n Calendar nowCalendar = formatCalendar(Calendar.getInstance());\n\n DatePickerDialog datePickerDialog = new DatePickerDialog(getContext(),\n R.style.Theme_TrainClimbing_DatePicker,\n (v, y, m, d) -> {\n inputCalendar.set(y, m, d);\n if (inputCalendar.after(nowCalendar))\n dateButton.setText(R.string.ad_button_date);\n else\n dateButton.setText(sdf.format(inputCalendar.getTime()));\n }, inputCalendar.get(Calendar.YEAR),\n inputCalendar.get(Calendar.MONTH),\n inputCalendar.get(Calendar.DAY_OF_MONTH));\n\n datePickerDialog.getDatePicker().setFirstDayOfWeek(Calendar.MONDAY);\n datePickerDialog.getDatePicker().setMinDate(formatCalendar(\n new GregorianCalendar(2000, 7, 19)).getTimeInMillis());\n datePickerDialog.getDatePicker().setMaxDate(nowCalendar.getTimeInMillis());\n datePickerDialog.show();\n }",
"public void onDateSet(DatePicker view, int year, int month, int day) {\n }",
"@SuppressLint(\"SimpleDateFormat\")\n\tprivate void getCalenderView() {\n\n\t\ttry {\n\n\t\t\tDatePickerDialog dpd = new DatePickerDialog(this,\n\t\t\t\t\tnew DatePickerDialog.OnDateSetListener() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onDateSet(DatePicker view,\n\t\t\t\t\t\t\t\tint selectedyear, int monthOfYear,\n\t\t\t\t\t\t\t\tint dayOfMonth) {\n\t\t\t\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\t\t\t\tyear = selectedyear;\n\t\t\t\t\t\t\tmonth = monthOfYear;\n\t\t\t\t\t\t\tday = dayOfMonth;\n\t\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\t\tDate date = new SimpleDateFormat(\"yyyy-MM-dd\")\n\t\t\t\t\t\t\t\t\t\t.parse(year + \"-\" + (month + 1) + \"-\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ day);\n\n\t\t\t\t\t\t\t\tDateFormat outputFormatter = new SimpleDateFormat(\n\t\t\t\t\t\t\t\t\t\t\"yyyy-MM-dd\");\n\t\t\t\t\t\t\t\tString selectedDate = outputFormatter\n\t\t\t\t\t\t\t\t\t\t.format(date); // Output : 01/20/2012\n\n\t\t\t\t\t\t\t\tSystem.out.println(\"!!!!!!selectedDate...\"\n\t\t\t\t\t\t\t\t\t\t+ selectedDate);\n\n\t\t\t\t\t\t\t\t// Date currDate=new Date();\n\n\t\t\t\t\t\t\t\tSystem.out.println(\"!!!!!!!!!currDate.\"\n\t\t\t\t\t\t\t\t\t\t+ currDate);\n\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t.println(\"output.compareTo(currDate)..\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ selectedDate\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.compareTo(currDate\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.toString()));\n\n\t\t\t\t\t\t\t\tif (selectedDate.compareTo(currDate.toString()) >= 0\n\t\t\t\t\t\t\t\t\t\t&& selectedDate.compareTo(output\n\t\t\t\t\t\t\t\t\t\t\t\t.toString()) <= 0) {\n\t\t\t\t\t\t\t\t\t// then do your work\n\t\t\t\t\t\t\t\t\t// Display Selected date in textbox\n\n\t\t\t\t\t\t\t\t\tDateFormat outputFormatter1 = new SimpleDateFormat(\n\t\t\t\t\t\t\t\t\t\t\t\"yyyy-MM-dd\");\n\t\t\t\t\t\t\t\t\tString date_formating = outputFormatter1\n\t\t\t\t\t\t\t\t\t\t\t.format(date);\n\n\t\t\t\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t\t\t\t.println(\"!!!!!!!!!after_formating..\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ outputFormatter1\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \"!!!!!\" + date_formating);\n\n\t\t\t\t\t\t\t\t\trf_booking_date_box.setText(selectedDate);\n\t\t\t\t\t\t\t\t\tBooking_Screen_TabLayout.rf_booking_date_header.setText(selectedDate);\n\n\t\t\t\t\t\t\t\t\t// rf_booking_date_box.setText(year + \"-\" +\n\t\t\t\t\t\t\t\t\t// (month + 1)\n\t\t\t\t\t\t\t\t\t// + \"-\" + day);\n\n\t\t\t\t\t\t\t\t\tGlobal_variable.str_Date = date_formating;\n\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t// show message\n\n\t\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\t\tgetApplicationContext(),\n\t\t\t\t\t\t\t\t\t\t\tgetString(R.string.str_invalid_date),\n\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t} catch (java.text.ParseException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}, year, month, day);\n\t\t\tdpd.getDatePicker().setMinDate(c.getTimeInMillis());\n\n\t\t\tc.add(Calendar.MONTH, 1);\n\n\t\t\tdpd.getDatePicker().setMaxDate(c.getTimeInMillis());\n\n\t\t\tc.add(Calendar.MONTH, -1);\n\n\t\t\tSystem.out.println(\"!!!!!pankaj\" + c.getTimeInMillis());\n\t\t\t// dpd.getDatePicker().setMaxDate(c.);\n\t\t\tdpd.show();\n\t\t\tdpd.setCancelable(false);\n\t\t\tdpd.setCanceledOnTouchOutside(false);\n\n\t\t} catch (NullPointerException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"private void tanggalAwalPembalikanDatepicker(){\n tanggalAwalPembalikanEditText.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n c= Calendar.getInstance();\n int day = c.get(Calendar.DAY_OF_MONTH);\n int month = c.get(Calendar.MONTH);\n int year = c.get(Calendar.YEAR);\n\n dpd = new DatePickerDialog(IncubationForm.this, new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n int m =month+1;\n tanggalAwalPembalikanEditText.setText(dayOfMonth + \"/\"+m+\"/\"+year);\n tanggalPembalikan[0][0]= dayOfMonth;\n tanggalPembalikan[0][1]= month+1;\n tanggalPembalikan[0][2]= year;\n }\n }, year, month, day);\n dpd.show();\n }\n });\n }",
"private void checkFields() {\n if (month.getText().toString().isEmpty()) {\n month.setError(\"enter a month\");\n month.requestFocus();\n return;\n }\n if (day.getText().toString().isEmpty()) {\n day.setError(\"enter a day\");\n day.requestFocus();\n return;\n }\n if (year.getText().toString().isEmpty()) {\n year.setError(\"enter a year\");\n year.requestFocus();\n return;\n }\n if (hour.getText().toString().isEmpty()) {\n hour.setError(\"enter an hour\");\n hour.requestFocus();\n return;\n }\n if (minute.getText().toString().isEmpty()) {\n minute.setError(\"enter the minute\");\n minute.requestFocus();\n return;\n }\n if (AMorPM.getText().toString().isEmpty()) {\n AMorPM.setError(\"enter AM or PM\");\n AMorPM.requestFocus();\n return;\n }\n if (place.getText().toString().isEmpty()) {\n place.setError(\"enter the place\");\n place.requestFocus();\n return;\n }\n }",
"@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel(btnStartDate, myCalendar);\n\n //set hasCheckDate to true\n hasCheckDate = true;\n }",
"private void setSaleDateField2() {\n // Create a DatePickerDialog and manage it\n mSaleDatePickerDialog2 = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n Calendar newDateEntryOfTheMarket = Calendar.getInstance();\n newDateEntryOfTheMarket.set(year, monthOfYear, dayOfMonth);\n\n // Update entryDate in ViewModel\n mSearchEstateViewModel.getDateSale2().setValue(newDateEntryOfTheMarket);\n }\n\n },newCalendar.get(Calendar.YEAR), newCalendar.get(Calendar.MONTH),\n newCalendar.get(Calendar.DAY_OF_MONTH));\n }",
"public void fill_PreAdmission_StudentCountReportForm_BetweenDate_RegistrationpaymentDoneList() throws Exception {\r\n\t\tisDisplayed(rdBtn_RegistrationpaymentDoneList);\r\n\t\tif (!rdBtn_RegistrationpaymentDoneList.isSelected()) {\r\n\t\t\trdBtn_RegistrationpaymentDoneList.click();\r\n\t\t\tlog(\"Registration payment Done List radio button is selected and object is:-\"\r\n\t\t\t\t\t+ rdBtn_RegistrationpaymentDoneList.toString());\r\n\t\t\tThread.sleep(1000);\r\n\t\t} else {\r\n\t\t\tlog(\"Registration payment Done List radio button is already selected and object is:-\"\r\n\t\t\t\t\t+ rdBtn_RegisteredandfilledApplicationform.toString());\r\n\t\t\tThread.sleep(500);\r\n\t\t}\r\n\t\tisDisplayed(rdBtn_BetweenDates);\r\n\t\tif (!rdBtn_BetweenDates.isSelected()) {\r\n\t\t\trdBtn_BetweenDates.click();\r\n\t\t\tlog(\"Between Date radio button is selected and object is:-\" + rdBtn_BetweenDates.toString());\r\n\t\t\tThread.sleep(1000);\r\n\t\t} else {\r\n\t\t\tlog(\"Between Date radio button is already selected and object is:-\" + rdBtn_BetweenDates.toString());\r\n\t\t\tThread.sleep(500);\r\n\t\t}\r\n//Enter From date\r\n\t\t\tclickOnButton(btn_FromCalender);\r\n\t\t\t((JavascriptExecutor) driver).executeScript(\"arguments[0].scrollIntoView(true);\", btn_MonthYear_From);\r\n\t\t\tThread.sleep(500);\r\n\t\t\tbtn_Date_From.click();\r\n\t\t\tlog(\"From date is selected from calender.\");\r\n\t\t\tThread.sleep(1000);\r\n\t\t\r\n//Enter To Date\r\n\t\t\tclickOnButton(btn_ToCalender);\r\n\t\t\t((JavascriptExecutor) driver).executeScript(\"arguments[0].scrollIntoView(true);\", btn_MonthYear_To);\r\n\t\t\tThread.sleep(500);\r\n\t\t\tbtn_Date_To.click();\r\n\t\t\tlog(\"To date is selected from calender.\");\r\n\t\t\tThread.sleep(1000);\r\n\t\t\r\n\t}",
"@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n if(year<calendar.get(Calendar.YEAR)){\n\n showMessage(\"Invalid Start Date\");\n Log.i(\"Calendar\",year+\" \"+calendar.get(Calendar.YEAR));\n return;\n }\n int monthofYear=monthOfYear+1;\n startDateStrg = year + \"-\" + monthofYear + \"-\" + dayOfMonth;\n mStartDateA2.setText(startDateStrg);\n datePickerDialog1.dismiss();\n }",
"public void fill_PreAdmission_StudentCountReportForm_BetweenDate_RegisteredbutnotfilledApplicationform()\r\n\t\t\tthrows Exception {\r\n\t\tisDisplayed(rdBtn_RegisteredbutnotfilledApplicationform);\r\n\t\tif (!rdBtn_RegisteredbutnotfilledApplicationform.isSelected()) {\r\n\t\t\trdBtn_RegisteredbutnotfilledApplicationform.click();\r\n\t\t\tlog(\"Registered but not filled Application form radio button is selected and object is:-\"\r\n\t\t\t\t\t+ rdBtn_RegisteredbutnotfilledApplicationform.toString());\r\n\t\t\tThread.sleep(1000);\r\n\t\t} else {\r\n\t\t\tlog(\"Registered but not filled Application form radio button is already selected and object is:-\"\r\n\t\t\t\t\t+ rdBtn_RegisteredbutnotfilledApplicationform.toString());\r\n\t\t\tThread.sleep(500);\r\n\t\t}\r\n\t\tisDisplayed(rdBtn_BetweenDates);\r\n\t\tif (!rdBtn_BetweenDates.isSelected()) {\r\n\t\t\trdBtn_BetweenDates.click();\r\n\t\t\tlog(\"Between Date radio button is selected and object is:-\" + rdBtn_BetweenDates.toString());\r\n\t\t\tThread.sleep(1000);\r\n\t\t} else {\r\n\t\t\tlog(\"Between Date radio button is already selected and object is:-\" + rdBtn_BetweenDates.toString());\r\n\t\t\tThread.sleep(500);\r\n\t\t}\r\n\r\n\t\t// Enter From date\r\n\t\tclickOnButton(btn_FromCalender);\r\n\t\t((JavascriptExecutor) driver).executeScript(\"arguments[0].scrollIntoView(true);\", btn_MonthYear_From);\r\n\t\tThread.sleep(500);\r\n\t\tbtn_Date_From.click();\r\n\t\tlog(\"From date is selected from calender.\");\r\n\t\t// Enter To Date\r\n\t\tclickOnButton(btn_ToCalender);\r\n\t\t((JavascriptExecutor) driver).executeScript(\"arguments[0].scrollIntoView(true);\", btn_MonthYear_To);\r\n\t\tThread.sleep(500);\r\n\t\tbtn_Date_To.click();\r\n\t\tlog(\"To date is selected from calender.\");\r\n\r\n\t}",
"public List<Date> retrieveSelectedValues()\n\t{\n\t\tList<Date> selectedValues = new ArrayList<Date>();\n\t\t\n\t\t// for each loop to find all the selected time intervals\n\t\tfor (Widget timeSlot : this.getChildren())\n\t\t{\n\t\t\tif(timeSlot instanceof TimeSlot)\n\t\t\t{\n\t\t\t\tif(((TimeSlot) timeSlot).getValue())\n\t\t\t\t{\n\t\t\t\t\tselectedValues.add(((TimeSlot) timeSlot).getDate());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn selectedValues;\n\t}",
"public void onDateSet(DatePicker view, int year, int month, int day) {\n\t\t\tendDateBtn.setText( getFormattedDate(year, month, day) );\n\t\t\t\n\t\t\ttry {\n\t\t\t\tDatePicker startDatePicker = dpdS.getDatePicker();\n\t\t\t\tDate endDate = (Date) formatter.parse( getFormattedDate(year, month, day) );\n\t\t\t\tDate startDate = (Date) formatter.parse( getFormattedDate(startDatePicker) );\n\t\t\t\tdpdS.getDatePicker().setMinDate(endDate.getTime());\n\t\t\t\tif ( endDate.getTime() < startDate.getTime() ) {\n\t\t\t\t\tdpdS.updateDate(year, month, day);\n\t\t\t\t\tstartDateBtn.setText( getFormattedDate(year, month, day) );\n\t\t\t\t}\n\t\t\t} catch (ParseException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} \n\t\t}",
"public void onDateSet(DatePicker view, int year, int month, int day) {\n }",
"public void validateDate(FacesContext context, UIComponent toValidate,\r\n\t\t\tObject value) {\r\n\t\tResourceBundle bundle = ControladorContexto.getBundle(\"mensaje\");\r\n\t\tDate date = (Date) value;\r\n\t\tString clientId = toValidate.getClientId(context);\r\n\t\ttry {\r\n\t\t\tint id = pluviometer.getId();\r\n\t\t\tPluviometer pluviometerAux = pluviometerDao.dateExists(date, id);\r\n\t\t\tif (pluviometerAux != null) {\r\n\t\t\t\tString messageExistence = \"message_ya_existe_verifique\";\r\n\t\t\t\tcontext.addMessage(\r\n\t\t\t\t\t\tclientId,\r\n\t\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_ERROR, bundle\r\n\t\t\t\t\t\t\t\t.getString(messageExistence), null));\r\n\t\t\t\t((UIInput) toValidate).setValid(false);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tControladorContexto.mensajeError(e);\r\n\t\t}\r\n\t}",
"@Override\n public void onClick(View v) {\n new DatePickerDialog(AddVehicleActivity.this, date2, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }",
"@Override\n public void onClick(View v) {\n new DatePickerDialog(getContext(), date2, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }",
"private static void checkForParsableDate(AnalysisResults.Builder analysisBuilder) {\n Stream<String> dates =\n getTokensFromRawText(analysisBuilder.getRawText().get()).filter(ReceiptAnalysis::isDate);\n // Assume that the first date on the receipt is the transaction date.\n Optional<String> firstDate = dates.findFirst();\n\n firstDate.ifPresent(date -> ReceiptAnalysis.addDateIfValid(analysisBuilder, date));\n }",
"private void verifyDropdownsAndActiveTesterFields()\n\t{\n\t\ttry\n\t\t{\n\t\t\t//verify default selection in Select Date dropdown and its available options\n\t\t\tSelect selectDateDD = new Select(getElement(\"StakeholderDashboard_selectDateDropDown_Id\"));\t\n\t\t\t\n\t\t\tif (assertTrue(getElement(\"StakeholderDashboard_selectDateDropDown_Id\").isDisplayed())) \n\t\t\t{\n\t\t\t\t\tString dateFilterOption = selectDateDD.getFirstSelectedOption().getText();\n\t\t\t\t\t\n\t\t\t\t\tif (compareStrings(\"Select Filter\", dateFilterOption)) \n\t\t\t\t\t {\n\t\t\t\t\t\t APP_LOGS.debug(\"Date Filter dropdown value set to 'Select Filter' option.\");\t\t\t\t\t\t\t \n\t\t\t\t\t\t comments += \"\\n Date Filter dropdown value set to 'Select Filter' option.(Pass)\";\t\t\t\t\t\t\t \n\t\t\t\t\t }\n\t\t\t\t\t else \n\t\t\t\t\t {\n\t\t\t\t\t\tfail=true;\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tcomments += \"\\n Date Filter dropdown value is not set to 'Select Filter' option.(Fail) \";\t\t\t\t\t\t\t\n\t\t\t\t\t\tAPP_LOGS.debug(\"Date Filter dropdown value is not set to 'Select Filter' option. Test case failed\");\t\t\t\t\t\t\t\n\t\t\t\t\t\tTestUtil.takeScreenShot(this.getClass().getSimpleName(), \"Select Date dropdown not set to 'Select Filter' option\");\n\t\t\t\t\t }\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\t\tfail=true;\t\t\t\t\t\n\t\t\t\t\tcomments += \"\\n 'Select Date' dropdown is not displayed on Consolidated View tab.(Fail) \";\t\t\t\t\t\n\t\t\t\t\tAPP_LOGS.debug(\"'Select Date' dropdown is not displayed on Consolidated View tab. Test case failed\");\t\t\t\t\t\n\t\t\t\t\tTestUtil.takeScreenShot(this.getClass().getSimpleName(), \"'Select Date' dropdown not visible\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//verify default selection in Fiscal Year dropdown and its available options like FY14, FY15\n\t\t\tSelect selectFiscalYearDD = new Select(getElement(\"StakeholderDashboard_fiscalYearDropDown_Id\"));\n\t\t\t\n\t\t\tif (assertTrue(getElement(\"StakeholderDashboard_fiscalYearDropDown_Id\").isDisplayed())) \n\t\t\t{\n\t\t\t\t\tString defaultSelectedFiscalYear = selectFiscalYearDD.getFirstSelectedOption().getText();\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tdateFormat = new SimpleDateFormat(\"MM/dd/yyyy\");\t\t\t\t\t\n\t\t\t\t\tDate date = new Date();\t\t\t\t\t\n\t\t\t\t\tsystemDate = dateFormat.format(date);\n\t\t\t\t\t\n\t\t\t\t\tmonth = Integer.parseInt(systemDate.substring(0, 2));\n\t\t\t\t\n\t\t\t\t\tif(month >= 7)\t\t\n\t\t\t\t\t{\t\t\t\t\n\t\t\t\t\t\tfiscalYear = Integer.parseInt(systemDate.substring(8))+1;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (compareIntegers(fiscalYear, Integer.parseInt(defaultSelectedFiscalYear.substring(3)))) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tAPP_LOGS.debug(\"Current fiscal year \"+fiscalYear+\" is displayed in 'Fiscal Year' dropdown as default. \");\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcomments += \"\\n Current fiscal year \"+fiscalYear+\" is displayed in 'Fiscal Year' dropdown as default.(Pass) \";\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfail=true;\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcomments += \"\\n Current fiscal year \"+fiscalYear+\" is NOT displayed in 'Fiscal Year' dropdown as default.(Fail) \";\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tAPP_LOGS.debug(\"Current fiscal year \"+fiscalYear+\" is NOT displayed in 'Fiscal Year' dropdown as default. Test case failed\");\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tTestUtil.takeScreenShot(this.getClass().getSimpleName(), \"current fiscal year \"+fiscalYear+\" is not displayed selected in 'Fiscal Year' dropdown\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tfiscalYear = Integer.parseInt(systemDate.substring(8));\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (compareIntegers(fiscalYear, Integer.parseInt(defaultSelectedFiscalYear.substring(3)))) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tAPP_LOGS.debug(\"Current fiscal year \"+fiscalYear+\" is displayed in 'Fiscal Year' dropdown as default. \");\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcomments += \"\\n Current fiscal year \"+fiscalYear+\" is displayed in 'Fiscal Year' dropdown as default.(Pass) \";\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tfail=true;\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcomments += \"\\n Current fiscal year \"+fiscalYear+\" is NOT displayed in 'Fiscal Year' dropdown as default.(Fail) \";\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tAPP_LOGS.debug(\"Current fiscal year \"+fiscalYear+\" is NOT displayed in 'Fiscal Year' dropdown as default. Test case failed\");\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tTestUtil.takeScreenShot(this.getClass().getSimpleName(), \"current fiscal year \"+fiscalYear+\" is not displayed selected in 'Fiscal Year' dropdown\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\t\tfail=true;\t\t\t\t\t\t\n\t\t\t\t\tcomments += \"\\n 'Fiscal Year' dropdown is not displayed on Stakeholder Dashboard Page.(Fail) \";\t\t\t\t\t\t\n\t\t\t\t\tAPP_LOGS.debug(\"'Fiscal Year' dropdown is not displayed on Stakeholder Dashboard Page. Test case failed\");\t\t\t\t\t\t\n\t\t\t\t\tTestUtil.takeScreenShot(this.getClass().getSimpleName(), \"'Fiscal Year' dropdown not displayed\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//verify quarter checkboxes visible or not and current quarter is selected by default or not\n\t\t\tif (assertTrue(getElement(\"StakeholderDashboard_Q1Checkbox_Id\").isDisplayed() \n\t\t\t\t\t&& getElement(\"StakeholderDashboard_Q2Checkbox_Id\").isDisplayed() \n\t\t\t\t\t&& getElement(\"StakeholderDashboard_Q3Checkbox_Id\").isDisplayed() \n\t\t\t\t\t&& getElement(\"StakeholderDashboard_Q4Checkbox_Id\").isDisplayed())) \n\t\t\t{\n\t\t\t\t\n\t\t\t\t\tif(assertTrue((!getElement(\"StakeholderDashboard_Q1Checkbox_Id\").isSelected())\n\t\t\t\t\t\t\t&& (!getElement(\"StakeholderDashboard_Q2Checkbox_Id\").isSelected())\n\t\t\t\t\t\t\t&& (!getElement(\"StakeholderDashboard_Q3Checkbox_Id\").isSelected())\n\t\t\t\t\t\t\t&& (!getElement(\"StakeholderDashboard_Q4Checkbox_Id\").isSelected())))\n\t\t\t\t\t{\n\t\t\t\t\t\tcomments += \"\\n Any/All Quarter checkboxes/checkbox are/is unselected on Stakeholder Dashboard Page.(Pass) \";\t\t\t\t\t\t\n\t\t\t\t\t\tAPP_LOGS.debug(\"Any/All Quarter checkboxes/checkbox are/is unselected on Stakeholder Dashboard Page.\");\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfail=true;\t\t\t\t\t\t\n\t\t\t\t\t\t\tcomments += \"\\n Any/All Quarter checkboxes/checkbox is/are selected.(Fail) \";\t\t\t\t\t\t\n\t\t\t\t\t\t\tAPP_LOGS.debug(\"Any/All Quarter checkboxes/checkbox is/are selected. Test case failed\");\t\t\t\t\t\t\n\t\t\t\t\t\t\tTestUtil.takeScreenShot(this.getClass().getSimpleName(), \"Quarter checkboxes selected\");\n\t\t\t\t\t}\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\t\tfail=true;\t\t\t\t\t\t\n\t\t\t\t\tcomments += \"\\n Any/All Quarter checkboxes/checkbox are/is not displayed on Stakeholder Dashboard Page.(Fail) \";\t\t\t\t\t\t\n\t\t\t\t\tAPP_LOGS.debug(\"Any/All Quarter checkboxes/checkbox are/is not displayed on Stakeholder Dashboard Page. Test case failed\");\t\t\t\t\t\t\n\t\t\t\t\tTestUtil.takeScreenShot(this.getClass().getSimpleName(), \"Quarter checkboxes not available\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t//verify if active tester count is visible or not\n\t\t\tif(assertTrue(!getElement(\"StakeholderDashboardConsolidatedView_activeTesterCount_Id\").isDisplayed()))\n\t\t\t{\n\t\t\t\t\tcomments += \"\\n Active Tester Count NOT Visible.(Pass) \";\t\t\t\t\t\t\n\t\t\t\t\tAPP_LOGS.debug(\"Active Tester Count NOT Visible.\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\t\n\t\t\t\t\tfail=true;\t\t\t\t\t\t\n\t\t\t\t\tcomments += \"\\n Active Tester Count visible.(Fail) \";\t\t\t\t\t\t\n\t\t\t\t\tAPP_LOGS.debug(\"Active Tester Count visible. Test case failed\");\t\t\t\t\t\t\n\t\t\t\t\tTestUtil.takeScreenShot(this.getClass().getSimpleName(), \"ActiveTesterCountVisible\");\n\t\t\t}\n\t\t\t\n\t\t\t//verify execution bar graph displays or not\n\t\t\tif(assertTrue(!getElement(\"StakeholderDashboardConsolidatedView_executionBarGraph_Id\").isDisplayed()))\n\t\t\t{\n\t\t\t\t\tcomments += \"\\n Execution bar graph NOT visible.(Pass) \";\t\t\t\t\t\t\n\t\t\t\t\tAPP_LOGS.debug(\"Execution bar graph NOT visible.(Pass) \");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t\tfail=true;\n\t\t\t\t\tcomments += \"\\n Execution bar graph visible.(Fail) \";\t\t\t\t\t\t\n\t\t\t\t\tAPP_LOGS.debug(\"Execution bar graph visible.\");\n\t\t\t}\n\t\t\t\n\t\t\t//verify executed count link visible or not\n\t\t\tif(assertTrue(!getElement(\"StakeholderDashboardConsolidatedView_executedStatusCountLabel_Id\").isDisplayed()))\n\t\t\t{\n\t\t\t\t\tcomments += \"\\n Executed count NOT visible.(Pass) \";\t\t\t\t\t\t\n\t\t\t\t\tAPP_LOGS.debug(\"Executed count NOT visible.\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t\tfail=true;\n\t\t\t\t\tcomments += \"\\n Executed count visible.(Fail) \";\t\t\t\t\t\t\n\t\t\t\t\tAPP_LOGS.debug(\"Executed count visible.\");\n\t\t\t}\t\t\n\t\t\t\n\t\t}\n\t\tcatch(Throwable t)\n\t\t{\n\t\t\tt.printStackTrace();\n\t\t\tfail=true;\n\t\t}\n\t}",
"@Override\r\n public void onClick(View v) {\n final Calendar c = Calendar.getInstance();\r\n int mYear = c.get(Calendar.YEAR); // current year\r\n int mMonth = c.get(Calendar.MONTH); // current month\r\n int mDay = c.get(Calendar.DAY_OF_MONTH); // current day\r\n\r\n\r\n // date picker dialog\r\n datePickerDialog = new DatePickerDialog(task_setting.this,\r\n new DatePickerDialog.OnDateSetListener() {\r\n\r\n\r\n @Override\r\n public void onDateSet(DatePicker view, int year,\r\n int monthOfYear, int dayOfMonth) {\r\n // set day of month , month and year value in the edit text\r\n\r\n final String[] MONTHS = {\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\"};\r\n String mon = MONTHS[monthOfYear];\r\n date.setText(mon + \" \" + dayOfMonth + \", \" + year);\r\n }\r\n }, mYear, mMonth, mDay);\r\n datePickerDialog.getDatePicker().setMinDate(System.currentTimeMillis() - 1000);\r\n datePickerDialog.show();\r\n }",
"public void setFromDates() {\n\t\tif (loDate == null || loDate.getValue() == null || hiDate == null || hiDate.getValue() == null)\n\t\t\treturn;\n\n\t\tsetSliderMaxDays();\n\t\tsetSliderMinDays();\n\t\t\n\t\tint days = CalendarUtil.getDaysBetween(loDate.getValue(), hiDate.getValue());\n\t\tif (days < slider.getSlider().getMinValue())\n\t\t\tdays = slider.getSlider().getMinValue();\n\t\tslider.setValue(days);\n\t}",
"@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n Calendar tmp_Calen = Calendar.getInstance();\n tmp_Calen.set(year, monthOfYear, dayOfMonth);\n if(tmp_Calen.compareTo(purCalen) < 0)\n {\n Toast.makeText(FoodInputActivity.this, \"구매일자 이전의 날짜는 선택하실 수 없습니다.\", Toast.LENGTH_SHORT).show();\n }\n else\n {\n shelfCalen.set(year, monthOfYear, dayOfMonth);\n shelDateBtn.setText(year+\"년 \"+(monthOfYear+1)+\"월 \"+ dayOfMonth+\"일\");\n }\n// long diff = TimeUnit.MILLISECONDS.toDays(Math.abs(shelfCalen.getTimeInMillis() - purCalen.getTimeInMillis()));\n// Log.e(\"good\", \"D-Day : \" + diff);\n\n// String msg = String.format(\"%d / %d / %d\", year,monthOfYear+1, dayOfMonth);\n// Toast.makeText(FoodInputActivity.this, msg, Toast.LENGTH_SHORT).show();\n }",
"public void onDateSet(DatePicker view, int year, int month, int day) {\n etOfferValidity.setText(view.getDayOfMonth() + \"/\" + (view.getMonth() + 1) + \"/\" + view.getYear());\n }",
"@OnClick(R.id.fragApod_btnSelectDate)\n public void onClickBtnSelectDate(){\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(),\n android.R.style.Theme_DeviceDefault_Light_Panel,\n new DatePickerDialog.OnDateSetListener() {\n\n @Override\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n //Le damos el formato requerido a la fecha seleccionada\n date = new StringBuilder();\n date.append(year).append(\"-\");\n if((monthOfYear+1) < 10) date.append(\"0\");\n date.append(monthOfYear+1).append(\"-\");\n if(dayOfMonth < 10) date.append(\"0\");\n date.append(dayOfMonth);\n\n //LLamamos al método que establece su callback\n apodServiceEnqueue(apodService);\n }\n }, iYear, iMonth, iDay);\n datePickerDialog.show();\n //datePickerDialog.setTitle(getString(R.string.fragApod_msgSelectDate));\n //Sólo puede seleccionar hasta la fecha actual\n datePickerDialog.getDatePicker().setMaxDate(calendar.getTimeInMillis());\n\n //Le restamos 16 años a la fecha actual para ponerla como fecha mínima de selección\n Calendar calendarTemp = Calendar.getInstance();\n calendarTemp.add(calendar.YEAR,-16);\n datePickerDialog.getDatePicker().setMinDate(calendarTemp.getTimeInMillis());\n }",
"@Override\n public void onClick(View v) {\n new DatePickerDialog(MainActivity.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }",
"@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n from_calendar.set(Calendar.YEAR, year);\n from_calendar.set(Calendar.MONTH, monthOfYear);\n from_calendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateFromLabel();\n }",
"@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateLabel(btnEndDate, myCalendar);\n\n //set hasCheckDate to true\n hasCheckDate = true;\n }",
"@Override\n public void onClick(View v) {\n new DatePickerDialog(SearchTripActivity.this, dated, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }",
"@Override\n public void onClick(View v) {\n new DatePickerDialog(RegistrationActivity.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n\n }",
"@Override\n public void onClick(View v) {\n new DatePickerDialog(SearchTripActivity.this, datea, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }",
"@Override\n public void onDateSet(DatePicker datePicker, int year, int month, int day) {\n if(day<10&&month+1<10){\n dateToStr=\"0\"+String.valueOf(day)+\"-\"+\"0\"+String.valueOf(month+1)+\"-\"+String.valueOf(year);\n // currentDate=String.valueOf(year)+\"-\"+\"0\"+String.valueOf(month+1)+\"-\"+\"0\"+String.valueOf(day);\n }else if(day<10&&month+1>10){\n dateToStr=\"0\"+String.valueOf(day)+\"-\"+String.valueOf(month+1)+\"-\"+String.valueOf(year);\n // currentDate=String.valueOf(year)+\"-\"+String.valueOf(month+1)+\"-\"+\"0\"+String.valueOf(day);\n }else if(day>10&&month+1<10){\n dateToStr=String.valueOf(day)+\"-\"+\"0\"+String.valueOf(month+1)+\"-\"+String.valueOf(year);\n //currentDate=String.valueOf(year)+\"-\"+\"0\"+String.valueOf(month+1)+\"-\"+String.valueOf(day);\n }else {\n //currentDate=String.valueOf(year)+\"-\"+String.valueOf(month+1)+\"-\"+String.valueOf(day);\n dateToStr=String.valueOf(day)+\"-\"+String.valueOf(month+1)+\"-\"+String.valueOf(year);\n }\n\n // dateToStr=String.valueOf(day)+\"-\"+String.valueOf(month+1)+\"-\"+String.valueOf(year);\n\n et_date1.setText(dateToStr);\n\n\n }",
"@Override\n public void prepareTransient() {\n fixDates();\n untilWhenDate = assignDateField(untilWhen);\n }",
"@Override\n public void onDateSet(DatePicker view, int year1, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year1);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n /* date=dayOfMonth;\n month=monthOfYear;\n year=year1;*/\n if(getAge(year1,monthOfYear,dayOfMonth) >= 18){\n updateLabel();\n }else{\n Utility.showToastMessage(GetUserInfoActivity.this,\"Age should be 18+\");\n }\n\n }",
"public void fill_PreAdmission_StudentCountReportForm_BetweenDate_RegisteredandfilledApplicationform()\r\n\t\t\tthrows Exception {\r\n\t\tisDisplayed(rdBtn_RegisteredandfilledApplicationform);\r\n\t\tif (!rdBtn_RegisteredandfilledApplicationform.isSelected()) {\r\n\t\t\trdBtn_RegisteredandfilledApplicationform.click();\r\n\t\t\tlog(\"Registered and filled Application form radio button is selected and object is:-\"\r\n\t\t\t\t\t+ rdBtn_RegisteredandfilledApplicationform.toString());\r\n\t\t\tThread.sleep(1000);\r\n\t\t} else {\r\n\t\t\tlog(\"Registered and filled Application form radio button is already selected and object is:-\"\r\n\t\t\t\t\t+ rdBtn_RegisteredandfilledApplicationform.toString());\r\n\t\t\tThread.sleep(500);\r\n\t\t}\r\n\t\tisDisplayed(rdBtn_BetweenDates);\r\n\t\tif (!rdBtn_BetweenDates.isSelected()) {\r\n\t\t\trdBtn_BetweenDates.click();\r\n\t\t\tlog(\"Between Date radio button is selected and object is:-\" + rdBtn_BetweenDates.toString());\r\n\t\t\tThread.sleep(1000);\r\n\t\t} else {\r\n\t\t\tlog(\"Between Date radio button is already selected and object is:-\" + rdBtn_BetweenDates.toString());\r\n\t\t\tThread.sleep(500);\r\n\t\t}\r\n\t\t// Enter From Date\r\n\t\tclickOnButton(btn_FromCalender);\r\n\t\t((JavascriptExecutor) driver).executeScript(\"arguments[0].scrollIntoView(true);\", btn_MonthYear_From);\r\n\t\tThread.sleep(500);\r\n\t\tbtn_Date_From.click();\r\n\t\tlog(\"From date is selected from calender.\");\r\n\t\tThread.sleep(1000);\r\n\t\t// Enter To Date\r\n\t\tclickOnButton(btn_ToCalender);\r\n\t\t((JavascriptExecutor) driver).executeScript(\"arguments[0].scrollIntoView(true);\", btn_MonthYear_To);\r\n\t\tThread.sleep(500);\r\n\t\tbtn_Date_To.click();\r\n\t\tlog(\"To date is selected from calender.\");\r\n\t\tThread.sleep(1000);\r\n\r\n\t}",
"public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n\t\t\t\t\t\t \t\t\tstart_day = selectedday;\n\t\t\t\t\t\t \t\t\tstart_month = selectedmonth;\n\t\t\t\t\t\t \t\t\tstart_year = selectedyear;\n\t\t\t\t\t\t \t\t\t//final Date date = new Date(c.getTimeInMillis());\n\t\t\t\t\t\t \t\t\t//final SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\t\t\t \t\t\t//harvestdate1.setText(dateFormat.format(date));\n\t\t\t\t\t\t harvestdate1.setText(new StringBuilder().append(start_day).append(\"-\").append(start_month+1)\n\t\t\t\t\t .append(\"-\").append(start_year)\n\t\t\t\t\t .append(\" \")); \t\n\t\t\t\t\t\t // set selected date into Date Picker\n\t\t\t\t\t\t datepicker.init(start_year, start_month, start_day, null);\n\n\t\t\t\t\t\t }",
"public boolean isDateValue()\n {\n return getFieldType().equalsIgnoreCase(TYPE_DATE);\n }",
"@Override\n public void onDateSet(DatePicker view, int year,\n int monthOfYear, int dayOfMonth) {\n\n autoD8.setText(dayOfMonth + \" \" + monthString(monthOfYear + 1) + \" \" + year);\n\n dialogueCal.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n dialogueCal.set(Calendar.YEAR, year);\n dialogueCal.set(Calendar.MONTH, monthOfYear);\n timeAndDate = dialogueCal.getTimeInMillis();\n\n }",
"@SuppressLint(\"InlinedApi\")\n @Override\n public void onClick(final View v) {\n @SuppressLint({\"NewApi\", \"LocalSuppress\"}) final Calendar mcurrentDate = Calendar.getInstance();\n int mYear = mcurrentDate.get(Calendar.YEAR);\n int mMonth = mcurrentDate.get(Calendar.MONTH);\n int mDay = mcurrentDate.get(Calendar.DAY_OF_MONTH);\n\n DatePickerDialog mDatePicker = new DatePickerDialog(UserRegister.this, new DatePickerDialog.OnDateSetListener() {\n\n public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n mybirthday = new GregorianCalendar(selectedyear, selectedmonth, selectedday).getTime();\n\n String birthday = \"\" + selectedday + \"/\" + (selectedmonth + 1) + \"/\" + selectedyear + \"\";\n // String dob = birthday;\n et_dob.setText(birthday);\n\n\n if (validatedate(mybirthday)) {\n Snackbar.make(v, birthday + \" is not possible\", Snackbar.LENGTH_LONG).show();\n et_dob.setText(\"\");\n return;\n }\n if (validateage(mybirthday)) {\n Snackbar.make(v, \"You have to be above 15 years old\", Snackbar.LENGTH_LONG)\n .setAction(\"Help\", new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n //visitwebsite();\n }\n })\n .show();\n et_dob.setText(\"\");\n }\n\n }\n }, mYear, mMonth, mDay);\n mDatePicker.setTitle(\"Select date\");\n mDatePicker.show();\n\n\n }",
"private void showDateDialog(){\n\t\tDatePickerDialog dpd = new DatePickerDialog(this, new OnDateSetListener(){\r\n\t\t\tpublic void onDateSet(DatePicker view , int year, int month, int day){\r\n\t\t\t\tgiorno.set(year,month,day);\r\n\t\t\t\tEditText et_giorno = (EditText) BookingActivity.this.findViewById(R.id.prenotazione_et_giorno);\r\n\t\t\t\tformatter.applyPattern(\"dd MMMMM yyyy\");\r\n\t\t\t\tet_giorno.setText(formatter.format(giorno.getTime()));\r\n\t\t\t}\t\t\t \t\r\n\t\t}, giorno.get(Calendar.YEAR), giorno.get(Calendar.MONTH), giorno.get(Calendar.DAY_OF_MONTH));\r\n\t\tdpd.show();\r\n\t}",
"@Override\n public void onDateSet(DatePicker view, int year, int month, int day) {\n int mMonth = month + 1;\n String bydate = year + \"-\" + mMonth + \"-\" + day;\n mIdTvMoonatCenterShortLine.setText(bydate);\n\n List<SleepDataInfo> all = manager.findAllSleep();\n SleepDataInfo sleepDataInfo_total = manager.findSleepDataInfo(SPUtil.getUserName(getApplication()), bydate);\n RefreshView(sleepDataInfo_total); /*选择日期后刷新ui*/\n }",
"@Override\n public void onClick(View v) {\n new DatePickerDialog(context, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }",
"public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n\t\t\t\t\t \t\t\tstart_day = selectedday;\n\t\t\t\t\t \t\t\tstart_month = selectedmonth;\n\t\t\t\t\t \t\t\tstart_year = selectedyear;\n\t\t\t\t\t \t\t\t//final Date date = new Date(c.getTimeInMillis());\n\t\t\t\t\t \t\t\t//final SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\t\t \t\t\t//harvestdate1.setText(dateFormat.format(date));\n\t\t\t\t\t harvestdate1.setText(new StringBuilder().append(start_day).append(\"-\").append(start_month+1)\n\t\t\t\t .append(\"-\").append(start_year)\n\t\t\t\t .append(\" \")); \t\n\t\t\t\t\t // set selected date into Date Picker\n\t\t\t\t\t datepicker.init(start_year, start_month, start_day, null);\n\n\t\t\t\t\t }",
"@Override\n public void onDateSet(DatePickerDialog view, int year, int month, int date)\n {\n String dateSet = \"\" + year + \"-\" + (++month) + \"-\" + date;\n selectDateTextView.setText(dateSet);\n\n\n\n\n// _device_id = \"2345\";\n// _expiry_date = T.parseDate(dateSet);\n// _document_type = \"Driving Licence\";\n//\n// uploadDocumentImage();\n }",
"public void onDateSet(DatePicker view, int year, int month, int day) {\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd-MM-yyyy\");\n Calendar calendar = Calendar.getInstance();\n calendar.set(Calendar.DAY_OF_MONTH, month, day, 0, 0);\n calendar.set(Calendar.YEAR, year);\n\n String formatedDate = sdf.format(calendar.getTime());\n if (calendar.getTime().before(Calendar.getInstance().getTime())) {\n diffInMilis = Calendar.getInstance().getTimeInMillis() - calendar.getTimeInMillis();\n diffInDays = diffInMilis / (24 * 60 * 60 * 1000);\n if (diffInDays > 21) {\n String promptMessage = \"Cannot fetch call logs for \" + diffInDays\n + \" days right now. Please wait for \"\n + String.valueOf(diffInDays - 21) + \"days\";\n Toast.makeText(getContext(), promptMessage, Toast.LENGTH_SHORT).show();\n }\n\n else {\n Toast.makeText(getContext(), \"Day before\", Toast.LENGTH_SHORT).show();\n Intent intent = new Intent(getActivity().getBaseContext(), UserLogsTabs.class);\n intent.putExtra(\"date\", calendar.getTime());\n intent.putExtra(\"whenItHappened\", \"before\");\n startActivity(intent);\n\n }\n }\n\n else if (calendar.getTime().equals(Calendar.getInstance().getTime()))\n {\n Toast.makeText(getContext(), \"Please select a date before the current date\",\n Toast.LENGTH_SHORT).show();\n }\n\n else {\n Toast.makeText(getContext(), \"Cannot fetch call logs from future\", Toast.LENGTH_SHORT).show();\n /*Intent intent = new Intent(getActivity(), CallLogStats.class);\n intent.putExtra(\"date\", calendar.getTime());\n intent.putExtra(\"whenItHappened\", \"after\");\n startActivity(intent);*/\n }\n }",
"public static void PurchaseOrder_SearchPage_InvalidDate_Val(List<HashMap<String, String>> data) {\n\t\tWebdriverWait.findElement(\"id\", \"minDate_i18n\").sendKeys(data.get(8).get(\"Column1\"));\n\t\tWebdriverWait.findElement(\"id\", \"maxDate_i18n\").sendKeys(data.get(7).get(\"Column1\"));\n\t\tWebdriverWait.findElement(\"xpath\", \"//*[@value='Search']\").click();\n\n\t\tString PO_ThruDate = WebdriverWait.findElement(\"xpath\", \"//*[@id= 'content-messages']/div/ul/li[1]\").getText();\n\t\tPO_PurchaseOrder_softAssert.assertThat(PO_ThruDate).isEqualTo(data.get(21).get(\"Column2\"));\n\t}",
"@Override\n public void onClick(View v) {\n new DatePickerDialog(getContext(), date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }",
"@Override\n public void onClick(View v) {\n new DatePickerDialog(getContext(), date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }",
"protected abstract List<TemporalField> validFields();",
"public void onDateSet(DatePicker view, int year, int month, int day) {\n Calendar calendar = Calendar.getInstance();\n calendar.set(year, month, day);\n pickedDate = calendar.getTimeInMillis();\n\n }",
"@Override\n protected Dialog onCreateDialog(int id) {\n DatePickerDialog pickerDialog=null;\n if (id == 999)\n pickerDialog = new DatePickerDialog(this,myDateListener, year, month, day);\n else\n if(id==888)\n pickerDialog = new DatePickerDialog(this,myDateListener1, year, month, day);\n\n Calendar c1 = Calendar.getInstance();\n\n c1.set(year,month,day,c1.get(Calendar.HOUR_OF_DAY)-1,c1.get(Calendar.MINUTE)-1,c1.get(Calendar.SECOND)-30);\n //c1.add(Calendar.DAY_OF_MONTH,-1);\n long minDate = c1.getTime().getTime();\n pickerDialog.getDatePicker().setMinDate(minDate);\n\n Date today = new Date();\n Calendar c = Calendar.getInstance();\n c.setTime(today);\n\n c.add(Calendar.MONTH, 18 ); // Subtract 6 months\n long maxDate = c.getTime().getTime(); // Twice!\n pickerDialog.getDatePicker().setMaxDate(maxDate);\n\n\n return pickerDialog;\n\n\n }",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tString fcraDate = (String) btnFcraDate.getText();\n\t\t\t\t\tString dateParts[] = fcraDate.split(\"-\");\n\t\t\t\t\tsetfromday1 = dateParts[0];\n\t\t\t\t\tsetfrommonth1 = dateParts[1];\n\t\t\t\t\tsetfromyear1 = dateParts[2];\n\t \n\t\t\t\t\t//System.out.println(\"fcradate is:\"+setfromday1);\n\t\t\t\t\t//System.out.println(\"fcradate is:\"+setfrommonth1);\n\t\t\t\t\t//System.out.println(\"fcradate is:\"+setfromyear1);\n\t\t\t\t\t//System.out.println(\"fcradate is:\"+fcraDate);\n\t\t\t\t\tshowDialog(FCRA_DATE_DIALOG_ID);\n\t\t\t\t}",
"public void onDateSet(DatePicker view, int year, int month, int day) {\n\t\t}",
"@Override\r\n\tprotected void initBinder(HttpServletRequest request,\r\n\t\t\tServletRequestDataBinder binder) throws Exception {\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yyyy HH:mm\");\r\n\t\tCustomDateEditor editor = new CustomDateEditor(dateFormat, true);\r\n\t\t\r\n\t\tSimpleDateFormat dateFormat1 = new SimpleDateFormat(\"dd-MM-yyyy\");\r\n\t\tCustomDateEditor editor1 = new CustomDateEditor(dateFormat1, true);\r\n\t\t\r\n\t\tbinder.registerCustomEditor(Date.class,\"inspectionDate\", editor);\r\n\t\tbinder.registerCustomEditor(Date.class, \"issueDate\", editor1);\r\n\t\tbinder.registerCustomEditor(Date.class, \"approvalDate1\", editor1);\r\n\t\tbinder.registerCustomEditor(Date.class, \"approvalDate2\", editor1);\r\n\t\tbinder.registerCustomEditor(Date.class, \"approvalDate3\", editor1);\r\n\t\tbinder.registerCustomEditor(Date.class, \"approvalDate4\", editor1);\r\n\t\tbinder.registerCustomEditor(Date.class, \"approvalDate5\", editor1);\r\n\t\tbinder.registerCustomEditor(Date.class, \"approvalDate6\", editor1);\r\n\t\tbinder.registerCustomEditor(Date.class, \"approvalDate7\", editor1);\r\n\t\tbinder.registerCustomEditor(Date.class, \"approvalDate8\", editor1);\r\n\t\tbinder.registerCustomEditor(Date.class, \"approvalDate9\", editor1);\r\n\t\tbinder.registerCustomEditor(Date.class, \"approvalDate10\", editor1);\r\n\r\n\t}",
"@Override\n public void onDateSet(DatePicker arg0,\n int arg1, int arg2, int arg3) {\n startshowDate(arg1, arg2+1, arg3);\n //endshowDate(arg1, arg2+1, arg3);\n }"
] | [
"0.6649276",
"0.637376",
"0.6115593",
"0.58621794",
"0.5859886",
"0.58066416",
"0.5778717",
"0.5749551",
"0.57062185",
"0.56998837",
"0.5673082",
"0.5664309",
"0.56620705",
"0.5646086",
"0.5631842",
"0.5602271",
"0.55987763",
"0.55858505",
"0.558412",
"0.5563607",
"0.5555466",
"0.55348366",
"0.5518546",
"0.55169165",
"0.5500137",
"0.54981756",
"0.549445",
"0.54900646",
"0.54872817",
"0.5480987",
"0.54795945",
"0.546823",
"0.54636854",
"0.5453698",
"0.54464835",
"0.5440977",
"0.54350036",
"0.54344285",
"0.5433131",
"0.5417667",
"0.5416359",
"0.5416287",
"0.54161304",
"0.5412421",
"0.54093003",
"0.54085666",
"0.54026777",
"0.5401373",
"0.5389491",
"0.53893024",
"0.5388743",
"0.5387546",
"0.5381646",
"0.53744906",
"0.53735757",
"0.537315",
"0.53617454",
"0.53525084",
"0.53433466",
"0.5328182",
"0.5320303",
"0.5311021",
"0.53083694",
"0.5306889",
"0.53049225",
"0.53028744",
"0.53014296",
"0.5297679",
"0.5296981",
"0.529243",
"0.5288917",
"0.5284883",
"0.52846813",
"0.52842736",
"0.52817386",
"0.5279174",
"0.52782905",
"0.5259119",
"0.5258609",
"0.5255407",
"0.52522385",
"0.524993",
"0.52471566",
"0.5245979",
"0.52397877",
"0.5236365",
"0.52329624",
"0.52259916",
"0.5224838",
"0.5223809",
"0.52105933",
"0.5203906",
"0.5201699",
"0.5201699",
"0.519781",
"0.5197089",
"0.51939523",
"0.51834804",
"0.51811564",
"0.51773226",
"0.5172361"
] | 0.0 | -1 |
Initializes the controller class. | @Override
public void initialize(URL url, ResourceBundle rb) {
try {
cmbBookPublisherIdAdd.getItems().setAll(ChoiceBoxes.PublisherIdChoice());
cmbBookAuthorIdAdd.getItems().setAll(ChoiceBoxes.AuthorIdChoice());
cmdBookGenreIdAdd.getItems().setAll(ChoiceBoxes.GenreIdChoice());
} catch (FileNotFoundException e) {
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initialize() {\n\t\tcontroller = Controller.getInstance();\n\t}",
"public MainController() {\n\t\tcontroller = new Controller(this);\n\t}",
"public abstract void initController();",
"public Controller() {\n super();\n }",
"public Controller() {\n super();\n }",
"public Controller()\n\t{\n\n\t}",
"private static CompanyController initializeController() {\n\n controller = new CompanyController();\n return controller;\n }",
"public MainController() {\n initializeControllers();\n initializeGui();\n runGameLoop();\n }",
"public Controller() {\n this.model = new ModelFacade();\n this.view = new ViewFacade();\n }",
"public Controller()\r\n\t{\r\n\t\tview = new View();\r\n\t}",
"public Controller() {\n\t\tthis(null);\n\t}",
"public void init(){\n\t\t//Makes the view\n\t\tsetUpView();\n\n\t\t//Make the controller. Links the action listeners to the view\n\t\tnew Controller(this);\n\t\t\n\t\t//Initilize the array list\n\t\tgameInput = new ArrayList<Integer>();\n\t\tuserInput = new ArrayList<Integer>();\n\t\thighScore = new HighScoreArrayList();\n\t}",
"private void initialize() {\n\t\tinitializeModel();\n\t\tinitializeBoundary();\n\t\tinitializeController();\n\t}",
"public void init() {\n\t\tkontrolleri1 = new KolikkoController(this);\n\t}",
"protected void initialize() {\n super.initialize(); // Enables \"drive straight\" controller\n }",
"public Controller() {\n model = new Model();\n comboBox = new ChannelComboBox();\n initView();\n new ChannelWorker().execute();\n timer = new Timer();\n }",
"protected CityController() {\r\n\t}",
"public void initialize() {\n warpController = new WarpController(this);\n kitController = new KitController(this);\n crafting = new CraftingController(this);\n mobs = new MobController(this);\n items = new ItemController(this);\n enchanting = new EnchantingController(this);\n anvil = new AnvilController(this);\n blockController = new BlockController(this);\n hangingController = new HangingController(this);\n entityController = new EntityController(this);\n playerController = new PlayerController(this);\n inventoryController = new InventoryController(this);\n explosionController = new ExplosionController(this);\n requirementsController = new RequirementsController(this);\n worldController = new WorldController(this);\n arenaController = new ArenaController(this);\n arenaController.start();\n if (CompatibilityLib.hasStatistics() && !CompatibilityLib.hasJumpEvent()) {\n jumpController = new JumpController(this);\n }\n File examplesFolder = new File(getPlugin().getDataFolder(), \"examples\");\n examplesFolder.mkdirs();\n\n File urlMapFile = getDataFile(URL_MAPS_FILE);\n File imageCache = new File(dataFolder, \"imagemapcache\");\n imageCache.mkdirs();\n maps = new MapController(this, urlMapFile, imageCache);\n\n // Initialize EffectLib.\n if (com.elmakers.mine.bukkit.effect.EffectPlayer.initialize(plugin, getLogger())) {\n getLogger().info(\"EffectLib initialized\");\n } else {\n getLogger().warning(\"Failed to initialize EffectLib\");\n }\n\n // Pre-create schematic folder\n File magicSchematicFolder = new File(plugin.getDataFolder(), \"schematics\");\n magicSchematicFolder.mkdirs();\n\n // One-time migration of legacy configurations\n migrateConfig(\"enchanting\", \"paths\");\n migrateConfig(\"automata\", \"blocks\");\n migrateDataFile(\"automata\", \"blocks\");\n\n // Ready to load\n load();\n resourcePacks.startResourcePackChecks();\n }",
"public ClientController() {\n }",
"public Controller() {\n\t\tthis.nextID = 0;\n\t\tthis.data = new HashMap<Integer, T>();\n\t}",
"public ListaSEController() {\n }",
"boolean InitController();",
"public MenuController() {\r\n\t \r\n\t }",
"@Override\n\tprotected void initController() throws Exception {\n\t\tmgr = orderPickListManager;\n\t}",
"public CustomerController() {\n\t\tsuper();\n\n\t}",
"public End_User_0_Controller() {\r\n\t\t// primaryStage = Users_Page_Controller.primaryStage;\r\n\t\t// this.Storeinfo = primaryStage.getTitle();\r\n\t}",
"public Controller(){\r\n\t\tthis.fabricaJogos = new JogoFactory();\r\n\t\tthis.loja = new Loja();\r\n\t\tthis.preco = 0;\r\n\t\tthis.desconto = 0;\r\n\t}",
"private Controller() {\n\t\tthis.gui = GUI.getInstance();\n\t\tthis.gui.setController(this);\n\t}",
"public GameController() {\r\n\t\tsuper();\r\n\t\tthis.model = Main.getModel();\r\n\t\tthis.player = this.model.getPlayer();\r\n\t\tthis.timeline = this.model.getIndefiniteTimeline();\r\n\t}",
"public PlantillaController() {\n }",
"public Controller() {\n\t\tplaylist = new ArrayList<>();\n\t\tshowingMore = false;\n\t\tstage = Main.getStage();\n\t}",
"public IfController()\n\t{\n\n\t}",
"public TournamentController()\n\t{\n\t\tinitMap();\n\t}",
"public GeneralListVueController() {\n\n\t}",
"private ClientController() {\n }",
"public Controller()\n\t{\n\t\ttheParser = new Parser();\n\t\tstarList = theParser.getStars();\n\t\tmessierList = theParser.getMessierObjects();\n\t\tmoon = new Moon(\"moon\");\n\t\tsun = new Sun(\"sun\");\n\t\tconstellationList = theParser.getConstellations();\n\t\tplanetList = new ArrayList<Planet>();\n\t\ttheCalculator = new Calculator();\n\t\tepoch2000JD = 2451545.0;\n\t}",
"private void initialiseController() \r\n {\r\n defaultVectors();\r\n if(grantsByPIForm == null) \r\n {\r\n grantsByPIForm = new GrantsByPIForm(); //(Component) parent,modal);\r\n }\r\n grantsByPIForm.descriptionLabel.setText(UnitName);\r\n grantsByPIForm.descriptionLabel.setFont(new Font(\"SansSerif\",Font.BOLD,14));\r\n queryEngine = QueryEngine.getInstance();\r\n coeusMessageResources = CoeusMessageResources.getInstance();\r\n registerComponents();\r\n try {\r\n setFormData(null);\r\n }\r\n catch(Exception e) {\r\n e.printStackTrace(System.out);\r\n }\r\n }",
"public LogMessageController() {\n\t}",
"public LoginPageController() {\n\t}",
"public ControllerEnfermaria() {\n }",
"public ProvisioningEngineerController() {\n super();\n }",
"private StoreController(){}",
"public GenericController() {\n }",
"@Override\n\tpublic void initialize() {\n\t\tinitializeModel(getSeed());\n\t\tinitializeView();\n\t\tinitializeControllers();\n\t\t\n\t\tupdateScore(8);\n\t\tupdateNumberCardsLeft(86);\n\n\t}",
"public Controller() {\n\t\tenabled = false;\n\t\tloop = new Notifier(new ControllerTask(this));\n\t\tloop.startPeriodic(DEFAULT_PERIOD);\n\t}",
"public MapController() {\r\n\t}",
"@Override\r\n\tpublic void initControllerBean() throws Exception {\n\t}",
"private void setupController() {\n setupWriter();\n Controller controller1 = new Controller(writer);\n controller = controller1;\n }",
"public WfController()\n {\n }",
"public Controller() {\n\n lastSearches = new SearchHistory();\n\n }",
"private ClientController(){\n\n }",
"public LoginController() {\r\n }",
"public PersonasController() {\r\n }",
"private void initBefore() {\n // Crear Modelo\n model = new Model();\n\n // Crear Controlador\n control = new Controller(model, this);\n\n // Cargar Propiedades Vista\n prpView = UtilesApp.cargarPropiedades(FICHERO);\n\n // Restaurar Estado\n control.restaurarEstadoVista(this, prpView);\n\n // Otras inicializaciones\n }",
"public StoreController() {\n }",
"public ConsoleController() {\n\t\tcommandDispatch = new CommandDispatch();\n\t}",
"public LoginController() {\r\n\r\n }",
"public final void init(final MainController mainController) {\n this.mainController = mainController;\n }",
"public SMPFXController() {\n\n }",
"public Controller()\r\n {\r\n fillBombs();\r\n fillBoard();\r\n scoreBoard = new ScoreBoard();\r\n }",
"public GUIController() {\n\n }",
"public void init(){\n this.controller = new StudentController();\n SetSection.displayLevelList(grade_comp);\n new DesignSection().designForm(this, editStudentMainPanel, \"mini\");\n }",
"public void init(final Controller controller){\n Gdx.app.debug(\"View\", \"Initializing\");\n \n this.controller = controller;\n \n //clear old stuff\n cameras.clear();\n \n //set up renderer\n hudCamera = new OrthographicCamera();\n hudCamera.setToOrtho(false, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());\n \n batch = new SpriteBatch();\n igShRenderer = new ShapeRenderer();\n shapeRenderer = new ShapeRenderer();\n \n //set up stage\n stage = new Stage();\n \n //laod cursor\n cursor = new Pixmap(Gdx.files.internal(\"com/BombingGames/WurfelEngine/Core/images/cursor.png\"));\n\n controller.getLoadMenu().viewInit(this);\n \n initalized = true;\n }",
"@PostConstruct\n public void init() {\n WebsocketController.getInstance().setTemplate(this.template);\n try {\n\t\t\tthis.chatController = ChatController.getInstance();\n } catch (final Exception e){\n LOG.error(e.getMessage(), e);\n }\n }",
"public ControllerTest()\r\n {\r\n }",
"public SearchedRecipeController() {\n }",
"public FilmOverviewController() {\n }",
"public CreditPayuiController() {\n\t\tuserbl = new UserController();\n\t}",
"private void initComponents() {\r\n\t\temulator = new Chip8();\r\n\t\tpanel = new DisplayPanel(emulator);\r\n\t\tregisterPanel = new EmulatorInfoPanel(emulator);\r\n\t\t\r\n\t\tcontroller = new Controller(this, emulator, panel, registerPanel);\r\n\t}",
"public RootLayoutController() {\n }",
"public MehController() {\n updateView(null);\n }",
"public Controller(int host) {\r\n\t\tsuper(host);\r\n\t}",
"public WorkerController(){\r\n\t}",
"public TipoInformazioniController() {\n\n\t}",
"private void initializeMealsControllers() {\n trNewPetMeal = MealsControllersFactory.createTrNewPetMeal();\n trObtainAllPetMeals = MealsControllersFactory.createTrObtainAllPetMeals();\n trDeleteMeal = MealsControllersFactory.createTrDeleteMeal();\n trUpdateMeal = MealsControllersFactory.createTrUpdateMeal();\n }",
"public ProductOverviewController() {\n }",
"public ProduktController() {\r\n }",
"public Controller(ViewIF view) {\n\t\tthis.view = view;\n\t\tthis.dao = new DAO();\n\t\tthis.stats = new Statistics(this.dao);\n\t\tthis.gameStarted = false;\n\t}",
"private void initializeMedicationControllers() {\n trNewPetMedication = MedicationControllersFactory.createTrNewPetMedication();\n trObtainAllPetMedications = MedicationControllersFactory.createTrObtainAllPetMedications();\n trDeleteMedication = MedicationControllersFactory.createTrDeleteMedication();\n trUpdateMedication = MedicationControllersFactory.createTrUpdateMedication();\n }",
"public PersonLoginController() {\n }",
"public PremiseController() {\n\t\tSystem.out.println(\"Class PremiseController()\");\n\t}",
"public TaxiInformationController() {\n }",
"public LoginController() {\n\t\treadFromFile();\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public Controller(){\n initControl();\n this.getStylesheets().addAll(\"/resource/style.css\");\n }",
"public CreateDocumentController() {\n }",
"public ControllerRol() {\n }",
"Main ()\n\t{\n\t\tview = new View ();\t\t\n\t\tmodel = new Model(view);\n\t\tcontroller = new Controller(model, view);\n\t}",
"public Controller () {\r\n puzzle = null;\r\n words = new ArrayList <String> ();\r\n fileManager = new FileIO ();\r\n }",
"public void init() {\n \n }",
"public Controller() {\n\t\tdoResidu = false;\n\t\tdoTime = false;\n\t\tdoReference = false;\n\t\tdoConstraint = false;\n\t\ttimeStarting = System.nanoTime();\n\t\t\n\t\tsetPath(Files.getWorkingDirectory());\n\t\tsetSystem(true);\n\t\tsetMultithreading(true);\n\t\tsetDisplayFinal(true);\n\t\tsetFFT(FFT.getFastestFFT().getDefaultFFT());\n\t\tsetNormalizationPSF(1);\n\t\tsetEpsilon(1e-6);\n\t\tsetPadding(new Padding());\n\t\tsetApodization(new Apodization());\n\n\t\tmonitors = new Monitors();\n\t\tmonitors.add(new ConsoleMonitor());\n\t\tmonitors.add(new TableMonitor(Constants.widthGUI, 240));\n\n\t\tsetVerbose(Verbose.Log);\n\t\tsetStats(new Stats(Stats.Mode.NO));\n\t\tsetConstraint(Constraint.Mode.NO);\n\t\tsetResiduMin(-1);\n\t\tsetTimeLimit(-1);\n\t\tsetReference(null);\n\t\tsetOuts(new ArrayList<Output>());\n\t}",
"public OrderInfoViewuiController() {\n\t\tuserbl = new UserController();\n\t}",
"public SessionController() {\n }",
"@Override\n\tprotected void setController() {\n\t\t\n\t}",
"public MainFrameController() {\n }",
"public LicenciaController() {\n }",
"public NearestParksController() {\n this.bn = new BicycleNetwork();\n this.pf = new LocationFacade();\n // this.bn.loadData();\n }",
"public MotorController() {\n\t\tresetTachometers();\n\t}",
"public AwTracingController() {\n mNativeAwTracingController = nativeInit();\n }",
"public Controller(IView view) {\n\t\tengine = new Engine(this);\n\t\tclock = new Clock();\n\t\tsoundEmettor = new SoundEmettor();\n\t\tthis.view = view;\n\t}",
"public HomeController() {\n }",
"public HomeController() {\n }"
] | [
"0.8125658",
"0.78537387",
"0.78320265",
"0.776199",
"0.776199",
"0.76010174",
"0.74497247",
"0.7437837",
"0.7430714",
"0.742303",
"0.74057597",
"0.7341963",
"0.7327749",
"0.72634363",
"0.72230434",
"0.7102504",
"0.70575505",
"0.69873077",
"0.69721675",
"0.6944077",
"0.6912564",
"0.688884",
"0.6881247",
"0.68776786",
"0.68723065",
"0.6868163",
"0.68672407",
"0.6851157",
"0.6846883",
"0.6840198",
"0.68382674",
"0.68338853",
"0.6795918",
"0.67823315",
"0.6766882",
"0.67650586",
"0.6750353",
"0.6749068",
"0.6745654",
"0.6743223",
"0.67401046",
"0.6727867",
"0.6723379",
"0.6695514",
"0.6689967",
"0.66892517",
"0.66791916",
"0.6677345",
"0.66644365",
"0.6664202",
"0.66616154",
"0.66532296",
"0.66481894",
"0.6644939",
"0.6639398",
"0.6633576",
"0.66312426",
"0.662608",
"0.66258574",
"0.66105217",
"0.6606984",
"0.66024727",
"0.6597095",
"0.6580141",
"0.65786153",
"0.65752715",
"0.6574144",
"0.6551536",
"0.655142",
"0.6547574",
"0.6545647",
"0.6541474",
"0.6529243",
"0.65284246",
"0.6525593",
"0.6523344",
"0.6519832",
"0.65134746",
"0.65079254",
"0.6497635",
"0.64952356",
"0.6493943",
"0.6492926",
"0.6483847",
"0.6483173",
"0.648183",
"0.6479119",
"0.64789915",
"0.6476928",
"0.64734083",
"0.6465272",
"0.64616114",
"0.6444024",
"0.64379543",
"0.6431962",
"0.64292705",
"0.6425357",
"0.6417148",
"0.6416786",
"0.64161026",
"0.64161026"
] | 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.menu_view_pager, 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.action_add) {
Intent intent = new Intent(this, FormLocationActivity.class);
startActivity(intent);
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 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 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 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\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\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 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.790433",
"0.78052884",
"0.7766116",
"0.77269244",
"0.7631314",
"0.76214564",
"0.75844425",
"0.7530182",
"0.748751",
"0.7457498",
"0.7457498",
"0.7438209",
"0.74215984",
"0.74033666",
"0.7391367",
"0.7386547",
"0.7378906",
"0.73700386",
"0.73624307",
"0.73555857",
"0.734534",
"0.7341001",
"0.7329573",
"0.7328464",
"0.732542",
"0.73187584",
"0.73161364",
"0.73133296",
"0.730374",
"0.730374",
"0.7301578",
"0.7297925",
"0.72935253",
"0.7286381",
"0.728296",
"0.7280917",
"0.7278273",
"0.72595716",
"0.72595716",
"0.72595716",
"0.72594506",
"0.7258975",
"0.7249544",
"0.7224888",
"0.7219197",
"0.7216406",
"0.72040117",
"0.7201528",
"0.72002995",
"0.71931463",
"0.7184822",
"0.7177731",
"0.7168134",
"0.71670145",
"0.71535766",
"0.7152848",
"0.71356684",
"0.7134476",
"0.7134476",
"0.7128907",
"0.7128605",
"0.7123538",
"0.7122872",
"0.7122704",
"0.7121557",
"0.71169186",
"0.71169186",
"0.71169186",
"0.71169186",
"0.7116654",
"0.71165264",
"0.71160054",
"0.71144056",
"0.71118295",
"0.71092284",
"0.7108203",
"0.7104891",
"0.7099518",
"0.7097655",
"0.7095719",
"0.7093119",
"0.7093119",
"0.7085876",
"0.70827055",
"0.70806557",
"0.7079835",
"0.7073702",
"0.70676506",
"0.706124",
"0.70596653",
"0.7059546",
"0.70508295",
"0.7037259",
"0.7037259",
"0.70355344",
"0.70347226",
"0.70347226",
"0.70325696",
"0.7030457",
"0.70290285",
"0.7018263"
] | 0.0 | -1 |
Tag used to cancel the request | private void login(final String email, final String password){
String tag_string_req = "req_login";
progressDialog.setMessage("Logging in...");
progressDialog.show();
StringRequest strReq = new StringRequest(Request.Method.POST,
Utils.LOGIN_URL, new Response.Listener<String>() {
@Override
public void onResponse(String response) {
Log.d(TAG, "Login Response: " + response.toString());
try {
JSONObject jObj = new JSONObject(response);
boolean error = jObj.getBoolean("error");
// Check for error node in json
if (!error) {
// Now store the user in SQLite
JSONObject user = jObj.getJSONObject("user");
String uName = user.getString("username");
String email = user.getString("name");
// Inserting row in users table
userInfo.setEmail(email);
userInfo.setUsername(uName);
session.setLoggedin(true);
startActivity(new Intent(Login.this, MainActivity.class));
finish();
} else {
// Error in login. Get the error message
String errorMsg = jObj.getString("error_msg");
toast(errorMsg);
}
} catch (JSONException e) {
// JSON error
e.printStackTrace();
toast("Json error: " + e.getMessage());
}
}
}, new Response.ErrorListener() {
@Override
public void onErrorResponse(VolleyError error) {
Log.e(TAG, "Login Error: " + error.getMessage());
toast("Unknown Error occurred");
progressDialog.hide();
}
}) {
@Override
protected Map<String, String> getParams() {
// Posting parameters to login url
Map<String, String> params = new HashMap<>();
params.put("email", email);
params.put("password", password);
return params;
}
};
// Adding request to request queue
// AndroidLoginController.getInstance().addToRequestQueue(strReq, tag_string_req);
Volley.newRequestQueue(getApplicationContext()).add(strReq);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void cancel(Object tag) {\n Dispatcher dispatcher = mClient.dispatcher();\n for (Call call : dispatcher.queuedCalls()) {\n if (tag.equals(call.request().tag())) {\n call.cancel();\n }\n }\n for (Call call : dispatcher.runningCalls()) {\n if (tag.equals(call.request().tag())) {\n call.cancel();\n }\n }\n }",
"public native int cancel (int tagId) throws IOException,IllegalArgumentException;",
"@Override\r\n public void onCancel(String callerTag) {\n }",
"public void cancelPendingRequests(Object tag) {\n if (mRequestQueue != null) {\n mRequestQueue.cancelAll(tag);\n }\n }",
"public void cancelPendingRequests(Object tag) {\n if (mRequestQueue != null) {\n mRequestQueue.cancelAll(tag);\n }\n }",
"public void cancelPendingRequests(Object tag) {\n if (mRequestQueue != null) {\n mRequestQueue.cancelAll(tag);\n }\n }",
"@Override\n\t\t\t\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}",
"public void cancel() {\n request.disconnect();\n }",
"@Override\n public void cancelAllForTag(Object tag) {\n getRequestQueue().cancelAll(tag);\n }",
"@Override\n\t\tpublic void cancel() {\n\t\t\t\n\t\t}",
"@Override\n public void cancel() {\n\n }",
"@Override\n public void cancel() {\n\n }",
"@Override\n public void cancel() {\n\n }",
"@Override\n\tpublic void cancel() {\n\n\t}",
"@Override\n\tpublic void cancel() {\n\n\t}",
"@Override\n\tpublic void cancel() {\n\n\t}",
"@Override\n\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"@Override\n public void cancel() {\n }",
"@Override\n public void cancel() {\n }",
"@Override\n public void cancel() {\n\n }",
"@Override\n public void cancel() {\n\n }",
"@Override\n\tpublic void cancel() {\n\t\t\n\t}",
"@Override\r\n\tpublic void cancel() {\n\t\t\r\n\t}",
"public boolean cancel(String requestId);",
"public void onCancel();",
"public void cancel()\n\t{\n\t}",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel();",
"public void cancel() {\n\t}",
"public synchronized void cancel() {\n }",
"public void cancel();",
"protected abstract void onCancel();",
"void onCancel();",
"@Override\r\n\t\t\t\t\tpublic void onCancel() {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}",
"@Override\r\n\t\tpublic void onCancel() {\n\t\t}",
"void cancel(long inId);",
"@Override\n\t\t\tpublic void onCancel() {\n\t\t\t\t\n\t\t\t}",
"@Override\n public void onCancel() {\n }",
"@Override\n\t\tpublic void onCancel() {\n \n \t}",
"@Override\n\t\t\t\t public void onCancel() {\n\t\t\t\t\t errorMessage = \"You cancelled Operation\";\n\t\t\t\t\t getResponse();\n\t\t\t\t }",
"public void onCancel() {\n\t\t\t\t\t}",
"public void onCancel() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"@Override\n\tpublic void httpCancel() {\n\t\texpressQueryCancel();\n\t}",
"public void cancel( String reason );",
"void cancelOverrideRequest() {\n cancelCurrentRequestLocked();\n }",
"public void cancelGetResponse() {\n impl.cancelGetResponse();\n }",
"public void onCancel() {\n }",
"@Override\n public void onCancel() {\n }",
"void cancel();",
"void cancel();",
"void cancel();",
"void cancel();",
"void cancel();",
"@Override\n protected void onCancel() {\n }",
"public void cancel(){\n cancelled = true;\n }",
"void cancel() {\n if (mCurrentRequest != null) {\n mCurrentRequest.cancel();\n mCurrentRequest = null;\n }\n mPendingEntries.clear();\n }",
"@Override\n\tpublic void canceled() {\n\t\t\n\t}",
"@Override\n\tpublic void canceled() {\n\t\t\n\t}",
"@Override\n public void onCancel() {\n\n }",
"@Override\n public void onCancel() {\n\n }",
"@Override\n public void onCancel() {\n\n }",
"abstract protected ActionForward processCancel( UserRequest request )\n throws IOException, ServletException;",
"@Override\n public void onCancel() {\n\n }",
"@objid (\"26d79ec6-186f-11e2-bc4e-002564c97630\")\n @Override\n public void performCancel() {\n }",
"@Override\n public void onCancel() {\n Log.w(tag, \"post cancel\" + this.getRequestURI());\n cancelmDialog();\n super.onCancel();\n }",
"public void cancel() {\n btCancel().push();\n }",
"public void onCancel() {\n\n }",
"public void cancel() {\n\t\tinterrupt();\n\t}",
"@Override\n public void onCancel() {\n\n }",
"public void cancel() {\n\t\tcancelled = true;\n\t}",
"public void cancel() {\r\n\t\tthis.cancel = true;\r\n\t}",
"public void cancel(){\n \tLog.v(TAG, \"Cancel request\");\n \t// Cancel the initialization task\n \tif(initTask != null){\n \t\tLog.i(TAG, \"initTask was not null.\");\n \t\tinitTask.cancel(true);\n \t\tinitTask = null;\n \t}\n }",
"protected abstract void handleCancel();",
"public void cancel() {\n final boolean isCancelable = this.apiRequestAsync != null;\n if (isCancelable) {\n this.apiRequestAsync.cancel(true);\n }\n }",
"protected MessageBody cancel() {\n\t\tPlatformMessage msg = cancelRequest(incidentAddress).getMessage();\n\t\talarm.cancel(context, msg);\n\t\treturn msg.getValue();\n\t}",
"public void cancel() {\n\t\tcancel(false);\n\t}",
"public boolean cancel();",
"private void cancel() {\n\t\tfinish();\n\t}",
"public native int cancel (boolean reliable,boolean sequenced,int tagId) throws IOException,IllegalArgumentException;",
"@Override\n\tpublic void handleCancel(String consumerTag) throws IOException {\n\t\t\n\t}",
"protected abstract void sendCancel(Status reason);",
"public void requestcanceled() {\n\n requestcancelcheck = true;\n\n String diatitle = \"Request cancelled.\";\n String msg = \"Request cancelled by Rider.\";\n\n marker.setEnabled(false);\n // mGoogleMap.clear();\n fullbutton.setVisibility(View.GONE);\n usercheck = false;\n touch.setVisibility(View.GONE);\n marker.setVisibility(View.INVISIBLE);\n checkonclick = false;\n timercheck = true;\n whilecheck = true;\n accheck = true;\n receivecheck = true;\n\n acc1 = acc;\n\n registerReceiver(mHandleMessageReceiver, new IntentFilter(Config.DISPLAY_MESSAGE_ACTION));\n dialogshow(diatitle, msg);\n\n }",
"public void cancel() {\n ei();\n this.fd.eT();\n this.oJ.b(this);\n this.oM = Status.CANCELLED;\n if (this.oL != null) {\n this.oL.cancel();\n this.oL = null;\n }\n }",
"@Override\n\tpublic void cancelQuery() {\n\t}",
"public abstract boolean cancel();",
"public void cancel()\n {\n this.controller.cancelDownloads();\n\n // Synchronised to avoid a race condition\n synchronized(this.cancelledMonitor)\n {\n // Set the cancelled field to true\n this.cancelled = true;\n }\n theLogger.info(\"Cancel request recieved from UI\");\n }",
"public void cancel() {\n if (call != null) {\n call.cancel();\n }\n\n // TODO: We need a LOCK here because we can try\n // to cancel at the same time the request is getting\n // answered on the OkHTTP thread. We could get rid of\n // this LOCK by using Runnable when we move Android\n // implementation of mbgl::RunLoop to Looper.\n LOCK.lock();\n nativePtr = 0;\n LOCK.unlock();\n }",
"@Override\n protected void onCancel(@CancelReason int cancelReason, @Nullable Throwable throwable) {\n }",
"@Override\n protected void onCancel(@CancelReason int cancelReason, @Nullable Throwable throwable) {\n }",
"public void cancelAddTag(ActionEvent event) {\n\t\tnewTagName.setText(\"\");\n\t\tnewTagValue.setText(\"\");\n\t\t\n\t\ttagNameLabel.setVisible(false);\n \ttagValueLabel.setVisible(false);\n \tsubmitNewTagButton.setVisible(false);\n \tcancelNewTagButton.setVisible(false);\n \tnewTagName.setVisible(false);\n \tnewTagValue.setVisible(false);\n\t}",
"public Boolean cancelRequest(User user, AsyncResultHandler handler);",
"void cancelArtist(UUID requestId) throws\n ArtistCancellingFailedException,\n ConnectionRequestNotFoundException;",
"void onCancelClicked();",
"void onCancel(int key);",
"public void cancel() {\r\n\t\tbStop = true;\r\n\t}",
"protected abstract void handleCancel() throws Exception;",
"void onCanceled();"
] | [
"0.74892986",
"0.7398642",
"0.7394957",
"0.7318561",
"0.7318561",
"0.7318561",
"0.73130196",
"0.7310195",
"0.7284655",
"0.7282553",
"0.71990424",
"0.71990424",
"0.71990424",
"0.7164122",
"0.7164122",
"0.7164122",
"0.7147939",
"0.7144099",
"0.7134751",
"0.7116599",
"0.711002",
"0.7109175",
"0.70902026",
"0.70669895",
"0.7062561",
"0.7006688",
"0.69833815",
"0.69833815",
"0.69833815",
"0.69833815",
"0.69833815",
"0.69833815",
"0.6961136",
"0.69569945",
"0.6956163",
"0.69366485",
"0.6909699",
"0.69062185",
"0.68958914",
"0.6888216",
"0.6886181",
"0.68786305",
"0.6873822",
"0.68640226",
"0.6859431",
"0.6857842",
"0.68530256",
"0.68518674",
"0.6832466",
"0.6789174",
"0.6754646",
"0.6734916",
"0.67341256",
"0.67341256",
"0.67341256",
"0.67341256",
"0.67341256",
"0.67288727",
"0.6711905",
"0.6708616",
"0.66954076",
"0.66954076",
"0.66884285",
"0.66884285",
"0.6663303",
"0.66588175",
"0.6656024",
"0.6643292",
"0.6614319",
"0.6604221",
"0.65984905",
"0.659771",
"0.6587726",
"0.65840536",
"0.65817237",
"0.65639615",
"0.65529466",
"0.6463978",
"0.64324945",
"0.6418752",
"0.6412959",
"0.63826525",
"0.6379562",
"0.6357022",
"0.634455",
"0.6327997",
"0.63191646",
"0.6318656",
"0.62926537",
"0.6288151",
"0.6274305",
"0.6250147",
"0.6250147",
"0.6245066",
"0.6231462",
"0.622235",
"0.6220605",
"0.6211107",
"0.6208584",
"0.6206841",
"0.6205943"
] | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.